33 references to MachineKeyValidation
System.Web (33)
Configuration\MachineKeySection.cs (11)
49
internal const
MachineKeyValidation
DefaultValidation =
MachineKeyValidation
.SHA1;
200
private
MachineKeyValidation
_cachedValidationEnum;
235
public
MachineKeyValidation
Validation {
813
if (s_config.Validation ==
MachineKeyValidation
.TripleDES || s_config.Validation ==
MachineKeyValidation
.AES) {
828
if (s_config.Validation ==
MachineKeyValidation
.TripleDES || s_config.Validation ==
MachineKeyValidation
.AES) {
852
if (s_config.Validation ==
MachineKeyValidation
.MD5)
907
case
MachineKeyValidation
.TripleDES:
914
case
MachineKeyValidation
.AES:
Configuration\MachineKeyValidationConverter.cs (19)
26
if (!(value is
MachineKeyValidation
)) {
29
return ConvertFromEnum((
MachineKeyValidation
)value);
37
internal static string ConvertFromEnum(
MachineKeyValidation
enumValue)
40
case
MachineKeyValidation
.SHA1:
42
case
MachineKeyValidation
.MD5:
44
case
MachineKeyValidation
.TripleDES:
46
case
MachineKeyValidation
.AES:
48
case
MachineKeyValidation
.HMACSHA256:
50
case
MachineKeyValidation
.HMACSHA384:
52
case
MachineKeyValidation
.HMACSHA512:
59
internal static
MachineKeyValidation
ConvertToEnum(string strValue)
67
return
MachineKeyValidation
.SHA1;
69
return
MachineKeyValidation
.MD5;
71
return
MachineKeyValidation
.TripleDES;
73
return
MachineKeyValidation
.AES;
75
return
MachineKeyValidation
.HMACSHA256;
77
return
MachineKeyValidation
.HMACSHA384;
79
return
MachineKeyValidation
.HMACSHA512;
82
return
MachineKeyValidation
.Custom;
Security\Membership.cs (3)
454
MachineKeyValidation
v = appConfig.MachineKey.Validation;
455
if (v !=
MachineKeyValidation
.AES && v !=
MachineKeyValidation
.TripleDES)