Muokkaa

Jaa


X509DataSecurityKeyIdentifierClauseSerializer.ReadKeyIdentifierClause Method

Definition

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

public:
 override System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ ReadKeyIdentifierClause(System::Xml::XmlReader ^ reader);
public override System.IdentityModel.Tokens.SecurityKeyIdentifierClause ReadKeyIdentifierClause (System.Xml.XmlReader reader);
override this.ReadKeyIdentifierClause : System.Xml.XmlReader -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Public Overrides Function ReadKeyIdentifierClause (reader As XmlReader) As SecurityKeyIdentifierClause

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