Class SpringBasedX509UserCache

java.lang.Object
org.springframework.ws.soap.security.x509.cache.SpringBasedX509UserCache
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, X509UserCache

public class SpringBasedX509UserCache extends Object implements X509UserCache, org.springframework.beans.factory.InitializingBean
Caches User objects using a Spring Framework-based Cache.

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

Author:
Luke Taylor, Ben Alex, Greg Turnquist
  • Constructor Details

    • SpringBasedX509UserCache

      public SpringBasedX509UserCache()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.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(org.springframework.cache.Cache cache)