Compartilhar via


SamlAttribute.ReadXml Método

Definição

Lê o atributo SAML do leitor 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

Um XmlDictionaryReader para ler o atributo SAML.

samlSerializer
SamlSerializer

Um SamlSerializer que é capaz de ler os elementos XML na especificação SAML.

keyInfoSerializer
SecurityTokenSerializer

Um SecurityTokenSerializer que lê a cláusula KeyInfo da assinatura digital.

outOfBandTokenResolver
SecurityTokenResolver

Um SecurityTokenResolver que determina o token de segurança que criou a assinatura digital.

Exceções

reader é null.

- ou -

samlSerializer é null.

reader refere-se a um elemento XML que não tem os atributos AttributeName e AttributeNamespace.

Comentários

O ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) método define as AttributeValuespropriedades , Namee Namespace .

Aplica-se a