Package java.security.cert
Class X509CRLEntry
- java.lang.Object
-
- java.security.cert.X509CRLEntry
-
- All Implemented Interfaces:
X509Extension
- Direct Known Subclasses:
OpenSSLX509CRLEntry,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
All Methods Instance Methods Abstract Methods Concrete Methods 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.CRLReasongetRevocationReason()Returns the reason this CRL entry was 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, wait
-
Methods inherited from interface java.security.cert.X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
-
-
-
-
Method Detail
-
equals
public boolean equals(Object other)
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
public abstract byte[] getEncoded() throws CRLExceptionReturns this entry in ASN.1 DER encoded form.- Returns:
- the encoded form of this entry.
- Throws:
CRLException- if encoding fails.
-
getSerialNumber
public abstract BigInteger getSerialNumber()
Returns the serial number of the revoked certificate.- Returns:
- the serial number of the revoked certificate.
-
getCertificateIssuer
public X500Principal 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
public abstract Date 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
public abstract String toString()
Returns a string representation of this instance.
-
getRevocationReason
public CRLReason getRevocationReason()
Returns the reason this CRL entry was revoked. If the implementation doesn't support reasons, this will returnnull.- Since:
- 1.7
-
-