Previous Topic: API DetailsNext Topic: Exception


How a Provisioning Request Works

This section explains the sequence of events that take place when a provisioning request is sent to the server. Apply this information while using the provisionRequest() method and callback() method in your implementation.

The following events take place when a provisioning request is sent to the server:

  1. When the provisionRequest() method is invoked the first time, it sends the provisioning request to the server. This request contains the following parameters:
  2. The callback() method is invoked. The parameters returned by this method depend on what happens next:

    Note: The client application must free up the parameters map after each provisionRequest() call and the corresponding callback() call.

  3. The provisionRequest() method is invoked again. The parameters passed by this method depend on the state returned by the callback() method. For the PINREQUIRED state of the callback() method, the following are the parameters (with some sample values) sent by the provisionRequest() method. Note that the original set of parameters are included in the request again.
  4. After the request is processed by the server, the parameters returned by the callback() method depend on whether the request has succeeded or failed: