public static Builder initWithNewConfigFor(final String verificationCode)
The initWithNewConfig
method initializes IdvService.Builder using the 12-digit code generated by the ID Verification service to create an IdvService
object.
public static Builder initWithNewConfigFromQr(final String qrUrl)
The initWithNewConfigFromQr
method initializes IdvService.Builder using the content scanned from the QR code generated by the ID Verification service to create an IdvService
object.
public static Builder initWithSavedConfig()
The initWithSavedConfig
method loads saved transaction information from secure storage on the user’s device and creates an IdvService
object using the same configuration.
public Builder setApplicationId(final String applicationId)
The setApplicationId
method sets the PingOne application ID that will be shared with the ID Verification service to send a push notification to your app.
public Builder setNotificationHandler(final NotificationHandler handler)
Use this method to register a NotificationHandler.
public Builder setPushNotificationToken(final String pushToken)
The setPushNotificationToken
method sets the push notification token that will be shared with the ID Verfication service to send a push notification to your app.
public void create(final Fragment fragment, final Consumer<IdvService> resultHandler, final Consumer<Throwable> errorHandler)
The create
method must be called on a background thread, because it also initializes the secure encrypted storage using the keys in the keychain. This method does the following:
Creates a new Entity ID.
Initializes encrypted shared preferences after authenticating using user’s biometrics/device passcode.
Updates the app JWKs with the Id Verification service.
Returns the initialized IdvService
in the resultHandler
.
Returns an error when: