Class AdditionalMetadataLocation
Represents an additional metadata location.
Inherited Members
Namespace: ComponentSpace.SAML2.Metadata
Assembly: ComponentSpace.Saml2.dll
Syntax
public class AdditionalMetadataLocation
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AdditionalMetadataLocation()
Initializes a new instance of the AdditionalMetadataLocation class.
Declaration
public AdditionalMetadataLocation()
AdditionalMetadataLocation(string, string)
Initializes a new instance of the AdditionalMetadataLocation class.
Declaration
public AdditionalMetadataLocation(string xmlNamespace, string uri)
Parameters
| Type | Name | Description |
|---|---|---|
| string | xmlNamespace | The XML namespace. |
| string | uri | The location URI. |
AdditionalMetadataLocation(XmlElement)
Initializes a new instance of the AdditionalMetadataLocation class from XML.
Declaration
public AdditionalMetadataLocation(XmlElement xmlElement)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlElement | xmlElement | The additional metadata location XML. |
Exceptions
| Type | Condition |
|---|---|
| SAMLSerializationException | Thrown when the XML deserialization fails. |
Properties
URI
Gets or sets the URI.
Declaration
public string URI { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The URI. |
XmlNamespace
Gets or sets the XML namespace.
Declaration
public string XmlNamespace { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The XML namespace. |
Methods
IsValid(XmlElement)
Indicates whether the XML is an additional metadata location.
Declaration
public static bool IsValid(XmlElement xmlElement)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlElement | xmlElement | The XML to test. |
Returns
| Type | Description |
|---|---|
| bool |
|
ToXml(XmlDocument)
Serializes the additional metadata location to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
| Type | Name | Description |
|---|---|---|
| XmlDocument | xmlDocument | The owning XML document. |
Returns
| Type | Description |
|---|---|
| XmlElement | The additional metadata location as XML. |
Exceptions
| Type | Condition |
|---|---|
| SAMLSerializationException | Thrown when the XML serialization fails. |