Class AffiliationDescriptor
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents an affiliation descriptor.
public class AffiliationDescriptor
- Inheritance
-
AffiliationDescriptor
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
AffiliationDescriptor()
Initializes a new instance of the AffiliationDescriptor class.
public AffiliationDescriptor()
AffiliationDescriptor(XmlElement)
Initializes a new instance of the AffiliationDescriptor class from XML.
public AffiliationDescriptor(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe affiliation descriptor XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
AffiliateMembers
Gets or sets the list of affiliate members.
public IList<AffiliateMember> AffiliateMembers { get; set; }
Property Value
- IList<AffiliateMember>
The list of affiliate members.
AffiliationOwnerID
Gets or sets the affiliation owner ID.
public string AffiliationOwnerID { get; set; }
Property Value
- string
The affiliation owner ID.
CacheDuration
Gets or sets the cache duration.
public Duration CacheDuration { get; set; }
Property Value
- Duration
The cache duration.
Extensions
Gets or sets the extensions.
public Extensions Extensions { get; set; }
Property Value
- Extensions
The extensions.
ID
Gets or sets the ID.
public string ID { get; set; }
Property Value
- string
The ID.
KeyDescriptors
Gets or sets the list of key descriptors.
public IList<KeyDescriptor> KeyDescriptors { get; set; }
Property Value
- IList<KeyDescriptor>
The list of key descriptors.
ValidUntil
Gets or sets the valid until date/time.
public DateTime? ValidUntil { get; set; }
Property Value
- DateTime?
The valid until date/time.
Methods
IsValid(XmlElement)
Indicates whether the XML is an affiliation descriptor.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an affiliation descriptor; otherwisefalse.
ToXml()
Serializes the affiliation descriptor to XML.
public XmlElement ToXml()
Returns
- XmlElement
The affiliation descriptor as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.
ToXml(XmlDocument)
Serializes the affiliation descriptor to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The affiliation descriptor as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.