System.Security.Cryptography.Xml.CipherData Class

Represents the <CipherData> element in XML encryption. This class cannot be inherited.

See Also: CipherData Members

Syntax

public sealed class CipherData

Remarks

The System.Security.Cryptography.Xml.CipherData class represents the <CipherData> element in XML encryption. It is a required element that provides the encrypted data. It must either contain the encrypted data as base64-encoded text of the <CipherValue> element, or provide a reference to an external location containing the encrypted data using the <CipherReference> element.

In many cases, you do not need to directly create a new instance of the System.Security.Cryptography.Xml.CipherData class. The SignedXml.EncryptedXml, System.Security.Cryptography.Xml.EncryptedData, and System.Security.Cryptography.Xml.EncryptedKey classes create instances for you.

Note:

A System.Security.Cryptography.Xml.CipherData object can have either a System.Security.Cryptography.Xml.CipherReference property or a CipherData.CipherValue property, but not both. A System.Security.Cryptography.CryptographicException is thrown if both are assigned to a System.Security.Cryptography.Xml.CipherData object.

Requirements

Namespace: System.Security.Cryptography.Xml
Assembly: System.Security (in System.Security.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0