Compartir vía


SamlSerializer.LoadAssertion Método

Definición

Lee una aserción de SAML del lector de XML especificado.

public:
 virtual System::IdentityModel::Tokens::SamlAssertion ^ LoadAssertion(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual System.IdentityModel.Tokens.SamlAssertion LoadAssertion (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member LoadAssertion : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlAssertion
override this.LoadAssertion : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlAssertion
Public Overridable Function LoadAssertion (reader As XmlDictionaryReader, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver) As SamlAssertion

Parámetros

reader
XmlDictionaryReader

XmlDictionaryReader para leer la aserció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.

Devoluciones

SamlAssertion que representa la aserción de SAML.

Excepciones

reader es null

Comentarios

Una aserción de SAML está contenida dentro de un elemento <saml:Assertion>.

El método ReadToken(XmlReader, SecurityTokenSerializer, SecurityTokenResolver) llama al método LoadAssertion(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) para leer la aserción de SAML.

Se aplica a

Consulte también