public final class ProxyGrantingTicketStorageImpl extends Object implements ProxyGrantingTicketStorage
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleans up old, expired proxy tickets.
|
String |
retrieve(String proxyGrantingTicketIou)
NOTE: you can only retrieve a ProxyGrantingTicket once with this method.
|
void |
save(String proxyGrantingTicketIou,
String proxyGrantingTicket)
Method to save the ProxyGrantingTicket to the backing storage facility.
|
public ProxyGrantingTicketStorageImpl()
public ProxyGrantingTicketStorageImpl(long timeout)
timeout
- the time to hold on to the ProxyGrantingTicketpublic String retrieve(String proxyGrantingTicketIou)
retrieve
in interface ProxyGrantingTicketStorage
proxyGrantingTicketIou
- used as the keypublic void save(String proxyGrantingTicketIou, String proxyGrantingTicket)
ProxyGrantingTicketStorage
save
in interface ProxyGrantingTicketStorage
proxyGrantingTicketIou
- used as the keyproxyGrantingTicket
- used as the valuepublic void cleanUp()
cleanUp
in interface ProxyGrantingTicketStorage
Copyright © 2006–2013 Jasig. All rights reserved.