XmlDecryptionTransform.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. //
  2. // XmlDecryptionTransform.cs - XmlDecryptionTransform implementation for XML Encryption
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2004
  8. #if NET_1_2
  9. using System.Xml;
  10. namespace System.Security.Cryptography.Xml {
  11. public class XmlDecryptionTransform : Transform {
  12. #region Fields
  13. EncryptedXml encryptedXml;
  14. Type[] inputTypes;
  15. Type[] outputTypes;
  16. #endregion // Fields
  17. #region Constructors
  18. public XmlDecryptionTransform ()
  19. : base ()
  20. {
  21. }
  22. #endregion // Constructors
  23. #region Properties
  24. public EncryptedXml EncryptedXml {
  25. get { return encryptedXml; }
  26. set { encryptedXml = value; }
  27. }
  28. public override Type[] InputTypes {
  29. get {
  30. if (inputTypes == null) {
  31. lock (this) {
  32. inputTypes = new Type [3] {typeof (System.IO.Stream), typeof (System.Xml.XmlNodeList), typeof (System.Xml.XmlDocument)};
  33. }
  34. }
  35. return inputTypes;
  36. }
  37. }
  38. public override Type[] OutputTypes {
  39. get {
  40. if (outputTypes == null) {
  41. lock (this) {
  42. outputTypes = new Type [2] {typeof (System.Xml.XmlDocument), typeof (System.Xml.XmlNodeList)};
  43. }
  44. }
  45. return outputTypes;
  46. }
  47. }
  48. #endregion // Properties
  49. #region Methods
  50. [MonoTODO]
  51. protected override XmlNodeList GetInnerXml ()
  52. {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. public override object GetOutput ()
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. public override object GetOutput (Type type)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. protected virtual bool IsTargetElement (XmlElement inputElement, string idValue)
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. public override void LoadInnerXml (XmlNodeList nodeList)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. public override void LoadInput (object obj)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. #endregion // Methods
  81. }
  82. }
  83. #endif