RPolicyManagement Class Reference

class RPolicyManagement : public RSubSessionBase

RPolicyManagement class to handle policy management sessions

Inherits from

Member Functions Documentation

AddSessionTrust(TCertInfo &)

IMPORT_C TIntAddSessionTrust(TCertInfo &aCertInfo)

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

Parameters

TCertInfo & aCertInfoCertificate info for subject

CertificateRole(TCertInfo &, TRole &)

IMPORT_C TIntCertificateRole(TCertInfo &aCertInfo,
TRole &aRole
)

CertificateRole Check which role is given for the specific certificate

Parameters

TCertInfo & aCertInfoCertificate info
TRole & aRoleRole for certificate

Close()

IMPORT_C voidClose()

Close Close session

ExecuteOperation(const TDesC8 &, TParserResponse &)

IMPORT_C TIntExecuteOperation(const TDesC8 &aOperationDescription,
TParserResponse &aResponse
)

AddElement Add policy element to policy storage.

Parameters

const TDesC8 & aOperationDescriptionOperation descriped with XML
TParserResponse & aResponseParameter returns operation status

ExecuteOperation(const TDesC8 &)

IMPORT_C TIntExecuteOperation(const TDesC8 &aOperationDescription)

AddElement Add policy element to policy storage.

Parameters

const TDesC8 & aOperationDescriptionOperation descriped with XML

GetElementL(TElementInfo &)

IMPORT_C TIntGetElementL(TElementInfo &aElementInfo)

GetElement Fetch element info from policy engine

Parameters

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

GetElementListL(const TElementType &, RElementIdArray &)

IMPORT_C TIntGetElementListL(const TElementType &aElementType,
RElementIdArray &aElementIdArray
)

GetElementListL Fetch element list fron policy engine

Parameters

const TElementType & aElementTypeDefines type of elements which are fetched
RElementIdArray & aElementIdArrayList of fetched elements

GetXACMLDescriptionL(TElementInfo &)

IMPORT_C TIntGetXACMLDescriptionL(TElementInfo &aElementInfo)

GetElement Fetch element description from policy engine

Parameters

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

IsAllowedServerId(const TDesC &)

IMPORT_C TIntIsAllowedServerId(const TDesC &aServerID)

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

Parameters

const TDesC & aServerIDServer ID

Open(RPolicyEngine &)

IMPORT_C TIntOpen(RPolicyEngine &aServer)

Connect Open client side session

Parameters

RPolicyEngine & aServerReference to connected RPolicyEngine