SamlSerializer.LoadConditions Method (XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Reads a set of conditions that must be taken into account when assessing the validity of a SAML assertion using the specified XML reader.

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

public virtual SamlConditions LoadConditions(
	XmlDictionaryReader reader,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

An XmlDictionaryReader to read the SAML conditions.

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.

Return Value

Type: System.IdentityModel.Tokens.SamlConditions

A SamlConditions that specifies a set of conditions that must be taken into account when assessing the validity of a SAML assertion.

Exception Condition
ArgumentNullException

reader is null.

The LoadConditions method reads the contents of a <saml:Conditions> element.

.NET Framework
Available since 3.0
Return to top
Show: