Class RevokedCertificate
java.lang.Object
java.security.cert.X509CRLEntry
org.mozilla.jss.netscape.security.x509.RevokedCertificate
- All Implemented Interfaces:
X509Extension
- Direct Known Subclasses:
RevokedCertImpl
Abstract class for a revoked certificate in a CRL (Certificate Revocation List). The ASN.1 definition for revokedCertificates is:
revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate ChoiceOfTime, crlEntryExtensions Extensions OPTIONAL -- if present, must be v2 } OPTIONAL CertificateSerialNumber ::= INTEGER Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension Extension ::= SEQUENCE { extnId OBJECT IDENTIFIER, critical BOOLEAN DEFAULT FALSE, extnValue OCTET STRING -- contains a DER encoding of a value -- of the type registered for use with -- the extnId object identifier value }
- Version:
- 1.4 97/12/10
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CRLExtensions
abstract Date
Gets the revocation date for this RevokedCertificate, the revocationDate.abstract BigInteger
Gets the serial number for this RevokedCertificate, the userCertificate.abstract boolean
Returns true if this revoked certificate entry has extensions.abstract String
toString()
Returns a string representation of this revoked certificate.Methods inherited from class java.security.cert.X509CRLEntry
equals, getCertificateIssuer, getEncoded, getRevocationReason, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.security.cert.X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
-
Constructor Details
-
RevokedCertificate
public RevokedCertificate()
-
-
Method Details
-
getSerialNumber
Gets the serial number for this RevokedCertificate, the userCertificate.- Specified by:
getSerialNumber
in classX509CRLEntry
- Returns:
- the serial number.
-
getRevocationDate
Gets the revocation date for this RevokedCertificate, the revocationDate.- Specified by:
getRevocationDate
in classX509CRLEntry
- Returns:
- the revocation date.
-
hasExtensions
public abstract boolean hasExtensions()Returns true if this revoked certificate entry has extensions.- Specified by:
hasExtensions
in classX509CRLEntry
- Returns:
- true if this entry has extensions, false otherwise.
-
toString
Returns a string representation of this revoked certificate.- Specified by:
toString
in classX509CRLEntry
- Returns:
- a string representation of this revoked certificate.
-
getExtensions
-