|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.voms.database.DBCA
A class representing known certificate authorities in a VO. Essentially, a wrapper class for the ca table.
This class is somewhat special in that its methods may be used with both ClientTransactions and DirectUpdates.
Method Summary | |
static int |
countCAs()
|
long |
countUsers()
Return the number of users that have certificates issued by this CA. |
static DBCA |
create(Transaction t,
java.lang.String name,
java.lang.String dsc)
Inserts a record into the database. |
boolean |
equals(java.lang.Object o)
|
static java.lang.String[] |
getCAs()
Get the names of all CAs. |
java.lang.String |
getDescription()
|
java.lang.String |
getDN()
Return the name of this CA. |
static DBCA |
getInstance(java.lang.String name)
|
static DBCA |
getInstance(Transaction t,
java.lang.String name)
Returns a DBCA object representing the named CA. |
static void |
loadAllCAs(Transaction t)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public static void loadAllCAs(Transaction t) throws GeneralDatabaseException
GeneralDatabaseException
public static DBCA getInstance(Transaction t, java.lang.String name) throws GeneralDatabaseException, NotInDatabase
name
- The fully qualified name of the CA.
NotInDatabase
- If the given CA is not accepted in this VO.
GeneralDatabaseException
public static DBCA getInstance(java.lang.String name) throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public java.lang.String getDN()
public java.lang.String getDescription()
public java.lang.String toString()
public boolean equals(java.lang.Object o)
public long countUsers() throws GeneralDatabaseException
GeneralDatabaseException
public static DBCA create(Transaction t, java.lang.String name, java.lang.String dsc) throws ArgumentException, GeneralDatabaseException
name
- The distinguished name of the new CA.dsc
- A textual description of the CA.
ArgumentException
GeneralDatabaseException
public static java.lang.String[] getCAs() throws GeneralDatabaseException
GeneralDatabaseException
public static int countCAs() throws GeneralDatabaseException
GeneralDatabaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |