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
contextPEReaderContextThe context in which the reader is situated in.
revisionCertificateRevisionThe file format revision to use.
typeCertificateTypeThe type of certificate to read.
readerBinaryStreamReaderThe reader pointing to the start of the raw data of the certificate.
Returns
- AttributeCertificate
The read attribute certificate.