Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-release-src > by-pkgid > 004076a53a91fada7079e92726d5e246 > files > 1

openid4java-1.0.0-3.mga6.src.rpm

--- src/org/openid4java/consumer/EhcacheNonceVerifier.java	2008-07-08 02:22:39.000000000 +0200
+++ src/org/openid4java/consumer/EhcacheNonceVerifier.java-gil	2012-03-11 12:33:10.309134244 +0100
@@ -29,14 +29,14 @@
 
     public void setCache(Cache cache)
     {
-        if (cache.getTimeToLiveSeconds() != _maxAgeSeconds)
+        if (cache.getCacheConfiguration().getTimeToLiveSeconds() != _maxAgeSeconds)
         {
-            throw new IllegalArgumentException("Max Age: " + _maxAgeSeconds + ", same expected for cache, but found: " + cache.getTimeToLiveSeconds());
+            throw new IllegalArgumentException("Max Age: " + _maxAgeSeconds + ", same expected for cache, but found: " + cache.getCacheConfiguration().getTimeToLiveSeconds());
         }
 
-        if (cache.getTimeToLiveSeconds() != cache.getTimeToIdleSeconds())
+        if (cache.getCacheConfiguration().getTimeToLiveSeconds() != cache.getCacheConfiguration().getTimeToIdleSeconds())
         {
-            throw new IllegalArgumentException("Cache must have same timeToLive (" + cache.getTimeToLiveSeconds() + ") as timeToIdle (" + cache.getTimeToIdleSeconds() + ")");
+            throw new IllegalArgumentException("Cache must have same timeToLive (" + cache.getCacheConfiguration().getTimeToLiveSeconds() + ") as timeToIdle (" + cache.getCacheConfiguration().getTimeToIdleSeconds() + ")");
         }
 
         _cache = cache;