Share via


SamlSecurityTokenHandler.WriteToken Method

Definition

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

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 the token is not a SamlSecurityToken.

Applies to