SimpleWebSecurityTokenSerializer.ReadTokenCore(XmlReader, SecurityTokenResolver) SimpleWebSecurityTokenSerializer.ReadTokenCore(XmlReader, SecurityTokenResolver) SimpleWebSecurityTokenSerializer.ReadTokenCore(XmlReader, SecurityTokenResolver) Method

Definition

Reads theSimpleWebSecurityToken or the security token pointed at by the specified XML reader.

protected override System.IdentityModel.Tokens.SecurityToken ReadTokenCore (System.Xml.XmlReader reader, System.IdentityModel.Selectors.SecurityTokenResolver tokenResolver);
override this.ReadTokenCore : System.Xml.XmlReader * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SecurityToken
Protected Overrides Function ReadTokenCore (reader As XmlReader, tokenResolver As SecurityTokenResolver) As SecurityToken

Parameters

reader
XmlReader XmlReader XmlReader

An XmlReader to read the SimpleWebSecurityToken or the security token.

tokenResolver
SecurityTokenResolver SecurityTokenResolver SecurityTokenResolver

A SecurityTokenResolver that determines the security token type.

Returns

ASecurityToken that represents the SimpleWebSecurityToken or the security token that is read.

Exceptions

The encoding of the XML element is not base64Binary.

Applies to