DRM::CDrmServiceApi Class Reference

class DRM::CDrmServiceApi : public CBase

Drm Service Api which provides access to some drm private functionality

DrmServiceAPI.lib
Since
S60 v3.2

Inherits from

Constructor & Destructor Documentation

CDrmServiceApi()

CDrmServiceApi()[private]

Default constructor

~CDrmServiceApi()

~CDrmServiceApi()[virtual]

Destructor.

Member Functions Documentation

ConstructL()

voidConstructL()[private]

2nd phase constructor

GetDevicePublicKeyDerL(HBufC8 *&)

IMPORT_C voidGetDevicePublicKeyDerL(HBufC8 *&aPublicKey)

Get the device public key in Der format

Since
S60 v3.2
leave
Symbian OS error code

Parameters

HBufC8 *& aPublicKeyReturn parameter for the public key owned by the caller

GetSecureTime(TTime &, TInt &, DRMClock::ESecurityLevel &)

IMPORT_C TIntGetSecureTime(TTime &aTime,
TInt &aTimeZone,
DRMClock::ESecurityLevel &aSecurityLevel
)const

Get the secure time

Since
S60 v3.2

Parameters

TTime & aTimeOutput parameter containing the secure time in UTC.
TInt & aTimeZoneTime zone information including summer/winter time in +/- 15 minutes
DRMClock::ESecurityLevel & aSecurityLevelOutput parameter Securiry level.

NewL()

IMPORT_C CDrmServiceApi *NewL()[static]

Two-phased constructor

Creates a function CDrmServiceApi -object and returns a pointer to it pointer is owned by the caller

Since
S60 v3.2

NewLC()

IMPORT_C CDrmServiceApi *NewLC()[static]

Two-phased constructor

Creates a function CDrmServiceApi -object and returns a pointer to it pointer is owned by the caller, the pointer is left to the cleanup stack

Since
S60 v3.2

SignL(const TDesC8 &, HBufC8 *&)

IMPORT_C voidSignL(const TDesC8 &aHash,
HBufC8 *&aSignature
)

Sign the value given

Since
S60 v3.2
leave
Symbian OS error code

Parameters

const TDesC8 & aHashValue to be signed
HBufC8 *& aSignatureReturn parameter for the signature, owned by the caller

UpdateSecureTime(const TTime &, const TInt &)

IMPORT_C TIntUpdateSecureTime(const TTime &aTime,
const TInt &aTimeZone
)

Update the secure time

Requires DRM Capability

Since
S60 v3.2

Parameters

const TTime & aTimeInput parameter containing the secure time in UTC.
const TInt & aTimeZoneTime zone information including summer/winter time in +/- 15 minutes

Member Data Documentation

RDRMClockClient * iClockClient

RDRMClockClient *iClockClient[private]

Owned clock client

Roap::RRoapStorageClient * iRoapStorageClient

Roap::RRoapStorageClient *iRoapStorageClient[private]

Owned roap storage client