Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.providers.x509.cache
Class EhCacheBasedX509UserCache  view EhCacheBasedX509UserCache download EhCacheBasedX509UserCache.java

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

public class EhCacheBasedX509UserCache
extends java.lang.Object
implements org.acegisecurity.providers.x509.X509UserCache, org.springframework.beans.factory.InitializingBean

Caches User objects using a Spring IoC defined EHCACHE.

Version:
$Id: EhCacheBasedX509UserCache.java,v 1.7 2005/11/29 13:10:08 benalex Exp $

Field Summary
private  Cache cache
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
EhCacheBasedX509UserCache()
           
 
Method Summary
 void afterPropertiesSet()
          Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).
 org.acegisecurity.userdetails.UserDetails getUserFromCache(java.security.cert.X509Certificate userCert)
           
 void putUserInCache(java.security.cert.X509Certificate userCert, org.acegisecurity.userdetails.UserDetails user)
           
 void removeUserFromCache(java.security.cert.X509Certificate userCert)
           
 void setCache(Cache cache)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.commons.logging.Log logger

cache

private Cache cache
Constructor Detail

EhCacheBasedX509UserCache

public EhCacheBasedX509UserCache()
Method Detail

setCache

public void setCache(Cache cache)

getUserFromCache

public org.acegisecurity.userdetails.UserDetails getUserFromCache(java.security.cert.X509Certificate userCert)
Specified by:
getUserFromCache in interface org.acegisecurity.providers.x509.X509UserCache

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from interface: org.springframework.beans.factory.InitializingBean
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware).

This method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

putUserInCache

public void putUserInCache(java.security.cert.X509Certificate userCert,
                           org.acegisecurity.userdetails.UserDetails user)
Specified by:
putUserInCache in interface org.acegisecurity.providers.x509.X509UserCache

removeUserFromCache

public void removeUserFromCache(java.security.cert.X509Certificate userCert)
Specified by:
removeUserFromCache in interface org.acegisecurity.providers.x509.X509UserCache