public class BluetoothPermissions extends Object
BluetoothPermissions
class enumerates the values for attribute permissions.
A read flag and a write flag may be combined to create a set of permissions.
Attribute permissions are checked when a client wants to access an attribute. The permissions are only used by the server and they are not sent to the client.
Refer to "Core Specification Vol 3, Part F, 3.2.5 Attribute Permissions".
Modifier and Type | Field and Description |
---|---|
static byte |
NONE
No access.
|
static byte |
READ
Read access, no encryption required.
|
static byte |
READ_AUTH
Read access, authentication required.
|
static byte |
READ_ENCRYPT
Read access, encryption required.
|
static byte |
RW
Read and write access, no encryption required.
|
static byte |
RW_AUTH
Read and write access, authentication required.
|
static byte |
RW_ENCRYPT
Read and write access, encryption required.
|
static byte |
WRITE
Write access, no encryption required.
|
static byte |
WRITE_AUTH
Write access, authentication required.
|
static byte |
WRITE_ENCRYPT
Write access, encryption required.
|
public static final byte NONE
public static final byte READ
public static final byte READ_AUTH
public static final byte READ_ENCRYPT
public static final byte RW
public static final byte RW_AUTH
public static final byte RW_ENCRYPT
public static final byte WRITE
public static final byte WRITE_AUTH
public static final byte WRITE_ENCRYPT