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
xmlElementXmlElementThe 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
- 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
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a proxy 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.