Package com.netscape.cmscore.dbs
Class CRLIssuingPointRecord
- java.lang.Object
-
- com.netscape.cmscore.dbs.CRLIssuingPointRecord
-
- All Implemented Interfaces:
IAttrSet,ICRLIssuingPointRecord,IDBObj,java.io.Serializable
public class CRLIssuingPointRecord extends java.lang.Object implements ICRLIssuingPointRecord, IDBObj
A class represents a CRL issuing point record.- Version:
- $Revision$, $Date$
- Author:
- thomask
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]mCACertprotected byte[]mCRLprotected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>mCRLCacheprotected java.math.BigIntegermCRLNumberprotected java.lang.LongmCRLSizeprotected byte[]mDeltaCRLprotected java.math.BigIntegermDeltaCRLNumberprotected java.lang.LongmDeltaCRLSizeprotected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>mExpiredCertsprotected java.lang.StringmFirstUnsavedprotected java.lang.StringmIdprotected static java.util.Vector<java.lang.String>mNamesprotected java.util.DatemNextUpdateprotected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>mRevokedCertsprotected java.util.DatemThisUpdateprotected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>mUnrevokedCerts-
Fields inherited from interface com.netscape.certsrv.dbs.crldb.ICRLIssuingPointRecord
ATTR_CA_CERT, ATTR_CRL, ATTR_CRL_CACHE, ATTR_CRL_NUMBER, ATTR_CRL_SIZE, ATTR_DELTA_CRL, ATTR_DELTA_NUMBER, ATTR_DELTA_SIZE, ATTR_EXPIRED_CERTS, ATTR_FIRST_UNSAVED, ATTR_ID, ATTR_NEXT_UPDATE, ATTR_REVOKED_CERTS, ATTR_THIS_UPDATE, ATTR_UNREVOKED_CERTS, CLEAN_CACHE, NEW_CACHE
-
-
Constructor Summary
Constructors Constructor Description CRLIssuingPointRecord()Constructs empty CRLIssuingPointRecord.CRLIssuingPointRecord(java.lang.String id, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Date thisUpdate, java.util.Date nextUpdate)Constructs a CRLIssuingPointRecordCRLIssuingPointRecord(java.lang.String id, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Date thisUpdate, java.util.Date nextUpdate, java.math.BigInteger deltaCRLNumber, java.lang.Long deltaCRLSize, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)Constructs a CRLIssuingPointRecord
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String name)Deletes an attribute value from this AttrSet.java.lang.Objectget(java.lang.String name)Gets an attribute value.byte[]getCACert()Retrieves encoded CA certificate.byte[]getCRL()Retrieves CRL encodings.java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>getCRLCache()java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>getCRLCacheNoClone()Retrieves cache information about CRL.java.math.BigIntegergetCRLNumber()Retrieves CRL number.java.lang.LonggetCRLSize()Retrieves CRL size.byte[]getDeltaCRL()Retrieves CRL encodings.java.math.BigIntegergetDeltaCRLNumber()Retrieves delta CRL number.java.lang.LonggetDeltaCRLSize()Retrieves CRL size.java.util.Enumeration<java.lang.String>getElements()Returns an enumeration of the names of the attributes existing within this AttrSet.java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>getExpiredCerts()Retrieves cache info of expired certificates.java.lang.StringgetFirstUnsaved()Retrieve unique CRL identifier.java.lang.StringgetId()Retrieve unique CRL identifier.java.util.DategetNextUpdate()Retrieves next update time.java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>getRevokedCerts()Retrieves cache info of revoked certificates.java.util.Enumeration<java.lang.String>getSerializableAttrNames()Returns a list of serializable attribute names.java.util.DategetThisUpdate()Retrieves this update time.java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate>getUnrevokedCerts()Retrieves cache info of unrevoked certificates.voidset(java.lang.String name, java.lang.Object obj)Sets an attribute value within this AttrSet.
-
-
-
Field Detail
-
mId
protected java.lang.String mId
-
mCRLNumber
protected java.math.BigInteger mCRLNumber
-
mCRLSize
protected java.lang.Long mCRLSize
-
mThisUpdate
protected java.util.Date mThisUpdate
-
mNextUpdate
protected java.util.Date mNextUpdate
-
mDeltaCRLNumber
protected java.math.BigInteger mDeltaCRLNumber
-
mDeltaCRLSize
protected java.lang.Long mDeltaCRLSize
-
mFirstUnsaved
protected java.lang.String mFirstUnsaved
-
mCRL
protected byte[] mCRL
-
mCACert
protected byte[] mCACert
-
mCRLCache
protected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> mCRLCache
-
mRevokedCerts
protected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> mRevokedCerts
-
mUnrevokedCerts
protected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> mUnrevokedCerts
-
mExpiredCerts
protected java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> mExpiredCerts
-
mDeltaCRL
protected byte[] mDeltaCRL
-
mNames
protected static java.util.Vector<java.lang.String> mNames
-
-
Constructor Detail
-
CRLIssuingPointRecord
public CRLIssuingPointRecord()
Constructs empty CRLIssuingPointRecord. This is required in database framework.
-
CRLIssuingPointRecord
public CRLIssuingPointRecord(java.lang.String id, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Date thisUpdate, java.util.Date nextUpdate)Constructs a CRLIssuingPointRecord
-
CRLIssuingPointRecord
public CRLIssuingPointRecord(java.lang.String id, java.math.BigInteger crlNumber, java.lang.Long crlSize, java.util.Date thisUpdate, java.util.Date nextUpdate, java.math.BigInteger deltaCRLNumber, java.lang.Long deltaCRLSize, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> revokedCerts, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> unrevokedCerts, java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> expiredCerts)Constructs a CRLIssuingPointRecord
-
-
Method Detail
-
set
public void set(java.lang.String name, java.lang.Object obj) throws EBaseExceptionDescription copied from interface:IAttrSetSets an attribute value within this AttrSet.- Specified by:
setin interfaceIAttrSet- Parameters:
name- the name of the attributeobj- the attribute object.- Throws:
EBaseException- on attribute handling errors.
-
get
public java.lang.Object get(java.lang.String name) throws EBaseExceptionDescription copied from interface:IAttrSetGets an attribute value.- Specified by:
getin interfaceIAttrSet- Parameters:
name- the name of the attribute to return.- Throws:
EBaseException- on attribute handling errors.
-
delete
public void delete(java.lang.String name) throws EBaseExceptionDescription copied from interface:IAttrSetDeletes an attribute value from this AttrSet.- Specified by:
deletein interfaceIAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
EBaseException- on attribute handling errors.
-
getElements
public java.util.Enumeration<java.lang.String> getElements()
Description copied from interface:IAttrSetReturns an enumeration of the names of the attributes existing within this AttrSet.- Specified by:
getElementsin interfaceIAttrSet- Returns:
- an enumeration of the attribute names.
-
getSerializableAttrNames
public java.util.Enumeration<java.lang.String> getSerializableAttrNames()
Description copied from interface:IDBObjReturns a list of serializable attribute names. This method should return the attribute name even if there is no attribute value for the attribute.- Specified by:
getSerializableAttrNamesin interfaceIDBObj- Returns:
- a list of serializable attribute names
-
getId
public java.lang.String getId()
Retrieve unique CRL identifier.- Specified by:
getIdin interfaceICRLIssuingPointRecord- Returns:
- unique CRL identifier
-
getCRLNumber
public java.math.BigInteger getCRLNumber()
Retrieves CRL number.- Specified by:
getCRLNumberin interfaceICRLIssuingPointRecord- Returns:
- current CRL number
-
getCRLSize
public java.lang.Long getCRLSize()
Retrieves CRL size.- Specified by:
getCRLSizein interfaceICRLIssuingPointRecord- Returns:
- CRL size
-
getThisUpdate
public java.util.Date getThisUpdate()
Retrieves this update time.- Specified by:
getThisUpdatein interfaceICRLIssuingPointRecord- Returns:
- time of this update
-
getNextUpdate
public java.util.Date getNextUpdate()
Retrieves next update time.- Specified by:
getNextUpdatein interfaceICRLIssuingPointRecord- Returns:
- time of next update
-
getDeltaCRLNumber
public java.math.BigInteger getDeltaCRLNumber()
Retrieves delta CRL number.- Specified by:
getDeltaCRLNumberin interfaceICRLIssuingPointRecord- Returns:
- current delta CRL number
-
getDeltaCRLSize
public java.lang.Long getDeltaCRLSize()
Retrieves CRL size.- Specified by:
getDeltaCRLSizein interfaceICRLIssuingPointRecord- Returns:
- delta CRL size
-
getFirstUnsaved
public java.lang.String getFirstUnsaved()
Retrieve unique CRL identifier.- Specified by:
getFirstUnsavedin interfaceICRLIssuingPointRecord- Returns:
- reference to the first unsaved data
-
getCRL
public byte[] getCRL()
Retrieves CRL encodings.- Specified by:
getCRLin interfaceICRLIssuingPointRecord- Returns:
- encoded CRL
-
getDeltaCRL
public byte[] getDeltaCRL()
Retrieves CRL encodings.- Specified by:
getDeltaCRLin interfaceICRLIssuingPointRecord- Returns:
- encoded delta CRL
-
getCACert
public byte[] getCACert()
Description copied from interface:ICRLIssuingPointRecordRetrieves encoded CA certificate.- Specified by:
getCACertin interfaceICRLIssuingPointRecord- Returns:
- encoded CA certificate
-
getCRLCacheNoClone
public java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> getCRLCacheNoClone()
Description copied from interface:ICRLIssuingPointRecordRetrieves cache information about CRL.- Specified by:
getCRLCacheNoClonein interfaceICRLIssuingPointRecord- Returns:
- list of recently revoked certificates
-
getCRLCache
public java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> getCRLCache()
- Specified by:
getCRLCachein interfaceICRLIssuingPointRecord
-
getRevokedCerts
public java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> getRevokedCerts()
Retrieves cache info of revoked certificates.- Specified by:
getRevokedCertsin interfaceICRLIssuingPointRecord- Returns:
- list of recently revoked certificates
-
getUnrevokedCerts
public java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> getUnrevokedCerts()
Retrieves cache info of unrevoked certificates.- Specified by:
getUnrevokedCertsin interfaceICRLIssuingPointRecord- Returns:
- list of certificates recently released from hold
-
getExpiredCerts
public java.util.Hashtable<java.math.BigInteger,org.mozilla.jss.netscape.security.x509.RevokedCertificate> getExpiredCerts()
Retrieves cache info of expired certificates.- Specified by:
getExpiredCertsin interfaceICRLIssuingPointRecord- Returns:
- list of recently expired certificates
-
-