Szerkesztés

Megosztás a következőn keresztül:


SamlSubject.ReadXml Method

Definition

Reads the <saml:Subject> element from the specified XML reader.

public:
 virtual void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
override this.ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
Public Overridable Sub ReadXml (reader As XmlDictionaryReader, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver)

Parameters

reader
XmlDictionaryReader

A XmlDictionaryReader to read the <saml:Subject> element.

samlSerializer
SamlSerializer

A SamlSerializer that is capable of reading XML elements in a SAML assertion.

keyInfoSerializer
SecurityTokenSerializer

A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.

outOfBandTokenResolver
SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature.

Exceptions

reader is null.

-or-

samlSerializer is null.

reader refers to an XML element in which one of the following is true:

Contains an <saml:NameIdentifier> element without a value.

-or-

Contains an <saml:ConfirmationMethod> element without a value.

-or-

Contains a <saml:SubjectConfirmation> element that does not have at least one <saml:ConfirmationMethod> child element.

-or-

Does not contain at least one <saml:ConfirmationMethod> or <saml:NameIdentifier> element.

reader refers to an XML element that contains a <ds:KeyInfo> element that does not have a key that can be retrieved.

Remarks

The ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) method sets the Name, NameFormat, NameQualifier, ConfirmationMethods, Crypto, KeyIdentifier, and SubjectConfirmationData properties.

Applies to