|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.delegation.storage.GrDPStorageDatabase
public class GrDPStorageDatabase
This is the database based implementation of the GrDPStorage interface.
It provides a database archival mechanism for delegated proxies related information.
Storage is separated into two different areas: storage cache and actual storage. The first one holds the temporary information during a delegation request, including the certificate request, the private key and the list of voms attributes expected in the proxy. The second holds the actual delegated proxy information, including the private key and list of voms attributes (as above) and the actual proxy.
Inside the database, there is one different table for each of the storage areas. Check the db schema file for details.
Authors: Ricardo Rocha
Constructor Summary | |
---|---|
GrDPStorageDatabase(GrDProxyDlgeeOptions dlgeeOpt)
Class constructor. |
Method Summary | |
---|---|
protected void |
checkSchemaVersion(int major,
int minor,
int patch)
|
void |
deleteGrDPStorageCacheElement(java.lang.String delegationID,
java.lang.String dn)
Deletes an existing delegation request. |
void |
deleteGrDPStorageElement(java.lang.String delegationID,
java.lang.String dn)
Deletes an existing delegated proxy. |
GrDPStorageCacheElement |
findGrDPStorageCacheElement(java.lang.String delegationID,
java.lang.String dn)
Retrieves an existing delegation request from the storage cache area. |
GrDPStorageElement |
findGrDPStorageElement(java.lang.String delegationID,
java.lang.String dn)
Retrieves an existing delegated proxy from the storage area. |
void |
insertGrDPStorageCacheElement(GrDPStorageCacheElement elem)
Insert new delegation request into storage cache area. |
void |
insertGrDPStorageElement(GrDPStorageElement elem)
Insert new delegated proxy into storage area. |
void |
updateGrDPStorageCacheElement(GrDPStorageCacheElement elem)
Updates existing delegation request in storage cache area. |
void |
updateGrDPStorageElement(GrDPStorageElement elem)
Updates existing delegated proxy information in storage area. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrDPStorageDatabase(GrDProxyDlgeeOptions dlgeeOpt) throws GrDPStorageException
GrDPStorageException
Method Detail |
---|
protected void checkSchemaVersion(int major, int minor, int patch) throws GrDPStorageException
GrDPStorageException
public void insertGrDPStorageCacheElement(GrDPStorageCacheElement elem) throws GrDPStorageException
insertGrDPStorageCacheElement
in interface GrDPStorage
elem
- Object containing the information about the delegation request.
GrDPStorageException
- Failed to store new delegation request in storage cache area.public void updateGrDPStorageCacheElement(GrDPStorageCacheElement elem) throws GrDPStorageException
updateGrDPStorageCacheElement
in interface GrDPStorage
elem
- Object containing the information about the delegation request.
GrDPStorageException
- Failed to storage new delegation request in storage cache area.public GrDPStorageCacheElement findGrDPStorageCacheElement(java.lang.String delegationID, java.lang.String dn) throws GrDPStorageException
findGrDPStorageCacheElement
in interface GrDPStorage
delegationID
- The id of the delegation request to be returned.dn
- The dn of the user owning the delegation request.
GrDPStorageException
- Could not retrieve a delegation request because either it does not
exist or an error occured while tried to access it.public void deleteGrDPStorageCacheElement(java.lang.String delegationID, java.lang.String dn) throws GrDPStorageException
deleteGrDPStorageCacheElement
in interface GrDPStorage
delegationID
- The id of the delegation request to be deleted.dn
- The dn of the owner of the delegation request.
GrDPStorageException
- Failed to delete the delegation request as either it does not exist
or could not be accessed.public void insertGrDPStorageElement(GrDPStorageElement elem) throws GrDPStorageException
insertGrDPStorageElement
in interface GrDPStorage
elem
- Object containing the information about the delegation proxy.
GrDPStorageException
- Failed to storage new delegation proxy in storage area.public void updateGrDPStorageElement(GrDPStorageElement elem) throws GrDPStorageException
updateGrDPStorageElement
in interface GrDPStorage
elem
- Object containing the information about the delegated proxy.
GrDPStorageException
- Failed to store new delegated proxy in storage area.public GrDPStorageElement findGrDPStorageElement(java.lang.String delegationID, java.lang.String dn) throws GrDPStorageException
findGrDPStorageElement
in interface GrDPStorage
delegationID
- The id of the delegated proxy to be returned.dn
- The dn of the user owning the delegated proxy.
GrDPStorageException
- Could not retrieve a delegated proxy because either it does not
exist or an error occured while tried to access it.public void deleteGrDPStorageElement(java.lang.String delegationID, java.lang.String dn) throws GrDPStorageException
deleteGrDPStorageElement
in interface GrDPStorage
delegationID
- The id of the delegated proxy to be deleted.dn
- The dn of the owner of the delegated proxy.
GrDPStorageException
- Failed to delete the delegated proxy as either it does not exist
or could not be accessed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |