Class AttributeService
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents the attribute service.
public class AttributeService : EndpointType
- Inheritance
-
AttributeService
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AttributeService()
Initializes a new instance of the AttributeService class.
public AttributeService()
AttributeService(XmlElement)
Initializes a new instance of the AttributeService class from XML.
public AttributeService(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe attribute service XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Methods
IsValid(XmlElement)
Indicates whether the XML is an attribute service.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an attribute service; otherwisefalse.
ToXml(XmlDocument)
Serializes the attribute service to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The attribute service as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.