Spring Web Services Framework

org.springframework.ws.soap.security.x509.cache
Class EhCacheBasedX509UserCache

java.lang.Object
  extended by org.springframework.ws.soap.security.x509.cache.EhCacheBasedX509UserCache
All Implemented Interfaces:
InitializingBean, X509UserCache

public class EhCacheBasedX509UserCache
extends Object
implements X509UserCache, InitializingBean

Caches User objects using a Spring IoC defined EHCACHE.

Migrated from Spring Security 2 since it has been removed in Spring Security 3.

Author:
Luke Taylor, Ben Alex

Constructor Summary
EhCacheBasedX509UserCache()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.security.core.userdetails.UserDetails getUserFromCache(X509Certificate userCert)
           
 void putUserInCache(X509Certificate userCert, org.springframework.security.core.userdetails.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 InitializingBean
Throws:
Exception

getUserFromCache

public org.springframework.security.core.userdetails.UserDetails getUserFromCache(X509Certificate userCert)
Specified by:
getUserFromCache in interface X509UserCache

putUserInCache

public void putUserInCache(X509Certificate userCert,
                           org.springframework.security.core.userdetails.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)

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.