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()); } } }
public string ReadPassword(int maxLength) { return(ChoConsole.ReadPassword(maxLength)); }
public string ReadPassword(char maskChar, int maxLength) { return(ChoConsole.ReadPassword(maskChar, maxLength)); }
public string ReadPassword() { return(ChoConsole.ReadPassword('*')); }