Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.WebAuthnRelatedOriginPrompt
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.WebAuthnRelatedOriginPrompt
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.WebAuthnRelatedOriginPrompt
extends GeckoSession.PromptDelegate.BasePrompt
WebAuthnRelatedOriginPrompt is shown to confirm a WebAuthn related origin request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether this is a create (true) or use (false) request.final StringThe origin of the site making the request.final StringThe relying party ID for the passkey.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWebAuthnRelatedOriginPrompt(String id, String origin, String rpId, boolean isCreate, GeckoSession.PromptDelegate.BasePrompt.Observer observer) A constructor for WebAuthnRelatedOriginPrompt. -
Method Summary
Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
origin
The origin of the site making the request. -
rpId
The relying party ID for the passkey. -
isCreate
public final boolean isCreateWhether this is a create (true) or use (false) request.
-
-
Constructor Details
-
WebAuthnRelatedOriginPrompt
protected WebAuthnRelatedOriginPrompt(@NonNull String id, @Nullable String origin, @Nullable String rpId, boolean isCreate, @NonNull GeckoSession.PromptDelegate.BasePrompt.Observer observer) A constructor for WebAuthnRelatedOriginPrompt.- Parameters:
id- The identification for this prompt.origin- The origin of the site making the request.rpId- The relying party ID for the passkey.isCreate- Whether this is a create (true) or use (false) request.observer- A callback to notify when the prompt has been completed.
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@Nullable AllowOrDeny allowOrDeny) Confirms the prompt.- Parameters:
allowOrDeny- whether the user confirmed or denied the request.- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-