cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/4] cxf git commit: Minor change to last commit
Date Fri, 09 Oct 2015 14:07:30 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 08fbde3d6 -> 25c187e27


Minor change to last commit


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/25c187e2
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/25c187e2
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/25c187e2

Branch: refs/heads/master
Commit: 25c187e270e0b0b7c1b03e95a1b778abc3c4ac7a
Parents: 6041c03
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Oct 9 15:05:37 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Oct 9 15:07:26 2015 +0100

----------------------------------------------------------------------
 .../cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/25c187e2/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java
b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java
index 269a8d4..cc14a85 100644
--- a/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java
+++ b/rt/rs/security/jose/src/main/java/org/apache/cxf/rs/security/jose/jaxrs/JwtAuthenticationFilter.java
@@ -45,7 +45,7 @@ public class JwtAuthenticationFilter extends AbstractJoseJwtConsumer implements
     private static final String DEFAULT_AUTH_SCHEME = "JWT";
     private String expectedAuthScheme = DEFAULT_AUTH_SCHEME;
     private int ttl = 300;
-    private int futureTTL = 0;
+    private int futureTTL;
     
     @Override
     public void filter(ContainerRequestContext requestContext) throws IOException {
@@ -73,7 +73,9 @@ public class JwtAuthenticationFilter extends AbstractJoseJwtConsumer implements
         
         // If we have no expiry then we must have an issued at
         boolean issuedAtRequired = jwt.getClaims().getExpiryTime() == null;
-        JwtUtils.validateJwtTTL(jwt.getClaims(), ttl, issuedAtRequired);
+        if (issuedAtRequired) {
+            JwtUtils.validateJwtTTL(jwt.getClaims(), ttl, issuedAtRequired);
+        }
     }
 
     public int getTtl() {


Mime
View raw message