#include <bt_sock.h>
Link against:
bluetooth.lib
Class TBTAccessRequirements
class TBTAccessRequirements;
Description
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
Members
Defined in TBTAccessRequirements
:
Construction and destruction
IMPORT_C TBTAccessRequirements();
Description
Constructor
IMPORT_C void SetAuthentication(TBool aPreference);
Description
Sets the authentication requirement of this class.
Parameters
TBool aPreference |
If true authentification is added to the requirements.
|
|
IMPORT_C void SetAuthorisation(TBool aPreference);
Description
Sets the authorisation requirement of this class.
Parameters
TBool aPreference |
If true authorisation is added to the requirements.
|
|
IMPORT_C void SetEncryption(TBool aPreference);
Description
Sets the encryption requirement of this class.
Parameters
TBool aPreference |
If true encryption is added to the requirements.
|
|
IMPORT_C void SetDenied(TBool aPreference);
Description
Sets the denied requirement of this class. If this is set no connects will be accepted unless specified in the device overrides.
Parameters
TBool aPreference |
If true the denied attribute is added to the requirements.
|
|
SetAuthentication(TBluetoothMitmProtection)
IMPORT_C void SetAuthentication(TBluetoothMitmProtection aPreference);
Description
Sets the Man-in-the-Middle requirements for authentication of this class.
Parameters
SetPasskeyMinLength(TUint)
IMPORT_C TInt SetPasskeyMinLength(TUint aPasskeyMinLength);
Description
Sets the minimal length requrement for passkey If it is between 1..16 SecurityManager will check the length of passkey
Parameters
TUint 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
|
|
Return value
AuthenticationRequired()const
IMPORT_C TBool AuthenticationRequired() const;
Description
Getter for the authentification attribute.
Return value
TBool
|
EAuthenticate if authentification is a required attribute, zero otherwise.
|
|
AuthorisationRequired()const
IMPORT_C TBool AuthorisationRequired() const;
Description
Getter for the authorisation attribute.
Return value
TBool
|
EAuthorise if authorisation is a required attribute, zero otherwise.
|
|
EncryptionRequired()const
IMPORT_C TBool EncryptionRequired() const;
Description
Getter for the encryption attribute.
Return value
TBool
|
EEncrypt if encryption is a required attribute, zero otherwise.
|
|
IMPORT_C TBool Denied() const;
Description
Getter for the denied attribute.
Return value
TBool
|
EDenied if denied is a required attribute, zero otherwise.
|
|
IMPORT_C TUint PasskeyMinLength() const;
Description
Getter for the minimal passkey length
Return value
TUint
|
1..16 means set. 0 means - no requirement for minimal passkey length
|
|
operator==(const TBTAccessRequirements &)const
IMPORT_C TBool operator==(const TBTAccessRequirements &aRequirements) const;
Description
Equals operator.
Parameters
Return value
TBool
|
True if the requirements specified in this instance match those of the instance passed in the argument.
|
|
IMPORT_C TBluetoothMitmProtection MitmProtection() const;
Description
Getter for the Man-in-the-Middle protection requirements.
Return value