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