XmlEncryption.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 CarriedKeyName = "CarriedKeyName";
  18. public const string CipherData = "CipherData";
  19. public const string CipherReference = "CipherReference";
  20. public const string CipherValue = "CipherValue";
  21. public const string DataReference = "DataReference";
  22. public const string EncryptedData = "EncryptedData";
  23. public const string EncryptedKey = "EncryptedKey";
  24. public const string EncryptionMethod = "EncryptionMethod";
  25. public const string EncryptionProperties = "EncryptionProperties";
  26. public const string EncryptionProperty = "EncryptionProperty";
  27. public const string KeyReference = "KeyReference";
  28. public const string KeySize = "KeySize";
  29. public const string ReferenceList = "ReferenceList";
  30. public const string Transforms = "Transforms";
  31. public ElementNames () {}
  32. }
  33. public class AttributeNames {
  34. public const string Algorithm = "Algorithm";
  35. public const string Encoding = "Encoding";
  36. public const string Id = "Id";
  37. public const string MimeType = "MimeType";
  38. public const string Recipient = "Recipient";
  39. public const string Target = "Target";
  40. public const string Type = "Type";
  41. public const string URI = "URI";
  42. public AttributeNames () {}
  43. }
  44. public const string Prefix = "xenc";
  45. public XmlEncryption () {}
  46. }
  47. }
  48. #endif