Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#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


TBTAccessRequirements()

IMPORT_C TBTAccessRequirements();

Description

Constructor

[Top]


Member functions


SetAuthentication(TBool)

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.


SetAuthorisation(TBool)

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.


SetEncryption(TBool)

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.


SetDenied(TBool)

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

TBluetoothMitmProtection aPreference

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


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

TInt


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.


Denied()const

IMPORT_C TBool Denied() const;

Description

Getter for the denied attribute.

Return value

TBool

EDenied if denied is a required attribute, zero otherwise.


PasskeyMinLength()const

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

const TBTAccessRequirements &aRequirements

The instance being compared.

Return value

TBool

True if the requirements specified in this instance match those of the instance passed in the argument.


MitmProtection()const

IMPORT_C TBluetoothMitmProtection MitmProtection() const;

Description

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

Return value

TBluetoothMitmProtection

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