XmlEncryption.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // XmlEncryption.cs: Handles Xml Encryption
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. // Sebastien Pouliot ([email protected])
  7. //
  8. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  9. // Copyright (C) Tim Coleman, 2004
  10. //
  11. #if NET_1_2
  12. using System;
  13. namespace System.Security.Cryptography.Xml {
  14. // following the design of WSE
  15. internal class XmlEncryption {
  16. public class ElementNames {
  17. public const string CipherData = "CipherData";
  18. public const string CipherReference = "CipherReference";
  19. public const string CipherValue = "CipherValue";
  20. public const string EncryptedData = "EncryptedData";
  21. public const string EncryptionMethod = "EncryptionMethod";
  22. public const string EncryptionProperties = "EncryptionProperties";
  23. public const string EncryptionProperty = "EncryptionProperty";
  24. public const string KeySize = "KeySize";
  25. public const string Transforms = "Transforms";
  26. public ElementNames () {}
  27. }
  28. public class AttributeNames {
  29. public const string Algorithm = "Algorithm";
  30. public const string Encoding = "Encoding";
  31. public const string Id = "Id";
  32. public const string MimeType = "MimeType";
  33. public const string Target = "Target";
  34. public const string Type = "Type";
  35. public const string URI = "URI";
  36. public AttributeNames () {}
  37. }
  38. public const string NamespaceURI = "http://www.w3.org/2001/04/xmlenc#";
  39. public const string Prefix = "xenc";
  40. public XmlEncryption () {}
  41. }
  42. }
  43. #endif