Class EntitiesDescriptor
- Namespace
- ComponentSpace.Saml2.Metadata
- Assembly
- ComponentSpace.Saml2.dll
Represents an entities descriptor.
public class EntitiesDescriptor
- Inheritance
-
EntitiesDescriptor
- Inherited Members
Remarks
Refer to the Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
EntitiesDescriptor()
Initializes a new instance of the EntitiesDescriptor class.
public EntitiesDescriptor()
EntitiesDescriptor(XmlElement)
Initializes a new instance of the EntitiesDescriptor class from XML.
public EntitiesDescriptor(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe entities descriptor XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
CacheDuration
Gets or sets the cache duration.
public Duration CacheDuration { get; set; }
Property Value
- Duration
The cache duration.
EntitiesDescriptors
Gets or sets the list of entities descriptors.
public IList<EntitiesDescriptor> EntitiesDescriptors { get; set; }
Property Value
- IList<EntitiesDescriptor>
The list of entities descriptors.
EntityDescriptors
Gets or sets the list of entity descriptors.
public IList<EntityDescriptor> EntityDescriptors { get; set; }
Property Value
- IList<EntityDescriptor>
The list of entity descriptors.
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.
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
- string
The name.
ValidUntil
Gets or sets the valid until date/time.
public DateTime? ValidUntil { get; set; }
Property Value
- DateTime?
The valid until date/time.
Methods
GetAllEntityDescriptors()
Gets the list of all the entity descriptors by combining the lists of entities and entity descriptors.
public IList<EntityDescriptor> GetAllEntityDescriptors()
Returns
- IList<EntityDescriptor>
The list of all the entity descriptors.
GetEntityDescriptor(string)
Gets the entity descriptor identified by the entity ID.
public EntityDescriptor GetEntityDescriptor(string entityID)
Parameters
entityIDstringThe entity ID of the entity descriptor.
Returns
- EntityDescriptor
The entity descriptor of
nullif none.
IsValid(XmlElement)
Indicates whether the XML is an entities descriptor.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is an entities descriptor; otherwisefalse.
ToXml()
Serializes the entities descriptor to XML.
public XmlElement ToXml()
Returns
- XmlElement
The entities descriptor as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.
ToXml(XmlDocument)
Serializes the entities descriptor to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The entities descriptor as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.