Table of Contents

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

name string

The attribute name.

value string

The attribute value.

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

name string

The attribute name.

nameFormat string

The name format or null if none.

friendlyName string

The friendly name or null if none.

value string

The attribute value.

See Also

SamlAttribute(XmlElement)

Initializes a new instance of the SamlAttribute class from XML.

public SamlAttribute(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The 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

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an attribute; otherwise false.

ToXml(XmlDocument)

Serializes the attribute to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The attribute as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.