2 // XmlSignature.cs: Handles WS-Security XmlSignature
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
12 namespace Microsoft
.Web
.Services
.Security
{
14 public sealed class XmlSignature
{
16 public class ElementNames
{
18 // LAMESPEC: public const string BinarySecurityToken = "";
19 // LAMESPEC: public const string CipherData = "";
20 // LAMESPEC: public const string CipherValue = "";
21 // LAMESPEC: public const string DataReference = "";
22 // LAMESPEC: public const string EncryptedData = "";
23 // LAMESPEC: public const string EncryptedKey = "";
24 // LAMESPEC: public const string EncryptionMethod = "";
25 // LAMESPEC: public const string KeyIdentifier = "";
26 public const string KeyInfo
= "KeyInfo";
27 public const string KeyName
= "KeyName";
28 // LAMESPEC: public const string Nonce = "";
29 // LAMESPEC: public const string Password = "";
30 // LAMESPEC: public const string Reference = "";
31 // LAMESPEC: public const string ReferenceList = "";
32 // LAMESPEC: public const string Security = "";
33 // LAMESPEC: public const string SecurityTokenReference = "";
34 public const string Signature
= "Signature";
35 // LAMESPEC: public const string Username = "";
36 // LAMESPEC: public const string UsernameToken = "";
38 // to be compatible with Mono implementation of System.Security
39 internal const string CanonicalizationMethod
= "CanonicalizationMethod";
40 internal const string HMACOutputLength
= "HMACOutputLength";
41 internal const string Reference
= "Reference";
42 internal const string SignatureMethod
= "SignatureMethod";
43 internal const string SignedInfo
= "SignedInfo";
44 internal const string Transform
= "Transform";
45 internal const string Transforms
= "Transforms";
46 internal const string DigestMethod
= "DigestMethod";
47 internal const string DigestValue
= "DigestValue";
48 internal const string SignatureValue
= "SignatureValue";
49 internal const string Object
= "Object";
51 public ElementNames () {}
54 internal class AttributeNames
{
56 internal const string Algorithm
= "Algorithm";
57 internal const string Id
= "Id";
58 internal const string URI
= "URI";
59 internal const string Type
= "Type";
61 public AttributeNames () {}
64 public const string NamespaceURI
= "http://www.w3.org/2000/09/xmldsig#";
65 public const string Prefix
= "ds";
67 public XmlSignature () {}