X509CRLEntry
abstract class X509CRLEntry : X509Extension
kotlin.Any | |
↳ | java.security.cert.X509CRLEntry |
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 }
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Boolean |
Compares this CRL entry for equality with the given object. |
open X500Principal! |
Get the issuer of the X509Certificate described by this entry. |
abstract ByteArray! |
Returns the ASN. |
abstract Date! |
Gets the revocation date from this X509CRLEntry, the revocationDate. |
open CRLReason! |
Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry. |
abstract BigInteger! |
Gets the serial number from this X509CRLEntry, the userCertificate. |
abstract Boolean |
Returns true if this CRL entry has extensions. |
open 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. |
Inherited functions | |
---|---|
Public constructors
Public methods
equals
open fun equals(other: Any?): Boolean
Compares this CRL entry for equality with the given object. If the other
object is an instanceof
X509CRLEntry
, then its encoded form (the inner SEQUENCE) is retrieved and compared with the encoded form of this CRL entry.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
other |
Any?: the object to test for equality with this CRL entry. |
Return | |
---|---|
Boolean |
true iff the encoded forms of the two CRL entries match, false otherwise. |
getCertificateIssuer
open fun getCertificateIssuer(): X500Principal!
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.
Return | |
---|---|
X500Principal! |
the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer. |
getEncoded
abstract fun getEncoded(): ByteArray!
Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE.
Return | |
---|---|
ByteArray! |
the encoded form of this certificate |
Exceptions | |
---|---|
java.security.cert.CRLException |
if an encoding error occurs. |
getRevocationDate
abstract fun getRevocationDate(): Date!
Gets the revocation date from this X509CRLEntry, the revocationDate.
Return | |
---|---|
Date! |
the revocation date. |
getRevocationReason
open fun getRevocationReason(): CRLReason!
Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry.
Return | |
---|---|
CRLReason! |
the reason the certificate has been revoked, or null if this CRL entry does not have a Reason Code extension |
getSerialNumber
abstract fun getSerialNumber(): BigInteger!
Gets the serial number from this X509CRLEntry, the userCertificate.
Return | |
---|---|
BigInteger! |
the serial number. |
hasExtensions
abstract fun hasExtensions(): Boolean
Returns true if this CRL entry has extensions.
Return | |
---|---|
Boolean |
true if this entry has extensions, false otherwise. |
hashCode
open fun hashCode(): Int
Returns a hashcode value for this CRL entry from its encoded form.
Return | |
---|---|
Int |
the hashcode value. |
toString
abstract fun toString(): String
Returns a string representation of this CRL entry.
Return | |
---|---|
String |
a string representation of this CRL entry. |