Table of Contents

Class SpSsoDescriptor

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

Represents an SP SSO descriptor.

public class SpSsoDescriptor : SsoDescriptorType
Inheritance
SpSsoDescriptor
Inherited Members

Remarks

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

Constructors

SpSsoDescriptor()

Initializes a new instance of the SPSSODescriptor class.

public SpSsoDescriptor()

SpSsoDescriptor(XmlElement)

Initializes a new instance of the SPSSODescriptor class from XML.

public SpSsoDescriptor(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The SP SSO descriptor XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Properties

AssertionConsumerServices

Gets or sets the list of assertion consumer services.

public IList<AssertionConsumerService> AssertionConsumerServices { get; set; }

Property Value

IList<AssertionConsumerService>

The list of assertion consumer services.

AttributeConsumingServices

Gets or sets the list of attribute consuming services.

public IList<AttributeConsumingService> AttributeConsumingServices { get; set; }

Property Value

IList<AttributeConsumingService>

The list of attribute consuming services.

AuthnRequestsSigned

Gets or sets the flag indicating authentication requests are signed.

public bool? AuthnRequestsSigned { get; set; }

Property Value

bool?

The flag indicating authentication requests are signed.

WantAssertionsSigned

Gets or sets the flag indicating whether want assertions signed.

public bool? WantAssertionsSigned { get; set; }

Property Value

bool?

The flag indicating whether want assertions signed.

Methods

IsValid(XmlElement)

Indicates whether the XML is an SP SSO descriptor.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an SP SSO descriptor; otherwise false.

ToXml()

Serializes the SP SSO descriptor to XML.

public XmlElement ToXml()

Returns

XmlElement

The SP SSO descriptor as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.

ToXml(XmlDocument)

Serializes the SP SSO descriptor to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The SP SSO descriptor as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.