nsIAuthPromptCallback

Interface for callback methods for the asynchronous nsIAuthPrompt2 method.
Callers MUST call exactly one method if nsIAuthPrompt2::promptPasswordAsync
returns successfully. They MUST NOT call any method on this interface before
promptPasswordAsync returns.

Methods

onAuthAvailable(aContext, aAuthInfo)

Authentication information is available.

@note Any exceptions thrown from this method should be ignored.

Parameters

aContext The context as passed to promptPasswordAsync
aAuthInfo Authentication information. Must be the same object that was passed to promptPasswordAsync.

onAuthCancelled(aContext, userCancel)

Notification that the prompt was cancelled.

Parameters

aContext The context that was passed to promptPasswordAsync.
userCancel If false, this prompt was cancelled by calling the the cancel method on the nsICancelable; otherwise, it was cancelled by the user.