public class CrlStreamParser extends Asn1StreamParser
This class implements a real stream based parser of CRL with constant memory consumption.
Definition of CertificateList.
CertificateList ::= SEQUENCE {
tbsCertList TBSCertList,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING }
TBSCertList ::= SEQUENCE {
version Version OPTIONAL,
-- if present, MUST be v2
signature AlgorithmIdentifier,
issuer Name,
thisUpdate Time,
nextUpdate Time OPTIONAL,
revokedCertificates SEQUENCE OF SEQUENCE {
userCertificate CertificateSerialNumber,
revocationDate Time,
crlEntryExtensions Extensions OPTIONAL
-- if present, version MUST be v2
} OPTIONAL,
crlExtensions [0] EXPLICIT Extensions OPTIONAL
-- if present, version MUST be v2
}
| Modifier and Type | Class and Description |
|---|---|
static class |
CrlStreamParser.RevokedCert |
class |
CrlStreamParser.RevokedCertsIterator |
Asn1StreamParser.MyIntTAG_CONSTRUCTED_SEQUENCE, TAG_CONSTRUCTED_SET| Constructor and Description |
|---|
CrlStreamParser(File crlFile) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getAlgorithmIdentifier() |
BigInteger |
getBaseCrlNumber() |
org.bouncycastle.asn1.x509.Extensions |
getCrlExtensions() |
BigInteger |
getCrlNumber() |
org.bouncycastle.asn1.x500.X500Name |
getIssuer() |
Date |
getNextUpdate() |
byte[] |
getSignature() |
Date |
getThisUpdate() |
int |
getVersion() |
boolean |
isDeltaCrl() |
CrlStreamParser.RevokedCertsIterator |
revokedCertificates() |
boolean |
verifySignature(PublicKey publicKey) |
boolean |
verifySignature(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo) |
assertTag, markAndReadTag, readBlock, readBlock, readLength, readTime, readTime, skippublic CrlStreamParser(File crlFile) throws IOException
IOExceptionpublic int getVersion()
public org.bouncycastle.asn1.x500.X500Name getIssuer()
public Date getThisUpdate()
public Date getNextUpdate()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
public byte[] getSignature()
public BigInteger getCrlNumber()
public BigInteger getBaseCrlNumber()
public boolean isDeltaCrl()
public org.bouncycastle.asn1.x509.Extensions getCrlExtensions()
public boolean verifySignature(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
throws IOException
IOExceptionpublic boolean verifySignature(PublicKey publicKey) throws IOException
IOExceptionpublic CrlStreamParser.RevokedCertsIterator revokedCertificates() throws IOException
IOExceptionCopyright © 2020. All rights reserved.