2 // System.Web.Configuration.MachineKeyConfig
5 // Gonzalo Paniagua Javier (gonzalo@ximian.com)
7 // (C) 2002 Ximian, Inc (http://www.ximian.com)
11 using System.Collections;
12 using System.Configuration;
15 namespace System.Web.Configuration
17 class MachineKeyConfig
19 static MachineKeyConfig machineKey;
20 byte [] validationKey;
21 byte [] decryptionKey;
22 string validationType;
24 internal MachineKeyConfig (object parent)
26 if (parent is MachineKeyConfig) {
27 MachineKeyConfig p = (MachineKeyConfig) parent;
28 validationKey = p.validationKey;
29 decryptionKey = p.decryptionKey;
30 validationType = p.validationType;
34 internal byte [] ValidationKey {
35 get { return validationKey; }
36 set { validationKey = value; }
39 internal byte [] DecryptionKey {
40 get { return decryptionKey; }
41 set { decryptionKey = value; }
44 internal string ValidationType {
46 if (validationType == null)
47 validationType = "SHA1";
49 return validationType;
55 validationType = value;
59 internal static MachineKeyConfig MachineKey {
60 get { return machineKey; }
61 set { machineKey = value; }