SamlSecurityTokenHandler.ReadSubject(XmlReader) Method

Definition

Reads the <saml:Subject> element.

C#
protected virtual System.IdentityModel.Tokens.SamlSubject ReadSubject(System.Xml.XmlReader reader);

Parameters

reader
XmlReader

An XmlReader positioned at the element to read.

Returns

A SamlSubject that represents the Subject element that was read.

Exceptions

reader is null.

Remarks

The default implementation does not handle the optional <EncryptedID> element. To handle encrypted IDs in the Subject, override this method.

Applies to

Produkt Versiounen
.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