Edit

Share via


SamlSerializer.LoadCondition Method

Definition

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

public:
 virtual System::IdentityModel::Tokens::SamlCondition ^ LoadCondition(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public virtual System.IdentityModel.Tokens.SamlCondition LoadCondition (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
abstract member LoadCondition : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlCondition
override this.LoadCondition : System.Xml.XmlDictionaryReader * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> System.IdentityModel.Tokens.SamlCondition
Public Overridable Function LoadCondition (reader As XmlDictionaryReader, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver) As SamlCondition

Parameters

reader
XmlDictionaryReader

An XmlDictionaryReader to read the SAML condition.

keyInfoSerializer
SecurityTokenSerializer

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

outOfBandTokenResolver
SecurityTokenResolver

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

Returns

A SamlCondition that specifies a condition that must be taken into account when assessing the validity of a SAML assertion.

Exceptions

reader is null.

Remarks

When an application defines its own set of conditions, which is possible because the <saml:Condition> element is an extensibility point, a serializer that understands how to read those conditions is needed. To create a serializer that can read the custom attributes, derive a class from SamlSerializer and override the LoadCondition(XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver) method.

Applies to

See also