Table of Contents

Class ProxyRestriction

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents a proxy restriction.

public class ProxyRestriction : ICondition
Inheritance
ProxyRestriction
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

ProxyRestriction()

Initializes a new instance of the ProxyRestriction class.

public ProxyRestriction()

ProxyRestriction(XmlElement)

Initializes a new instance of the ProxyRestriction class from XML.

public ProxyRestriction(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The proxy 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

Count

Gets or sets the count.

public int? Count { get; set; }

Property Value

int?

The count.

Methods

IsValid(XmlElement)

Indicates whether the XML is a proxy restriction.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a proxy 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.