|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.providers.cas.cache.EhCacheBasedTicketCache
public class EhCacheBasedTicketCache
Caches tickets using a Spring IoC defined EHCACHE.
| Constructor Summary | |
|---|---|
EhCacheBasedTicketCache()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
CasAuthenticationToken |
getByTicketId(String serviceTicket)
Retrieves the CasAuthenticationToken associated with the
specified ticket. |
net.sf.ehcache.Cache |
getCache()
|
void |
putTicketInCache(CasAuthenticationToken token)
Adds the specified CasAuthenticationToken to the cache. |
void |
removeTicketFromCache(CasAuthenticationToken token)
Removes the specified ticket from the cache, as per StatelessTicketCache.removeTicketFromCache(String). |
void |
removeTicketFromCache(String serviceTicket)
Removes the specified ticket from the cache, meaning that future calls will require a new service ticket. |
void |
setCache(net.sf.ehcache.Cache cache)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EhCacheBasedTicketCache()
| Method Detail |
|---|
public CasAuthenticationToken getByTicketId(String serviceTicket)
StatelessTicketCacheCasAuthenticationToken associated with the
specified ticket.
If not found, returns a
nullCasAuthenticationToken.
getByTicketId in interface StatelessTicketCachepublic void setCache(net.sf.ehcache.Cache cache)
public net.sf.ehcache.Cache getCache()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void putTicketInCache(CasAuthenticationToken token)
StatelessTicketCacheCasAuthenticationToken to the cache.
The CasAuthenticationToken.getCredentials() method is used to
retrieve the service ticket number.
putTicketInCache in interface StatelessTicketCachetoken - to be added to the cachepublic void removeTicketFromCache(CasAuthenticationToken token)
StatelessTicketCacheStatelessTicketCache.removeTicketFromCache(String).
Implementations should use CasAuthenticationToken.getCredentials() to obtain the ticket and then
delegate to to the StatelessTicketCache.removeTicketFromCache(String) method.
removeTicketFromCache in interface StatelessTicketCachetoken - to be removedpublic void removeTicketFromCache(String serviceTicket)
StatelessTicketCacheThis is in case applications wish to provide a session termination capability for their stateless clients.
removeTicketFromCache in interface StatelessTicketCacheserviceTicket - to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||