|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.crypto.RevokedCertificate
public class RevokedCertificate
This Class implements a CRLEntry specified by RFC 5280
revokedCertificates SEQUENCE OF SEQUENCE {
userCertificate CertificateSerialNumber,
revocationDate Time,
crlEntryExtensions Extensions OPTIONAL
-- if present, version MUST be v2
} OPTIONAL
http://tools.ietf.org/html/rfc5280| Field Summary | |
|---|---|
static java.lang.Class[] |
CRL_ENTRY_EXTENSIONS
allowed CRL Entry Extension |
private X509Extensions |
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
|
| Constructor Summary | |
|---|---|
|
RevokedCertificate(JAPCertificate a_cert,
java.util.Date a_revocationDate,
X509Extensions a_extensions)
|
protected |
RevokedCertificate(org.bouncycastle.asn1.x509.TBSCertList.CRLEntry a_crlEntry)
|
| Method Summary | |
|---|---|
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. |
X509Extensions |
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 org.bouncycastle.asn1.ASN1Sequence |
toASN1Sequence()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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 X509Extensions m_extensions
| Constructor Detail |
|---|
public RevokedCertificate(JAPCertificate a_cert,
java.util.Date a_revocationDate,
X509Extensions a_extensions)
protected RevokedCertificate(org.bouncycastle.asn1.x509.TBSCertList.CRLEntry a_crlEntry)
| Method Detail |
|---|
protected static java.math.BigInteger getUniqueSerial(JAPCertificate a_cert)
a_cert - the cert to get the unique serial
private static java.math.BigInteger createPseudoSerial(byte[] a_rawCert)
a_rawCert -
protected org.bouncycastle.asn1.ASN1Sequence toASN1Sequence()
public java.math.BigInteger getSerialNumber()
public X509DistinguishedName getCertificateIssuer()
null otherwise
null if the cert's issuer is the same
as the crl's issuerpublic java.util.Date getRevocationDate()
public X509Extensions getExtensions()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||