nsIAuthPromptCallback
| IID: | bdc387d7-2d29-4cac-92f1-dd75d786631d |
| Inherits From: | nsISupports |
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
void onAuthAvailable ( nsISupports context , nsIAuthInformation authInfo )
void onAuthCancelled ( nsISupports context , PRBool userCancel )
void onAuthAvailable ( nsISupports context , nsIAuthInformation authInfo )
Authentication information is available.
- Arguments:
- context: The context as passed to promptPasswordAsync
- authInfo: Authentication information. Must be the same object that was passed to promptPasswordAsync.
void onAuthCancelled ( nsISupports context , PRBool userCancel )
Notification that the prompt was cancelled.
- Arguments:
- context: 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.
References
This interface is passed as an argument to the following methods:
nsIAuthPrompt2.asyncPromptAuth, nsIPromptService2.asyncPromptAuth
Reference documentation is generated from Mozilla's source.
