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('*'));
 }