RPolicyManagement Class Reference

class RPolicyManagement : public RSubSessionBase

RPolicyManagement class to handle policy management sessions

Inherits from

Member Functions Documentation

AddSessionTrust(TCertInfo &)

IMPORT_C TInt AddSessionTrust ( TCertInfo & aCertInfo )

AddSessionTrust Authorize session to use predetermined Subject name (Use AuthorizeSubject to authorize subject).

Parameters

TCertInfo & aCertInfo Certificate info for subject

CertificateRole(TCertInfo &, TRole &)

IMPORT_C TInt CertificateRole ( TCertInfo & aCertInfo,
TRole & aRole
)

CertificateRole Check which role is given for the specific certificate

Parameters

TCertInfo & aCertInfo Certificate info
TRole & aRole Role for certificate

Close()

IMPORT_C void Close ( )

Close Close session

ExecuteOperation(const TDesC8 &, TParserResponse &)

IMPORT_C TInt ExecuteOperation ( const TDesC8 & aOperationDescription,
TParserResponse & aResponse
)

AddElement Add policy element to policy storage.

Parameters

const TDesC8 & aOperationDescription Operation descriped with XML
TParserResponse & aResponse Parameter returns operation status

ExecuteOperation(const TDesC8 &)

IMPORT_C TInt ExecuteOperation ( const TDesC8 & aOperationDescription )

AddElement Add policy element to policy storage.

Parameters

const TDesC8 & aOperationDescription Operation descriped with XML

GetElementL(TElementInfo &)

IMPORT_C TInt GetElementL ( TElementInfo & aElementInfo )

GetElement Fetch element info from policy engine

Parameters

TElementInfo & aElementInfo Prefilled with element id value, operation get data from policy engine and fill missing fields in structure except description

GetElementListL(const TElementType &, RElementIdArray &)

IMPORT_C TInt GetElementListL ( const TElementType & aElementType,
RElementIdArray & aElementIdArray
)

GetElementListL Fetch element list fron policy engine

Parameters

const TElementType & aElementType Defines type of elements which are fetched
RElementIdArray & aElementIdArray List of fetched elements

GetXACMLDescriptionL(TElementInfo &)

IMPORT_C TInt GetXACMLDescriptionL ( TElementInfo & aElementInfo )

GetElement Fetch element description from policy engine

Parameters

TElementInfo & aElementInfo Prefilled with element id value, operation get data from policy engine and fill XACML description field in structure

IsAllowedServerId(const TDesC &)

IMPORT_C TInt IsAllowedServerId ( const TDesC & aServerID )

IsAllowedServerId Check is the serverId given in parameter allowed to establish silent DM operation

Parameters

const TDesC & aServerID Server ID

Open(RPolicyEngine &)

IMPORT_C TInt Open ( RPolicyEngine & aServer )

Connect Open client side session

Parameters

RPolicyEngine & aServer Reference to connected RPolicyEngine