共用方式為


SimpleWebSecurityTokenSerializer.ReadTokenCore Method

Definition

Reads 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

An XmlReader to read the SecurityToken or the security token.

tokenResolver
SecurityTokenResolver

A SecurityTokenResolver that determines the security token type.

Returns

A SecurityToken that is read from the XML reader.

Exceptions

The encoding of the XML element is not base64Binary.

Applies to