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