X509Extension
public abstract class X509CRLEntry extends Object implements X509Extension
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 }
X509CRL
,
X509Extension
Constructor | Description |
---|---|
X509CRLEntry() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object other) |
Compares this CRL entry for equality with the given
object.
|
X500Principal |
getCertificateIssuer() |
Get the issuer of the X509Certificate described by this entry.
|
abstract byte[] |
getEncoded() |
Returns the ASN.1 DER-encoded form of this CRL Entry,
that is the inner SEQUENCE.
|
abstract Date |
getRevocationDate() |
Gets the revocation date from this X509CRLEntry,
the revocationDate.
|
CRLReason |
getRevocationReason() |
Returns the reason the certificate has been revoked, as specified
in the Reason Code extension of this CRL entry.
|
abstract BigInteger |
getSerialNumber() |
Gets the serial number from this X509CRLEntry,
the userCertificate.
|
abstract boolean |
hasExtensions() |
Returns true if this CRL entry has extensions.
|
int |
hashCode() |
Returns a hashcode value for this CRL entry from its
encoded form.
|
abstract String |
toString() |
Returns a string representation of this CRL entry.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
public boolean equals(Object other)
other
object is an
instanceof
X509CRLEntry
, then
its encoded form (the inner SEQUENCE) is retrieved and compared
with the encoded form of this CRL entry.equals
in class Object
other
- the object to test for equality with this CRL entry.Object.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public abstract byte[] getEncoded() throws CRLException
CRLException
- if an encoding error occurs.public abstract BigInteger getSerialNumber()
public X500Principal getCertificateIssuer()
This method is used with indirect CRLs. The default implementation always returns null. Subclasses that wish to support indirect CRLs should override it.
public abstract Date getRevocationDate()
public abstract boolean hasExtensions()
public abstract String toString()
public CRLReason getRevocationReason()
null
if this CRL entry does not have
a Reason Code extension Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps