SamlSerializer.LoadAttribute Method (XmlDictionaryReader, SecurityTokenSerializer, SecurityTokenResolver)
Reads an attribute of the subject of a SAML security token using the specified XML reader.
Assembly: System.IdentityModel (in System.IdentityModel.dll)
public virtual SamlAttribute LoadAttribute( XmlDictionaryReader reader, SecurityTokenSerializer keyInfoSerializer, SecurityTokenResolver outOfBandTokenResolver )
A SecurityTokenSerializer that reads the KeyInfo clause of the digital signature.
A SecurityTokenResolver that determines the security token that created the digital signature.
When an application defines its own set of attributes, which is possible because SAML attributes is an extensibility point, a serializer that understands how to read those attributes is needed. A SAML attribute is different than an XML attribute. A SAML attribute is contained within a <saml:Attribute> element and can contain any well-formed XML, not just an attribute. To create a serializer that can read the custom attributes, derive a class from SamlSerializer and override the method.
Available since 3.0