|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.netscape.cms.ocsp.DefStore
public class DefStore
This is the default OCSP store that stores revocation information as certificate record (CMS internal data structure).
Field Summary | |
---|---|
static java.math.BigInteger |
BIG_ZERO
|
protected boolean |
mByName
|
protected java.util.Hashtable |
mCacheCRLIssuingPoints
|
protected boolean |
mIncludeNextUpdate
|
static java.lang.Long |
MINUS_ONE
|
protected boolean |
mNotFoundGood
|
protected java.util.Hashtable |
mReqCounts
|
protected boolean |
mUseCache
|
Fields inherited from interface com.netscape.certsrv.base.IExtendedPluginInfo |
---|
HELP_TEXT, HELP_TOKEN |
Constructor Summary | |
---|---|
DefStore()
Constructs the default store. |
Method Summary | |
---|---|
void |
addCertRecord(java.lang.String name,
java.lang.String thisUpdate,
java.lang.String sno,
ICertRecord rec)
Creates a new issuing point in OCSP. |
void |
addCRLIssuingPoint(java.lang.String name,
ICRLIssuingPointRecord rec)
Creates a new issuing point in OCSP. |
void |
addRepository(java.lang.String name,
java.lang.String thisUpdate,
IRepositoryRecord rec)
Creates a new issuing point in OCSP. |
ICRLIssuingPointRecord |
createCRLIssuingPointRecord(java.lang.String name,
java.math.BigInteger crlNumber,
java.lang.Long crlSize,
java.util.Date thisUpdate,
java.util.Date nextUpdate)
This method creates a CRL issuing point record. |
IRepositoryRecord |
createRepositoryRecord()
This method creates a an OCSP default store repository record. |
void |
deleteCRLIssuingPointRecord(java.lang.String id)
This method deletes a CRL issuing point record |
void |
deleteOldCRLs()
This store will not delete the old CRL until the new one is totally committed. |
void |
deleteOldCRLsInCA(java.lang.String caName)
|
java.lang.String |
getBaseDN()
|
NameValuePairs |
getConfigParameters()
This method retrieves the configuration parameters associated with this OCSP store. |
IConfigStore |
getConfigStore()
Returns the root configuration storage of this system. |
java.lang.String[] |
getExtendedPluginInfo(java.util.Locale locale)
This method returns an array of strings. |
java.lang.String |
getId()
Retrieves the name of this subsystem. |
long |
getReqCount(java.lang.String id)
This method retrieves the number of OCSP requests since startup. |
int |
getStateCount()
This method retrieves the number of CRL updates since startup. |
boolean |
includeNextUpdate()
|
void |
incReqCount(java.lang.String id)
|
void |
init(ISubsystem owner,
IConfigStore config)
Initializes this subsystem with the given configuration store. |
boolean |
isNotFoundGood()
This method checks to see if the OCSP response should return good when the certificate is not found. |
void |
log(int event,
int level,
java.lang.String msg)
|
void |
log(int level,
java.lang.String msg)
|
void |
modifyCertRecord(java.lang.String name,
java.lang.String thisUpdate,
java.lang.String sno,
ModificationSet mods)
|
void |
modifyCRLIssuingPointRecord(java.lang.String name,
ModificationSet mods)
|
ICertRecord |
readCertRecord(java.lang.String name,
java.lang.String thisUpdate,
java.lang.String sno)
|
ICRLIssuingPointRecord |
readCRLIssuingPoint(java.lang.String name)
Returns an issuing point. |
java.util.Enumeration |
searchAllCRLIssuingPointRecord(int maxSize)
This method searches all CRL issuing points. |
java.util.Enumeration |
searchCertRecord(java.lang.String name,
java.lang.String thisUpdate,
java.lang.String filter)
|
java.util.Enumeration |
searchCRLIssuingPointRecord(java.lang.String filter,
int maxSize)
This method searches all CRL issuing points constrained by the specified filtering mechanism. |
java.util.Enumeration |
searchRepository(java.lang.String name,
java.lang.String filter)
|
void |
setConfigParameters(NameValuePairs pairs)
This method stores the configuration parameters specified by the passed-in Name Value pairs object. |
void |
setId(java.lang.String id)
Sets specific to this subsystem. |
void |
shutdown()
Stops this system. |
void |
startup()
Notifies this subsystem if owner is in running mode. |
void |
updateCRL(java.security.cert.X509CRL crl)
This method updates the specified CRL. |
com.netscape.cmsutil.ocsp.OCSPResponse |
validate(com.netscape.cmsutil.ocsp.OCSPRequest request)
Validate an OCSP request. |
boolean |
waitOnCRLUpdate()
Returns to the client once the CRL is received. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.math.BigInteger BIG_ZERO
public static final java.lang.Long MINUS_ONE
protected java.util.Hashtable mReqCounts
protected boolean mNotFoundGood
protected boolean mUseCache
protected boolean mByName
protected boolean mIncludeNextUpdate
protected java.util.Hashtable mCacheCRLIssuingPoints
Constructor Detail |
---|
public DefStore()
Method Detail |
---|
public java.lang.String[] getExtendedPluginInfo(java.util.Locale locale)
IExtendedPluginInfo
getExtendedPluginInfo
in interface IExtendedPluginInfo
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
ISubsystem
init
in interface ISubsystem
owner
- owner of this subsystemconfig
- configuration store
EBaseException
- failed to initializepublic IRepositoryRecord createRepositoryRecord()
IDefStore
createRepositoryRecord
in interface IDefStore
public boolean waitOnCRLUpdate()
waitOnCRLUpdate
in interface IDefStore
public boolean includeNextUpdate()
public boolean isNotFoundGood()
IDefStore
isNotFoundGood
in interface IDefStore
public long getReqCount(java.lang.String id)
IDefStore
getReqCount
in interface IDefStore
id
- a string associated with an OCSP request
public void incReqCount(java.lang.String id)
public void deleteOldCRLs() throws EBaseException
EBaseException
public void deleteOldCRLsInCA(java.lang.String caName) throws EBaseException
EBaseException
public void log(int event, int level, java.lang.String msg)
public void log(int level, java.lang.String msg)
public void startup() throws EBaseException
ISubsystem
startup
in interface ISubsystem
EBaseException
- failed to start uppublic void shutdown()
ISubsystem
shutdown
in interface ISubsystem
public IConfigStore getConfigStore()
ISubsystem
getConfigStore
in interface ISubsystem
public void setId(java.lang.String id) throws EBaseException
ISubsystem
setId
in interface ISubsystem
id
- subsystem identifier
EBaseException
- failed to set idpublic java.lang.String getId()
ISubsystem
getId
in interface ISubsystem
public com.netscape.cmsutil.ocsp.OCSPResponse validate(com.netscape.cmsutil.ocsp.OCSPRequest request) throws EBaseException
validate
in interface IOCSPStore
request
- an OCSP request
EBaseException
- an error associated with the inability to
process the supplied OCSP requestpublic java.lang.String getBaseDN()
public java.util.Enumeration searchAllCRLIssuingPointRecord(int maxSize) throws EBaseException
IDefStore
searchAllCRLIssuingPointRecord
in interface IDefStore
maxSize
- specifies the largest number of hits from the search
EBaseException
- occurs when no CRL issuing point existspublic java.util.Enumeration searchCRLIssuingPointRecord(java.lang.String filter, int maxSize) throws EBaseException
IDefStore
searchCRLIssuingPointRecord
in interface IDefStore
filter
- a string which constrains the searchmaxSize
- specifies the largest number of hits from the search
EBaseException
- occurs when no CRL issuing point existspublic void modifyCRLIssuingPointRecord(java.lang.String name, ModificationSet mods) throws EBaseException
EBaseException
public ICRLIssuingPointRecord readCRLIssuingPoint(java.lang.String name) throws EBaseException
readCRLIssuingPoint
in interface IDefStore
name
- the name of the CRL to be read
EBaseException
- occurs when the specified CRL cannot be locatedpublic ICRLIssuingPointRecord createCRLIssuingPointRecord(java.lang.String name, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Date thisUpdate, java.util.Date nextUpdate)
IDefStore
createCRLIssuingPointRecord
in interface IDefStore
name
- a string representation of this CRL issuing point recordcrlNumber
- the number of this CRL issuing point recordcrlSize
- the size of this CRL issuing point recordthisUpdate
- the time for this CRL issuing point recordnextUpdate
- the time for the next CRL issuing point record
public void deleteCRLIssuingPointRecord(java.lang.String id) throws EBaseException
IDefStore
deleteCRLIssuingPointRecord
in interface IDefStore
id
- a string representation of this CRL issuing point record
EBaseException
- occurs when the specified CRL issuing point
record cannot be deletedpublic void addCRLIssuingPoint(java.lang.String name, ICRLIssuingPointRecord rec) throws EBaseException
addCRLIssuingPoint
in interface IDefStore
name
- a string representation of this CRL issuing point recordrec
- this CRL issuing point record
EBaseException
- occurs when the specified CRL issuing point
record cannot be addedpublic java.util.Enumeration searchRepository(java.lang.String name, java.lang.String filter) throws EBaseException
EBaseException
public void addRepository(java.lang.String name, java.lang.String thisUpdate, IRepositoryRecord rec) throws EBaseException
addRepository
in interface IDefStore
name
- a string representing the name of this requestthisUpdate
- the current requestrec
- an instance of the repository record object
EBaseException
- occurs when there is an error attempting to
add this request to the repositorypublic void modifyCertRecord(java.lang.String name, java.lang.String thisUpdate, java.lang.String sno, ModificationSet mods) throws EBaseException
EBaseException
public java.util.Enumeration searchCertRecord(java.lang.String name, java.lang.String thisUpdate, java.lang.String filter) throws EBaseException
EBaseException
public ICertRecord readCertRecord(java.lang.String name, java.lang.String thisUpdate, java.lang.String sno) throws EBaseException
EBaseException
public void addCertRecord(java.lang.String name, java.lang.String thisUpdate, java.lang.String sno, ICertRecord rec) throws EBaseException
EBaseException
public NameValuePairs getConfigParameters()
IOCSPStore
getConfigParameters
in interface IOCSPStore
public void setConfigParameters(NameValuePairs pairs) throws EBaseException
IOCSPStore
setConfigParameters
in interface IOCSPStore
pairs
- a name-value pair object
EBaseException
- an illegal name-value pairpublic void updateCRL(java.security.cert.X509CRL crl) throws EBaseException
IDefStore
updateCRL
in interface IDefStore
crl
- the CRL to be updated
EBaseException
- occurs when the CRL cannot be updatedpublic int getStateCount()
IDefStore
getStateCount
in interface IDefStore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |