153 references to SecUtility
System.Web (153)
Management\SqlWebEventProvider.cs (1)
89
SecUtility
.CheckSchemaVersion( this, connection, features, version, ref _SchemaVersionCheck );
Profile\ProfileManager.cs (7)
47
SecUtility
.CheckParameter( ref username, true, true, true, 0, "username" );
71
SecUtility
.CheckParameter(ref username, true, true, true, 0, "UserName");
81
SecUtility
.CheckArrayParameter( ref usernames,
168
SecUtility
.CheckParameter( ref usernameToMatch,
198
SecUtility
.CheckParameter( ref usernameToMatch,
216
SecUtility
.CheckParameter( ref usernameToMatch,
247
SecUtility
.CheckParameter( ref usernameToMatch,
Profile\SqlProfileProvider.cs (7)
57
_sqlConnectionString =
SecUtility
.GetConnectionString(config);
61
_AppName =
SecUtility
.GetDefaultAppName();
68
_CommandTimeout =
SecUtility
.GetIntValue( config, "commandTimeout", 30, true, 0 );
87
SecUtility
.CheckSchemaVersion( this,
300
SecUtility
.CheckArrayParameter( ref usernames,
464
SecUtility
.CheckParameter(ref usernameToMatch, true, true, false, 256, "username");
474
SecUtility
.CheckParameter(ref usernameToMatch, true, true, false, 256, "username");
Security\ADMembershipProvider.cs (25)
333
appName =
SecUtility
.GetDefaultAppName();
379
int clientSearchTimeout =
SecUtility
.GetIntValue(config, "clientSearchTimeout", -1, false, 0);
380
int serverSearchTimeout =
SecUtility
.GetIntValue(config, "serverSearchTimeout", -1, false, 0);
381
TimeUnit timeoutUnit =
SecUtility
.GetTimeoutUnit(config, "timeoutUnit", TimeUnit.Minutes);
382
passwordStrengthRegexTimeout =
SecUtility
.GetNullableIntValue(config, "passwordStrengthRegexTimeout");
384
enableSearchMethods =
SecUtility
.GetBooleanValue(config, "enableSearchMethods", false);
385
requiresUniqueEmail =
SecUtility
.GetBooleanValue(config, "requiresUniqueEmail", false);
386
enablePasswordReset =
SecUtility
.GetBooleanValue(config, "enablePasswordReset", false);
387
requiresQuestionAndAnswer =
SecUtility
.GetBooleanValue(config, "requiresQuestionAndAnswer", false);
388
minRequiredPasswordLength =
SecUtility
.GetIntValue( config, "minRequiredPasswordLength", 7, false, 128 );
389
minRequiredNonalphanumericCharacters =
SecUtility
.GetIntValue( config, "minRequiredNonalphanumericCharacters", 1, true, 128 );
508
maxInvalidPasswordAttempts =
SecUtility
.GetIntValue(config, "maxInvalidPasswordAttempts", 5, false, 0);
509
passwordAttemptWindow =
SecUtility
.GetIntValue(config, "passwordAttemptWindow", 10, false, 0);
510
passwordAnswerAttemptLockoutDuration =
SecUtility
.GetIntValue(config, "passwordAnswerAttemptLockoutDuration", 30, false, 0);
664
if(!
SecUtility
.ValidateParameter(ref username, true, true, true, maxUsernameLengthForCreation))
685
if(!
SecUtility
.ValidateParameter(ref email, RequiresUniqueEmail, true, false, maxEmailLength))
691
if(!
SecUtility
.ValidateParameter(ref passwordQuestion, RequiresQuestionAndAnswer, true, false, maxPasswordQuestionLength))
698
if(!
SecUtility
.ValidateParameter(ref passwordAnswer, RequiresQuestionAndAnswer, true, false, maxPasswordAnswerLength))
1032
SecUtility
.CheckParameter(
1625
SecUtility
.CheckParameter( ref email, RequiresUniqueEmail, RequiresUniqueEmail, false, maxEmailLength, "Email");
1775
if(!
SecUtility
.ValidateParameter(ref username, true, true, true, maxUsernameLength))
2006
SecUtility
.CheckParameter(ref email, false, true, false, maxEmailLength, "email");
2188
SecUtility
.CheckParameter( ref usernameToMatch, true, true, true, maxUsernameLength, "usernameToMatch" );
2236
SecUtility
.CheckParameter(ref emailToMatch, false, true, false, maxEmailLength, "emailToMatch");
2605
SecUtility
.CheckParameter( ref username, true, true, true, maxSize, paramName );
Security\AuthStoreRoleProvider.cs (13)
89
_CacheRefreshInterval =
SecUtility
.GetIntValue( config, "cacheRefreshInterval", 60, false, 0 );
110
_AppName =
SecUtility
.GetDefaultAppName();
135
SecUtility
.CheckParameter(ref username, true, false, true, 0, "username");
138
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
149
SecUtility
.CheckParameter(ref username, true, false, true, 0, "username");
164
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
195
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
232
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
260
SecUtility
.CheckArrayParameter(ref roleNames,
267
SecUtility
.CheckArrayParameter( ref usernames,
315
SecUtility
.CheckArrayParameter(ref roleNames,
322
SecUtility
.CheckArrayParameter( ref userNames,
369
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
Security\Membership.cs (13)
140
if( !
SecUtility
.ValidateParameter(ref username, true, true, true, 0))
146
if( !
SecUtility
.ValidatePasswordParameter(ref password, 0))
153
if( !
SecUtility
.ValidateParameter( ref email, false, false, false, 0))
159
if( !
SecUtility
.ValidateParameter(ref passwordQuestion, false, true, false, 0))
165
if( !
SecUtility
.ValidateParameter(ref passwordAnswer, false, true, false, 0))
213
SecUtility
.CheckParameter( ref username, true, false, true, 0, "username" );
237
SecUtility
.CheckParameter( ref emailToMatch,
250
SecUtility
.CheckParameter( ref username, true, true, true, 0, "username" );
257
SecUtility
.CheckParameter( ref username, true, true, true, 0, "username" );
507
SecUtility
.CheckParameter( ref usernameToMatch,
533
SecUtility
.CheckParameter( ref usernameToMatch,
552
SecUtility
.CheckParameter( ref emailToMatch,
577
SecUtility
.CheckParameter( ref emailToMatch,
Security\Roles.cs (25)
103
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
104
SecUtility
.CheckParameter(ref username, true, false, true, 0, "username");
139
SecUtility
.CheckParameter(ref username, true, false, true, 0, "username");
178
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
185
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
192
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
214
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
222
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
223
SecUtility
.CheckParameter(ref username, true, true, true, 0, "username");
238
SecUtility
.CheckParameter(ref username, true, true, true, 0, "username");
240
SecUtility
.CheckArrayParameter( ref roleNames,
261
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
263
SecUtility
.CheckArrayParameter( ref usernames,
289
SecUtility
.CheckArrayParameter( ref roleNames,
296
SecUtility
.CheckArrayParameter( ref usernames,
321
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
322
SecUtility
.CheckParameter(ref username, true, true, true, 0, "username");
337
SecUtility
.CheckParameter(ref username, true, true, true, 0, "username");
339
SecUtility
.CheckArrayParameter( ref roleNames,
360
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
362
SecUtility
.CheckArrayParameter( ref usernames,
388
SecUtility
.CheckArrayParameter( ref roleNames,
395
SecUtility
.CheckArrayParameter( ref usernames,
449
SecUtility
.CheckParameter(ref roleName, true, true, true, 0, "roleName");
451
SecUtility
.CheckParameter( ref usernameToMatch,
Security\SQLMembershipProvider.cs (40)
120
_EnablePasswordRetrieval =
SecUtility
.GetBooleanValue(config, "enablePasswordRetrieval", false);
121
_EnablePasswordReset =
SecUtility
.GetBooleanValue(config, "enablePasswordReset", true);
122
_RequiresQuestionAndAnswer =
SecUtility
.GetBooleanValue(config, "requiresQuestionAndAnswer", true);
123
_RequiresUniqueEmail =
SecUtility
.GetBooleanValue(config, "requiresUniqueEmail", true);
124
_MaxInvalidPasswordAttempts =
SecUtility
.GetIntValue( config, "maxInvalidPasswordAttempts", 5, false, 0 );
125
_PasswordAttemptWindow =
SecUtility
.GetIntValue( config, "passwordAttemptWindow", 10, false, 0 );
126
_MinRequiredPasswordLength =
SecUtility
.GetIntValue( config, "minRequiredPasswordLength", 7, false, 128 );
127
_MinRequiredNonalphanumericCharacters =
SecUtility
.GetIntValue( config, "minRequiredNonalphanumericCharacters", 1, true, 128 );
128
_passwordStrengthRegexTimeout =
SecUtility
.GetNullableIntValue(config, "passwordStrengthRegexTimeout");
153
_CommandTimeout =
SecUtility
.GetIntValue( config, "commandTimeout", 30, true, 0 );
156
_AppName =
SecUtility
.GetDefaultAppName();
187
_sqlConnectionString =
SecUtility
.GetConnectionString(config);
221
SecUtility
.CheckSchemaVersion( this,
246
if( !
SecUtility
.ValidateParameter(ref password, true, true, false, 128))
276
if (!
SecUtility
.ValidateParameter(ref encodedPasswordAnswer, RequiresQuestionAndAnswer, true, false, 128))
282
if( !
SecUtility
.ValidateParameter( ref username,true, true, true, 256))
288
if( !
SecUtility
.ValidateParameter( ref email,
298
if( !
SecUtility
.ValidateParameter( ref passwordQuestion, RequiresQuestionAndAnswer, true, false, 256))
435
SecUtility
.CheckParameter( ref username, true, true, true, 256, "username" );
436
SecUtility
.CheckParameter( ref password, true, true, false, 128, "password" );
442
SecUtility
.CheckParameter(ref newPasswordQuestion, RequiresQuestionAndAnswer, RequiresQuestionAndAnswer, false, 256, "newPasswordQuestion");
450
SecUtility
.CheckParameter(ref newPasswordAnswer, RequiresQuestionAndAnswer, RequiresQuestionAndAnswer, false, 128, "newPasswordAnswer");
456
SecUtility
.CheckParameter(ref encodedPasswordAnswer, RequiresQuestionAndAnswer, RequiresQuestionAndAnswer, false, 128, "newPasswordAnswer");
510
SecUtility
.CheckParameter( ref username, true, true, true, 256, "username" );
513
SecUtility
.CheckParameter(ref encodedPasswordAnswer, RequiresQuestionAndAnswer, RequiresQuestionAndAnswer, false, 128, "passwordAnswer");
543
SecUtility
.CheckParameter( ref username, true, true, true, 256, "username" );
544
SecUtility
.CheckParameter( ref oldPassword, true, true, false, 128, "oldPassword" );
545
SecUtility
.CheckParameter( ref newPassword, true, true, false, 128, "newPassword" );
680
SecUtility
.CheckParameter( ref username, true, true, true, 256, "username" );
714
SecUtility
.CheckParameter(ref encodedPasswordAnswer, RequiresQuestionAndAnswer, RequiresQuestionAndAnswer, false, 128, "passwordAnswer");
806
SecUtility
.CheckParameter( ref temp, true, true, true, 256, "UserName" );
808
SecUtility
.CheckParameter( ref temp,
863
if (
SecUtility
.ValidateParameter(ref username, true, true, true, 256) &&
864
SecUtility
.ValidateParameter(ref password, true, true, false, 128) &&
879
SecUtility
.CheckParameter(ref username, true, true, true, 256, "username" );
1010
SecUtility
.CheckParameter(
1100
SecUtility
.CheckParameter(
1164
SecUtility
.CheckParameter( ref username, true, true, true, 256, "username" );
1350
SecUtility
.CheckParameter(ref usernameToMatch, true, true, false, 256, "usernameToMatch");
1449
SecUtility
.CheckParameter(ref emailToMatch, false, false, false, 256, "emailToMatch");
Security\SQLRoleProvider.cs (17)
60
_CommandTimeout =
SecUtility
.GetIntValue( config, "commandTimeout", 30, true, 0 );
62
_sqlConnectionString =
SecUtility
.GetConnectionString(config);
66
_AppName =
SecUtility
.GetDefaultAppName();
90
SecUtility
.CheckSchemaVersion( this,
103
SecUtility
.CheckParameter(ref roleName, true, true, true, 256, "roleName");
104
SecUtility
.CheckParameter(ref username, true, false, true, 256, "username");
162
SecUtility
.CheckParameter(ref username, true, false, true, 256, "username");
237
SecUtility
.CheckParameter(ref roleName, true, true, true, 256, "roleName");
289
SecUtility
.CheckParameter(ref roleName, true, true, true, 256, "roleName");
339
SecUtility
.CheckParameter( ref roleName, true, true, true, 256, "roleName" );
391
SecUtility
.CheckArrayParameter(ref roleNames, true, true, true, 256, "roleNames");
392
SecUtility
.CheckArrayParameter(ref usernames, true, true, true, 256, "usernames");
509
SecUtility
.CheckArrayParameter(ref roleNames, true, true, true, 256, "roleNames");
510
SecUtility
.CheckArrayParameter(ref usernames, true, true, true, 256, "usernames");
620
SecUtility
.CheckParameter(ref roleName, true, true, true, 256, "roleName");
747
SecUtility
.CheckParameter(ref roleName, true, true, true, 256, "roleName");
748
SecUtility
.CheckParameter(ref usernameToMatch, true, true, false, 256, "usernameToMatch");
Security\WindowsTokenRoleProvider.cs (1)
56
_AppName =
SecUtility
.GetDefaultAppName();
UI\WebParts\SqlPersonalizationProvider.cs (3)
49
_applicationName =
SecUtility
.GetDefaultAppName();
480
_commandTimeout =
SecUtility
.GetIntValue(configSettings, "commandTimeout", -1, true, 0);
494
SecUtility
.CheckSchemaVersion( this,
Util\SecUtil.cs (1)
161
SecUtility
.CheckParameter(ref param[i], checkForNull, checkIfEmpty, checkForCommas, maxSize,