2003-09-25 Todd Berman <tberman@gentoo.org>
[mono.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Security / EncryptedData.cs
1 //\r
2 // EncryptedData.cs: Handles WS-Security EncryptedData\r
3 //\r
4 // Author:\r
5 //      Sebastien Pouliot (spouliot@motus.com)\r
6 //\r
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)\r
8 //\r
9 // Licensed under MIT X11 (see LICENSE) with this specific addition:\r
10 //\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
16 //\r
17 \r
18 using System;\r
19 using System.Security.Cryptography.Xml;\r
20 using System.Xml;\r
21 using Microsoft.Web.Services.Xml;\r
22 \r
23 namespace Microsoft.Web.Services.Security {\r
24 \r
25         public sealed class EncryptedData : ISecurityElement, IXmlElement {\r
26 \r
27                 private EncryptionKey encryptionKey;\r
28                 private EncryptedKey encryptedKey;\r
29                 private ReferenceList list;\r
30 \r
31                 public EncryptedData (EncryptionKey key) \r
32                 {\r
33                         this.encryptionKey = key;\r
34                 }\r
35 \r
36                 // TODO\r
37                 public EncryptedData (SecurityToken token) {}\r
38 \r
39                 // TODO\r
40                 public EncryptedData (XmlElement element) {}\r
41 \r
42                 public EncryptedData (XmlElement element, EncryptedKey encryptedKey) \r
43                 {\r
44                         // TODO\r
45                         this.encryptedKey = encryptedKey;\r
46                 }\r
47 \r
48                 public EncryptedKey EncryptedKey {\r
49                         get { return encryptedKey; }\r
50                 }\r
51 \r
52                 public XmlElement Decrypt() \r
53                 {\r
54                         // TODO\r
55                         return null;\r
56                 }\r
57 \r
58                 public void Encrypt (XmlDocument message) \r
59                 {\r
60                         // TODO\r
61                 }\r
62 \r
63                 public XmlElement GetXml (XmlDocument document) \r
64                 {\r
65                         // TODO\r
66                         return null;\r
67                 }\r
68 \r
69                 public void LoadXml (XmlElement element) \r
70                 {\r
71                         // TODO\r
72                 }\r
73         }\r
74 }\r