egovframework.rfc3.iam.security.authentication
Class EhCacheBasedTicketCache

java.lang.Object
  extended by egovframework.rfc3.iam.security.authentication.EhCacheBasedTicketCache
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.security.cas.authentication.StatelessTicketCache

public class EhCacheBasedTicketCache
extends java.lang.Object
implements org.springframework.security.cas.authentication.StatelessTicketCache, org.springframework.beans.factory.InitializingBean

Caches tickets using a Spring IoC defined EHCACHE.

Author:
Ben Alex

Constructor Summary
EhCacheBasedTicketCache()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.security.cas.authentication.CasAuthenticationToken getByTicketId(java.lang.String serviceTicket)
           
 net.sf.ehcache.Ehcache getCache()
           
 void putTicketInCache(org.springframework.security.cas.authentication.CasAuthenticationToken token)
           
 void removeTicketFromCache(org.springframework.security.cas.authentication.CasAuthenticationToken token)
           
 void removeTicketFromCache(java.lang.String serviceTicket)
           
 void setCache(net.sf.ehcache.Ehcache cache)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheBasedTicketCache

public EhCacheBasedTicketCache()
Method Detail

afterPropertiesSet

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

getByTicketId

public org.springframework.security.cas.authentication.CasAuthenticationToken getByTicketId(java.lang.String serviceTicket)
Specified by:
getByTicketId in interface org.springframework.security.cas.authentication.StatelessTicketCache

getCache

public net.sf.ehcache.Ehcache getCache()

putTicketInCache

public void putTicketInCache(org.springframework.security.cas.authentication.CasAuthenticationToken token)
Specified by:
putTicketInCache in interface org.springframework.security.cas.authentication.StatelessTicketCache

removeTicketFromCache

public void removeTicketFromCache(org.springframework.security.cas.authentication.CasAuthenticationToken token)
Specified by:
removeTicketFromCache in interface org.springframework.security.cas.authentication.StatelessTicketCache

removeTicketFromCache

public void removeTicketFromCache(java.lang.String serviceTicket)
Specified by:
removeTicketFromCache in interface org.springframework.security.cas.authentication.StatelessTicketCache

setCache

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