RsaSecurityTokenHandler.ReadToken Method (XmlReader)

.NET Framework (current version)
 

Deserializes an RSA security token from XML.

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

public override SecurityToken ReadToken(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

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

Return Value

Type: System.IdentityModel.Tokens.SecurityToken

The RSA security token that was deserialized from the XML.

Exception Condition
ArgumentNullException

reader is null.

XmlException

reader is not positioned at an RSA token.

.NET Framework
Available since 4.5
Return to top
Show: