XmlSignature.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. #if NET_1_0
  25. // RetrievalMethod vs RetrievalElement -> BUG in MS Framework 1.0
  26. public const string RetrievalMethod = "RetrievalElement";
  27. #else
  28. public const string RetrievalMethod = "RetrievalMethod";
  29. #endif
  30. public const string RSAKeyValue = "RSAKeyValue";
  31. public const string Signature = "Signature";
  32. public const string SignatureMethod = "SignatureMethod";
  33. public const string SignatureValue = "SignatureValue";
  34. public const string SignedInfo = "SignedInfo";
  35. public const string Transform = "Transform";
  36. public const string Transforms = "Transforms";
  37. public const string X509Data = "X509Data";
  38. public const string X509IssuerSerial = "X509IssuerSerial";
  39. public const string X509IssuerName = "X509IssuerName";
  40. public const string X509SerialNumber = "X509SerialNumber";
  41. public const string X509SKI = "X509SKI";
  42. public const string X509SubjectName = "X509SubjectName";
  43. public const string X509Certificate = "X509Certificate";
  44. public const string X509CRL = "X509CRL";
  45. public ElementNames () {}
  46. }
  47. public class AttributeNames {
  48. public const string Algorithm = "Algorithm";
  49. public const string Encoding = "Encoding";
  50. public const string Id = "Id";
  51. public const string MimeType = "MimeType";
  52. public const string Type = "Type";
  53. public const string URI = "URI";
  54. public AttributeNames () {}
  55. }
  56. public class AlgorithmNamespaces {
  57. public const string XmlDsigBase64Transform = "http://www.w3.org/2000/09/xmldsig#base64";
  58. public const string XmlDsigC14NTransform = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315";
  59. public const string XmlDsigC14NWithCommentsTransform = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments";
  60. public const string XmlDsigEnvelopedSignatureTransform = "http://www.w3.org/2000/09/xmldsig#enveloped-signature";
  61. public const string XmlDsigXPathTransform = "http://www.w3.org/TR/1999/REC-xpath-19991116";
  62. public const string XmlDsigXsltTransform = "http://www.w3.org/TR/1999/REC-xslt-19991116";
  63. }
  64. public const string NamespaceURI = "http://www.w3.org/2000/09/xmldsig#";
  65. public const string Prefix = "ds";
  66. public XmlSignature () {}
  67. }
  68. }