|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.proxy.ProxyGrantingTicketStorageImpl
public final class ProxyGrantingTicketStorageImpl
Implementation of ProxyGrantingTicketStorage that is backed by a
HashMap that keeps a ProxyGrantingTicket for a specified amount of time.
ProxyGrantingTicketStorage.cleanUp() must be called on a regular basis to
keep the HashMap from growing indefinitely.
| Constructor Summary | |
|---|---|
ProxyGrantingTicketStorageImpl()
Constructor set the timeout to the default value. |
|
ProxyGrantingTicketStorageImpl(long timeout)
Sets the amount of time to hold on to a ProxyGrantingTicket if its never been retrieved. |
|
| Method Summary | |
|---|---|
void |
cleanUp()
Cleans up old, expired proxy tickets. |
java.lang.String |
retrieve(java.lang.String proxyGrantingTicketIou)
NOTE: you can only retrieve a ProxyGrantingTicket once with this method. |
void |
save(java.lang.String proxyGrantingTicketIou,
java.lang.String proxyGrantingTicket)
Method to save the ProxyGrantingTicket to the backing storage facility. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProxyGrantingTicketStorageImpl()
public ProxyGrantingTicketStorageImpl(long timeout)
timeout - the time to hold on to the ProxyGrantingTicket| Method Detail |
|---|
public java.lang.String retrieve(java.lang.String proxyGrantingTicketIou)
retrieve in interface ProxyGrantingTicketStorageproxyGrantingTicketIou - used as the key
public void save(java.lang.String proxyGrantingTicketIou,
java.lang.String proxyGrantingTicket)
ProxyGrantingTicketStorage
save in interface ProxyGrantingTicketStorageproxyGrantingTicketIou - used as the keyproxyGrantingTicket - used as the valuepublic void cleanUp()
cleanUp in interface ProxyGrantingTicketStorage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||