Class Audience
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an audience.
public class Audience
- Inheritance
-
Audience
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
Audience()
Initializes a new instance of the Audience class.
public Audience()
Audience(XmlElement)
Initializes a new instance of the Audience class from XML.
public Audience(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe audience XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Uri
Gets or sets the URI.
public string Uri { get; set; }
Property Value
- string
The URI.
Methods
IsValid(XmlElement)
Indicates whether the XML is an audience.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an Audience; otherwisefalse.
ToXml(XmlDocument)
Serializes the audience to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The audience as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.