public class RevokedCertificate
extends java.lang.Object
revokedCertificates SEQUENCE OF SEQUENCE { userCertificate CertificateSerialNumber, revocationDate Time, crlEntryExtensions Extensions OPTIONAL -- if present, version MUST be v2 } OPTIONAL
http://tools.ietf.org/html/rfc5280
Modifier and Type | Field and Description |
---|---|
static java.lang.Class[] |
CRL_ENTRY_EXTENSIONS
allowed CRL Entry Extension
|
private MyX509Extensions |
m_extensions |
private java.util.Date |
m_revocationDate |
private java.math.BigInteger |
m_serial |
private static java.math.BigInteger |
ONE |
private static java.math.BigInteger |
ZERO |
Modifier | Constructor and Description |
---|---|
|
RevokedCertificate(JAPCertificate a_cert,
java.util.Date a_revocationDate,
MyX509Extensions a_extensions) |
protected |
RevokedCertificate(mybouncycastle.org.bouncycastle.asn1.x509.TBSCertList.CRLEntry a_crlEntry) |
Modifier and Type | Method and Description |
---|---|
private static java.math.BigInteger |
createPseudoSerial(byte[] a_rawCert)
Creates a pseudo-serial for a cert from the SHA1-value of its raw data.
|
X509DistinguishedName |
getCertificateIssuer()
Checks if this RevokedCertificate contains a X509CertificateIssuer
CRLEntry-Extension.
|
MyX509Extensions |
getExtensions() |
java.util.Date |
getRevocationDate() |
java.math.BigInteger |
getSerialNumber() |
protected static java.math.BigInteger |
getUniqueSerial(JAPCertificate a_cert)
If the cert's serial is greater than 1 then the serial is returned,
otherwise a pseudo-serial is created to uniquely identify the cert.
|
protected mybouncycastle.org.bouncycastle.asn1.ASN1Sequence |
toASN1Sequence() |
public static final java.lang.Class[] CRL_ENTRY_EXTENSIONS
private static java.math.BigInteger ZERO
private static java.math.BigInteger ONE
private java.math.BigInteger m_serial
private java.util.Date m_revocationDate
private MyX509Extensions m_extensions
public RevokedCertificate(JAPCertificate a_cert, java.util.Date a_revocationDate, MyX509Extensions a_extensions)
protected RevokedCertificate(mybouncycastle.org.bouncycastle.asn1.x509.TBSCertList.CRLEntry a_crlEntry)
protected static java.math.BigInteger getUniqueSerial(JAPCertificate a_cert)
a_cert
- the cert to get the unique serialprivate static java.math.BigInteger createPseudoSerial(byte[] a_rawCert)
a_rawCert
- protected mybouncycastle.org.bouncycastle.asn1.ASN1Sequence toASN1Sequence()
public java.math.BigInteger getSerialNumber()
public X509DistinguishedName getCertificateIssuer()
null
otherwisenull
if the cert's
issuer is the same as the crl's issuerpublic java.util.Date getRevocationDate()
public MyX509Extensions getExtensions()
Copyright © 2023. All rights reserved.