Table of Contents

Class DigitalCertificatesCollection

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class is used to manage a collection of certificates.

[ClassInterface(ClassInterfaceType.AutoDual)]
public class DigitalCertificatesCollection : IEnumerable
Inheritance
DigitalCertificatesCollection
Implements
Inherited Members

Properties

Count

Gets the number of certificates in collection.

public int Count { get; }

Property Value

int

this[int]

Gets the certificate at the specified zero besed index from collection.

public DigitalCertificate this[int index] { get; }

Parameters

index int

The zero based certificate index.

Property Value

DigitalCertificate

The certificate at the specified index.

Methods

GetCertByIssuer(string)

Searches the certificate by issuer name in the digital certificates collection.

public DigitalCertificate GetCertByIssuer(string issuerName)

Parameters

issuerName string

Issuer name.

Returns

DigitalCertificate

The certificate with the specified issuer name or null if no certificate was found.

GetCertBySerialNumber(byte[])

Searches the certificate by the specified serial number.

public DigitalCertificate GetCertBySerialNumber(byte[] serialNumber)

Parameters

serialNumber byte[]

Serial number to search.

Returns

DigitalCertificate

The certificate with the specified serial number or null if no certificate was found.

GetCertBySubject(string)

Searches the certificate by subject name.

public DigitalCertificate GetCertBySubject(string subjectName)

Parameters

subjectName string

Subject name.

Returns

DigitalCertificate

The certificate with the specified subject name or null if no certificate was found.

GetEnumerator()

Gets the collection enumerator.

public IEnumerator GetEnumerator()

Returns

IEnumerator

The collection enumerator.