Export (0) Print
Expand All

SamlAuthorizationDecisionStatement.ReadXml Method

Reads the SAML authorization statement from the specified XML reader.

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

public override void ReadXml(
	XmlDictionaryReader reader,
	SamlSerializer samlSerializer,
	SecurityTokenSerializer keyInfoSerializer,
	SecurityTokenResolver outOfBandTokenResolver
)

Parameters

reader
Type: System.Xml.XmlDictionaryReader

A XmlDictionaryReader to read the SAML authorization statement.

samlSerializer
Type: System.IdentityModel.Tokens.SamlSerializer

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

ExceptionCondition
ArgumentNullException

reader is null.

-or-

samlSerializer is null.

SecurityTokenException

reader refers to an XML element that does not contain the Resource and Decision attributes.

-or-

reader refers to an XML element that does not have <saml:Subject>, <saml:Evidence>, and <saml:Action> child elements.

The ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) method sets the following properties:

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft