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