Muokkaa

Jaa


SecurityTokenHandlerCollection.ReadToken Method

Definition

Deserializes a security token from the specified source.

Overloads

ReadToken(String)

Deserializes a security token from the specified string.

ReadToken(XmlReader)

Deserializes a security token from the specified XML reader.

ReadToken(String)

Deserializes a security token from the specified string.

public:
 System::IdentityModel::Tokens::SecurityToken ^ ReadToken(System::String ^ tokenString);
public System.IdentityModel.Tokens.SecurityToken ReadToken (string tokenString);
member this.ReadToken : string -> System.IdentityModel.Tokens.SecurityToken
Public Function ReadToken (tokenString As String) As SecurityToken

Parameters

tokenString
String

The string from which to deserialize the token.

Returns

The token that was deserialized from the specified string.

Applies to

ReadToken(XmlReader)

Deserializes a security token from the specified XML reader.

public:
 System::IdentityModel::Tokens::SecurityToken ^ ReadToken(System::Xml::XmlReader ^ reader);
public System.IdentityModel.Tokens.SecurityToken ReadToken (System.Xml.XmlReader reader);
member this.ReadToken : System.Xml.XmlReader -> System.IdentityModel.Tokens.SecurityToken
Public Function ReadToken (reader As XmlReader) As SecurityToken

Parameters

reader
XmlReader

An XML reader positioned at the start element of the token.

Returns

The security token deserialized from the XML.

Applies to