Package java.security.cert
Class X509CRLEntry
java.lang.Object
java.security.cert.X509CRLEntry
- All Implemented Interfaces:
X509Extension
- Direct Known Subclasses:
OpenSSLX509CRLEntry,X509CRLEntryImpl,X509CRLEntryObject
public abstract class X509CRLEntry extends Object implements X509Extension
Abstract base class for entries in a certificate revocation list (CRL).
- See Also:
X509CRL
-
Constructor Summary
Constructors Constructor Description X509CRLEntry()Creates a newX509CRLEntryinstance. -
Method Summary
Modifier and Type Method Description booleanequals(Object other)Returns whether the specified object equals to this instance.X500PrincipalgetCertificateIssuer()Returns the issuer of the revoked certificate.abstract byte[]getEncoded()Returns this entry in ASN.1 DER encoded form.abstract DategetRevocationDate()Returns the date when the certificate is revoked.abstract BigIntegergetSerialNumber()Returns the serial number of the revoked certificate.abstract booleanhasExtensions()Returns whether this CRL entry has extensions.inthashCode()Returns the hashcode of this instance.abstract StringtoString()Returns a string representation of this instance.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.security.cert.X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
-
Constructor Details
-
X509CRLEntry
public X509CRLEntry()Creates a newX509CRLEntryinstance.
-
-
Method Details
-
equals
Returns whether the specified object equals to this instance.- Overrides:
equalsin classObject- Parameters:
other- the object to compare.- Returns:
trueif the specified object equals to this instance, otherwisefalse.- See Also:
Object.hashCode()
-
hashCode
public int hashCode()Returns the hashcode of this instance.- Overrides:
hashCodein classObject- Returns:
- the hashcode of this instance.
- See Also:
Object.equals(java.lang.Object)
-
getEncoded
Returns this entry in ASN.1 DER encoded form.- Returns:
- the encoded form of this entry.
- Throws:
CRLException- if encoding fails.
-
getSerialNumber
Returns the serial number of the revoked certificate.- Returns:
- the serial number of the revoked certificate.
-
getCertificateIssuer
Returns the issuer of the revoked certificate.- Returns:
- the issuer of the revoked certificate, or
nullif the issuer is equal to the CRL issuer.
-
getRevocationDate
Returns the date when the certificate is revoked.- Returns:
- the date when the certificate is revoked.
-
hasExtensions
public abstract boolean hasExtensions()Returns whether this CRL entry has extensions.- Returns:
trueis this CRL entry has extensions, otherwisefalse.
-
toString
Returns a string representation of this instance.
-