generateMobilePayload

Generates a payload string for any communication needed between the customer mobile app and the PingOne server.

The PingOne Native SDK returns a native payload to the customer native application. The payload is a small data package created by the PingOne Native SDK component, which is used as part of the device's authorization.

Sample usage:

PingOne.generateMobilePayload(context, new PingOneGenerateMobilePayloadCallback() {
    @Override
    public void onComplete(onComplete(@Nullable String payload, @Nullable PingOneSDKError error) {
        if (payload != null){
             //pass the payload further as a param of the OIDC request
        }
    }
});

Parameters

context

The context of the calling application.

callback

{@link PingOneGenerateMobilePayloadCallback} is triggered upon completion of the flow. The method will return the mobile payload as a JWT string if the process completes successfully or {@link PingOneSDKError} otherwise.