X509DataSecurityKeyIdentifierClauseSerializer.ReadKeyIdentifierClause Method

Definition

Deserializes a key identifier clause from XML by using the specified XML reader.

C#
public override System.IdentityModel.Tokens.SecurityKeyIdentifierClause ReadKeyIdentifierClause (System.Xml.XmlReader reader);

Parameters

reader
XmlReader

An XML reader positioned at the start element of the key identifier clause to read.

Returns

The key identifier clause that was deserialized from the XML or null if a key identifier clause could not be read.

Exceptions

reader is null.

reader is not positioned at a <ds:X509Data> element. (The CanReadKeyIdentifierClause(XmlReader) method returns false.)

Remarks

The ReadKeyIdentifierClause method reads <ds:X509IssuerSerial>, <ds:X509SKI>, and <ds:X509Certificate> elements and returns the first one found as a X509IssuerSerialKeyIdentifierClause, a X509SubjectKeyIdentifierClause, or a X509RawDataKeyIdentifierClause. If one of these elements is not found under the <ds:X509Data> element, the method returns null.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1