|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICertificateRepository
An interface represents a CMS certificate repository. It stores all the issued certificate.
| Field Summary | |
|---|---|
static int |
ALL_CERTS
|
static int |
ALL_UNREVOKED_CERTS
|
static int |
ALL_VALID_CERTS
|
| Method Summary | |
|---|---|
void |
addCertificateRecord(ICertRecord record)
Adds a certificate record to the repository. |
boolean |
containsCertificate(java.math.BigInteger serialNo)
Checks if the certificate exists in this repository. |
ICertRecord |
createCertRecord(java.math.BigInteger id,
java.security.cert.Certificate cert,
MetaInfo meta)
Creates certificate record. |
void |
deleteCertificateRecord(java.math.BigInteger serialNo)
Deletes certificate from this repository. |
java.util.Enumeration |
findCertificates(java.lang.String filter)
Finds all certificates given a filter. |
java.util.Enumeration |
findCertRecords(java.lang.String filter)
Finds all certificate records given a filter. |
ICertRecordList |
findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
int pageSize)
Finds a list of certificate records that satisifies the filter. |
ICertRecordList |
findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
boolean hardJumpTo,
java.lang.String sortKey,
int pageSize)
|
ICertRecordList |
findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
Finds a list of certificate records that satisifies the filter. |
ICertRecordList |
findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
java.lang.String sortKey,
int pageSize)
Finds a list of certificate records that satisifies the filter. |
ICertRecordList |
findCertRecordsInListRawJumpto(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
java.lang.String sortKey,
int pageSize)
Finds a list of certificate records that satisifies the filter. |
java.util.Enumeration |
findCertRecs(java.lang.String filter)
Finds certificate records. |
java.util.Enumeration |
getAllRevokedCertificates()
Retrieves all revoked certificates including ones that have expired or that are not yet valid. |
java.util.Enumeration |
getAllRevokedNonExpiredCertificates()
Retrieves all revoked but not expired certificates. |
java.util.Enumeration |
getExpiredCertificates(java.lang.String from,
java.lang.String to)
Retrieves expired certificates. |
java.util.Enumeration |
getExpiredPublishedCertificates(java.lang.String from,
java.lang.String to)
Retrieves expired and published certificates. |
ICertRecordList |
getInvalidCertsByNotBeforeDate(java.util.Date date,
int pageSize)
Gets Invalid certs orderes by noAfter date, jumps to records where notAfter date is greater than current. |
void |
getModifications(netscape.ldap.LDAPEntry entry)
Retrieves modified certificate records. |
java.util.Hashtable |
getRenewableCertificates(java.lang.String renewalTime)
Retrieves renewable certificates. |
java.util.Enumeration |
getRevokedCertificates(java.util.Date asOfDate)
Retrieves all the revoked certificates that have not expired. |
java.util.Enumeration |
getRevokedCertificates(java.lang.String from,
java.lang.String to)
Retrieves revoked certificates. |
ICertRecordList |
getRevokedCertsByNotAfterDate(java.util.Date date,
int pageSize)
Gets Revoked certs orderes by noAfter date, jumps to records where notAfter date is greater than current. |
java.util.Enumeration |
getRevokedPublishedCertificates(java.lang.String from,
java.lang.String to)
Retrieves revoked and published certificates. |
java.util.Enumeration |
getValidCertificates(java.lang.String from,
java.lang.String to)
Retrieves valid certificates. |
ICertRecordList |
getValidCertsByNotAfterDate(java.util.Date date,
int pageSize)
Gets valid certs orderes by noAfter date, jumps to records where notAfter date is greater than current. |
java.util.Enumeration |
getValidNotPublishedCertificates(java.lang.String from,
java.lang.String to)
Retrieves valid and not published certificates. |
netscape.security.x509.X509CertImpl |
getX509Certificate(java.math.BigInteger serialNo)
Reads the certificate identified by the given serial no. |
netscape.security.x509.X509CertImpl[] |
getX509Certificates(java.lang.String subjectDN,
int validityType)
Gets all valid and unexpired certificates pertaining to a subject DN. |
void |
markAsRevoked(java.math.BigInteger id,
IRevocationInfo info)
Marks certificate as revoked. |
void |
markCertificateAsNotRenewable(ICertRecord record)
Marks certificate as not renewable. |
void |
markCertificateAsRenewable(ICertRecord record)
Marks certificate as renewable. |
void |
markCertificateAsRenewalNotified(java.lang.String serialNo)
Marks certificate as renewed and notified. |
void |
markCertificateAsRenewed(java.lang.String serialNo)
Marks certificate as renewed. |
void |
modifyCertificateRecord(java.math.BigInteger serialNo,
ModificationSet mods)
Modifies certificate record. |
ICertRecord |
readCertificateRecord(java.math.BigInteger serialNo)
Reads certificate from repository. |
void |
removeCertRecords(java.math.BigInteger beginS,
java.math.BigInteger endS)
Removes certificate records with this repository. |
java.util.Enumeration |
searchCertificates(java.lang.String filter,
int maxSize)
Finds a list of certificate records that satisifies the filter. |
java.util.Enumeration |
searchCertificates(java.lang.String filter,
int maxSize,
int timeLimit)
Finds a list of certificate records that satisifies the filter. |
void |
setCertStatusUpdateInterval(IRepository requestRepo,
int interval,
boolean listenToCloneModifications)
Sets certificate status update internal |
void |
shutdown()
|
void |
unmarkRevoked(java.math.BigInteger id,
IRevocationInfo info,
java.util.Date revokedOn,
java.lang.String revokedBy)
Unmark a revoked certificates. |
void |
updateCertStatus()
Updates certificate status now. |
void |
updateStatus(java.math.BigInteger id,
java.lang.String status)
Updates certificate status. |
| Methods inherited from interface com.netscape.certsrv.dbs.repository.IRepository |
|---|
checkRanges, getNextSerialNumber, getTheSerialNumber, resetSerialNumber, setEnableSerialMgmt, setMaxSerial, setNextMaxSerial |
| Field Detail |
|---|
static final int ALL_CERTS
static final int ALL_VALID_CERTS
static final int ALL_UNREVOKED_CERTS
| Method Detail |
|---|
void addCertificateRecord(ICertRecord record)
throws EBaseException
record - X.509 certificate
EBaseException - failed to add new certificate to
the repository
netscape.security.x509.X509CertImpl getX509Certificate(java.math.BigInteger serialNo)
throws EBaseException
serialNo - serial number of certificate
EBaseException - failed to retrieve certificate
ICertRecord readCertificateRecord(java.math.BigInteger serialNo)
throws EBaseException
serialNo - serial number of certificate
EBaseException - failed to retrieve certificate
void setCertStatusUpdateInterval(IRepository requestRepo,
int interval,
boolean listenToCloneModifications)
requestRepo - request repositoryinterval - update intervallistenToCloneModifications - enable listening to clone modifications
void updateCertStatus()
throws EBaseException
EBaseException - failed to update
void modifyCertificateRecord(java.math.BigInteger serialNo,
ModificationSet mods)
throws EBaseException
serialNo - serial number of recordmods - modifications
EBaseException - failed to modify
boolean containsCertificate(java.math.BigInteger serialNo)
throws EBaseException
serialNo - serial number of certificate
EBaseException - failed to check
void deleteCertificateRecord(java.math.BigInteger serialNo)
throws EBaseException
serialNo - serial number of certificate
EBaseException - failed to delete
void markAsRevoked(java.math.BigInteger id,
IRevocationInfo info)
throws EBaseException
id - serial numberinfo - revocation information
EBaseException - failed to mark
void updateStatus(java.math.BigInteger id,
java.lang.String status)
throws EBaseException
id - serial numberstatus - certificate status
EBaseException - failed to update status
void markCertificateAsRenewable(ICertRecord record)
throws EBaseException
record - certificate record to modify
EBaseException - failed to update
void markCertificateAsNotRenewable(ICertRecord record)
throws EBaseException
record - certificate record to modify
EBaseException - failed to update
void markCertificateAsRenewed(java.lang.String serialNo)
throws EBaseException
serialNo - certificate record to modify
EBaseException - failed to update
void markCertificateAsRenewalNotified(java.lang.String serialNo)
throws EBaseException
serialNo - certificate record to modify
EBaseException - failed to update
java.util.Enumeration searchCertificates(java.lang.String filter,
int maxSize)
throws EBaseException
certRecordId certMetaInfo certStatus certCreateTime certModifyTime x509Cert.notBefore x509Cert.notAfter x509Cert.subjectThe filter should follow RFC1558 LDAP filter syntax. For example,
(&(certRecordId=5)(x509Cert.notBefore=934398398))
filter - search filtermaxSize - max size to return
EBaseException - failed to search
java.util.Enumeration searchCertificates(java.lang.String filter,
int maxSize,
int timeLimit)
throws EBaseException
filter - search filtermaxSize - max size to returntimeLimit - timeout value
EBaseException - failed to search
ICertRecordList findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
int pageSize)
throws EBaseException
filter - search filterattrs - selected attributepageSize - page size
EBaseException - failed to search
ICertRecordList findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String sortKey,
int pageSize)
throws EBaseException
filter - search filterattrs - selected attributesortKey - key to use for sorting the returned elementspageSize - page size
EBaseException - failed to search
ICertRecordList findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
java.lang.String sortKey,
int pageSize)
throws EBaseException
filter - search filterattrs - selected attributejumpTo - jump to indexsortKey - key to use for sorting the returned elementspageSize - page size
EBaseException - failed to search
ICertRecordList findCertRecordsInList(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
boolean hardJumpTo,
java.lang.String sortKey,
int pageSize)
throws EBaseException
EBaseException
ICertRecordList findCertRecordsInListRawJumpto(java.lang.String filter,
java.lang.String[] attrs,
java.lang.String jumpTo,
java.lang.String sortKey,
int pageSize)
throws EBaseException
filter - search filterattrs - selected attributejumpTo - jump to indexsortKey - key to use for sorting the returned elementspageSize - page size
EBaseException - failed to search
netscape.security.x509.X509CertImpl[] getX509Certificates(java.lang.String subjectDN,
int validityType)
throws EBaseException
subjectDN - The distinguished name of the subject.validityType - The type of certificatese to retrieve.
EBaseException - on error.
java.util.Enumeration getRevokedCertificates(java.util.Date asOfDate)
throws EBaseException
asOfDate - as of date
EBaseException - failed to retrieve
java.util.Enumeration getAllRevokedCertificates()
throws EBaseException
EBaseException - failed to search
java.util.Enumeration getAllRevokedNonExpiredCertificates()
throws EBaseException
EBaseException - failed to search
java.util.Enumeration findCertificates(java.lang.String filter)
throws EBaseException
filter - search filter
EBaseException - failed to search
java.util.Enumeration findCertRecords(java.lang.String filter)
throws EBaseException
filter - search filter
EBaseException - failed to search
ICertRecordList getRevokedCertsByNotAfterDate(java.util.Date date,
int pageSize)
throws EBaseException
date - reference datepageSize - page size
EBaseException - failed to retrieve
ICertRecordList getInvalidCertsByNotBeforeDate(java.util.Date date,
int pageSize)
throws EBaseException
date - reference datepageSize - page size
EBaseException - failed to retrieve
ICertRecordList getValidCertsByNotAfterDate(java.util.Date date,
int pageSize)
throws EBaseException
date - reference datepageSize - page size
EBaseException - failed to retrieve
ICertRecord createCertRecord(java.math.BigInteger id,
java.security.cert.Certificate cert,
MetaInfo meta)
id - serial numbercert - certificatemeta - meta information
java.util.Enumeration findCertRecs(java.lang.String filter)
throws EBaseException
filter - search filter
EBaseException - failed to retrieve cert records
java.util.Hashtable getRenewableCertificates(java.lang.String renewalTime)
throws EBaseException
renewalTime - renewal time
EBaseException - failed to retrieve
void unmarkRevoked(java.math.BigInteger id,
IRevocationInfo info,
java.util.Date revokedOn,
java.lang.String revokedBy)
throws EBaseException
id - serial numberinfo - revocation informationrevokedOn - revocation daterevokedBy - userid
EBaseException - failed to unmark
java.util.Enumeration getValidNotPublishedCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrieve
java.util.Enumeration getExpiredPublishedCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrieve
java.util.Enumeration getRevokedPublishedCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrieve
java.util.Enumeration getValidCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrieve
java.util.Enumeration getExpiredCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrieve
java.util.Enumeration getRevokedCertificates(java.lang.String from,
java.lang.String to)
throws EBaseException
from - starting serial numberto - ending serial number
EBaseException - failed to retrievevoid getModifications(netscape.ldap.LDAPEntry entry)
entry - LDAPEntry with modified data
void removeCertRecords(java.math.BigInteger beginS,
java.math.BigInteger endS)
throws EBaseException
beginS - BigInteger with radix 16endS - BigInteger with radix 16
EBaseExceptionvoid shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||