System.Security.Cryptography.Xml.EncryptedXml Members

The members of System.Security.Cryptography.Xml.EncryptedXml are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Security.Cryptography.Xml.EncryptedXml class.

Initializes a new instance of the System.Security.Cryptography.Xml.EncryptedXml class using the specified XML document.

Initializes a new instance of the System.Security.Cryptography.Xml.EncryptedXml class using the specified XML document and evidence.

Public Fields

const
XmlEncAES128KeyWrapUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 128-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.

const
XmlEncAES128Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 128-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.

const
XmlEncAES192KeyWrapUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 192-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.

const
XmlEncAES192Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 192-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.

const
XmlEncAES256KeyWrapUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 256-bit Advanced Encryption Standard (AES) Key Wrap algorithm (also known as the Rijndael Key Wrap algorithm). This field is constant.

const
XmlEncAES256Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the 256-bit Advanced Encryption Standard (AES) algorithm (also known as the Rijndael algorithm). This field is constant.

const
XmlEncDESUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the Digital Encryption Standard (DES) algorithm. This field is constant.

const
XmlEncElementContentUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for XML encryption element content. This field is constant.

const
XmlEncElementUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for an XML encryption element. This field is constant.

const
XmlEncEncryptedKeyUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the XML encryption <EncryptedKey> element. This field is constant.

const
XmlEncNamespaceUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for XML encryption syntax and processing. This field is constant.

const
XmlEncRSA15Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the RSA Public Key Cryptography Standard (PKCS) Version 1.5 algorithm. This field is constant.

const
XmlEncRSAOAEPUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the RSA Optimal Asymmetric Encryption Padding (OAEP) encryption algorithm. This field is constant.

const
XmlEncSHA256Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the SHA-256 algorithm. This field is constant.

const
XmlEncSHA512Urlstring.

Represents the namespace Uniform Resource Identifier (URI) for the SHA-512 algorithm. This field is constant.

const
XmlEncTripleDESKeyWrapUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the TRIPLEDES key wrap algorithm. This field is constant.

const
XmlEncTripleDESUrlstring.

Represents the namespace Uniform Resource Identifier (URI) for the Triple DES algorithm. This field is constant.

Public Properties

DocumentEvidenceSystem.Security.Policy.Evidence.

Gets or sets the evidence of the System.Xml.XmlDocument object from which the System.Security.Cryptography.Xml.EncryptedXml object is constructed.

EncodingSystem.Text.Encoding.

Gets or sets the encoding used for XML encryption.

ModeSystem.Security.Cryptography.CipherMode.

Gets or sets the cipher mode used for XML encryption.

PaddingSystem.Security.Cryptography.PaddingMode.

Gets or sets the padding mode used for XML encryption.

Recipientstring.

Gets or sets the recipient of the encrypted key information.

ResolverSystem.Xml.XmlResolver.

Gets or sets the System.Xml.XmlResolver object used by the Document Object Model (DOM) to resolve external XML references.

Public Methods

AddKeyNameMapping(string, object)

Defines a mapping between a key name and a symmetric key or an asymmetric key.

ClearKeyNameMappings()

Resets all key name mapping.

DecryptData(EncryptedData, System.Security.Cryptography.SymmetricAlgorithm) : byte[]

Decrypts an <EncryptedData> element using the specified symmetric algorithm.

DecryptDocument()

Decrypts all <EncryptedData> elements of the XML document that were specified during initialization of the System.Security.Cryptography.Xml.EncryptedXml class.

DecryptEncryptedKey(EncryptedKey) : byte[]

Determines the key represented by the System.Security.Cryptography.Xml.EncryptedKey element.

static
DecryptKey(byte[], System.Security.Cryptography.SymmetricAlgorithm) : byte[]

Decrypts an <EncryptedKey> element using a symmetric algorithm.

static
DecryptKey(byte[], System.Security.Cryptography.RSA, bool) : byte[]

Decrypts an <EncryptedKey> element using an asymmetric algorithm.

Encrypt(System.Xml.XmlElement, System.Security.Cryptography.X509Certificates.X509Certificate2) : EncryptedData

Encrypts the outer XML of an element using the specified X.509 certificate.

Encrypt(System.Xml.XmlElement, string) : EncryptedData

Encrypts the outer XML of an element using the specified key in the key mapping table.

EncryptData(byte[], System.Security.Cryptography.SymmetricAlgorithm) : byte[]

Encrypts data in the specified byte array using the specified symmetric algorithm.

EncryptData(System.Xml.XmlElement, System.Security.Cryptography.SymmetricAlgorithm, bool) : byte[]

Encrypts the specified element or its contents using the specified symmetric algorithm.

static
EncryptKey(byte[], System.Security.Cryptography.SymmetricAlgorithm) : byte[]

Encrypts a key using a symmetric algorithm that a recipient uses to decrypt an <EncryptedData> element.

static
EncryptKey(byte[], System.Security.Cryptography.RSA, bool) : byte[]

Encrypts the key that a recipient uses to decrypt an <EncryptedData> element.

GetDecryptionIV(EncryptedData, string) : byte[]

Retrieves the decryption initialization vector (IV) from an System.Security.Cryptography.Xml.EncryptedData object.

GetDecryptionKey(EncryptedData, string) : System.Security.Cryptography.SymmetricAlgorithm

Retrieves the decryption key from the specified System.Security.Cryptography.Xml.EncryptedData object.

GetIdElement(System.Xml.XmlDocument, string) : System.Xml.XmlElement

Determines how to resolve internal Uniform Resource Identifier (URI) references.

ReplaceData(System.Xml.XmlElement, byte[])

Replaces an <EncryptedData> element with a specified decrypted sequence of bytes.

static
ReplaceElement(System.Xml.XmlElement, EncryptedData, bool)

Replaces the specified element with the specified System.Security.Cryptography.Xml.EncryptedData object.