Table of Contents

Class EncryptedAssertion

Namespace
ComponentSpace.Saml2.Assertions
Assembly
ComponentSpace.Saml2.dll

Represents an encrypted assertion.

public class EncryptedAssertion : EncryptedElementType
Inheritance
EncryptedAssertion
Inherited Members

Remarks

Refer to the Assertions and Protocol for the OASIS Security Assertion Markup Language (SAML) V2.0 specification for further details.

Constructors

EncryptedAssertion()

Initializes a new instance of the EncryptedAssertion class.

public EncryptedAssertion()

EncryptedAssertion(XmlElement)

Initializes a new instance of the EncryptedAssertion class from XML.

public EncryptedAssertion(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The encrypted assertion XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is an encrypted assertion.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

true if the XML is an encrypted assertion; otherwise false.

ToXml()

Serializes the encrypted assertion to XML.

public XmlElement ToXml()

Returns

XmlElement

The encrypted assertion as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.

ToXml(XmlDocument)

Serializes the encrypted assertion to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The encrypted assertion as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.