Table of Contents

Class AttributeStatement

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

Represents an attribute statement.

public class AttributeStatement : IStatement
Inheritance
AttributeStatement
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

AttributeStatement()

Initializes a new instance of the AttributeStatement class.

public AttributeStatement()

AttributeStatement(XmlElement)

Initializes a new instance of the AttributeStatement class from XML.

public AttributeStatement(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The attribute statement XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Attributes

Gets or sets the attributes.

public IList<AttributeListItem> Attributes { get; set; }

Property Value

IList<AttributeListItem>

The attributes.

Methods

GetEncryptedAttributes()

Returns all encrypted attributes.

public IList<EncryptedAttribute> GetEncryptedAttributes()

Returns

IList<EncryptedAttribute>

The encrypted attributes.

GetUnencryptedAttributes()

Returns all unencrypted attributes.

public IList<SamlAttribute> GetUnencryptedAttributes()

Returns

IList<SamlAttribute>

The unencrypted attributes.

IsValid(XmlElement)

Indicates whether the XML is an attribute statement.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an attribute statement; otherwise false.

ToXml(XmlDocument)

Serializes the attribute statement to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The attribute statement as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.