SecurityTokenSerializer.ReadTokenCore Method (XmlReader, SecurityTokenResolver)

 

Reads the security token pointed at by the specified XML reader. Called by the base class.

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

protected abstract SecurityToken ReadTokenCore(
	XmlReader reader,
	SecurityTokenResolver tokenResolver
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader to read the security token.

tokenResolver
Type: System.IdentityModel.Selectors.SecurityTokenResolver

A SecurityTokenResolver that determines the security token type.

Return Value

Type: System.IdentityModel.Tokens.SecurityToken

A SecurityToken that represents the security token that is read.

Exception Condition
ArgumentNullException

reader is null.

-or-

tokenResolver is null.

Classes that derive from the SecurityTokenSerializer class must override the ReadTokenCore(XmlReader, SecurityTokenResolver) method. The ReadToken(XmlReader, SecurityTokenResolver) method calls the ReadTokenCore(XmlReader, SecurityTokenResolver) method.

.NET Framework
Available since 3.0
Return to top
Show: