Class CertRecord
java.lang.Object
com.netscape.cmscore.dbs.CertRecord
- All Implemented Interfaces:
IAttrSet,IDBObj,Serializable
A class represents a serializable certificate record.
- Version:
- $Revision$, $Date$
- Author:
- thomask
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic org.slf4j.Loggerstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionConstructs empty certificate record.CertRecord(BigInteger id, Certificate cert, MetaInfo meta) Constructs certiificate record with certificate and meta info. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes attribute from this record.Retrieves attributes from this record.Retrieves the auto renew mode.org.mozilla.jss.netscape.security.x509.X509CertImplRetrieves certificate from certificate record.Retrieves serial number from stored certificate.Retrieves time of creation of this certificate record.Returns an enumeration of the names of the attributes existing within this AttrSet.Retrieves name of which user issued this certificate.Retrieves meta information.Retrieves time of modification of this certificate record.Retrieves not after.Return revocation date.Retrieves revocation information.Retrieves name of who revoked this certificate.Retrieves date when this certificate was revoked.org.mozilla.jss.netscape.security.x509.RevocationReasonReturns a list of serializable attribute names.Retrieves serial number of this record.Retrieves certificate status.booleanIs this cert on hold?voidSets attribute to this record.toString()String representation
-
Field Details
-
logger
public static org.slf4j.Logger logger -
ATTR_ID
- See Also:
-
ATTR_META_INFO
- See Also:
-
ATTR_REVO_INFO
- See Also:
-
ATTR_CERT_STATUS
- See Also:
-
ATTR_CREATE_TIME
- See Also:
-
ATTR_MODIFY_TIME
- See Also:
-
ATTR_AUTO_RENEW
- See Also:
-
ATTR_ISSUED_BY
- See Also:
-
ATTR_REVOKED_BY
- See Also:
-
ATTR_REVOKED_ON
- See Also:
-
ATTR_X509CERT
- See Also:
-
META_LDAPPUBLISH
- See Also:
-
META_REQUEST_ID
- See Also:
-
META_RENEWED_CERT
- See Also:
-
META_OLD_CERT
- See Also:
-
META_CERT_TYPE
- See Also:
-
META_CRMF_REQID
- See Also:
-
META_CHALLENGE_PHRASE
- See Also:
-
META_PROFILE_ID
- See Also:
-
META_REV_SHRTOK
- See Also:
-
STATUS_VALID
- See Also:
-
STATUS_INVALID
- See Also:
-
STATUS_REVOKED
- See Also:
-
STATUS_EXPIRED
- See Also:
-
STATUS_REVOKED_EXPIRED
- See Also:
-
AUTO_RENEWAL_DISABLED
- See Also:
-
AUTO_RENEWAL_ENABLED
- See Also:
-
AUTO_RENEWAL_DONE
- See Also:
-
AUTO_RENEWAL_NOTIFIED
- See Also:
-
X509CERT_NOT_BEFORE
- See Also:
-
X509CERT_NOT_AFTER
- See Also:
-
X509CERT_DURATION
- See Also:
-
X509CERT_EXTENSION
- See Also:
-
X509CERT_SUBJECT
- See Also:
-
X509CERT_ISSUER
- See Also:
-
X509CERT_PUBLIC_KEY_DATA
- See Also:
-
X509CERT_VERSION
- See Also:
-
X509CERT_ALGORITHM
- See Also:
-
X509CERT_SIGNING_ALGORITHM
- See Also:
-
X509CERT_SERIAL_NUMBER
- See Also:
-
ATTR_X509CERT_NOT_BEFORE
- See Also:
-
ATTR_X509CERT_NOT_AFTER
- See Also:
-
ATTR_X509CERT_DURATION
- See Also:
-
ATTR_X509CERT_EXTENSION
- See Also:
-
ATTR_X509CERT_SUBJECT
- See Also:
-
ATTR_X509CERT_ISSUER
- See Also:
-
ATTR_X509CERT_VERSION
- See Also:
-
ATTR_X509CERT_ALGORITHM
- See Also:
-
ATTR_X509CERT_SIGNING_ALGORITHM
- See Also:
-
ATTR_X509CERT_SERIAL_NUMBER
- See Also:
-
ATTR_X509CERT_PUBLIC_KEY_DATA
- See Also:
-
mNames
-
-
Constructor Details
-
CertRecord
public CertRecord()Constructs empty certificate record. -
CertRecord
Constructs certiificate record with certificate and meta info.
-
-
Method Details
-
set
Sets attribute to this record.- Specified by:
setin interfaceIAttrSet- Parameters:
name- the name of the attributeobj- the attribute object.- Throws:
EBaseException- on attribute handling errors.
-
get
Retrieves attributes from this record.- Specified by:
getin interfaceIAttrSet- Parameters:
name- the name of the attribute to return.- Throws:
EBaseException- on attribute handling errors.
-
delete
Deletes attribute from this record.- Specified by:
deletein interfaceIAttrSet- Parameters:
name- the name of the attribute to delete.- Throws:
EBaseException- on attribute handling errors.
-
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
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
-
getCertificate
public org.mozilla.jss.netscape.security.x509.X509CertImpl getCertificate()Retrieves certificate from certificate record.- Returns:
- certificate
-
getMetaInfo
-
getStatus
-
getAutoRenew
Retrieves the auto renew mode. -
getRevocationInfo
Retrieves revocation information.- Returns:
- revocation information
-
getSerialNumber
Retrieves serial number of this record. Usually, it is the same of the serial number of the associated certificate.- Returns:
- certificate serial number
-
getIssuedBy
Retrieves name of which user issued this certificate.- Returns:
- name of which user issued this certificate
-
getRevokedBy
Retrieves name of who revoked this certificate.- Returns:
- name of who revoked this certificate
-
getRevokedOn
Retrieves date when this certificate was revoked.- Returns:
- date when this certificate was revoked
-
getCertificateSerialNumber
Retrieves serial number from stored certificate.- Returns:
- certificate serial number
-
getNotAfter
Retrieves not after. -
getNotBefore
-
getRevocationDate
-
getCreateTime
Retrieves time of creation of this certificate record.- Returns:
- time of creation of this certificate record
-
getModifyTime
Retrieves time of modification of this certificate record.- Returns:
- time of modification of this certificate record
-
getRevReason
public org.mozilla.jss.netscape.security.x509.RevocationReason getRevReason() throws EBaseException, org.mozilla.jss.netscape.security.x509.X509ExtensionException- Throws:
EBaseExceptionorg.mozilla.jss.netscape.security.x509.X509ExtensionException
-
isCertOnHold
public boolean isCertOnHold()Is this cert on hold? -
toString
-