CSymbianCertStore Class Reference

class CSymbianCertStore : public CActive

Inherits from

Public Member Functions
~CSymbianCertStore()
IMPORT_C voidAddCert(const TDesC8 &, const TDesC8 &)
IMPORT_C voidCreateUnifiedCertStoreL()
IMPORT_C voidFindCertL(const TDesC8 &)
IMPORT_C RMPointerArray< CCTCertInfo >GetCertList()
IMPORT_C TUintGetCertSize()
IMPORT_C TIntGetError()
IMPORT_C HBufC8 *GetRetrieveCertData()
IMPORT_C CCertificate *GetRetrieveCertObject()
IMPORT_C voidListCertL()
IMPORT_C CSymbianCertStore *NewL()
IMPORT_C CSymbianCertStore *NewLC()
IMPORT_C voidRetrieveCertDataL()
IMPORT_C voidRetrieveCertObjectL()
IMPORT_C voidSetCert(CCTCertInfo *)
IMPORT_C TInthasCert()
Protected Member Functions
voidDoCancel()
TInt RunError(TInt)
voidRunL()
Private Member Functions
CSymbianCertStore()
voidConstructL()
voidFindMatchedCert()
voidResetAndDestroyCertsArray()
voidResetCertsList()
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()
Private Member Enumerations
enumTState {
EUnitialized, EInitializingCertStore, EFindingCerts, EListCerts, EAddingCert, ERetrievingCertData, ERetrievingCertObject
}
Inherited Enumerations
CActive:TPriority
Private Attributes
CCTCertInfo *iCert
HBufC8 *iCertData
CCertAttributeFilter *iCertFilter
HBufC *iCertLabel
CCertificate *iCertObject
CUnifiedCertStore *iCertStore
RMPointerArray< CCTCertInfo >iCerts
TInt iError
RFs iFs
TState iState
MCTWritableCertStore *iWritableCertStore
Inherited Attributes
CActive::iStatus

Constructor & Destructor Documentation

CSymbianCertStore()

CSymbianCertStore()[private]

C++ default constructor.

~CSymbianCertStore()

~CSymbianCertStore()[virtual]

Destructor.

Member Functions Documentation

AddCert(const TDesC8 &, const TDesC8 &)

IMPORT_C voidAddCert(const TDesC8 &aCertData,
const TDesC8 &aCertName
)

AddCert

Since
S60 v3.2

Parameters

const TDesC8 & aCertDataThe cert data
const TDesC8 & aCertNameName of the cert

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

CreateUnifiedCertStoreL()

IMPORT_C voidCreateUnifiedCertStoreL()

Create Unified Cert Store

Since
S60 v3.2

DoCancel()

voidDoCancel()[protected, virtual]

This function is called as part of the active object's Cancel().

FindCertL(const TDesC8 &)

IMPORT_C voidFindCertL(const TDesC8 &aLabel)

Find a cert in the Unified Cert Store

Since
S60 v3.2

Parameters

const TDesC8 & aLabelThe name of the cert to be found

FindMatchedCert()

voidFindMatchedCert()[private]

To find matched key in the phase EFindingKeys

GetCertList()

IMPORT_C RMPointerArray< CCTCertInfo >GetCertList()

Get list of certs from SymbianCertStore

Since
S60 v3.2

GetCertSize()

IMPORT_C TUintGetCertSize()

Get the size of the cert stored

Since
S60 v3.2

GetError()

IMPORT_C TIntGetError()

Get the error flag

Since
S60 v3.2

GetRetrieveCertData()

IMPORT_C HBufC8 *GetRetrieveCertData()

Get Cert Data.

Since
S60 v3.2

GetRetrieveCertObject()

IMPORT_C CCertificate *GetRetrieveCertObject()

Get Cert Object.

Since
S60 v3.2

ListCertL()

IMPORT_C voidListCertL()

List certs from the Unified Cert Store

Since
S60 v3.2

NewL()

IMPORT_C CSymbianCertStore *NewL()[static]

Create new object.

Since
S60 v3.2

NewLC()

IMPORT_C CSymbianCertStore *NewLC()[static]

Create new object and put it on clean stack.

Since
S60 v3.2

ResetAndDestroyCertsArray()

voidResetAndDestroyCertsArray()[private]

Release all resources kept in iCerts array (exept for iCert which is released separetly) and empty iCerts array

ResetCertsList()

voidResetCertsList()[private]

Release all resources kept in iCerts array and empty iCerts array

RetrieveCertDataL()

IMPORT_C voidRetrieveCertDataL()

Retrieve Cert Data. Sets iCertData from iCert

Since
S60 v3.2

RetrieveCertObjectL()

IMPORT_C voidRetrieveCertObjectL()

Retrieve Cert Object. Sets iCertObject from iCert

Since
S60 v3.2

RunError(TInt)

TInt RunError(TIntaError)[protected, virtual]

Handles Leaves from RunL function.

Parameters

TInt aError

RunL()

voidRunL()[protected, virtual]

From CActive Callback function, invoked to handle responses from the server

SetCert(CCTCertInfo *)

IMPORT_C voidSetCert(CCTCertInfo *cert)

Sets iCert

Since
S60 v3.2

Parameters

CCTCertInfo * cert

hasCert()

IMPORT_C TInthasCert()

Check if a cert is found in the Unified Cert Store

Since
S60 v3.2

Member Enumerations Documentation

Enum TState

State of active object. EUnitialized standard state EInitializingCertStore during initialize certstore EFindingCerts during finding cert EListCerts during listing certs EAddingCert during adding cert ERetrievingCertData during retrieving cert data ERetrievingCertObject during retrieving cert object

Enumerators

EUnitialized
EInitializingCertStore
EFindingCerts
EListCerts
EAddingCert
ERetrievingCertData
ERetrievingCertObject

Member Data Documentation

CCTCertInfo * iCert

CCTCertInfo *iCert[private]

Store the retrived cert

HBufC8 * iCertData

HBufC8 *iCertData[private]

To store the cert data

CCertAttributeFilter * iCertFilter

CCertAttributeFilter *iCertFilter[private]

Store filter to search in SymbianCertStore

HBufC * iCertLabel

HBufC *iCertLabel[private]

To store the cert label

CCertificate * iCertObject

CCertificate *iCertObject[private]

store the retrived parsed representation, derived object

CUnifiedCertStore * iCertStore

CUnifiedCertStore *iCertStore[private]

A reference to the CUnifiedCertStore class

RMPointerArray< CCTCertInfo > iCerts

RMPointerArray< CCTCertInfo >iCerts[private]

Store the certs found

TInt iError

TInt iError[private]

Error flag

RFs iFs

RFs iFs[private]

A reference to the File Server Client

TState iState

TState iState[private]

An internal state

MCTWritableCertStore * iWritableCertStore

MCTWritableCertStore *iWritableCertStore[private]

A reference to the WritableCertStore