Package com.netscape.cmscore.dbs
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 String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static org.slf4j.Logger
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static 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 TypeMethodDescriptionvoid
Deletes attribute from this record.Retrieves attributes from this record.Retrieves the auto renew mode.org.mozilla.jss.netscape.security.x509.X509CertImpl
Retrieves 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.RevocationReason
Returns a list of serializable attribute names.Retrieves serial number of this record.Retrieves certificate status.boolean
Is this cert on hold?void
Sets 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:
set
in 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:
get
in interfaceIAttrSet
- Parameters:
name
- the name of the attribute to return.- Throws:
EBaseException
- on attribute handling errors.
-
delete
Deletes attribute from this record.- Specified by:
delete
in interfaceIAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
EBaseException
- on attribute handling errors.
-
getElements
Description copied from interface:IAttrSet
Returns an enumeration of the names of the attributes existing within this AttrSet.- Specified by:
getElements
in interfaceIAttrSet
- Returns:
- an enumeration of the attribute names.
-
getSerializableAttrNames
Description copied from interface:IDBObj
Returns 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:
getSerializableAttrNames
in 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
Retrieves meta information.- Returns:
- meta information
-
getStatus
Retrieves certificate status.- Returns:
- certificate status
-
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
Return revocation date.- Throws:
EDBException
-
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:
EBaseException
org.mozilla.jss.netscape.security.x509.X509ExtensionException
-
isCertOnHold
public boolean isCertOnHold()Is this cert on hold? -
toString
String representation
-