Class SAMLConfigurationFile
Loads and saves SAML configuration files.
Inherited Members
Namespace: ComponentSpace.SAML2.Configuration
Assembly: ComponentSpace.Saml2.dll
Syntax
public static class SAMLConfigurationFile
Methods
Load()
Loads the configuration from the saml.config file.
The configuration file path may be specified by the SAMLConfigFile application setting in web.config.
Otherwise, the saml.config is assumed to be in the application folder.
Declaration
public static SAMLConfigurations Load()
Returns
| Type | Description |
|---|---|
| SAMLConfigurations | The SAML configurations. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configuration cannot be loaded. |
Load(string)
Loads the configuration from the specified file.
Declaration
public static SAMLConfigurations Load(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | The configuration file. |
Returns
| Type | Description |
|---|---|
| SAMLConfigurations | The SAML configurations. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configuration cannot be loaded. |
Save(SAMLConfiguration)
Saves the configuration to the saml.config file.
The configuration file path may be specified by the SAMLConfigFile application setting in web.config.
Otherwise, the saml.config is assumed to be in the application folder.
Declaration
public static void Save(SAMLConfiguration samlConfiguration)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLConfiguration | samlConfiguration | The SAML configuration. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configuration cannot be saved. |
Save(SAMLConfiguration, string)
Saves the configuration to the file.
Declaration
public static void Save(SAMLConfiguration samlConfiguration, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLConfiguration | samlConfiguration | The SAML configuration. |
| string | fileName | The configuration file. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configuration cannot be saved. |
Save(SAMLConfigurations)
Saves the configurations to the saml.config file.
The configuration file path may be specified by the SAMLConfigFile application setting in web.config.
Otherwise, the saml.config is assumed to be in the application folder.
Declaration
public static void Save(SAMLConfigurations samlConfigurations)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLConfigurations | samlConfigurations | The SAML configurations. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configurations cannot be saved. |
Save(SAMLConfigurations, string)
Saves the configurations to the file.
Declaration
public static void Save(SAMLConfigurations samlConfigurations, string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| SAMLConfigurations | samlConfigurations | The SAML configurations. |
| string | fileName | The configuration file. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the SAML configurations cannot be saved. |
Validate(string)
Validates the configuration file against the XML schema.
Declaration
public static void Validate(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | fileName | The configuration file. |
Exceptions
| Type | Condition |
|---|---|
| SAMLException | Thrown when the validation fails. |