Class AudienceRestriction
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an audience restriction.
public class AudienceRestriction : ICondition
- Inheritance
-
AudienceRestriction
- 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
AudienceRestriction()
Initializes a new instance of the AudienceRestriction class.
public AudienceRestriction()
AudienceRestriction(XmlElement)
Initializes a new instance of the AudienceRestriction class from XML.
public AudienceRestriction(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe audience restriction XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Audiences
Gets or sets the audiences.
public IList<Audience> Audiences { get; set; }
Property Value
- See Also
Methods
IsValid(XmlElement)
Indicates whether the XML is an audience restriction.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an audience restriction; otherwisefalse.
ToXml(XmlDocument)
Serializes the audience restriction to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The audience restriction as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.