SamlSecurityTokenHandler.CanReadToken Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.