Partager via


SamlSecurityTokenHandler.CanReadToken Method

Definition

Overloads

CanReadToken(String)

Determines if the string is a valid Saml token by examining the xml for the correct start element.

CanReadToken(XmlReader)

Indicates whether the current reader is positioned at a Saml assertion.

CanReadToken(String)

Determines if the string is a valid Saml token by examining the xml for the correct start element.

public override bool CanReadToken (string securityToken);
override this.CanReadToken : string -> bool
Public Overrides Function CanReadToken (securityToken As String) As Boolean

Parameters

securityToken
String

A Saml token as a string.

Returns

'true' if the string has a start element equal Microsoft.IdentityModel.Tokens.Saml.SamlConstants.Elements.Assertion.

Applies to

CanReadToken(XmlReader)

Indicates whether the current reader is positioned at a Saml assertion.

public override bool CanReadToken (System.Xml.XmlReader reader);
override this.CanReadToken : System.Xml.XmlReader -> bool
Public Overrides Function CanReadToken (reader As XmlReader) As Boolean

Parameters

reader
XmlReader

An XmlReader reader positioned at a start element. The reader should not be advanced.

Returns

'true' if a token can be read.

Applies to