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

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 PingOneSDKError otherwise.


@Deprecated(since = "2.0.0")
public static String generateMobilePayload(Context context)

Deprecated

Since version 2.0.0

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.

Return

The mobile payload string.

@Deprecated please use generateMobilePayload

Parameters

context

The context of the calling application.