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 & aList list of capabilities which client must have

CheckSecurityL(TPtrC8 &, TACLPolicy)

TBool CheckSecurityL ( TPtrC8 & aBinary,
TACLPolicy aPolicy
) const

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

Parameters

TPtrC8 & aBinary serialized ACL map
TACLPolicy aPolicy secururity policy to check

CheckUids(const TDesC &)

TBool CheckUids ( const TDesC & aList ) const

Performs security check based on client UIDs

Parameters

const TDesC & aList list of uids which have access

ConstructL()

void ConstructL ( ) [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 * aMap ACL map

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

void ExctractNextToken ( const TDesC & aList,
TPtrC & aResult,
TInt & aPos
) const

Exctracts from list next token( UID or Capability )

Parameters

const TDesC & aList list as desciptor
TPtrC & aResult single token extracted from list
TInt & aPos position of the reuired token

GetCapability(const TDesC &)

TCapability GetCapability ( const TDesC & aCapability ) const

Converts capability given as descriptor to enum

Parameters

const TDesC & aCapability descriptor to convert

GetDefaultSecurityL(RBuf8 &)

void GetDefaultSecurityL ( 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]