Bewerken

Delen via


SamlAdvice.ReadXml Method

Definition

Reads the <saml:Advice> XML element using 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

An XmlDictionaryReader to read the <saml:Advice> XML element.

samlSerializer
SamlSerializer

A SamlSerializer that is capable of reading XML elements in the SAML assertion that are defined in the SAML specification.

keyInfoSerializer
SecurityTokenSerializer

A SecurityTokenSerializer that can read a KeyInfo clause.

outOfBandTokenResolver
SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature for SAML assertions that contain this <saml:Advice> XML element.

Exceptions

reader is null

-or-

samlSerializer is null

The <saml:Advice> element does not conform to the XML schema for the <saml:Advice> element.

Applies to