Interface IMetadataLoader
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Loads SAML metadata.
public interface IMetadataLoader
Methods
Load(XmlElement)
Loads the SAML metadata XML.
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.
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.
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.