SecurityTokenElement.ReadSecurityToken Method (XmlElement, SecurityTokenHandlerCollection)

.NET Framework (current version)
 

Deserializes a SecurityToken from the specified XML representation.

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

protected virtual SecurityToken ReadSecurityToken(
	XmlElement securityTokenXml,
	SecurityTokenHandlerCollection securityTokenHandlers
)

Parameters

securityTokenXml
Type: System.Xml.XmlElement

The XML representation of the security token.

securityTokenHandlers
Type: System.IdentityModel.Tokens.SecurityTokenHandlerCollection

The token handler collection to use to read the token.

Return Value

Type: System.IdentityModel.Tokens.SecurityToken

The security token that was deserialized from the XML.

.NET Framework
Available since 4.5
Return to top
Show: