Roap::CRoapEng Class Reference

class Roap::CRoapEng : public Roap::CRoapEngBase

Inherits from

Public Member Functions
~CRoapEng()
IMPORT_C CRoapEng *NewL()
Protected Member Functions
voidAdjustDrmTimeL(const RPointerArray< HBufC8 > &, TDesC8 &)
CRoapMessage *CreateDeviceHelloL()
TInt CreateDeviceIdHashArrayL(RPointerArray< TDesC8 > &)
CRoapMessage *CreateJoinDomainRequestL()
CRoapMessage *CreateLeaveDomainRequestL()
CRoapMessage *CreateMeteringReportRequestL()
CRoapMessage *CreateRegistrationRequestL()
voidCreateReqMessageL()
CRoapMessage *CreateRightsRequestL()
voidFetchTransactionIDL(RPointerArray< HBufC8 > &, RPointerArray< HBufC8 > &)
RPointerArray< HBufC8 >GetCertificateChainL()
voidGetDeviceDetailsL(HBufC8 *&, HBufC8 *&, HBufC8 *&)
voidGetDomainContextL(TBool &, TBool &, const TDesC8 &)
TTime GetDrmTimeL()
HBufC8 *GetOCSPResponderKeyHashL()
voidGetRIContextL(TBool &, const TDesC8 &)
RPointerArray< HBufC8 >GetSupportedAlgorithmsL()
voidHandleJoinDomainResponsePduL(const TDesC8 &)
voidHandleLeaveDomainResponsePduL(const TDesC8 &)
voidHandleMeteringReportResponsePduL(const TDesC8 &)
voidHandleMultipartL()
voidHandleRIHelloPduL(const TDesC8 &)
voidHandleReqResponsePduL(const TDesC8 &)
voidHandleRightsResponsePduL(const TDesC8 &, TBool)
voidHandleRoapResponseL(const TDesC8 &)
voidInsertDomainRosL()
voidInsertTransactionIDL(RPointerArray< HBufC8 > &, RPointerArray< HBufC8 > &)
voidIsTimeUpdateAllowedL(const RPointerArray< HBufC8 > &, const RPointerArray< HBufC8 > &, TBool &)
TInt MapStatusL()
CRoapTrigger *ParseTriggerL(const TDesC8 &)
voidSetDrmTimeSecureL()
HBufC8 *SignMessageL(const TDesC8 &)
voidStoreDomainRightsL()
voidUpdateTransactionTrackingStatusL()
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()
voidConstructL()
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
enumTTransStatus { 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 &)

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

Parameters

const RPointerArray< HBufC8 > & aOcspResponses
TDesC8 & aRegReqNonce

ConstructL()

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

voidCreateReqMessageL()[protected, virtual]

CreateRightsRequestL()

CRoapMessage *CreateRightsRequestL()[protected]

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

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

Parameters

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

GetCertificateChainL()

RPointerArray< HBufC8 >GetCertificateChainL()const [protected]

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

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

Parameters

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

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

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

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

Parameters

TBool & aRegistered
const TDesC8 & aRiId

GetSupportedAlgorithmsL()

RPointerArray< HBufC8 >GetSupportedAlgorithmsL()const [protected]

HandleJoinDomainResponsePduL(const TDesC8 &)

voidHandleJoinDomainResponsePduL(const TDesC8 &aJoinResp)[protected]

Parameters

const TDesC8 & aJoinResp

HandleLeaveDomainResponsePduL(const TDesC8 &)

voidHandleLeaveDomainResponsePduL(const TDesC8 &aLeaveResp)[protected]

Parameters

const TDesC8 & aLeaveResp

HandleMeteringReportResponsePduL(const TDesC8 &)

voidHandleMeteringReportResponsePduL(const TDesC8 &aMeteringResp)[protected]

Parameters

const TDesC8 & aMeteringResp

HandleMultipartL()

voidHandleMultipartL()[protected, virtual]

HandleRIHelloPduL(const TDesC8 &)

voidHandleRIHelloPduL(const TDesC8 &aRiHello)[protected]

Parameters

const TDesC8 & aRiHello

HandleReqResponsePduL(const TDesC8 &)

voidHandleReqResponsePduL(const TDesC8 &aRegResp)[protected]

Parameters

const TDesC8 & aRegResp

HandleRightsResponsePduL(const TDesC8 &, TBool)

voidHandleRightsResponsePduL(const TDesC8 &aRightsResp,
TBoolaOnePass
)[protected, virtual]

Parameters

const TDesC8 & aRightsResp
TBool aOnePass

HandleRoapResponseL(const TDesC8 &)

voidHandleRoapResponseL(const TDesC8 &aXmlResponse)[protected, virtual]

Parameters

const TDesC8 & aXmlResponse

InsertDomainRosL()

voidInsertDomainRosL()[protected]

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

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

Parameters

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

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

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

voidSetDrmTimeSecureL()[protected]

SignMessageL(const TDesC8 &)

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

Parameters

const TDesC8 & aMessage

StoreDomainRightsL()

voidStoreDomainRightsL()[protected]

UpdateTransactionTrackingStatusL()

voidUpdateTransactionTrackingStatusL()[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]