SamlSecurityTokenHandler.ReadSamlToken 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
ReadSamlToken(String) |
Converts a string into an instance of SamlSecurityToken. |
ReadSamlToken(XmlReader) |
Reads a SamlSecurityToken where the XmlReader is positioned the beginning of a Saml assertion. |
ReadSamlToken(String)
Converts a string into an instance of SamlSecurityToken.
public virtual Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken ReadSamlToken (string token);
abstract member ReadSamlToken : string -> Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken
override this.ReadSamlToken : string -> Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken
Public Overridable Function ReadSamlToken (token As String) As SamlSecurityToken
Parameters
- token
- String
a Saml token as a string.
Returns
Exceptions
If token
is null or empty.
If 'token.Length' is greater than MaximumTokenSizeInBytes.
Applies to
ReadSamlToken(XmlReader)
Reads a SamlSecurityToken where the XmlReader is positioned the beginning of a Saml assertion.
public virtual Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken ReadSamlToken (System.Xml.XmlReader reader);
abstract member ReadSamlToken : System.Xml.XmlReader -> Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken
override this.ReadSamlToken : System.Xml.XmlReader -> Microsoft.IdentityModel.Tokens.Saml.SamlSecurityToken
Public Overridable Function ReadSamlToken (reader As XmlReader) As SamlSecurityToken
Parameters
Returns
Exceptions
If reader
is null.
If ReadAssertion(XmlReader) returns null.