SamlAuthorizationDecisionStatement.ReadXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads the SAML authorization statement from the specified XML reader.
public:
override void ReadXml(System::Xml::XmlDictionaryReader ^ reader, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer, System::IdentityModel::Selectors::SecurityTokenResolver ^ outOfBandTokenResolver);
public override void ReadXml (System.Xml.XmlDictionaryReader reader, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer, System.IdentityModel.Selectors.SecurityTokenResolver outOfBandTokenResolver);
override this.ReadXml : System.Xml.XmlDictionaryReader * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer * System.IdentityModel.Selectors.SecurityTokenResolver -> unit
Public Overrides Sub ReadXml (reader As XmlDictionaryReader, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer, outOfBandTokenResolver As SecurityTokenResolver)
Parameters
- reader
- XmlDictionaryReader
A XmlDictionaryReader to read the SAML authorization statement.
- samlSerializer
- SamlSerializer
A SamlSerializer that is capable of reading XML elements in the SAML authorization statement that is defined in the SAML specification.
- 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.
Exceptions
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.
Remarks
The ReadXml(XmlDictionaryReader, SamlSerializer, SecurityTokenSerializer, SecurityTokenResolver) method sets the following properties: