Class SessionIndex
- Namespace
- ComponentSpace.Saml2.Protocols
- Assembly
- ComponentSpace.Saml2.dll
Represents a session index.
public class SessionIndex
- Inheritance
-
SessionIndex
- Inherited Members
Remarks
Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.
Constructors
SessionIndex()
Initializes a new instance of the SessionIndex class.
public SessionIndex()
SessionIndex(string)
Initializes a new instance of the SessionIndex class.
public SessionIndex(string index)
Parameters
indexstringThe session index.
SessionIndex(XmlElement)
Initializes a new instance of the SessionIndex class from XML.
public SessionIndex(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe session index XML.
Exceptions
- SamlSerializationException
Thrown when the XML deserialization fails.
Properties
Index
Gets or sets the session index.
public string Index { get; set; }
Property Value
- string
The session index.
Methods
IsValid(XmlElement)
Indicates whether the XML is a session index.
public static bool IsValid(XmlElement xmlElement)
Parameters
xmlElementXmlElementThe XML to test.
Returns
- bool
trueif the XML is a session index; otherwisefalse.
ToXml(XmlDocument)
Serializes the session index to XML.
public XmlElement ToXml(XmlDocument xmlDocument)
Parameters
xmlDocumentXmlDocumentThe owning XML document.
Returns
- XmlElement
The session index as XML.
Exceptions
- SamlSerializationException
Thrown when the XML serialization fails.