Resend the peer-to-peer encryption key to BlackBerry devices

By default, all BlackBerry® devices store a common peer-to-peer encryption key for protecting PIN messages. To resend the peer-to-peer encryption key to multiple BlackBerry devices, you can use the multi-object resendPeerToPeerKeyToUsers() method. To resend the peer-to-peer encryption key to one BlackBerry device, you can use the single-object resendPeerToPeerKeyToUser() method.
Before you begin: Retrieve the userIDs string array for the IDs of the user accounts assigned to the BlackBerry devices that you want to resend the service books to.
  1. Invoke resendPeerToPeerKeyToUsers().
    ResendPeerToPeerKeyToUsersResult result = coreWebService.resendPeerToPeerKeyToUsers(userIDs);
  2. Check the result for errors and handle any errors.
    if (result.getResendPeerToPeerKeyToUsersReturnStatus().getCode()!= ResendPeerToPeerKeyToUserReturnStatusEnumType.SUCCESS) 
        // handle any errors

Was this information helpful? Send us your comments.