cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1545739 - /cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
Date Tue, 26 Nov 2013 17:13:26 GMT
Author: coheigea
Date: Tue Nov 26 17:13:25 2013
New Revision: 1545739

URL: http://svn.apache.org/r1545739
Log:
[CXF-5420] - Forgot to add this in for one place on trunk

Modified:
    cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java

Modified: cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java?rev=1545739&r1=1545738&r2=1545739&view=diff
==============================================================================
--- cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
(original)
+++ cxf/trunk/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
Tue Nov 26 17:13:25 2013
@@ -106,9 +106,8 @@ public class EHCacheTokenStore implement
         if (token != null && !StringUtils.isEmpty(identifier)) {
             int parsedTTL = getTTL(token);
             if (parsedTTL > 0) {
-                Element element = new Element(identifier, token);
-                element.setTimeToLive(parsedTTL);
-                element.setTimeToIdle(parsedTTL);
+                Element element = new Element(identifier, token, parsedTTL, parsedTTL);
+                element.resetAccessStatistics();
                 cache.put(element);
             }
         }



Mime
View raw message