cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1343665 - /cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java
Date Tue, 29 May 2012 11:00:42 GMT
Author: coheigea
Date: Tue May 29 11:00:42 2012
New Revision: 1343665

URL: http://svn.apache.org/viewvc?rev=1343665&view=rev
Log:
Changing Calendar -> Date

Modified:
    cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java

Modified: cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java?rev=1343665&r1=1343664&r2=1343665&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java
(original)
+++ cxf/fediz/trunk/plugins/tomcat/src/main/java/org/apache/cxf/fediz/tomcat/FederationAuthenticator.java
Tue May 29 11:00:42 2012
@@ -23,7 +23,6 @@ import java.io.File;
 import java.io.IOException;
 import java.security.Principal;
 import java.util.ArrayList;
-import java.util.Calendar;
 import java.util.Date;
 import java.util.List;
 
@@ -186,8 +185,8 @@ public class FederationAuthenticator ext
                     LOG.debug("Token doesn't expire");
                     return true;
                 }
-                Calendar cal = Calendar.getInstance();
-                if (cal.getTime().after(wfRes.getTokenExpires())) {
+                Date currentTime = new Date();
+                if (currentTime.after(wfRes.getTokenExpires())) {
                     LOG.debug("Token already expired. Clean up and redirect");
 
                     session.removeNote(FEDERATION_NOTE);



Mime
View raw message