Condividi tramite


SecurityTokenHandler.WriteToken Method

Definition

Overloads

WriteToken(SecurityToken)

Serializes to string a token of the type handled by this instance.

WriteToken(XmlWriter, SecurityToken)

This must be overridden to serialize to XML a token of the type handled by this instance.

WriteToken(SecurityToken)

Serializes to string a token of the type handled by this instance.

public virtual string WriteToken (Microsoft.IdentityModel.Tokens.SecurityToken token);
abstract member WriteToken : Microsoft.IdentityModel.Tokens.SecurityToken -> string
override this.WriteToken : Microsoft.IdentityModel.Tokens.SecurityToken -> string
Public Overridable Function WriteToken (token As SecurityToken) As String

Parameters

token
SecurityToken

A token of type TokenType.

Returns

The serialized token.

Applies to

WriteToken(XmlWriter, SecurityToken)

This must be overridden to serialize to XML a token of the type handled by this instance.

public abstract void WriteToken (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.SecurityToken token);
abstract member WriteToken : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.SecurityToken -> unit
Public MustOverride Sub WriteToken (writer As XmlWriter, token As SecurityToken)

Parameters

writer
XmlWriter

The XML writer.

token
SecurityToken

A token of type TokenType.

Applies to