Table of Contents

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

xmlElement XmlElement

The 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

IList<Audience>

The audiences.

See Also

Methods

IsValid(XmlElement)

Indicates whether the XML is an audience restriction.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an audience restriction; otherwise false.

ToXml(XmlDocument)

Serializes the audience restriction to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The audience restriction as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.