Table of Contents

Class DefaultCertificateReader

Namespace
AsmResolver.PE.Certificates
Assembly
AsmResolver.PE.dll

Provides a default implementation of an attribute certificate reader. This reader defaults to instantiating CustomAttributeCertificate if an unknown or unsupported file format is encountered.

public class DefaultCertificateReader : ICertificateReader
Inheritance
DefaultCertificateReader
Implements
Inherited Members

Properties

Instance

Gets the singleton instance of the DefaultCertificateReader class.

public static DefaultCertificateReader Instance { get; }

Property Value

DefaultCertificateReader

Methods

ReadCertificate(PEReaderContext, CertificateRevision, CertificateType, BinaryStreamReader)

Reads a single attribute certificate.

public AttributeCertificate ReadCertificate(PEReaderContext context, CertificateRevision revision, CertificateType type, BinaryStreamReader reader)

Parameters

context PEReaderContext

The context in which the reader is situated in.

revision CertificateRevision

The file format revision to use.

type CertificateType

The type of certificate to read.

reader BinaryStreamReader

The reader pointing to the start of the raw data of the certificate.

Returns

AttributeCertificate

The read attribute certificate.