File: XmlSignatureConstants.cs

package info (click to toggle)
mono 6.14.1%2Bds2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,282,732 kB
  • sloc: cs: 11,182,461; xml: 2,850,281; ansic: 699,123; cpp: 122,919; perl: 58,604; javascript: 30,841; asm: 21,845; makefile: 19,602; sh: 10,973; python: 4,772; pascal: 925; sql: 859; sed: 16; php: 1
file content (69 lines) | stat: -rw-r--r-- 3,150 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//-----------------------------------------------------------------------
// <copyright file="XmlSignatureConstants.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

namespace System.IdentityModel
{
    /// <summary>
    /// Constants for XML Signature
    /// Only constants that are absent in S.IM
    /// Definitions for namespace, attributes and elements as defined in http://www.w3.org/TR/xmldsig-core/
    /// </summary>
    internal static class XmlSignatureConstants
    {
#pragma warning disable 1591
        public const string Namespace = "http://www.w3.org/2000/09/xmldsig#";
        public const string Prefix    = "ds";

        public static class Algorithms
        {
            // Canonicalization.
            public const string ExcC14N = "http://www.w3.org/2001/10/xml-exc-c14n#";
            public const string ExcC14NWithComments = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments";
            // Message Digest
            public const string Sha1 = Namespace + "sha1";
            // Enveloped Signature.
            public const string EnvelopedSignature = Namespace + "enveloped-signature";
        }

        public static class Attributes
        {
            public const string Algorithm = "Algorithm";
            public const string Id = "Id";
            public const string Type = "Type";
            public const string URI = "URI";
        }

        public static class Elements
        {
            public const string CanonicalizationMethod = "CanonicalizationMethod";
            public const string DigestMethod = "DigestMethod";
            public const string DigestValue = "DigestValue";
            public const string Exponent = "Exponent";
            public const string KeyInfo = "KeyInfo";
            public const string KeyName = "KeyName";
            public const string KeyValue = "KeyValue";
            public const string Modulus = "Modulus";
            public const string Object = "Object";
            public const string Reference = "Reference";
            public const string RetrievalMethod = "RetrievalMethod";
            public const string RsaKeyValue = "RsaKeyValue";
            public const string Signature = "Signature";
            public const string SignatureMethod = "SignatureMethod";
            public const string SignatureValue = "SignatureValue";
            public const string SignedInfo = "SignedInfo";
            public const string Transform = "Transform";
            public const string Transforms = "Transforms";
            public const string X509Data = "X509Data";
            public const string X509IssuerName = "X509IssuerName";
            public const string X509IssuerSerial = "X509IssuerSerial";
            public const string X509SerialNumber = "X509SerialNumber";
            public const string X509SubjectName = "X509SubjectName";
            public const string X509Certificate = "X509Certificate";
            public const string X509SKI = "X509SKI";
        }
#pragma warning restore 1591
    }
}