XmlSignature.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // XmlSignature.cs: Handles Xml Signature
  3. //
  4. // Author:
  5. // Sebastien Pouliot ([email protected])
  6. //
  7. // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
  8. //
  9. using System;
  10. namespace System.Security.Cryptography.Xml {
  11. // following the design of WSE
  12. internal class XmlSignature {
  13. public class ElementNames {
  14. public const string CanonicalizationMethod = "CanonicalizationMethod";
  15. public const string DigestMethod = "DigestMethod";
  16. public const string DigestValue = "DigestValue";
  17. public const string DSAKeyValue = "DSAKeyValue";
  18. public const string HMACOutputLength = "HMACOutputLength";
  19. public const string KeyInfo = "KeyInfo";
  20. public const string KeyName = "KeyName";
  21. public const string KeyValue = "KeyValue";
  22. public const string Object = "Object";
  23. public const string Reference = "Reference";
  24. // RetrievalMethod - RetrievalElement ??? seems like a BUG to me ?
  25. public const string RetrievalMethod = "RetrievalElement";
  26. public const string RSAKeyValue = "RSAKeyValue";
  27. public const string Signature = "Signature";
  28. public const string SignatureMethod = "SignatureMethod";
  29. public const string SignatureValue = "SignatureValue";
  30. public const string SignedInfo = "SignedInfo";
  31. public const string Transform = "Transform";
  32. public const string Transforms = "Transforms";
  33. public const string X509Data = "X509Data";
  34. public const string X509IssuerSerial = "X509IssuerSerial";
  35. public const string X509IssuerName = "X509IssuerName";
  36. public const string X509SerialNumber = "X509SerialNumber";
  37. public const string X509SKI = "X509SKI";
  38. public const string X509SubjectName = "X509SubjectName";
  39. public const string X509Certificate = "X509Certificate";
  40. public const string X509CRL = "X509CRL";
  41. public ElementNames () {}
  42. }
  43. public class AttributeNames {
  44. public const string Algorithm = "Algorithm";
  45. public const string Encoding = "Encoding";
  46. public const string Id = "Id";
  47. public const string MimeType = "MimeType";
  48. public const string Type = "Type";
  49. public const string URI = "URI";
  50. public AttributeNames () {}
  51. }
  52. public const string NamespaceURI = "http://www.w3.org/2000/09/xmldsig#";
  53. public const string Prefix = "ds";
  54. public XmlSignature () {}
  55. }
  56. }