SamlConditions.ReadXml Method (XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver)

 

Reads the <saml:Conditions> element from the specified XML reader.

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

public virtual void ReadXml(
	XmlDictionaryReader reader,
	SamlSerializer samlSerializer,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

An XmlDictionaryReader to read the <saml:Conditions> element.

samlSerializer
Type: System.IdentityModel.Tokens.SamlSerializer

A SamlSerializer that is capable of reading XML elements in the SAML authorization statement that is defined in the SAML specification.

keyInfoSerializer
Type: System.IdentityModel.Selectors.SecurityTokenSerializer

A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.

outOfBandTokenResolver
Type: System.IdentityModel.Selectors.SecurityTokenResolver

A SecurityTokenResolver that determines the security token that created the digital signature.

Exception Condition
ArgumentNullException

reader is null

-or-

samlSerializer is null.

The ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) method sets the following properties:

.NET Framework
Available since 3.0
Return to top
Show: