SamlSecurityTokenHandler.WriteToken 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
WriteToken(SecurityToken) |
Serializes a SamlSecurityToken to a string. |
WriteToken(XmlWriter, SecurityToken) |
Serializes to XML a securityToken of the type handled by this instance. |
WriteToken(SecurityToken)
Serializes a SamlSecurityToken to a string.
public override string WriteToken (Microsoft.IdentityModel.Tokens.SecurityToken token);
override this.WriteToken : Microsoft.IdentityModel.Tokens.SecurityToken -> string
Public Overrides Function WriteToken (token As SecurityToken) As String
Parameters
- token
- SecurityToken
Returns
Exceptions
if the token
is null.
if the token is not a SamlSecurityToken.
Applies to
WriteToken(XmlWriter, SecurityToken)
Serializes to XML a securityToken of the type handled by this instance.
public override void WriteToken (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.SecurityToken token);
override this.WriteToken : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.SecurityToken -> unit
Public Overrides Sub WriteToken (writer As XmlWriter, token As SecurityToken)
Parameters
- writer
- XmlWriter
The XML writer.
- token
- SecurityToken
A securityToken of type TokenType.
Exceptions
if Assertion is null.
if the token is not a SamlSecurityToken.