public bool PromptAuth(nsIDOMWindow aParent, nsIChannel aChannel, uint level, nsIAuthInformation authInfo, string checkboxLabel, ref System.Boolean aCheckValue)
{
string userName = nsString.Get(authInfo.GetUsernameAttribute);
string password = nsString.Get(authInfo.GetPasswordAttribute);
string realm = nsString.Get(authInfo.GetRealmAttribute);
if (PromptUsernameAndPassword(aParent, "Server Authentication", "The server '" + realm + "' requires a user name and password.", ref userName, ref password, checkboxLabel, ref aCheckValue))
{
nsString.Set(authInfo.SetUsernameAttribute, userName);
nsString.Set(authInfo.SetPasswordAttribute, password);
return true;
}
return false;
}