Saml2SecurityTokenHandler.ReadToken Method (XmlReader)

.NET Framework 4.6 and 4.5

Reads a SAML 2.0 token from the specified stream.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public override SecurityToken ReadToken(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

A XmlReader stream to a SAML 2.0 Security Token.

ExceptionCondition
InvalidOperationException

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.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft