Class AuthzDecisionStatement
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an authorization decision statement.
public class AuthzDecisionStatement : IStatement
- Inheritance
-
AuthzDecisionStatement
- Implements
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AuthzDecisionStatement()
Serializes the authorization decision statement to XML.
public AuthzDecisionStatement()
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.
AuthzDecisionStatement(XmlElement)
Initializes a new instance of the AuthzDecisionStatement class from XML.
public AuthzDecisionStatement(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe authorization decision statement XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Actions
Gets or sets the actions.
public IList<Action> Actions { get; set; }
Property Value
- See Also
Decision
Gets or sets the decision.
public string Decision { get; set; }
Property Value
- string
The decision.
- See Also
Evidence
Gets or sets the evidence.
public Evidence Evidence { get; set; }
Property Value
- Evidence
The evidence.
Resource
Gets or sets the resource.
public string Resource { get; set; }
Property Value
- string
The resource.
Methods
IsValid(XmlElement)
Indicates whether the XML is an authorization decision statement.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an authorization decision statement; otherwisefalse.
ToXml(XmlDocument)
Serializes the authorization decision statement to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The authorization decision statement as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.