Table of Contents

Class RoleDescriptor

Namespace
ComponentSpace.Saml2.Metadata
Assembly
ComponentSpace.Saml2.dll

Represents a role descriptor.

public class RoleDescriptor : RoleDescriptorType
Inheritance
RoleDescriptor
Inherited Members

Remarks

Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

RoleDescriptor()

Initializes a new instance of the RoleDescriptor class.

public RoleDescriptor()

RoleDescriptor(XmlElement)

Initializes a new instance of the RoleDescriptor class from XML.

public RoleDescriptor(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The role descriptor XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is a role descriptor.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a role descriptor; otherwise false.

ToXml()

Serializes the role descriptor to XML.

public XmlElement ToXml()

Returns

XmlElement

The role descriptor as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.

ToXml(XmlDocument)

Serializes the role descriptor to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The role descriptor as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.