Table of Contents

Class MetadataLoader

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

Loads SAML metadata.

public class MetadataLoader : IMetadataLoader
Inheritance
MetadataLoader
Implements
Inherited Members

Constructors

MetadataLoader(SamlHttpClient)

Initializes a new instance of the MetadataLoader class.

public MetadataLoader(SamlHttpClient samlHttpClient)

Parameters

samlHttpClient SamlHttpClient

The SAML HTTP client.

Methods

Load(XmlElement)

Loads the SAML metadata XML.

public virtual EntitiesDescriptor Load(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The metadata XML.

Returns

EntitiesDescriptor

The SAML metadata.

Exceptions

SamlException

Thrown when the SAML metadata cannot be loaded.

LoadFile(string)

Loads the SAML metadata file.

public virtual EntitiesDescriptor LoadFile(string fileName)

Parameters

fileName string

The SAML metadata file

Returns

EntitiesDescriptor

The SAML metadata.

Exceptions

SamlException

Thrown when the SAML metadata cannot be loaded.

LoadUrlAsync(string)

Loads SAML metadata from a download URL.

public virtual Task<EntitiesDescriptor> LoadUrlAsync(string url)

Parameters

url string

The metadata download URL.

Returns

Task<EntitiesDescriptor>

The SAML metadata.

Exceptions

SamlException

Thrown when the SAML metadata cannot be loaded.