--- 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;