SecurityTokenSerializer.ReadToken(XmlReader, SecurityTokenResolver) Método

Definición

Lee el token de seguridad señalado por el lector especificado XML .Reads the security token pointed at by the specified XML reader.

public:
 System::IdentityModel::Tokens::SecurityToken ^ ReadToken(System::Xml::XmlReader ^ reader, System::IdentityModel::Selectors::SecurityTokenResolver ^ tokenResolver);
public System.IdentityModel.Tokens.SecurityToken ReadToken (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenResolver tokenResolver);
member this.ReadToken : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SecurityToken
Public Function ReadToken (reader As XmlReader, tokenResolver As SecurityTokenResolver) As SecurityToken

Parámetros

reader
XmlReader

XmlReader para leer el token de seguridad.An XmlReader to read the security token.

tokenResolver
SecurityTokenResolver

SecurityTokenResolver que determina el tipo de token de seguridad.A SecurityTokenResolver that determines the security token type.

Devoluciones

SecurityToken

SecurityToken que representa el token de seguridad que se lee.A SecurityToken that represents the security token that is read.

Excepciones

reader es null.reader is null.

o bien-or- tokenResolver es null.tokenResolver is null.

Comentarios

Las clases que se derivan de la clase SecurityTokenSerializer deben invalidar el método ReadTokenCore(XmlReader, SecurityTokenResolver).Classes that derive from the SecurityTokenSerializer class must override the ReadTokenCore(XmlReader, SecurityTokenResolver) method. El método ReadToken(XmlReader, SecurityTokenResolver) llama al método ReadTokenCore(XmlReader, SecurityTokenResolver).The ReadToken(XmlReader, SecurityTokenResolver) method calls the ReadTokenCore(XmlReader, SecurityTokenResolver) method.

Se aplica a