org.edg.security.delegation
Class DelegationStorageDB
java.lang.Object
|
+--org.edg.security.delegation.DelegationStorageDB
- All Implemented Interfaces:
- DelegationsEventListener, DelegationStorage, DelegationStorageService, java.util.EventListener
- public class DelegationStorageDB
- extends java.lang.Object
- implements DelegationStorage
The database implementation of the delegation storage
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegationStorageDB
public DelegationStorageDB(java.util.Properties config)
throws DelegationException
- The constructor
- Parameters:
config
- - contains DB configuration stuff
start
public void start()
- Specified by:
start
in interface DelegationStorage
stop
public void stop()
- Specified by:
stop
in interface DelegationStorage
getRequest
public DelegationRequestItem getRequest(java.lang.String delegationId)
- Specified by:
getRequest
in interface DelegationStorage
removeRequest
public DelegationRequestItem removeRequest(java.lang.String delegationId)
- Specified by:
removeRequest
in interface DelegationStorage
getDelegations
public java.util.Collection getDelegations(java.security.cert.X509Certificate[] clientCertChain)
- Specified by:
getDelegations
in interface DelegationStorage
putDelegation
public void putDelegation(DelegationStorageItem delegation)
- Specified by:
putDelegation
in interface DelegationStorage
getDelegation
public DelegationItem getDelegation(java.lang.String delegationId,
java.security.cert.X509Certificate[] clientCertChain)
throws DelegationException
- Specified by:
getDelegation
in interface DelegationStorageService
DelegationException
putRequest
public void putRequest(DelegationRequestItem di)
- Specified by:
putRequest
in interface DelegationStorage
DelegationsEventOccurred
public void DelegationsEventOccurred(DelegationsEvent evt)
- Specified by:
DelegationsEventOccurred
in interface DelegationsEventListener
- Parameters:
evt
- the UpdateDelegationsEvent that was fired