|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkrb5.kdc.db.KrbDatabase
krb5.kdc.db.KrbDatabaseImpl
public class KrbDatabaseImpl
Class Description : An XML implementation of the Kerberos Database.
Field Summary |
---|
Fields inherited from class krb5.kdc.db.KrbDatabase |
---|
kdb, PRINCIPAL_RECORD |
Method Summary | |
---|---|
void |
add(Record rec)
Add new principal into the database |
boolean |
close()
Close kerberos database |
void |
display(org.w3c.dom.Node node,
java.lang.String indent)
Compose display |
boolean |
flush()
Store the updated record into persistant database memory |
java.util.Vector |
getAllRecord()
Return all principals in the database with a vector view |
boolean |
getConnection()
Initialize database |
static void |
main(java.lang.String[] args)
Only for unit test |
boolean |
refresh()
Reinitialize database |
void |
remove(Record rec)
Remove principal record from database |
Record |
searchbyName(int recType,
java.lang.String name,
java.lang.String realm)
Search a record by its name |
void |
update(Record oldrec,
Record newrec)
Update an existing principal record in database |
Methods inherited from class krb5.kdc.db.KrbDatabase |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean getConnection()
getConnection
in class KrbDatabase
public boolean refresh()
public void add(Record rec) throws DBException
add
in class KrbDatabase
rec
- Record
DBException
public void remove(Record rec) throws DBException
remove
in class KrbDatabase
rec
- Record
DBException
public Record searchbyName(int recType, java.lang.String name, java.lang.String realm) throws DBException
searchbyName
in class KrbDatabase
recType
- intname
- Stringrealm
- String
DBException
public void update(Record oldrec, Record newrec) throws DBException
update
in class KrbDatabase
oldrec
- Recordnewrec
- Record
DBException
public java.util.Vector getAllRecord()
getAllRecord
in class KrbDatabase
public boolean close()
close
in class KrbDatabase
public boolean flush()
flush
in class KrbDatabase
public void display(org.w3c.dom.Node node, java.lang.String indent)
node
- Nodeindent
- Stringpublic static void main(java.lang.String[] args)
args
- String[]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |