Compartir a través de


SamlAttribute.ReadXml Método

Definición

Lee el atributo SAML del lector de XML especificado.

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)

Parámetros

reader
XmlDictionaryReader

XmlDictionaryReader para leer el atributo SAML.

samlSerializer
SamlSerializer

SamlSerializer que es capaz de leer los elementos XML de la especificación de SAML.

keyInfoSerializer
SecurityTokenSerializer

SecurityTokenSerializer que lee la cláusula KeyInfo de la firma digital.

outOfBandTokenResolver
SecurityTokenResolver

SecurityTokenResolver que determina el token de seguridad que creó la firma digital.

Excepciones

reader es null.

O bien

samlSerializer es null.

reader hace referencia a un elemento XML que no tiene los atributos AttributeName ni AttributeNamespace.

Comentarios

El método ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) establece las propiedades AttributeValues, Name y Namespace.

Se aplica a