SamlAuthorityBinding.ReadXml Method (XmlDictionaryReader, SamlSerializer, 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 the <AuthorityBinding> 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

A XmlDictionaryReader to read the <AuthorityBinding> element.

samlSerializer
Type: System.IdentityModel.Tokens.SamlSerializer

A SamlSerializer that is capable of reading XML elements in the SAML assertion that are 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

SecurityTokenException

reader does not refer to a SAML assertion

SecurityTokenException

The <AuthorityBinding> element does not have one of the AuthorityKind, Location, or Binding attributes.

.NET Framework
Available since 3.0
Return to top
Show: