|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IKeyRepository
An interface represents a Key repository. This is the container of archived keys.
| Method Summary | |
|---|---|
void |
addKeyRecord(IKeyRecord record)
Archives a key to the repository. |
void |
deleteKeyRecord(java.math.BigInteger serialno)
Deletes a key record. |
IKeyRecordList |
findKeyRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
int pageSize)
Searchs for a list of key records. |
IKeyRecordList |
findKeyRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
Searchs for a list of key records. |
void |
modifyKeyRecord(java.math.BigInteger serialNo,
ModificationSet mods)
Modifies key record in this repository. |
IKeyRecord |
readKeyRecord(java.math.BigInteger serialNo)
Reads an archived key by serial number. |
IKeyRecord |
readKeyRecord(java.security.PublicKey publicKey)
Reads archived key using public key. |
IKeyRecord |
readKeyRecord(java.lang.String cert)
Reads an archived key by b64 encoded cert. |
IKeyRecord |
readKeyRecord(netscape.security.x509.X500Name ownerName)
Reads an archived key by owner name. |
java.util.Enumeration |
searchKeys(java.lang.String filter,
int maxSize)
Searches for private keys. |
java.util.Enumeration |
searchKeys(java.lang.String filter,
int maxSize,
int timeLimt)
Searches for private keys. |
| Methods inherited from interface com.netscape.certsrv.dbs.repository.IRepository |
|---|
checkRanges, getNextSerialNumber, getTheSerialNumber, resetSerialNumber, setEnableSerialMgmt, setMaxSerial, setNextMaxSerial |
| Method Detail |
|---|
void addKeyRecord(IKeyRecord record)
throws EBaseException
record - key record
EBaseException - failed to archive key
IKeyRecord readKeyRecord(java.math.BigInteger serialNo)
throws EBaseException
serialNo - serial number
EBaseException - failed to recover key
IKeyRecord readKeyRecord(java.lang.String cert)
throws EBaseException
cert - b64 encoded cert
EBaseException - failed to recover key
IKeyRecord readKeyRecord(netscape.security.x509.X500Name ownerName)
throws EBaseException
ownerName - owner name
EBaseException - failed to recover key
IKeyRecord readKeyRecord(java.security.PublicKey publicKey)
throws EBaseException
publicKey - public key that is corresponding
to the private key
EBaseException - failed to read key
java.util.Enumeration searchKeys(java.lang.String filter,
int maxSize)
throws EBaseException
filter - LDAP filter for the searchmaxSize - maximium number of entries to be returned
EBaseException - failed to search keys
java.util.Enumeration searchKeys(java.lang.String filter,
int maxSize,
int timeLimt)
throws EBaseException
filter - LDAP filter for the searchmaxSize - maximium number of entries to be returnedtimeLimt - timeout value
EBaseException - failed to search keys
void deleteKeyRecord(java.math.BigInteger serialno)
throws EBaseException
serialno - key identifier
EBaseException - failed to delete key record
void modifyKeyRecord(java.math.BigInteger serialNo,
ModificationSet mods)
throws EBaseException
serialNo - key identifiermods - modification of key records
EBaseException - failed to modify key record
IKeyRecordList findKeyRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
int pageSize)
throws EBaseException
keySerialNumber keyState algorithm keySize keyOwnerName privateKey publicKey dateOfRecovery keyCreateTime keyModifyTime keyMetaInfo
filter - search filterattrs - list of attributes to be returnedpageSize - virtual list page size
EBaseException - failed to search key records
IKeyRecordList findKeyRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
throws EBaseException
filter - search filterattrs - list of attributes to be returnedsortKey - name of attribute that the list should be sorted bypageSize - virtual list page size
EBaseException - failed to search key records
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||