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