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
samlHttpClientSamlHttpClientThe SAML HTTP client.
Methods
Load(XmlElement)
Loads the SAML metadata XML.
public virtual EntitiesDescriptor Load(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe 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
fileNamestringThe 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
urlstringThe metadata download URL.
Returns
- Task<EntitiesDescriptor>
The SAML metadata.
Exceptions
- SamlException
Thrown when the SAML metadata cannot be loaded.