Class SamlAttribute
- Namespace
- ComponentSpace.Saml2.Assertions
- Assembly
- ComponentSpace.Saml2.dll
Represents an attribute.
public class SamlAttribute : AttributeType
- Inheritance
-
SamlAttribute
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
SamlAttribute()
Initializes a new instance of the SamlAttribute class.
public SamlAttribute()
SamlAttribute(string, string)
Initializes a new instance of the SamlAttribute class.
public SamlAttribute(string name, string value)
Parameters
- See Also
SamlAttribute(string, string, string, string)
Initializes a new instance of the SamlAttribute class.
public SamlAttribute(string name, string nameFormat, string friendlyName, string value)
Parameters
namestringThe attribute name.
nameFormatstringThe name format or
nullif none.friendlyNamestringThe friendly name or
nullif none.valuestringThe attribute value.
- See Also
SamlAttribute(XmlElement)
Initializes a new instance of the SamlAttribute class from XML.
public SamlAttribute(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe attribute XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
IsValid(XmlElement)
Indicates whether the XML is an attribute.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an attribute; otherwisefalse.
ToXml(XmlDocument)
Serializes the attribute to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The attribute as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.