Table of Contents

Class EncryptedAttribute

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

Represents an encrypted attribute.

public class EncryptedAttribute : EncryptedElementType
Inheritance
EncryptedAttribute
Inherited Members

Remarks

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

Constructors

EncryptedAttribute()

Initializes a new instance of the EncryptedAttribute class.

public EncryptedAttribute()

EncryptedAttribute(XmlElement)

Initializes a new instance of the EncryptedAttribute class from XML.

public EncryptedAttribute(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The encrypted attribute XML.

Exceptions

SamlSerializationException

Thrown when the XML deserialization fails.

Methods

IsValid(XmlElement)

Indicates whether the XML is an encrypted attribute.

public static bool IsValid(XmlElement xmlElement)

Parameters

xmlElement XmlElement

The XML to test.

Returns

bool

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

ToXml(XmlDocument)

Serializes the encrypted attribute to XML.

public XmlElement ToXml(XmlDocument xmlDocument)

Parameters

xmlDocument XmlDocument

The owning XML document.

Returns

XmlElement

The encrypted attribute as XML.

Exceptions

SamlSerializationException

Thrown when the XML serialization fails.