Freigeben über


Saml2SecurityTokenHandler.CanReadToken Method

Definition

Overloads

CanReadToken(String)

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

CanReadToken(XmlReader)

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

CanReadToken(String)

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

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

Parameters

token
String

A Saml2 token as a string.

Returns

'true' if the string has a start element equal Assertion.

Applies to

CanReadToken(XmlReader)

Indicates whether the current reader is positioned at a Saml2 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