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()

void ConstructL ( ) [private]

2nd phase constructor

GetDevicePublicKeyDerL(HBufC8 *&)

IMPORT_C void GetDevicePublicKeyDerL ( HBufC8 *& aPublicKey )

Get the device public key in Der format

Since
S60 v3.2
leave
Symbian OS error code

Parameters

HBufC8 *& aPublicKey Return parameter for the public key owned by the caller

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

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

Get the secure time

Since
S60 v3.2

Parameters

TTime & aTime Output parameter containing the secure time in UTC.
TInt & aTimeZone Time zone information including summer/winter time in +/- 15 minutes
DRMClock::ESecurityLevel & aSecurityLevel Output 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 void SignL ( const TDesC8 & aHash,
HBufC8 *& aSignature
)

Sign the value given

Since
S60 v3.2
leave
Symbian OS error code

Parameters

const TDesC8 & aHash Value to be signed
HBufC8 *& aSignature Return parameter for the signature, owned by the caller

UpdateSecureTime(const TTime &, const TInt &)

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

Update the secure time

Requires DRM Capability

Since
S60 v3.2

Parameters

const TTime & aTime Input parameter containing the secure time in UTC.
const TInt & aTimeZone Time 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