|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.security.voms.database.DBCA
A class representing known certificate authorities in a VO. Essentially, a wrapper class for the ca table.
Field Summary | |
(package private) static CAUpdater |
cup
CAUpdater. |
private java.lang.String |
dsc
The description of this CA. |
private int |
id
The id of this CA. |
private static int |
ID
|
private static org.apache.log4j.Logger |
log
Logger. |
private java.lang.String |
name
The fully qualified name of this CA. |
private static int |
NAME
|
(package private) static Sequence |
seq
Sequence. |
Constructor Summary | |
private |
DBCA(int id)
Initialize a new DBCA from the given id. |
private |
DBCA(java.lang.String name)
Initialize a new DBCA from the given name. |
Method Summary | |
static int |
countCAs()
|
long |
countUsers()
Return the number of users that have certificates issued by this CA. |
static DBCA |
create(java.lang.String name,
java.lang.String dsc)
Inserts a record into the database. |
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. |
(package private) int |
getId()
Return the id of this CA. |
(package private) static DBCA |
getInstance(int id)
Returns a DBCA object representing the CA with the given id. |
static DBCA |
getInstance(java.lang.String name)
Returns a DBCA object representing the named CA. |
private void |
initialize(int from)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static org.apache.log4j.Logger log
private java.lang.String name
private int id
private java.lang.String dsc
static final Sequence seq
static final CAUpdater cup
private static final int NAME
private static final int ID
Constructor Detail |
private DBCA(java.lang.String name) throws GeneralDatabaseException, NotInDatabase
private DBCA(int id) throws GeneralDatabaseException, NotInDatabase
Method Detail |
private void initialize(int from) throws GeneralDatabaseException, NotInDatabase
GeneralDatabaseException
NotInDatabase
public static DBCA getInstance(java.lang.String name) throws GeneralDatabaseException, NotInDatabase, ArgumentException
name
- The fully qualified name of the CA.
NotInDatabase
- If the given CA is not accepted in this VO.
GeneralDatabaseException
ArgumentException
static DBCA getInstance(int id) throws GeneralDatabaseException, NotInDatabase
id
- The id of the CA.
NotInDatabase
- If the given CA is not accepted in this VO.
GeneralDatabaseException
int getId()
public java.lang.String getDN()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public long countUsers() throws GeneralDatabaseException
GeneralDatabaseException
public static DBCA create(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 |