Class MetadataLoader
Loads SAML metadata.
Implements
Inherited Members
Namespace: ComponentSpace.Saml2.Metadata
Assembly: ComponentSpace.Saml2.dll
Syntax
public class MetadataLoader : IMetadataLoader
Constructors
MetadataLoader(SamlHttpClient)
Initializes a new instance of the MetadataLoader
class.
Declaration
public MetadataLoader(SamlHttpClient samlHttpClient)
Parameters
Type | Name | Description |
---|---|---|
SamlHttpClient | samlHttpClient | The SAML HTTP client. |
Methods
Load(XmlElement)
Loads the SAML metadata XML.
Declaration
public virtual EntitiesDescriptor Load(XmlElement xmlElement)
Parameters
Type | Name | Description |
---|---|---|
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
public virtual EntitiesDescriptor LoadFile(string fileName)
Parameters
Type | Name | Description |
---|---|---|
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
public virtual Task<EntitiesDescriptor> LoadUrlAsync(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The metadata download URL. |
Returns
Type | Description |
---|---|
Task<EntitiesDescriptor> | The SAML metadata. |
Exceptions
Type | Condition |
---|---|
SamlException | Thrown when the SAML metadata cannot be loaded. |