Package org.mozilla.geckoview
Class GeckoSession.PromptDelegate.CertificateRequest
Object
org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
org.mozilla.geckoview.GeckoSession.PromptDelegate.CertificateRequest
- Enclosing interface:
- GeckoSession.PromptDelegate
public static class GeckoSession.PromptDelegate.CertificateRequest
extends GeckoSession.PromptDelegate.BasePrompt
CertificateRequest represents a request for a client authentication certificate.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
GeckoSession.PromptDelegate.BasePrompt.Observer -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe host requesting the certificate.final Principal[]The X.500 Distinguished Names the server specified as acceptable issuers.Fields inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
title -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCertificateRequest(String id, GeckoSession.PromptDelegate.BasePrompt.Observer observer, String host, Principal[] issuers) Constructor for CertificateRequest containing host and issuer details. -
Method Summary
Modifier and TypeMethodDescriptionComplete the request by responding with the alias of the selected certificate (or null if none was selected).Methods inherited from class org.mozilla.geckoview.GeckoSession.PromptDelegate.BasePrompt
confirm, dismiss, getDelegate, isComplete, setDelegate
-
Field Details
-
host
The host requesting the certificate. -
issuers
The X.500 Distinguished Names the server specified as acceptable issuers.
-
-
Constructor Details
-
CertificateRequest
protected CertificateRequest(@NonNull String id, GeckoSession.PromptDelegate.BasePrompt.Observer observer, String host, Principal[] issuers) Constructor for CertificateRequest containing host and issuer details.- Parameters:
id- the unique identifier for this promptobserver- the observer to notify when the prompt is completedhost- the host requesting the client certificateissuers- the acceptable certificate issuers as distinguished names (may be null)
-
-
Method Details
-
confirm
@UiThread @NonNull public GeckoSession.PromptDelegate.PromptResponse confirm(@Nullable String alias) Complete the request by responding with the alias of the selected certificate (or null if none was selected).- Parameters:
alias- The alias of the certificate selected (may be null).- Returns:
- A
GeckoSession.PromptDelegate.PromptResponsewhich can be used to complete theGeckoResultassociated with this prompt.
-