TARGET_J2EE/JVM fixes
[mono.git] / mcs / class / System.Security / System.Security.Cryptography.Xml / Reference.cs
index 33b13c1c3c40da0440b9e456fd8103c6f9dc4cf8..70128b0ef088139d2cc5be3ae7e19eefc605c95f 100644 (file)
@@ -5,9 +5,7 @@
 //     Sebastien Pouliot <sebastien@ximian.com>
 //
 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
-// (C) 2004 Novell (http://www.novell.com)
-//
-
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -30,6 +28,7 @@
 //
 
 using System.IO;
+using System.Runtime.InteropServices;
 using System.Xml;
 
 namespace System.Security.Cryptography.Xml { 
@@ -90,6 +89,10 @@ namespace System.Security.Cryptography.Xml {
 
                public TransformChain TransformChain {
                        get { return chain; }
+#if NET_2_0
+                       [ComVisible (false)]
+                       set { chain = value; }
+#endif
                }
 
                public string Type {
@@ -199,6 +202,9 @@ namespace System.Security.Cryptography.Xml {
                                                case "http://www.w3.org/TR/1999/REC-xslt-19991116":
                                                        t = new XmlDsigXsltTransform ();
                                                        break;
+                                               case "http://www.w3.org/2002/07/decrypt#XML":
+                                                       t = new XmlDecryptionTransform ();
+                                                       break;
                                                default:
                                                        throw new NotSupportedException ();
                                        }