Class X509CRLEntry
java.lang.Object
java.security.cert.X509CRLEntry
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this CRL entry for equality with the given object.Get the issuer of the X509Certificate described by this entry.abstract byte[]Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.abstract DateGets the revocation date from this X509CRLEntry, the revocationDate.Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.abstract BigIntegerGets the serial number from this X509CRLEntry, the userCertificate.abstract booleanReturns true if this CRL entry has extensions.inthashCode()Returns the hashcode value for this CRL entry from its encoded form.abstract StringtoString()Returns a string representation of this CRL entry.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.Methods declared in interface X509Extension
getCriticalExtensionOIDs, getExtensionValue, getNonCriticalExtensionOIDs, hasUnsupportedCriticalExtensionModifier and TypeMethodDescriptionGets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface.byte[]getExtensionValue(String oid) Gets the DER-encoded OCTET string for the extension value (extnValue) identified by the passed-inoidString.Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface.booleanCheck if there is a critical extension that is not supported.
-
Constructor Details
-
X509CRLEntry
public X509CRLEntry()Constructor for subclasses to call.
-
-
Method Details
-
equals
Compares 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. -
hashCode
-
getEncoded
Returns 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.
-
getSerialNumber
Gets the serial number from this X509CRLEntry, the userCertificate.- Returns:
- the serial number.
-
getCertificateIssuer
Get 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
-
getRevocationDate
Gets the revocation date from this X509CRLEntry, the revocationDate.- Returns:
- the revocation date.
-
hasExtensions
public abstract boolean hasExtensions()Returns true if this CRL entry has extensions.- Returns:
- true if this entry has extensions, false otherwise.
-
toString
-
getRevocationReason
Returns 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
-