|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.delegation.DelegationStorageMap
The memory (hashtable) implementation of the delegation storage
Constructor Summary | |
DelegationStorageMap()
Constructor for creating a new DelegationStorageMap |
Method Summary | |
void |
DelegationsEventOccurred(DelegationsEvent evt)
Called by DelegationStorageCleaner Thread whenever there is a need to remove all expired delegations and requests. |
DelegationItem |
getDelegation(java.lang.String delegationId,
java.security.cert.X509Certificate[] clientCertChain)
Get delegation that corresponds to given delegationId and
clientCertChain |
java.util.Collection |
getDelegations(java.security.cert.X509Certificate[] clientCertChain)
Returns a collection containing all the DelegationStorageItems matching the certificate chain(i.e. client cert's DN) given as the parameter. |
DelegationRequestItem |
getRequest(java.lang.String delegationId)
Returns the request item corresponding the id. |
void |
putDelegation(DelegationStorageItem delegation)
Stores delegations into this container class. |
void |
putRequest(DelegationRequestItem request)
Store a new delegation request into this container class. |
DelegationRequestItem |
removeRequest(java.lang.String delegationId)
Removes and returns the DelegationRequestItem
matching the given id from the map. |
void |
start()
Starts a timer task that checks the validity of delegations and delegation requests at regular time intervals. |
void |
stop()
Stops the timer task, see start() . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DelegationStorageMap()
DelegationStorageMap
Method Detail |
public DelegationItem getDelegation(java.lang.String delegationId, java.security.cert.X509Certificate[] clientCertChain)
delegationId
and
clientCertChain
getDelegation
in interface DelegationStorageService
delegationId
- clientCertChain
-
public void putRequest(DelegationRequestItem request)
putRequest
in interface DelegationStorage
request
- DelegationRequestItem
to be storedpublic DelegationRequestItem getRequest(java.lang.String delegationId)
getRequest
in interface DelegationStorage
delegationId
- Id of the DelegationRequestItem
to be returned.
public DelegationRequestItem removeRequest(java.lang.String delegationId)
DelegationRequestItem
matching the given id from the map.
removeRequest
in interface DelegationStorage
delegationId
- Id of the DelegationRequestItem
to be deleted.
public java.util.Collection getDelegations(java.security.cert.X509Certificate[] clientCertChain)
getDelegations
in interface DelegationStorage
clientCertChain
-
Collection
containing all the matching DelegationStorageItemspublic void putDelegation(DelegationStorageItem delegation)
putDelegation
in interface DelegationStorage
delegation
- - the DelegationStorageItem to be stored.public void start()
start
in interface DelegationStorage
public void stop()
start()
.
stop
in interface DelegationStorage
public void DelegationsEventOccurred(DelegationsEvent evt)
DelegationsEventOccurred
in interface DelegationsEventListener
evt
- DelegationsEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |