approve

public void approve(Context context, String authenticationMethod, Integer numberMatchingPickedValue, PingOne.PingOneMobileConfirmationCallback callback)

Approves the current mobile push authentication request.

This method should be invoked after the user approves the push notification on their device (for example, using fingerprint, face recognition, or number matching). It reports the authentication result back to the PingOne platform.

The authenticationMethod parameter identifies the method used to authenticate the user, as defined in RFC 8176 — Authentication Method Reference (AMR). Examples include:

  • fpt — Fingerprint
  • face — Facial recognition
  • otp — One-time passcode

Parameters

context

the application Context.

authenticationMethod

the authentication method used on the device.

numberMatchingPickedValue

the number selected by the user during number matching, or null if number matching was not used.

callback

the PingOne.PingOneMobileConfirmationCallback to receive completion results or errors from the approval process.


public void approve(Context context, String authenticationMethod, @Nullable() Integer numberMatchingPickedValue, PingOne.PingOneSDKCallback callback)

Deprecated

Use approve instead.

Approves a mobile push authentication request.

This method should be called after the user confirms the push notification on their device (for example, by approving via fingerprint, face recognition, or number matching). It reports the authentication result to the PingOne platform.

The authenticationMethod parameter should specify the method used to authenticate the user on the device, as defined in RFC 8176 — Authentication Method Reference (AMR).

Parameters

context

the application Context.

authenticationMethod

the authentication method used by the user, for example: "fpt" for fingerprint, "face" for facial recognition, "otp" for one-time passcode, etc.

numberMatchingPickedValue

the number selected by the user during number matching, or null if number matching was not used.

callback

the PingOne.PingOneSDKCallback that will be invoked upon completion of the approval process, providing either success information or an error.