CCPSecurityPolicy Class Reference

class CCPSecurityPolicy : public CBase

Internal class for Security related activities

Since
S60 v5.0

Inherits from

Constructor & Destructor Documentation

CCPSecurityPolicy(const RMessage2 &)

CCPSecurityPolicy(const RMessage2 &aMessage)[private]

C++ default constructor.

Parameters

const RMessage2 & aMessage

~CCPSecurityPolicy()

~CCPSecurityPolicy()[virtual]

Destructor.

Member Functions Documentation

CheckCapabilities(const TDesC &)

TBool CheckCapabilities(const TDesC &aList)const

Performs security check based on client Capabilities

Parameters

const TDesC & aListlist of capabilities which client must have

CheckSecurityL(TPtrC8 &, TACLPolicy)

TBool CheckSecurityL(TPtrC8 &aBinary,
TACLPolicyaPolicy
)const

Checks if access for client (iMessage) should be granted or not

Parameters

TPtrC8 & aBinaryserialized ACL map
TACLPolicy aPolicysecururity policy to check

CheckUids(const TDesC &)

TBool CheckUids(const TDesC &aList)const

Performs security check based on client UIDs

Parameters

const TDesC & aListlist of uids which have access

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

DoCheckSecurityL(const CLiwMap *)

TInt DoCheckSecurityL(const CLiwMap *aMap)const

Performs actuall security check should be granted or not

Parameters

const CLiwMap * aMapACL map

ExctractNextToken(const TDesC &, TPtrC &, TInt &)

voidExctractNextToken(const TDesC &aList,
TPtrC &aResult,
TInt &aPos
)const

Exctracts from list next token( UID or Capability )

Parameters

const TDesC & aListlist as desciptor
TPtrC & aResultsingle token extracted from list
TInt & aPosposition of the reuired token

GetCapability(const TDesC &)

TCapability GetCapability(const TDesC &aCapability)const

Converts capability given as descriptor to enum

Parameters

const TDesC & aCapabilitydescriptor to convert

GetDefaultSecurityL(RBuf8 &)

voidGetDefaultSecurityL(RBuf8 &aResult)const

Sets default ACL map and serializes it

Parameters

RBuf8 & aResult

NewL(const RMessage2 &)

CCPSecurityPolicy *NewL(const RMessage2 &aMessage)[static]

Two-phased constructor.

Parameters

const RMessage2 & aMessage

NewLC(const RMessage2 &)

CCPSecurityPolicy *NewLC(const RMessage2 &aMessage)[static]

Two-phased constructor.

Parameters

const RMessage2 & aMessage

Member Enumerations Documentation

Enum TACLPolicy

Enumerators

ERead
EWrite
EDelete

Member Data Documentation

const RMessage2 & iMessage

const RMessage2 &iMessage[private]