Class SAMLConfigurations
The SAML configurations specifies the configurations for SAML single sign-on.
Inherited Members
Namespace: ComponentSpace.SAML2.Configuration
Assembly: ComponentSpace.Saml2.dll
Syntax
public class SAMLConfigurations
Constructors
SAMLConfigurations()
Initializes a new instance of the SAMLConfigurations class.
Declaration
public SAMLConfigurations()
SAMLConfigurations(XmlElement)
Initializes a new instance of the SAMLConfigurations class.
Declaration
public SAMLConfigurations(XmlElement xmlElement)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlElement | xmlElement | The SAML configuration XML. |
Properties
Configurations
Gets or sets the list of SAML configurations.
Declaration
public IList<SAMLConfiguration> Configurations { get; set; }
Property Value
| Type | Description |
|---|---|
| IList<SAMLConfiguration> | The list of SAML configurations. |
Methods
AddConfiguration(SAMLConfiguration)
Adds a SAML configuration.
Declaration
public void AddConfiguration(SAMLConfiguration samlConfiguration)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLConfiguration | samlConfiguration | The SAML configuration. |
GetConfiguration(string)
Returns the configuration with the specified ID.
Declaration
public SAMLConfiguration GetConfiguration(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The configuration name. |
Returns
| Type | Description |
|---|---|
| SAMLConfiguration | The configuration with the specified name. |
Exceptions
| Type | Condition |
|---|---|
| SAMLConfigurationException | Thrown when the configuration with the specified name cannot be retrieved. |
RemoveConfiguration(string)
Removes the configuration with the specified name.
Declaration
public void RemoveConfiguration(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The configuration name. |
ToXml()
Serializes the configurations to XML.
Declaration
public XmlElement ToXml()
Returns
| Type | Description |
|---|---|
| XmlElement | The configurations as XML. |
ToXml(XmlDocument)
Serializes the configurations to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlDocument | xmlDocument | The owning XML document. |
Returns
| Type | Description |
|---|---|
| XmlElement | The configurations as XML. |