chứng thực trước khi sử dụng dịch vụ, "chứng thực" chuỗi được thêm vào sau khi địa chỉ Bluetooth. Tương tự như vậy, "," ủy quyền được thêm vào sau khi địa chỉ Bluetooth khi thiết bị phải được phép sử dụng một dịch vụ. Cả hai "chứng thực" và "dây" có thẩm quyền không cần phải được liệt kê cho một địa chỉ Bluetooth, | Programming with the API 261 authenticated prior to using the service the -authenticated string is added after the Bluetooth address. Likewise -authorized is added after the Bluetooth address when the device must be authorized to use a service. Both -authenticated and -authorized strings do not need to be listed for a Bluetooth address as authorization implies authentication. To specify that all devices must be authorized to use the service the following string would be used -authorized To specify that device 00E000482312 must be authenticated the following string would be used 00E000482312-authenticated Specifying authenticated or authorized in AllowSender strings does not cause the operations to be performed but rather determines if the condition is true. In other words specifying -authenticated in the AllowSender string is not equivalent to authenticate true in the connection string. Specifying authenticate true in the connection string allows an incoming connection to pass the - authenticated test in the AllowSender string. If the connection has not been authenticated putting -authenticated in the AllowSender string does not tell the system to start the authentication process. Note that the terms used in AllowSender strings are different from the terms used in connection strings. AllowSender strings use authenticated and authorized whereas connection strings use authenticate and authorize. The second part of the AllowedSender string specifies devices that are not allowed to use the service. These devices are blacklisted from the service by adding the blacklist string and the device addresses. The and wild cards may be used in a blacklist address. For example the following string allows all devices except for devices that start with 00112 2 -blacklist 001122 By combining the allowed list with the blacklist a developer is able to restrict access to services based on security requirements and the Bluetooth address of a device. Table shows some examples of the