cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [4/4] cxf git commit: Minor change to last commit
Date Fri, 09 Oct 2015 14:09:35 GMT
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/caff6453
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/caff6453
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/caff6453

Branch: refs/heads/3.0.x-fixes
Commit: caff645368ee2dc088ee7ef491e4772e6e318d7c
Parents: 3f53562
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:47 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/caff6453/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