moresandeep commented on a change in pull request #436:
URL: https://github.com/apache/knox/pull/436#discussion_r616900266



##########
File path: 
gateway-spi/src/main/java/org/apache/knox/gateway/services/security/token/impl/JWTToken.java
##########
@@ -80,12 +82,17 @@ public JWTToken(String alg, String[] claimsArray, 
List<String> audiences, boolea
     if(claimsArray[3] != null) {
       builder = builder.expirationTime(new 
Date(Long.parseLong(claimsArray[3])));
     }
+    if(claimsArray[4] != null) {

Review comment:
       It does but that is a good test before we stumble into 
ArrayIndexOutOfBounds exception




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to