org.bouncycastle.asn1.x509

Class V2TBSCertListGenerator

public class V2TBSCertListGenerator extends Object

Generator for Version 2 TBSCertList structures.
  TBSCertList  ::=  SEQUENCE  {
       version                 Version OPTIONAL,
                                    -- if present, shall be v2
       signature               AlgorithmIdentifier,
       issuer                  Name,
       thisUpdate              Time,
       nextUpdate              Time OPTIONAL,
       revokedCertificates     SEQUENCE OF SEQUENCE  {
            userCertificate         CertificateSerialNumber,
            revocationDate          Time,
            crlEntryExtensions      Extensions OPTIONAL
                                          -- if present, shall be v2
                                 }  OPTIONAL,
       crlExtensions           [0]  EXPLICIT Extensions OPTIONAL
                                          -- if present, shall be v2
                                 }
 
Note: This class may be subject to change
Constructor Summary
V2TBSCertListGenerator()
Method Summary
voidaddCRLEntry(ASN1Sequence crlEntry)
voidaddCRLEntry(DERInteger userCertificate, DERUTCTime revocationDate, int reason)
voidaddCRLEntry(DERInteger userCertificate, Time revocationDate, int reason)
voidaddCRLEntry(DERInteger userCertificate, Time revocationDate, int reason, DERGeneralizedTime invalidityDate)
voidaddCRLEntry(DERInteger userCertificate, Time revocationDate, X509Extensions extensions)
TBSCertListgenerateTBSCertList()
voidsetExtensions(X509Extensions extensions)
voidsetIssuer(X509Name issuer)
voidsetNextUpdate(DERUTCTime nextUpdate)
voidsetNextUpdate(Time nextUpdate)
voidsetSignature(AlgorithmIdentifier signature)
voidsetThisUpdate(DERUTCTime thisUpdate)
voidsetThisUpdate(Time thisUpdate)

Constructor Detail

V2TBSCertListGenerator

public V2TBSCertListGenerator()

Method Detail

addCRLEntry

public void addCRLEntry(ASN1Sequence crlEntry)

addCRLEntry

public void addCRLEntry(DERInteger userCertificate, DERUTCTime revocationDate, int reason)

addCRLEntry

public void addCRLEntry(DERInteger userCertificate, Time revocationDate, int reason)

addCRLEntry

public void addCRLEntry(DERInteger userCertificate, Time revocationDate, int reason, DERGeneralizedTime invalidityDate)

addCRLEntry

public void addCRLEntry(DERInteger userCertificate, Time revocationDate, X509Extensions extensions)

generateTBSCertList

public TBSCertList generateTBSCertList()

setExtensions

public void setExtensions(X509Extensions extensions)

setIssuer

public void setIssuer(X509Name issuer)

setNextUpdate

public void setNextUpdate(DERUTCTime nextUpdate)

setNextUpdate

public void setNextUpdate(Time nextUpdate)

setSignature

public void setSignature(AlgorithmIdentifier signature)

setThisUpdate

public void setThisUpdate(DERUTCTime thisUpdate)

setThisUpdate

public void setThisUpdate(Time thisUpdate)