TBTDeviceSecurity Class Reference

class TBTDeviceSecurity

Class to store the security override parameters for a particular remote device.

Constructor & Destructor Documentation

TBTDeviceSecurity()

IMPORT_CTBTDeviceSecurity()

Constructor

TBTDeviceSecurity(TUint8)

IMPORT_CTBTDeviceSecurity(TUint8aSecurity)

Constructor with userdefined security SecurityValue()

Parameters

TUint8 aSecuritybitfield describing security settings

TBTDeviceSecurity(TUint8, TUint)

IMPORT_CTBTDeviceSecurity(TUint8aSecurity,
TUintaPasskeyMinLength
)

Constructor with userdefined security SecurityValue()

Parameters

TUint8 aSecuritybitfield describing security settings
TUint aPasskeyMinLength0..16

TBTDeviceSecurity(TBool, TBool, TBool, TBool)

IMPORT_CTBTDeviceSecurity(TBoolaNoAuthenticate,
TBoolaNoAuthorise,
TBoolaEncrypt,
TBoolaBanned
)

Constructor with user-defined security

Parameters

TBool aNoAuthenticateUse ETrue if connections with this device should not be authenticated.
TBool aNoAuthoriseUse ETrue if connections with this device should not be authorised - ie the device is trusted.
TBool aEncryptUse ETrue if connections with this device should be encrypted
TBool aBannedUse ETrue if connections with this device should not be allowed

TBTDeviceSecurity(TMitmRequired, TBool, TBool, TBool)

IMPORT_CTBTDeviceSecurity(TMitmRequiredaMitmRequirements,
TBoolaNoAuthorise,
TBoolaEncrypt,
TBoolaBanned
)

Constructor with user-defined security

Parameters

TMitmRequired aMitmRequirementsUse TBTDeviceSecurity::EMitmRequired if connections with this device should require MITM protection.
TBool aNoAuthoriseUse ETrue if connections with this device should not be authorised - ie the device is trusted.
TBool aEncryptUse ETrue if connections with this device should be encrypted
TBool aBannedUse ETrue if connections with this device should not be allowed

Member Functions Documentation

Banned()

IMPORT_C TBoolBanned()const

Determine whether connections to this device should be banned.

Encrypt()

IMPORT_C TBoolEncrypt()const

Determine whether connections to this device should be encrypted.

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const
Externalise object.
leave
This method will leave if an error occurs.

Parameters

RWriteStream & aStreamThe stream to which the object shall be externalised.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)
Internalise object.
leave
This method will leave if an error occurs.

Parameters

RReadStream & aStreamThe stream from which the object shall be internalised.

MitmRequirements()

IMPORT_C TMitmRequiredMitmRequirements()const

Determine whether connections to this device should have MITM protection.

NoAuthenticate()

IMPORT_C TBoolNoAuthenticate()const

Determine whether connections to this device should not be authenticated.

NoAuthorise()

IMPORT_C TBoolNoAuthorise()const

Determine whether connections to this device should not be authorised.

PasskeyMinLength()

IMPORT_C TUintPasskeyMinLength()const

Get passkey min length.

SecurityValue()

IMPORT_C TUint8SecurityValue()const

Get the raw security settings.

SetBanned(TBool)

IMPORT_C voidSetBanned(TBoolaDecision)

Set banned

Parameters

TBool aDecisionETrue=>device is banned, EFalse=>device allowed

SetEncrypt(TBool)

IMPORT_C voidSetEncrypt(TBoolaDecision)

Set encryption

Parameters

TBool aDecisionETrue=>encrypt, EFalse=>don't encrypt

SetMitmRequirements(TMitmRequired)

IMPORT_C voidSetMitmRequirements(TMitmRequiredaDecision)

Specifies the man-in-the-middle requirements on a security service.

Parameters

TMitmRequired aDecisionEMitmRequired if MITM protection is required for connections for a particular device, EMitmUnspecified otherwise to use the default service requirements.

SetNoAuthenticate(TBool)

IMPORT_C voidSetNoAuthenticate(TBoolaDecision)

Set (no) authentication

Parameters

TBool aDecisionETrue=>don't authenticate, EFalse=>authenticate

SetNoAuthorise(TBool)

IMPORT_C voidSetNoAuthorise(TBoolaDecision)

Set (no) authorisation (=make trusted)

Parameters

TBool aDecisionETrue=>don't authorise, EFalse=>authorise

SetPasskeyMinLength(TUint)

IMPORT_C TIntSetPasskeyMinLength(TUintaPasskeyMinLength)

Set passkey min length.

Parameters

TUint aPasskeyMinLength

SetSecurityValue(TUint8)

IMPORT_C voidSetSecurityValue(TUint8aDeviceSecurity)

Set the raw security settings.

Parameters

TUint8 aDeviceSecurity8 bit settings of security

operator!=(const TBTDeviceSecurity &)

IMPORT_C TBooloperator!=(const TBTDeviceSecurity &aDeviceSecurity)const

Inequality operator

Parameters

const TBTDeviceSecurity & aDeviceSecurityinstance of class with which to compare

operator==(const TBTDeviceSecurity &)

IMPORT_C TBooloperator==(const TBTDeviceSecurity &aDeviceSecurity)const

Comparison operator

Parameters

const TBTDeviceSecurity & aDeviceSecurityinstance of class with which to compare

Member Enumerations Documentation

Enum TBTDeviceSecuritySettings

Enumeration to assist in parsing of security settings.

Enumerators

ENoAuthenticate = 0x01

Don't authenticate the link

ENoAuthorise = 0x02

Don't authorise the connection

EEncrypt = 0x04

Encrypt the link

EBanned = 0x08

Don't connect to the device

EMitmProtectionRequired = 0x10

Require the link is MITM protected

Enum TMitmRequired

Enumeration to provide select MITM protection required.

Enumerators

EMitmUnspecified

No specific MITM protection requirements

EMitmRequired

Require the link is MITM protected

Member Data Documentation

const TUint32 KStreamVersion

const TUint32KStreamVersion[private, static]

TUint32 iPadding1

TUint32 iPadding1[private]

TUint32 iPadding2

TUint32 iPadding2[private]

TUint iPasskeyMinLength

TUint iPasskeyMinLength[private]

TUint8 iSecurity

TUint8 iSecurity[private]