1 //-----------------------------------------------------------------------
2 // <copyright file="XmlSignatureConstants.cs" company="Microsoft">
3 //     Copyright (c) Microsoft Corporation.  All rights reserved.
4 // </copyright>
5 //-----------------------------------------------------------------------
6 
7 namespace System.IdentityModel
8 {
9     /// <summary>
10     /// Constants for XML Signature
11     /// Only constants that are absent in S.IM
12     /// Definitions for namespace, attributes and elements as defined in http://www.w3.org/TR/xmldsig-core/
13     /// </summary>
14     internal static class XmlSignatureConstants
15     {
16 #pragma warning disable 1591
17         public const string Namespace = "http://www.w3.org/2000/09/xmldsig#";
18         public const string Prefix    = "ds";
19 
20         public static class Algorithms
21         {
22             // Canonicalization.
23             public const string ExcC14N = "http://www.w3.org/2001/10/xml-exc-c14n#";
24             public const string ExcC14NWithComments = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
25             // Message Digest
26             public const string Sha1 = Namespace + "sha1";
27             // Enveloped Signature.
28             public const string EnvelopedSignature = Namespace + "enveloped-signature";
29         }
30 
31         public static class Attributes
32         {
33             public const string Algorithm = "Algorithm";
34             public const string Id = "Id";
35             public const string Type = "Type";
36             public const string URI = "URI";
37         }
38 
39         public static class Elements
40         {
41             public const string CanonicalizationMethod = "CanonicalizationMethod";
42             public const string DigestMethod = "DigestMethod";
43             public const string DigestValue = "DigestValue";
44             public const string Exponent = "Exponent";
45             public const string KeyInfo = "KeyInfo";
46             public const string KeyName = "KeyName";
47             public const string KeyValue = "KeyValue";
48             public const string Modulus = "Modulus";
49             public const string Object = "Object";
50             public const string Reference = "Reference";
51             public const string RetrievalMethod = "RetrievalMethod";
52             public const string RsaKeyValue = "RsaKeyValue";
53             public const string Signature = "Signature";
54             public const string SignatureMethod = "SignatureMethod";
55             public const string SignatureValue = "SignatureValue";
56             public const string SignedInfo = "SignedInfo";
57             public const string Transform = "Transform";
58             public const string Transforms = "Transforms";
59             public const string X509Data = "X509Data";
60             public const string X509IssuerName = "X509IssuerName";
61             public const string X509IssuerSerial = "X509IssuerSerial";
62             public const string X509SerialNumber = "X509SerialNumber";
63             public const string X509SubjectName = "X509SubjectName";
64             public const string X509Certificate = "X509Certificate";
65             public const string X509SKI = "X509SKI";
66         }
67 #pragma warning restore 1591
68     }
69 }
70