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