EncryptedData.Decrypt Method

Decrypts the EncryptedData element.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim returnValue As XmlElement
Dim encryptedData1 As EncryptedData
returnValue = encryptedData1.Decrypt()

Syntax

'Declaration
Public Function Decrypt() As XmlElement
public XmlElement Decrypt();
public: XmlElement^ Decrypt();
public XmlElement Decrypt();
public function Decrypt() : XmlElement;

Return Value

A System.Xml.XmlElement containing the data.

Remarks

The Decrypt method assumes that the element has been loaded from existing XML. The method decrypts the element and puts the decrypted form back into the document, and returns the decrypted element to the caller.

In regards to the returned element, XML Encryption allows for either full element or content encryption. The returned node is therefore either the parent of the original node or the replacement node.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

EncryptedData Class
Microsoft.Web.Services2.Security Namespace

Other Resources

EncryptedData Members