EncryptionStatus


public final class EncryptionStatus
extends Object

java.lang.Object
   ↳ android.bluetooth.EncryptionStatus


Represents the encryption status of a Bluetooth device.

This class is used to hold the encryption status details like key size and algorithm of a Bluetooth device.

Summary

Public constructors

EncryptionStatus(int keySize, int algorithm)

Public methods

int getAlgorithm()
int getKeySize()
String toString()

Returns a string representation of the object.

Inherited methods

Public constructors

EncryptionStatus

public EncryptionStatus (int keySize, 
                int algorithm)

Parameters
keySize int: Value is between 1 and 16 inclusive

algorithm int: Value is BluetoothDevice.ENCRYPTION_ALGORITHM_NONE, BluetoothDevice.ENCRYPTION_ALGORITHM_E0, BluetoothDevice.ENCRYPTION_ALGORITHM_AES, or BluetoothDevice.ENCRYPTION_ALGORITHM_UNKNOWN

Public methods

getAlgorithm

public int getAlgorithm ()

Returns
int the encryption algorithm used for the encrypting the link. Value is BluetoothDevice.ENCRYPTION_ALGORITHM_NONE, BluetoothDevice.ENCRYPTION_ALGORITHM_E0, BluetoothDevice.ENCRYPTION_ALGORITHM_AES, or BluetoothDevice.ENCRYPTION_ALGORITHM_UNKNOWN

getKeySize

public int getKeySize ()

Returns
int the size of the encryption key, in number of bytes. i.e. value of 16 means 16-octets, or 128 bit key size. Value is between 1 and 16 inclusive

toString

public String toString ()

Returns a string representation of the object.

Returns
String a string representation of the object.