в строке инициализации сервера есть параметр authenticate=false, думаю если его сделать true, то будет производиться именно запрос кода
To make a Bluetooth connection secure when you establish it you must ensure that the javax.microedition.io.Connector connection URL string has the appropriate security parameters:
btspp://hostname:[CN | UUID];authenticate=true;authorize=true;encrypt=true
...Where:
authenticate verifies the identity of a connecting device.
authorize verifies its access to a given service. Authorize is not allowed on client URL connection strings.
encrypt specifies that the connection must be encrypted.
программный ввод кода вроде как не предусмотрен в принципе.
ЗЫ: нашел на WebLancer предложение сделать такую либу, уже выполненное, мог заработать 30 баксов