Partilhar via


SecurityTokenHandler.ReadToken Method

Definition

Overloads

ReadToken(XmlReader)

Gets security token.

ReadToken(XmlReader, TokenValidationParameters)

This must be overridden to deserialize token with the provided TokenValidationParameters.

ReadToken(XmlReader)

Gets security token.

public virtual Microsoft.IdentityModel.Tokens.SecurityToken ReadToken (System.Xml.XmlReader reader);
override this.ReadToken : System.Xml.XmlReader -> Microsoft.IdentityModel.Tokens.SecurityToken
Public Overridable Function ReadToken (reader As XmlReader) As SecurityToken

Parameters

Returns

Remarks

SecurityToken instance which represents the serialized token.

Applies to

ReadToken(XmlReader, TokenValidationParameters)

This must be overridden to deserialize token with the provided TokenValidationParameters.

public abstract Microsoft.IdentityModel.Tokens.SecurityToken ReadToken (System.Xml.XmlReader reader, Microsoft.IdentityModel.Tokens.TokenValidationParameters validationParameters);
override this.ReadToken : System.Xml.XmlReader * Microsoft.IdentityModel.Tokens.TokenValidationParameters -> Microsoft.IdentityModel.Tokens.SecurityToken
Public MustOverride Function ReadToken (reader As XmlReader, validationParameters As TokenValidationParameters) As SecurityToken

Parameters

validationParameters
TokenValidationParameters

The TokenValidationParameters to be used for validating the token.

Returns

Remarks

SecurityToken instance which represents the serialized token.

Applies to