Authenticates remote device.
Parameters: address - Bluetooth address of a remote device true if the device was authenticated,false otherwise
authorize
public boolean authorize(String address, int handle)(Code)
Authorizes a Bluetooth connection.
Parameters: address - the Bluetooth address of the remote device Parameters: handle - handle for the service record of the srvice the remotedevice is trying to access true if authorization succeeded,false otherwise
Initiates pairing with a remote device.
Parameters: address - the Bluetooth address of the device with which to pair Parameters: pin - an array containing the PIN code true if the device was authenticated,false otherwise
Returns local Bluetooth address.
local Bluetooth address
getConnectionCount
public int getConnectionCount(String address)(Code)
Returns the number of connections to the remote device.
Parameters: address - the Bluetooth address of the remote device number of connections established with the remote device
Retrieves the user-friendly name for specified remote device.
Parameters: address - Bluetooth address of a remote device name of the remote device, ornull if the name could not be retrieved
Retrieves PIN code to use for pairing with a remote device. If the
PIN code is not known, PIN entry dialog is displayed.
Parameters: address - the Bluetooth address of the remote device string containing the PIN code
Returns list of preknown devices in a Vector.
Vector object containing preknown devices
isAuthenticated
public boolean isAuthenticated(String address)(Code)
Checks if a remote device was authenticated.
Parameters: address - Bluetooth address of a remote device true if the device was authenticated,false otherwise
Checks if connections to a remote are encrypted.
Parameters: address - Bluetooth address of a remote device true if connections to the device are encrypted,false otherwise
Checks if the local device has a bond with a remote device.
Parameters: address - Bluetooth address of a remote device true if the two devices were paired,false otherwise
Checks if a remote device is trusted (authorized for all services).
Parameters: address - Bluetooth address of a remote device true if the device is trusted,false otherwise
removeConnection
public void removeConnection(String address)(Code)
Unregisters an existing connection to a remote device.
Parameters: address - the Bluetooth address of the remote device
setAccessCode
public boolean setAccessCode(int accessCode)(Code)
setServiceClasses
public boolean setServiceClasses(int classes)(Code)