private static void ClearKeyOptions(CommandLineArgs args, bool bOnlyIfOptionEnabled) { if (args == null) { Debug.Assert(false); return; } if (bOnlyIfOptionEnabled && !Program.Config.Security.ClearKeyCommandLineParams) { return; } args.Remove(AppDefs.CommandLineOptions.Password); args.Remove(AppDefs.CommandLineOptions.PasswordEncrypted); args.Remove(AppDefs.CommandLineOptions.KeyFile); args.Remove(AppDefs.CommandLineOptions.PreSelect); args.Remove(AppDefs.CommandLineOptions.UserAccount); }
private static void ClearKeyOptions(CommandLineArgs args, bool bOnlyIfOptionEnabled) { if(args == null) { Debug.Assert(false); return; } if(bOnlyIfOptionEnabled && !Program.Config.Security.ClearKeyCommandLineParams) return; args.Remove(AppDefs.CommandLineOptions.Password); args.Remove(AppDefs.CommandLineOptions.PasswordEncrypted); args.Remove(AppDefs.CommandLineOptions.PasswordStdIn); args.Remove(AppDefs.CommandLineOptions.KeyFile); args.Remove(AppDefs.CommandLineOptions.PreSelect); args.Remove(AppDefs.CommandLineOptions.UserAccount); }