Table of Contents

Class AttributeConsumingService

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

Represents an attribute consuming service.

public class AttributeConsumingService
Inheritance
AttributeConsumingService
Inherited Members

Remarks

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

Constructors

AttributeConsumingService()

Initializes a new instance of the AttributeConsumingService class.

public AttributeConsumingService()

AttributeConsumingService(XmlElement)

Initializes a new instance of the AttributeConsumingService class from XML.

public AttributeConsumingService(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The attribute consuming service XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

Index

Gets or sets the index.

public int? Index { get; set; }

Property Value

int?

The index.

IsDefault

Gets or sets the is default flag.

public bool? IsDefault { get; set; }

Property Value

bool?

The is default flag.

RequestedAttributes

Gets or sets the list of requested attributes.

public IList<RequestedAttribute> RequestedAttributes { get; set; }

Property Value

IList<RequestedAttribute>

The list of requested attributes.

ServiceDescriptions

Gets or sets the list of service descriptions.

public IList<ServiceDescription> ServiceDescriptions { get; set; }

Property Value

IList<ServiceDescription>

The list of service descriptions.

ServiceNames

Gets or sets the list of service names.

public IList<ServiceName> ServiceNames { get; set; }

Property Value

IList<ServiceName>

The list of service names.

Methods

IsValid(XmlElement)

Indicates whether the XML is an attribute consuming service.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an attribute consuming service; otherwise false.

ToXml(XmlDocument)

Serializes the attribute consuming service to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The attribute consuming service as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.