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
Methods
ReadCertificate(PEReaderContext, CertificateRevision, CertificateType, BinaryStreamReader)
Reads a single attribute certificate.
public AttributeCertificate ReadCertificate(PEReaderContext context, CertificateRevision revision, CertificateType type, BinaryStreamReader reader)
Parameters
context
PEReaderContextThe context in which the reader is situated in.
revision
CertificateRevisionThe file format revision to use.
type
CertificateTypeThe type of certificate to read.
reader
BinaryStreamReaderThe reader pointing to the start of the raw data of the certificate.
Returns
- AttributeCertificate
The read attribute certificate.