2 // EncryptedData.cs: Handles WS-Security EncryptedData
\r
5 // Sebastien Pouliot (spouliot@motus.com)
\r
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
\r
9 // Licensed under MIT X11 (see LICENSE) with this specific addition:
\r
11 //
\93This source code may incorporate intellectual property owned by Microsoft
\r
12 // Corporation. Our provision of this source code does not include any licenses
\r
13 // or any other rights to you under any Microsoft intellectual property. If you
\r
14 // would like a license from Microsoft (e.g. rebrand, redistribute), you need
\r
15 // to contact Microsoft directly.
\94 \r
19 using System.Security.Cryptography.Xml;
\r
21 using Microsoft.Web.Services.Xml;
\r
23 namespace Microsoft.Web.Services.Security {
\r
25 public sealed class EncryptedData : ISecurityElement, IXmlElement {
\r
27 private EncryptionKey encryptionKey;
\r
28 private EncryptedKey encryptedKey;
\r
29 private ReferenceList list;
\r
31 public EncryptedData (EncryptionKey key)
\r
33 this.encryptionKey = key;
\r
37 public EncryptedData (SecurityToken token) {}
\r
40 public EncryptedData (XmlElement element) {}
\r
42 public EncryptedData (XmlElement element, EncryptedKey encryptedKey)
\r
45 this.encryptedKey = encryptedKey;
\r
48 public EncryptedKey EncryptedKey {
\r
49 get { return encryptedKey; }
\r
52 public XmlElement Decrypt()
\r
58 public void Encrypt (XmlDocument message)
\r
63 public XmlElement GetXml (XmlDocument document)
\r
69 public void LoadXml (XmlElement element)
\r