TBTAccessRequirements Class Reference

class 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

Constructor & Destructor Documentation

TBTAccessRequirements()

IMPORT_CTBTAccessRequirements()

Constructor

Member Functions Documentation

AuthenticationRequired()

IMPORT_C TBoolAuthenticationRequired()const

Getter for the authentification attribute. The TBTAccessRequirements::MitmProtection function should be used instead.

AuthorisationRequired()

IMPORT_C TBoolAuthorisationRequired()const

Getter for the authorisation attribute.

Denied()

IMPORT_C TBoolDenied()const

Getter for the denied attribute.

EncryptionRequired()

IMPORT_C TBoolEncryptionRequired()const

Getter for the encryption attribute.

MitmProtection()

IMPORT_C TBluetoothMitmProtectionMitmProtection()const

Getter for the Man-in-the-Middle protection requirements.

PasskeyMinLength()

IMPORT_C TUintPasskeyMinLength()const

Getter for the minimal passkey length

SetAuthentication(TBool)

IMPORT_C voidSetAuthentication(TBoolaPreference)

Sets the authentication requirement of this class. The TBTAccessRequirements::SetAuthentication(TBluetoothMitmProtection) function should be used instead.

Parameters

TBool aPreferenceIf true authentification is added to the requirements.

SetAuthentication(TBluetoothMitmProtection)

IMPORT_C voidSetAuthentication(TBluetoothMitmProtectionaPreference)

Sets the Man-in-the-Middle requirements for authentication of this class.

Parameters

TBluetoothMitmProtection aPreferenceThe level of Man-in-the-Middle protection required for authentication.

SetAuthorisation(TBool)

IMPORT_C voidSetAuthorisation(TBoolaPreference)

Sets the authorisation requirement of this class.

Parameters

TBool aPreferenceIf true authorisation is added to the requirements.

SetDenied(TBool)

IMPORT_C voidSetDenied(TBoolaPreference)

Sets the denied requirement of this class. If this is set no connects will be accepted unless specified in the device overrides.

Parameters

TBool aPreferenceIf true the denied attribute is added to the requirements.

SetEncryption(TBool)

IMPORT_C voidSetEncryption(TBoolaPreference)

Sets the encryption requirement of this class.

Parameters

TBool aPreferenceIf true encryption is added to the requirements.

SetPasskeyMinLength(TUint)

IMPORT_C TIntSetPasskeyMinLength(TUintaPasskeyMinLength)

Sets the minimal length requrement for passkey If it is between 1..16 SecurityManager will check the length of passkey

Parameters

TUint aPasskeyMinLengthIf this is set to 0, means no minimal length requirement. 1..16 is the valid range. >16 Not valid, we set to 0

operator==(const TBTAccessRequirements &)

IMPORT_C TBooloperator==(const TBTAccessRequirements &aRequirements)const

Equals operator.

Parameters

const TBTAccessRequirements & aRequirementsThe instance being compared.

Member Enumerations Documentation

Enum TBTAccessRequirementsMitmProtection

Enumerators

EAccessRequirementsMitmUndefined = 0x00
EAccessRequirementsMitmNotRequired = 0x10
EAccessRequirementsMitmDesired = 0x20
EAccessRequirementsMitmRequired = 0x30

Enum TBTServiceSecuritySettings

Enumerators

EAuthenticate = 0x01
EAuthorise = 0x02
EEncrypt = 0x04
EDenied = 0x08
EMitm = 0x30

Member Data Documentation

TUint iPasskeyMinLength

TUint iPasskeyMinLength[private]

TUint8 iRequirements

TUint8 iRequirements[private]