java.lang.Object
java.security.cert.X509CRLEntry
- All Implemented Interfaces:
- 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
 }
 - Since:
- 1.2
- See Also:
- X509CRL,- X509Extension
- 
Constructor SummaryConstructors Constructor Description X509CRLEntry()
- 
Method SummaryModifier and Type Method Description booleanequals(Object other)Compares this CRL entry for equality with the given object.X500PrincipalgetCertificateIssuer()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 DategetRevocationDate()Gets the revocation date from this X509CRLEntry, the revocationDate.CRLReasongetRevocationReason()Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.abstract BigIntegergetSerialNumber()Gets the serial number from this X509CRLEntry, the userCertificate.abstract booleanhasExtensions()Returns true if this CRL entry has extensions.inthashCode()Returns a hashcode value for this CRL entry from its encoded form.abstract StringtoString()Returns a string representation of this CRL entry.Methods declared in class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods declared in interface java.security.cert.X509ExtensiongetCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtension
- 
Constructor Details- 
X509CRLEntrypublic X509CRLEntry()
 
- 
- 
Method Details- 
equalsCompares this CRL entry for equality with the given object. If theotherobject is aninstanceofX509CRLEntry, then its encoded form (the inner SEQUENCE) is retrieved and compared with the encoded form of this CRL entry.- Overrides:
- equalsin class- Object
- Parameters:
- other- the object to test for equality with this CRL entry.
- Returns:
- true iff the encoded forms of the two CRL entries match, false otherwise.
- See Also:
- Object.hashCode(),- HashMap
 
- 
hashCodepublic int hashCode()Returns a hashcode value for this CRL entry from its encoded form.- Overrides:
- hashCodein class- Object
- Returns:
- the hashcode value.
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
- 
getEncodedReturns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.- Returns:
- the encoded form of this certificate
- Throws:
- CRLException- if an encoding error occurs.
 
- 
getSerialNumberGets the serial number from this X509CRLEntry, the userCertificate.- Returns:
- the serial number.
 
- 
getCertificateIssuerGet the issuer of the X509Certificate described by this entry. If the certificate issuer is also the CRL issuer, this method returns null.This method is used with indirect CRLs. The default implementation always returns null. Subclasses that wish to support indirect CRLs should override it. - Returns:
- the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer.
- Since:
- 1.5
 
- 
getRevocationDateGets the revocation date from this X509CRLEntry, the revocationDate.- Returns:
- the revocation date.
 
- 
hasExtensionspublic abstract boolean hasExtensions()Returns true if this CRL entry has extensions.- Returns:
- true if this entry has extensions, false otherwise.
 
- 
toStringReturns a string representation of this CRL entry.
- 
getRevocationReasonReturns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.- Returns:
- the reason the certificate has been revoked, or
    nullif this CRL entry does not have a Reason Code extension
- Since:
- 1.7
 
 
-