目录

CLASS info
public static class BioAuthnPrompt.PromptInfo.Builder extends java.lang.Object
Represents a constructor for generating the BioAuthnPrompt.PromptInfo object.

Public Constructor Summary

Method name
BioAuthnPrompt.PromptInfo.Builder()

Public Method Summary

Return typeMethod name
BioAuthnPrompt.PromptInfo

build()

Creates BioAuthnPrompt.PromptInfo.

BioAuthnPrompt.PromptInfo.Builder

setConfirmationRequired(boolean requireConfirmation)(Optional) 

Prompts the system to ask the user to confirm the fingerprint authentication result.

BioAuthnPrompt.PromptInfo.Builder

setDescription(java.lang.CharSequence description)(Optional) 

Sets the description in the fingerprint authentication pop-up.

BioAuthnPrompt.PromptInfo.Builder

setDeviceCredentialAllowed(boolean enable)(Mandatory) 

Prompts the user to provide the fingerprint for authentication and allows the user to use the device PIN and password for authentication.Note that if the value is set to true, Builder.setNegativeButtonText(CharSequence) cannot be set and BioAuthnPrompt.auth(BioAuthnPrompt.PromptInfo, CryptoObject) cannot be used.

BioAuthnPrompt.PromptInfo.Builder

setNegativeButtonText(java.lang.CharSequence text)(Mandatory) 

Sets the authentication cancellation button text.Note that Builder.setDeviceCredentialAllowed(boolean enable) should not be set to true if this is set.

BioAuthnPrompt.PromptInfo.Builder

setSubtitle(java.lang.CharSequence subtitle)(Optional) 

Sets the subtitle of the fingerprint authentication pop-up.

BioAuthnPrompt.PromptInfo.Builder

setTitle(java.lang.CharSequence title)(Mandatory) 

Sets the title of the fingerprint authentication pop-up.

Public Constructors

Method
public BioAuthnPrompt.PromptInfo.Builder ()

Public Methods

Method
public BioAuthnPrompt.PromptInfo build ()
Creates BioAuthnPrompt.PromptInfo.

Return

typedesc
BioAuthnPrompt.PromptInfo
Method
public BioAuthnPrompt.PromptInfo.Builder setConfirmationRequired (boolean requireConfirmation)
(Optional) Prompts the system to ask the user to confirm the fingerprint authentication result.

Parameters

Parameter nameParameter desc
requireConfirmationboolean


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder
Method
public BioAuthnPrompt.PromptInfo.Builder setDescription (java.lang.CharSequence description)
(Optional) Sets the description in the fingerprint authentication pop-up.

Parameters

Parameter nameParameter desc
descriptionjava.lang.CharSequence


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder
Method
public BioAuthnPrompt.PromptInfo.Builder setDeviceCredentialAllowed (boolean enable)
(Mandatory) Prompts the user to provide the fingerprint for authentication and allows the user to use the device PIN and password for authentication.Note that if the value is set to true, Builder.setNegativeButtonText(CharSequence) cannot be set and BioAuthnPrompt.auth(BioAuthnPrompt.PromptInfo, CryptoObject) cannot be used.

Parameters

Parameter nameParameter desc
enableData type: Boolean. The value true indicates that the user is allowed to use device credentials (PIN, pattern, or password).


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder
Method
public BioAuthnPrompt.PromptInfo.Builder setNegativeButtonText (java.lang.CharSequence text)
(Mandatory) Sets the authentication cancellation button text. Note that Builder.setDeviceCredentialAllowed(boolean enable) should not be set to true if this is set.

Parameters

Parameter nameParameter desc
textjava.lang.CharSequence


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder
Method
public BioAuthnPrompt.PromptInfo.Builder setSubtitle (java.lang.CharSequence subtitle)
(Optional) Sets the subtitle of the fingerprint authentication pop-up.

Parameters

Parameter nameParameter desc
subtitlejava.lang.CharSequence


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder
Method
public BioAuthnPrompt.PromptInfo.Builder setTitle (java.lang.CharSequence title)
(Mandatory) Sets the title of the fingerprint authentication pop-up.

Parameters

Parameter nameParameter desc
titlejava.lang.CharSequence


Return

typedesc
BioAuthnPrompt.PromptInfo.Builder