- 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 }
- See Also:
X509CRL
,X509Extension
-
-
Constructor Summary
Constructors Constructor and Description X509CRLEntry()
-
Method Summary
Methods Modifier and Type Method and 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.-
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)
Compares this CRL entry for equality with the given object. If theother
object is aninstanceof
X509CRLEntry
, then its encoded form (the inner SEQUENCE) is retrieved and compared with the encoded form of this CRL entry.- Overrides:
equals
in classObject
- 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
-
hashCode
public int hashCode()
Returns a hashcode value for this CRL entry from its encoded form.- Overrides:
hashCode
in classObject
- Returns:
- the hashcode value.
- See Also:
Object.equals(java.lang.Object)
,System.identityHashCode(java.lang.Object)
-
getEncoded
public abstract byte[] getEncoded() throws CRLException
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
public abstract BigInteger getSerialNumber()
Gets the serial number from this X509CRLEntry, the userCertificate.- Returns:
- the serial number.
-
getCertificateIssuer
public X500Principal 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
public abstract Date 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
public abstract String toString()
Returns a string representation of this CRL entry.
-
getRevocationReason
public CRLReason 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
null
if this CRL entry does not have a Reason Code extension - Since:
- 1.7
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/security/cert/X509CRLEntry.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.