Roap::CRoapEng Class Reference

class Roap::CRoapEng : public Roap::CRoapEngBase

Inherits from

Public Member Functions
~CRoapEng ()
IMPORT_C CRoapEng * NewL ()
Protected Member Functions
void AdjustDrmTimeL (const RPointerArray < HBufC8 > &, TDesC8 &)
CRoapMessage * CreateDeviceHelloL ()
TInt CreateDeviceIdHashArrayL ( RPointerArray < TDesC8 > &)
CRoapMessage * CreateJoinDomainRequestL ()
CRoapMessage * CreateLeaveDomainRequestL ()
CRoapMessage * CreateMeteringReportRequestL ()
CRoapMessage * CreateRegistrationRequestL ()
void CreateReqMessageL ()
CRoapMessage * CreateRightsRequestL ()
void FetchTransactionIDL ( RPointerArray < HBufC8 > &, RPointerArray < HBufC8 > &)
RPointerArray < HBufC8 > GetCertificateChainL ()
void GetDeviceDetailsL ( HBufC8 *&, HBufC8 *&, HBufC8 *&)
void GetDomainContextL ( TBool &, TBool &, const TDesC8 &)
TTime GetDrmTimeL ()
HBufC8 * GetOCSPResponderKeyHashL ()
void GetRIContextL ( TBool &, const TDesC8 &)
RPointerArray < HBufC8 > GetSupportedAlgorithmsL ()
void HandleJoinDomainResponsePduL (const TDesC8 &)
void HandleLeaveDomainResponsePduL (const TDesC8 &)
void HandleMeteringReportResponsePduL (const TDesC8 &)
void HandleMultipartL ()
void HandleRIHelloPduL (const TDesC8 &)
void HandleReqResponsePduL (const TDesC8 &)
void HandleRightsResponsePduL (const TDesC8 &, TBool )
void HandleRoapResponseL (const TDesC8 &)
void InsertDomainRosL ()
void InsertTransactionIDL ( RPointerArray < HBufC8 > &, RPointerArray < HBufC8 > &)
void IsTimeUpdateAllowedL (const RPointerArray < HBufC8 > &, const RPointerArray < HBufC8 > &, TBool &)
TInt MapStatusL ()
CRoapTrigger * ParseTriggerL (const TDesC8 &)
void SetDrmTimeSecureL ()
HBufC8 * SignMessageL (const TDesC8 &)
void StoreDomainRightsL ()
void UpdateTransactionTrackingStatusL ()
TBool ValidateRiCertificateL (const CX509Certificate *)
TBool ValidateRiIdL ( TDesC8 &, TDesC8 &)
TBool VerifyCertificateChainL (const RPointerArray < HBufC8 > &, const RPointerArray < HBufC8 > &)
TBool VerifyOcspCertChainL (COCSPResponse &, const TDesC8 &, CX509Certificate *&)
TBool VerifyOcspResponsesL (const RPointerArray < HBufC8 > &, const TDesC8 &, const RPointerArray < HBufC8 > &)
TBool VerifySignatureL (const TDesC8 &, const TDesC8 &, const RPointerArray < HBufC8 > &)
TBool VerifyTriggerSignatureL (const TDesC8 &, const CRoapTrigger &)
Private Member Functions
CRoapEng ()
void ConstructL ()
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Roap::CRoapEngBase::AcceptL(MRoapObserver *,TRequestStatus *)
Roap::CRoapEngBase::CRoapEngBase()
Roap::CRoapEngBase::CompleteL()
Roap::CRoapEngBase::CompleteRequest()
Roap::CRoapEngBase::Continue(TRoapState)
Roap::CRoapEngBase::CreateConnectionL()
Roap::CRoapEngBase::DoCancel()
Roap::CRoapEngBase::DoCleanup()
Roap::CRoapEngBase::HandleResponseL()
Roap::CRoapEngBase::HandleRoReponseL(const TDesC8 &,RPointerArray< CDRMRights > &)
Roap::CRoapEngBase::Reject()
Roap::CRoapEngBase::RunError(TInt)
Roap::CRoapEngBase::RunL()
Roap::CRoapEngBase::SetL()
Roap::CRoapEngBase::SetProtocolL()
Roap::CRoapEngBase::SetTriggerL(const TDesC8 &,const CAiwGenericParamList *,TTriggerType &,TRiContextStatus &,TDomainOperation &,RPointerArray< HBufC8 > &)
Roap::CRoapEngBase::StartTransactionL()
Roap::CRoapEngBase::Trigger()const
Roap::CRoapEngBase::~CRoapEngBase()
Private Member Enumerations
enum TTransStatus { ENotAsked , EForbidden , EAllowed }
Inherited Enumerations
CActive:TPriority
Roap::CRoapEngBase:TRequestType
Roap::CRoapEngBase:TRoapState
Private Attributes
TBool iCertNeeded
RDRMClockClient * iClockClient
CDcfRep * iDcfRep
HBufC8 * iDeviceId
TBool iDeviceTimeError
TBuf8 < KDomainIdLength > iDomainId
CRoapParser * iParser
TBuf8 < KDeviceNonceLength > iRegReqNonce
RPointerArray < HBufC8 > iRiAlgorithms
TBuf8 < SHA1_HASH > iRiId
TBool iRiSupportsCertCaching
TBuf8 < KMaxRoapVersionLength > iRiVersion
CDrmProtectedRoParser * iRoParser
TInt iRoapStatus
TBool iSecureTime
TKeyTransportScheme iSelectedAlgorithms
TBuf8 < SHA1_HASH > iSelectedRoot
CRoapSigner * iSigner
RRoapStorageClient * iStorageClient
TTransStatus iTransStatus
TInt iZone
Inherited Attributes
CActive::iStatus
Roap::CRoapEngBase::iAllowedToContactRi
Roap::CRoapEngBase::iCompleted
Roap::CRoapEngBase::iDomainRightsResp
Roap::CRoapEngBase::iHttpHandler
Roap::CRoapEngBase::iImplicitJoinDomain
Roap::CRoapEngBase::iObserver
Roap::CRoapEngBase::iParentStatus
Roap::CRoapEngBase::iPreferredIap
Roap::CRoapEngBase::iProgressInBytes
Roap::CRoapEngBase::iReRegistered
Roap::CRoapEngBase::iReqMessage
Roap::CRoapEngBase::iRequest
Roap::CRoapEngBase::iResponse
Roap::CRoapEngBase::iResult
Roap::CRoapEngBase::iReturnedROs
Roap::CRoapEngBase::iRiAlias
Roap::CRoapEngBase::iRoapResp
Roap::CRoapEngBase::iState
Roap::CRoapEngBase::iStatusCode
Roap::CRoapEngBase::iStoredRiContext
Roap::CRoapEngBase::iTransTrackConf
Roap::CRoapEngBase::iTrigger
Roap::CRoapEngBase::iUseRiContextUrl

Constructor & Destructor Documentation

CRoapEng()

CRoapEng ( ) [private]

~CRoapEng()

IMPORT_C ~CRoapEng ( )

Destructor.

Member Functions Documentation

AdjustDrmTimeL(const RPointerArray< HBufC8 > &, TDesC8 &)

void AdjustDrmTimeL ( const RPointerArray < HBufC8 > & aOcspResponses,
TDesC8 & aRegReqNonce
) const [protected]

Parameters

const RPointerArray < HBufC8 > & aOcspResponses
TDesC8 & aRegReqNonce

ConstructL()

void ConstructL ( ) [private]

CreateDeviceHelloL()

CRoapMessage * CreateDeviceHelloL ( ) [protected]

CreateDeviceIdHashArrayL(RPointerArray< TDesC8 > &)

TInt CreateDeviceIdHashArrayL ( RPointerArray < TDesC8 > & aIdArray ) [protected]

Parameters

RPointerArray < TDesC8 > & aIdArray

CreateJoinDomainRequestL()

CRoapMessage * CreateJoinDomainRequestL ( ) [protected]

CreateLeaveDomainRequestL()

CRoapMessage * CreateLeaveDomainRequestL ( ) [protected]

CreateMeteringReportRequestL()

CRoapMessage * CreateMeteringReportRequestL ( ) [protected]

CreateRegistrationRequestL()

CRoapMessage * CreateRegistrationRequestL ( ) [protected]

CreateReqMessageL()

void CreateReqMessageL ( ) [protected, virtual]

CreateRightsRequestL()

CRoapMessage * CreateRightsRequestL ( ) [protected]

FetchTransactionIDL(RPointerArray< HBufC8 > &, RPointerArray< HBufC8 > &)

void FetchTransactionIDL ( RPointerArray < HBufC8 > & aTransIDs,
RPointerArray < HBufC8 > & aContentIDs
) [protected]

Parameters

RPointerArray < HBufC8 > & aTransIDs
RPointerArray < HBufC8 > & aContentIDs

GetCertificateChainL()

RPointerArray < HBufC8 > GetCertificateChainL ( ) const [protected]

GetDeviceDetailsL(HBufC8 *&, HBufC8 *&, HBufC8 *&)

void GetDeviceDetailsL ( HBufC8 *& aManufacturer,
HBufC8 *& aModel,
HBufC8 *& aVersion
) [protected]

Parameters

HBufC8 *& aManufacturer
HBufC8 *& aModel
HBufC8 *& aVersion

GetDomainContextL(TBool &, TBool &, const TDesC8 &)

void GetDomainContextL ( TBool & aIsJoined,
TBool & aIsValidGeneration,
const TDesC8 & aDomainId
) [protected, virtual]

Parameters

TBool & aIsJoined
TBool & aIsValidGeneration
const TDesC8 & aDomainId

GetDrmTimeL()

TTime GetDrmTimeL ( ) [protected]

GetOCSPResponderKeyHashL()

HBufC8 * GetOCSPResponderKeyHashL ( ) const [protected]

GetRIContextL(TBool &, const TDesC8 &)

void GetRIContextL ( TBool & aRegistered,
const TDesC8 & aRiId
) [protected, virtual]

Parameters

TBool & aRegistered
const TDesC8 & aRiId

GetSupportedAlgorithmsL()

RPointerArray < HBufC8 > GetSupportedAlgorithmsL ( ) const [protected]

HandleJoinDomainResponsePduL(const TDesC8 &)

void HandleJoinDomainResponsePduL ( const TDesC8 & aJoinResp ) [protected]

Parameters

const TDesC8 & aJoinResp

HandleLeaveDomainResponsePduL(const TDesC8 &)

void HandleLeaveDomainResponsePduL ( const TDesC8 & aLeaveResp ) [protected]

Parameters

const TDesC8 & aLeaveResp

HandleMeteringReportResponsePduL(const TDesC8 &)

void HandleMeteringReportResponsePduL ( const TDesC8 & aMeteringResp ) [protected]

Parameters

const TDesC8 & aMeteringResp

HandleMultipartL()

void HandleMultipartL ( ) [protected, virtual]

HandleRIHelloPduL(const TDesC8 &)

void HandleRIHelloPduL ( const TDesC8 & aRiHello ) [protected]

Parameters

const TDesC8 & aRiHello

HandleReqResponsePduL(const TDesC8 &)

void HandleReqResponsePduL ( const TDesC8 & aRegResp ) [protected]

Parameters

const TDesC8 & aRegResp

HandleRightsResponsePduL(const TDesC8 &, TBool)

void HandleRightsResponsePduL ( const TDesC8 & aRightsResp,
TBool aOnePass
) [protected, virtual]

Parameters

const TDesC8 & aRightsResp
TBool aOnePass

HandleRoapResponseL(const TDesC8 &)

void HandleRoapResponseL ( const TDesC8 & aXmlResponse ) [protected, virtual]

Parameters

const TDesC8 & aXmlResponse

InsertDomainRosL()

void InsertDomainRosL ( ) [protected]

InsertTransactionIDL(RPointerArray< HBufC8 > &, RPointerArray< HBufC8 > &)

void InsertTransactionIDL ( RPointerArray < HBufC8 > & aTransIDs,
RPointerArray < HBufC8 > & aContentIDs
) [protected]

Parameters

RPointerArray < HBufC8 > & aTransIDs
RPointerArray < HBufC8 > & aContentIDs

IsTimeUpdateAllowedL(const RPointerArray< HBufC8 > &, const RPointerArray< HBufC8 > &, TBool &)

void IsTimeUpdateAllowedL ( const RPointerArray < HBufC8 > & aCertChain,
const RPointerArray < HBufC8 > & aOcspResponses,
TBool & aIsAllowed
) const [protected]

Parameters

const RPointerArray < HBufC8 > & aCertChain
const RPointerArray < HBufC8 > & aOcspResponses
TBool & aIsAllowed

MapStatusL()

TInt MapStatusL ( ) [protected, virtual]

NewL()

IMPORT_C CRoapEng * NewL ( ) [static]

Two-phased constructor.

ParseTriggerL(const TDesC8 &)

CRoapTrigger * ParseTriggerL ( const TDesC8 & aXmlTrigger ) [protected, virtual]

Parameters

const TDesC8 & aXmlTrigger

SetDrmTimeSecureL()

void SetDrmTimeSecureL ( ) [protected]

SignMessageL(const TDesC8 &)

HBufC8 * SignMessageL ( const TDesC8 & aMessage ) const [protected, virtual]

Parameters

const TDesC8 & aMessage

StoreDomainRightsL()

void StoreDomainRightsL ( ) [protected]

UpdateTransactionTrackingStatusL()

void UpdateTransactionTrackingStatusL ( ) [protected]

ValidateRiCertificateL(const CX509Certificate *)

TBool ValidateRiCertificateL ( const CX509Certificate * aCert ) [protected]

Parameters

const CX509Certificate * aCert

ValidateRiIdL(TDesC8 &, TDesC8 &)

TBool ValidateRiIdL ( TDesC8 & aRiId,
TDesC8 & aCertBuf
) [protected]

Parameters

TDesC8 & aRiId
TDesC8 & aCertBuf

VerifyCertificateChainL(const RPointerArray< HBufC8 > &, const RPointerArray< HBufC8 > &)

TBool VerifyCertificateChainL ( const RPointerArray < HBufC8 > & aCertificateChain,
const RPointerArray < HBufC8 > & aOcspResponses
) const [protected]

Parameters

const RPointerArray < HBufC8 > & aCertificateChain
const RPointerArray < HBufC8 > & aOcspResponses

VerifyOcspCertChainL(COCSPResponse &, const TDesC8 &, CX509Certificate *&)

TBool VerifyOcspCertChainL ( COCSPResponse & aResponse,
const TDesC8 & aRootCert,
CX509Certificate *& aOcspCert
) const [protected]

Parameters

COCSPResponse & aResponse
const TDesC8 & aRootCert
CX509Certificate *& aOcspCert

VerifyOcspResponsesL(const RPointerArray< HBufC8 > &, const TDesC8 &, const RPointerArray< HBufC8 > &)

TBool VerifyOcspResponsesL ( const RPointerArray < HBufC8 > & aOcspResponses,
const TDesC8 & aRiCaCert,
const RPointerArray < HBufC8 > & aCertSerialNums
) const [protected]

Parameters

const RPointerArray < HBufC8 > & aOcspResponses
const TDesC8 & aRiCaCert
const RPointerArray < HBufC8 > & aCertSerialNums

VerifySignatureL(const TDesC8 &, const TDesC8 &, const RPointerArray< HBufC8 > &)

TBool VerifySignatureL ( const TDesC8 & aMessage,
const TDesC8 & aSignature,
const RPointerArray < HBufC8 > & aCertificateChain
) const [protected]

Parameters

const TDesC8 & aMessage
const TDesC8 & aSignature
const RPointerArray < HBufC8 > & aCertificateChain

VerifyTriggerSignatureL(const TDesC8 &, const CRoapTrigger &)

TBool VerifyTriggerSignatureL ( const TDesC8 & aXmlTrigger,
const CRoapTrigger & aTrigger
) const [protected]

Parameters

const TDesC8 & aXmlTrigger
const CRoapTrigger & aTrigger

Member Enumerations Documentation

Enum TTransStatus

Enumerators

ENotAsked
EForbidden
EAllowed

Member Data Documentation

TBool iCertNeeded

TBool iCertNeeded [private]

RDRMClockClient * iClockClient

RDRMClockClient * iClockClient [private]

CDcfRep * iDcfRep

CDcfRep * iDcfRep [private]

HBufC8 * iDeviceId

HBufC8 * iDeviceId [private]

TBool iDeviceTimeError

TBool iDeviceTimeError [private]

TBuf8< KDomainIdLength > iDomainId

TBuf8 < KDomainIdLength > iDomainId [private]

CRoapParser * iParser

CRoapParser * iParser [private]

TBuf8< KDeviceNonceLength > iRegReqNonce

TBuf8 < KDeviceNonceLength > iRegReqNonce [private]

RPointerArray< HBufC8 > iRiAlgorithms

RPointerArray < HBufC8 > iRiAlgorithms [private]

TBuf8< SHA1_HASH > iRiId

TBuf8 < SHA1_HASH > iRiId [private]

TBool iRiSupportsCertCaching

TBool iRiSupportsCertCaching [private]

TBuf8< KMaxRoapVersionLength > iRiVersion

TBuf8 < KMaxRoapVersionLength > iRiVersion [private]

CDrmProtectedRoParser * iRoParser

CDrmProtectedRoParser * iRoParser [private]

TInt iRoapStatus

TInt iRoapStatus [private]

TBool iSecureTime

TBool iSecureTime [private]

TKeyTransportScheme iSelectedAlgorithms

TKeyTransportScheme iSelectedAlgorithms [private]

TBuf8< SHA1_HASH > iSelectedRoot

TBuf8 < SHA1_HASH > iSelectedRoot [private]

CRoapSigner * iSigner

CRoapSigner * iSigner [private]

RRoapStorageClient * iStorageClient

RRoapStorageClient * iStorageClient [private]

TTransStatus iTransStatus

TTransStatus iTransStatus [private]

TInt iZone

TInt iZone [private]