Linux Mac OSX Windows

Implemented by


  
[scriptable, uuid(bd9dc0fa-68ce-47d0-8859-6418c2ae8576)]
interface nsIAuthPromptProvider : nsISupports

Constants

 Normal (non-proxy) prompt request.
const PRUint32 PROMPT_NORMAL = 0
 Proxy auth request.
const PRUint32 PROMPT_PROXY = 1

Methods

 Request a prompt interface for the given prompt reason;
 @throws NS_ERROR_NOT_AVAILABLE if no prompt is allowed or
 available for the given reason.

 @param aPromptReason   The reason for the auth prompt;
                        one of #PROMPT_NORMAL or #PROMPT_PROXY
 @param iid             The desired interface, e.g.
                        NS_GET_IID(nsIAuthPrompt2).
 @returns an nsIAuthPrompt2 interface, or throws NS_ERROR_NOT_AVAILABLE
void getAuthPrompt(in PRUint32 aPromptReason, in nsIIDRef iid, [iid_is(iid), retval] out nsQIResult result)