Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.AuthPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.AuthPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.AuthPrompt
extends GeckoSession.PromptDelegate.BasePrompt
AuthPrompt contains the information necessary to represent an HTML authorization prompt
generated by content.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer
-
Field Summary
Modifier and TypeFieldDescriptionTheGeckoSession.PromptDelegate.AuthPrompt.AuthOptions
that describe the type of authorization prompt.final String
The message to be displayed with this prompt; may be null.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title
-
Constructor Summary
ModifierConstructorDescriptionprotected
AuthPrompt
(String id, String title, String message, GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions, GeckoSession.PromptDelegate.BasePrompt.Observer observer) -
Method Summary
Modifier and TypeMethodDescriptionConfirms this prompt with just a password, returning the password to content.Confirms this prompt with a username and password, returning both to content.Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
message
The message to be displayed with this prompt; may be null. -
authOptions
TheGeckoSession.PromptDelegate.AuthPrompt.AuthOptions
that describe the type of authorization prompt.
-
-
Constructor Details
-
AuthPrompt
protected AuthPrompt(@NonNull String id, @Nullable String title, @Nullable String message, @NonNull GeckoSession.PromptDelegate.AuthPrompt.AuthOptions authOptions, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer)
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String password) Confirms this prompt with just a password, returning the password to content.- Parameters:
password
- A String containing the password input by the user.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@NonNull String username, @NonNull String password) Confirms this prompt with a username and password, returning both to content.- Parameters:
username
- A String containing the username input by the user.password
- A String containing the password input by the user.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponse
which can be used to complete theGeckoResult
associated with this prompt.
-