CSymbianCertStore Class Reference

class CSymbianCertStore : public CActive

Inherits from

Public Member Functions
~CSymbianCertStore ()
IMPORT_C void AddCert (const TDesC8 &, const TDesC8 &)
IMPORT_C void CreateUnifiedCertStoreL ()
IMPORT_C void FindCertL (const TDesC8 &)
IMPORT_C RMPointerArray < CCTCertInfo > GetCertList ()
IMPORT_C TUint GetCertSize ()
IMPORT_C TInt GetError ()
IMPORT_C HBufC8 * GetRetrieveCertData ()
IMPORT_C CCertificate * GetRetrieveCertObject ()
IMPORT_C void ListCertL ()
IMPORT_C CSymbianCertStore * NewL ()
IMPORT_C CSymbianCertStore * NewLC ()
IMPORT_C void RetrieveCertDataL ()
IMPORT_C void RetrieveCertObjectL ()
IMPORT_C void SetCert ( CCTCertInfo *)
IMPORT_C TInt hasCert ()
Protected Member Functions
void DoCancel ()
TInt RunError ( TInt )
void RunL ()
Private Member Functions
CSymbianCertStore ()
void ConstructL ()
void FindMatchedCert ()
void ResetAndDestroyCertsArray ()
void ResetCertsList ()
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
enum TState {
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 void AddCert ( const TDesC8 & aCertData,
const TDesC8 & aCertName
)

AddCert

Since
S60 v3.2

Parameters

const TDesC8 & aCertData The cert data
const TDesC8 & aCertName Name of the cert

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

CreateUnifiedCertStoreL()

IMPORT_C void CreateUnifiedCertStoreL ( )

Create Unified Cert Store

Since
S60 v3.2

DoCancel()

void DoCancel ( ) [protected, virtual]

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

FindCertL(const TDesC8 &)

IMPORT_C void FindCertL ( const TDesC8 & aLabel )

Find a cert in the Unified Cert Store

Since
S60 v3.2

Parameters

const TDesC8 & aLabel The name of the cert to be found

FindMatchedCert()

void FindMatchedCert ( ) [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 TUint GetCertSize ( )

Get the size of the cert stored

Since
S60 v3.2

GetError()

IMPORT_C TInt GetError ( )

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

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

void ResetAndDestroyCertsArray ( ) [private]

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

ResetCertsList()

void ResetCertsList ( ) [private]

Release all resources kept in iCerts array and empty iCerts array

RetrieveCertDataL()

IMPORT_C void RetrieveCertDataL ( )

Retrieve Cert Data. Sets iCertData from iCert

Since
S60 v3.2

RetrieveCertObjectL()

IMPORT_C void RetrieveCertObjectL ( )

Retrieve Cert Object. Sets iCertObject from iCert

Since
S60 v3.2

RunError(TInt)

TInt RunError ( TInt aError ) [protected, virtual]

Handles Leaves from RunL function.

Parameters

TInt aError

RunL()

void RunL ( ) [protected, virtual]

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

SetCert(CCTCertInfo *)

IMPORT_C void SetCert ( CCTCertInfo * cert )

Sets iCert

Since
S60 v3.2

Parameters

CCTCertInfo * cert

hasCert()

IMPORT_C TInt hasCert ( )

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