Interface IMetadataLoader
Loads SAML metadata.
Namespace: ComponentSpace.Saml2.Metadata
Assembly: ComponentSpace.Saml2.dll
Syntax
public interface IMetadataLoader
Methods
Load(XmlElement)
Loads the SAML metadata XML.
Declaration
EntitiesDescriptor Load(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlElement | xmlElement | The metadata XML. |
Returns
Type | Description |
---|---|
EntitiesDescriptor | The SAML metadata. |
Exceptions
Type | Condition |
---|---|
SamlException | Thrown when the SAML metadata cannot be loaded. |
LoadFile(String)
Loads the SAML metadata file.
Declaration
EntitiesDescriptor LoadFile(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The SAML metadata file |
Returns
Type | Description |
---|---|
EntitiesDescriptor | The SAML metadata. |
Exceptions
Type | Condition |
---|---|
SamlException | Thrown when the SAML metadata cannot be loaded. |
LoadUrlAsync(String)
Loads SAML metadata from a download URL.
Declaration
Task<EntitiesDescriptor> LoadUrlAsync(string url)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The metadata download URL. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<EntitiesDescriptor> | The SAML metadata. |
Exceptions
Type | Condition |
---|---|
SamlException | Thrown when the SAML metadata cannot be loaded. |