internal string GetPassword()
 {
     if (this.Account == ServiceAccount.NetworkService)
     {
         return(String.Empty);
     }
     else if (this.Account == ServiceAccount.LocalSystem)
     {
         return(String.Empty);
     }
     else if (this.Account == ServiceAccount.LocalService)
     {
         return(String.Empty);
     }
     else
     {
         if (!UserName.IsNullOrWhiteSpace())
         {
             return(Password);
         }
         else
         {
             ChoConsole.Write("Enter Password: ");
             return(ChoConsole.ReadPassword());
         }
     }
 }
示例#2
0
 public string ReadPassword(int maxLength)
 {
     return(ChoConsole.ReadPassword(maxLength));
 }
示例#3
0
 public string ReadPassword(char maskChar, int maxLength)
 {
     return(ChoConsole.ReadPassword(maskChar, maxLength));
 }
示例#4
0
 public string ReadPassword()
 {
     return(ChoConsole.ReadPassword('*'));
 }