Reads a condition that must be taken into account when assessing the validity of a SAML assertion using the specified XML reader.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
public virtual SamlCondition LoadCondition( XmlDictionaryReader reader, SecurityTokenSerializer keyInfoSerializer, SecurityTokenResolver outOfBandTokenResolver )
- Type: System.IdentityModel.Selectors.SecurityTokenSerializer
A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.
- Type: System.IdentityModel.Selectors.SecurityTokenResolver
A SecurityTokenResolver that determines the security token that created the digital signature.
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 method.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003