<PackageReference Include="System.Security.Cryptography.Xml" Version="11.0.0-preview.5.26302.115" />

System.Security.Cryptography.Xml.KeyInfoX509Data

Represents an <X509Data> subelement of an XMLDSIG or XML Encryption <KeyInfo> element.
public ArrayList Certificates { get; }

Gets a list of the X.509v3 certificates contained in the KeyInfoX509Data object.

public byte[] CRL { get; set; }

Gets or sets the Certificate Revocation List (CRL) contained within the KeyInfoX509Data object.

public ArrayList IssuerSerials { get; }

Gets a list of X509IssuerSerial structures that represent an issuer name and serial number pair.

public ArrayList SubjectKeyIds { get; }

Gets a list of the subject key identifiers (SKIs) contained in the KeyInfoX509Data object.

public ArrayList SubjectNames { get; }

Gets a list of the subject names of the entities contained in the KeyInfoX509Data object.

public KeyInfoX509Data()

Initializes a new instance of the KeyInfoX509Data class.

public KeyInfoX509Data(byte[] rgbCert)

Initializes a new instance of the KeyInfoX509Data class from the specified ASN.1 DER encoding of an X.509v3 certificate.

Initializes a new instance of the KeyInfoX509Data class from the specified X.509v3 certificate.

Initializes a new instance of the KeyInfoX509Data class from the specified X.509v3 certificate.

public void AddCertificate(X509Certificate certificate)

Adds the specified X.509v3 certificate to the KeyInfoX509Data.

public void AddIssuerSerial(string issuerName, string serialNumber)

Adds the specified issuer name and serial number pair to the KeyInfoX509Data object.

public void AddSubjectKeyId(byte[] subjectKeyId)

Adds the specified subject key identifier (SKI) byte array to the KeyInfoX509Data object.

public void AddSubjectKeyId(string subjectKeyId)

Adds the specified subject key identifier (SKI) string to the KeyInfoX509Data object.

public void AddSubjectName(string subjectName)

Adds the subject name of the entity that was issued an X.509v3 certificate to the KeyInfoX509Data object.