Redigera

Dela via


Saml2SecurityTokenHandler.ReadToken(XmlReader) Method

Definition

Reads a SAML 2.0 token from the specified stream.

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

Parameters

reader
XmlReader

A XmlReader stream to a SAML 2.0 Security Token.

Returns

An instance of Saml2SecurityToken.

Exceptions

The Configuration property is null.

-or-

The IssuerTokenResolver property of the configuration specified by the Configuration property is null.

-or-

The ServiceTokenResolver property of the configuration specified by the Configuration property is null.

Applies to