Table of Contents

Class X509V2CrlGenerator

Namespace
Org.BouncyCastle.X509
Assembly
BouncyCastle.Cryptography.dll
public class X509V2CrlGenerator
Inheritance
X509V2CrlGenerator
Inherited Members

Constructors

X509V2CrlGenerator()

public X509V2CrlGenerator()

X509V2CrlGenerator(CertificateList)

public X509V2CrlGenerator(CertificateList template)

Parameters

template CertificateList

X509V2CrlGenerator(X509Crl)

Create a builder for a version 2 CRL, initialised with another CRL.

public X509V2CrlGenerator(X509Crl template)

Parameters

template X509Crl

Template CRL to base the new one on.

Properties

SignatureAlgNames

Allows enumeration of the signature names supported by the generator.

[Obsolete("Will be removed")]
public IEnumerable<string> SignatureAlgNames { get; }

Property Value

IEnumerable<string>

Methods

AddCrl(X509Crl)

public void AddCrl(X509Crl other)

Parameters

other X509Crl

AddCrlEntry(BigInteger, DateTime, X509Extensions)

public void AddCrlEntry(BigInteger userCertificate, DateTime revocationDate, X509Extensions extensions)

Parameters

userCertificate BigInteger
revocationDate DateTime
extensions X509Extensions

AddCrlEntry(BigInteger, DateTime, int)

public void AddCrlEntry(BigInteger userCertificate, DateTime revocationDate, int reason)

Parameters

userCertificate BigInteger
revocationDate DateTime
reason int

AddCrlEntry(BigInteger, DateTime, int, DateTime)

public void AddCrlEntry(BigInteger userCertificate, DateTime revocationDate, int reason, DateTime invalidityDate)

Parameters

userCertificate BigInteger
revocationDate DateTime
reason int
invalidityDate DateTime

AddExtension(DerObjectIdentifier, bool, Asn1Encodable)

public void AddExtension(DerObjectIdentifier oid, bool critical, Asn1Encodable extensionValue)

Parameters

oid DerObjectIdentifier
critical bool
extensionValue Asn1Encodable

AddExtension(DerObjectIdentifier, bool, byte[])

public void AddExtension(DerObjectIdentifier oid, bool critical, byte[] extensionValue)

Parameters

oid DerObjectIdentifier
critical bool
extensionValue byte[]

AddExtension(string, bool, Asn1Encodable)

public void AddExtension(string oid, bool critical, Asn1Encodable extensionValue)

Parameters

oid string
critical bool
extensionValue Asn1Encodable

AddExtension(string, bool, byte[])

public void AddExtension(string oid, bool critical, byte[] extensionValue)

Parameters

oid string
critical bool
extensionValue byte[]

Generate(ISignatureFactory)

Generate a new X509Crl using the provided ISignatureFactory.

public X509Crl Generate(ISignatureFactory signatureFactory)

Parameters

signatureFactory ISignatureFactory

A signature factory with the necessary algorithm details.

Returns

X509Crl

An X509Crl.

Generate(ISignatureFactory, bool, ISignatureFactory)

Generate a new X509Crl using the provided ISignatureFactory and containing altSignatureAlgorithm and altSignatureValue extensions based on the passed altSignatureFactory.

public X509Crl Generate(ISignatureFactory signatureFactory, bool isCritical, ISignatureFactory altSignatureFactory)

Parameters

signatureFactory ISignatureFactory

A signature factory with the necessary algorithm details.

isCritical bool

Whether the 'alt' extensions should be marked critical.

altSignatureFactory ISignatureFactory

A signature factory used to create the altSignatureAlgorithm and altSignatureValue extensions.

Returns

X509Crl

An X509Certificate.

Reset()

public void Reset()

SetIssuerDN(X509Name)

public void SetIssuerDN(X509Name issuer)

Parameters

issuer X509Name

SetNextUpdate(DateTime)

public void SetNextUpdate(DateTime date)

Parameters

date DateTime

SetThisUpdate(DateTime)

public void SetThisUpdate(DateTime date)

Parameters

date DateTime