org.acegisecurity.providers.x509.cache
Class EhCacheBasedX509UserCache

java.lang.Object
  extended by org.acegisecurity.providers.x509.cache.EhCacheBasedX509UserCache
All Implemented Interfaces:
X509UserCache, org.springframework.beans.factory.InitializingBean

public class EhCacheBasedX509UserCache
extends Object
implements X509UserCache, org.springframework.beans.factory.InitializingBean

Caches User objects using a Spring IoC defined EHCACHE.

Version:
$Id: EhCacheBasedX509UserCache.java 1965 2007-08-27 23:41:59Z luke_t $
Author:
Luke Taylor, Ben Alex

Constructor Summary
EhCacheBasedX509UserCache()
           
 
Method Summary
 void afterPropertiesSet()
           
 UserDetails getUserFromCache(X509Certificate userCert)
           
 void putUserInCache(X509Certificate userCert, UserDetails user)
           
 void removeUserFromCache(X509Certificate userCert)
           
 void setCache(net.sf.ehcache.Ehcache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheBasedX509UserCache

public EhCacheBasedX509UserCache()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

getUserFromCache

public UserDetails getUserFromCache(X509Certificate userCert)
Specified by:
getUserFromCache in interface X509UserCache

putUserInCache

public void putUserInCache(X509Certificate userCert,
                           UserDetails user)
Specified by:
putUserInCache in interface X509UserCache

removeUserFromCache

public void removeUserFromCache(X509Certificate userCert)
Specified by:
removeUserFromCache in interface X509UserCache

setCache

public void setCache(net.sf.ehcache.Ehcache cache)


Copyright © 2004-2009 Interface21, Inc. All Rights Reserved.