Table of Contents

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

xmlElement XmlElement

The 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

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is a one time use condition; otherwise false.

ToXml(XmlDocument)

Serializes the one time use condition to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The one time use condition as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.