Class AdditionalMetadataLocation
Represents an additional metadata location.
Inheritance
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 |
---|---|---|
System.String | xmlNamespace | The XML namespace. |
System.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 |
---|---|---|
System.Xml.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 |
---|---|
System.String | The URI. |
XmlNamespace
Gets or sets the XML namespace.
Declaration
public string XmlNamespace { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|---|
System.Xml.XmlElement | xmlElement | The XML to test. |
Returns
Type | Description |
---|---|
System.Boolean |
|
ToXml(XmlDocument)
Serializes the additional metadata location to XML.
Declaration
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlDocument | xmlDocument | The owning XML document. |
Returns
Type | Description |
---|---|
System.Xml.XmlElement | The additional metadata location as XML. |
Exceptions
Type | Condition |
---|---|
SAMLSerializationException | Thrown when the XML serialization fails. |