getInfo

public final static Unit getInfo(Context context, PingOne.PingOneGetInfoCallback callback)

Get info.

Returns all the users that are paired to the device, per geographical server name. For each region the response includes a list of paired users (each with user id, first name, last name, and device id), a shouldRollback flag, and optional {@link com.pingidentity.pingidsdkv2.communication.models.DeviceRequirementsEvaluation} details at the region level when available.

Sample usage:

PingOne.getInfo(context, new PingOneGetInfoCallback() {
    @Override
    public void onComplete(@Nullable JsonObject publicJson, @Nullable PingOneSDKError error) {
        if (publicJson != null){
             //parse an array of the users paired to this device
        }
    }
});

An example of JsonObject returned in {@link PingOneGetInfoCallback}

{
"NA": {
    "deviceRequirementsEvaluation": {
      "status": "PASSED",
      "deviceRequirementsDataHash": ""
    },
    "shouldRollback": false,
    "users": [
      {
        "id": "",
        "name": {
          "given": "",
          "family": ""
        },
        "environment": {
          "id": ""
        },
        "device": {
          "id": ""
        }
      }
    ]
},
"EU": {
    "deviceRequirementsEvaluation": {
      "status": "PASSED",
      "deviceRequirementsDataHash": ""
    },
    "shouldRollback": false,
    "users": [
      {
        "id": "",
        "name": {
          "given": "",
          "family": ""
        },
        "environment": {
          "id": ""
        },
        "device": {
          "id": ""
        }
      }
    ]
}
}
    

Parameters

context

The context of the calling application.

callback

{@link PingOneGetInfoCallback} is triggered upon completion of the flow.