Compartir vía


SamlSerializer.ReadToken Método

Definición

Lee un token de seguridad de SAML del lector de XML especificado.

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

Parámetros

reader
XmlReader

XmlDictionaryReader para leer el token de seguridad SamlSecurityToken.

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

Un token de seguridad SamlSecurityToken.

Excepciones

reader es null

reader hace referencia a un elemento XML que no contiene una firma digital.

Comentarios

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