#include <btsecurity.h>
class TBTAccessRequirements |
Public Member Functions | |
---|---|
TBTAccessRequirements() | |
IMPORT_C TBool | AuthenticationRequired() |
IMPORT_C TBool | AuthorisationRequired() |
IMPORT_C TBool | Denied() |
IMPORT_C TBool | EncryptionRequired() |
IMPORT_C TBluetoothMitmProtection | MitmProtection() |
IMPORT_C TUint | PasskeyMinLength() |
IMPORT_C void | SetAuthentication(TBool) |
IMPORT_C void | SetAuthentication(TBluetoothMitmProtection) |
IMPORT_C void | SetAuthorisation(TBool) |
IMPORT_C void | SetDenied(TBool) |
IMPORT_C void | SetEncryption(TBool) |
IMPORT_C TInt | SetPasskeyMinLength(TUint) |
IMPORT_C TBool | operator==(const TBTAccessRequirements &) |
The access requirements set up by a bluetooth service.
An incoming connection must satisfy these criteria before the connection may proceed. Not spectacularly useful for applications; mainly used by other Bluetooth libraries
IMPORT_C TBool | AuthenticationRequired | ( | ) | const |
Getter for the authentification attribute. DeprecatedThe TBTAccessRequirements::MitmProtection function should be used instead.
Returns: EAuthenticate if authentification is a required attribute, zero otherwise.
IMPORT_C TBool | AuthorisationRequired | ( | ) | const |
Getter for the authorisation attribute.
Returns: EAuthorise if authorisation is a required attribute, zero otherwise.
IMPORT_C TBool | Denied | ( | ) | const |
Getter for the denied attribute.
Returns: EDenied if denied is a required attribute, zero otherwise.
IMPORT_C TBool | EncryptionRequired | ( | ) | const |
Getter for the encryption attribute.
Returns: EEncrypt if encryption is a required attribute, zero otherwise.
IMPORT_C TBluetoothMitmProtection | MitmProtection | ( | ) | const |
Getter for the Man-in-the-Middle protection requirements.
Returns: The level of Man-in-the-Middle protection required for authentication.
IMPORT_C TUint | PasskeyMinLength | ( | ) | const |
Getter for the minimal passkey length
Returns: 1..16 means set. 0 means - no requirement for minimal passkey length
IMPORT_C void | SetAuthentication | ( | TBool | aPreference | ) |
Sets the authentication requirement of this class. DeprecatedThe TBTAccessRequirements::SetAuthentication(TBluetoothMitmProtection) function should be used instead.
Parameter | Description |
---|---|
aPreference | If true authentification is added to the requirements. |
IMPORT_C void | SetAuthentication | ( | TBluetoothMitmProtection | aPreference | ) |
Sets the Man-in-the-Middle requirements for authentication of this class.
Parameter | Description |
---|---|
aPreference | The level of Man-in-the-Middle protection required for authentication. |
IMPORT_C void | SetAuthorisation | ( | TBool | aPreference | ) |
Sets the authorisation requirement of this class.
Parameter | Description |
---|---|
aPreference | If true authorisation is added to the requirements. |
IMPORT_C void | SetDenied | ( | TBool | aPreference | ) |
Sets the denied requirement of this class. If this is set no connects will be accepted unless specified in the device overrides.
Parameter | Description |
---|---|
aPreference | If true the denied attribute is added to the requirements. |
IMPORT_C void | SetEncryption | ( | TBool | aPreference | ) |
Sets the encryption requirement of this class.
Parameter | Description |
---|---|
aPreference | If true encryption is added to the requirements. |
Sets the minimal length requrement for passkey If it is between 1..16 SecurityManager will check the length of passkey
Parameter | Description |
---|---|
aPasskeyMinLength | If this is set to 0, means no minimal length requirement. 1..16 is the valid range. >16 Not valid, we set to 0 |
IMPORT_C TBool | operator== | ( | const TBTAccessRequirements & | aRequirements | ) | const |
Equals operator.
Parameter | Description |
---|---|
aRequirements | The instance being compared. |
Returns: True if the requirements specified in this instance match those of the instance passed in the argument.