Saml2SecurityTokenHandler.ReadToken(XmlReader) 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.
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.