RWimCertMgmt Class Reference

class RWimCertMgmt : public RWimClient
RWimCertMgmt This class handle certificate handling and KeyInformation handling related traffic between client and server. WimClient
Since
Series 60 2.1
Public Member Functions
~RWimCertMgmt ()
TUint8 CertCount ( TWimEntryType )
void CertDetailsL (const TCertificateAddress , TWimCertDetails &, TRequestStatus &)
CWimCertPckgBuf < TCertExtrasInfo > * CertExtrasPckgBuf ()
void CertRefLst ( TCertificateAddressList , TWimCertInfo *, TUint8 , TWimEntryType , TRequestStatus &)
TInt CertRefLst ( TCertificateAddressList , TWimCertInfo *, TUint8 , TWimEntryType )
RWimCertMgmt * ClientSessionL ()
void DeallocCertAddParametersPckgBuf ()
void DeallocExportPublicKeyPckgBuf ()
void DeallocGetExtrasPckgBuf ()
void DeallocJavaDataPckgBuf ()
void DeallocKeySignPckgBuf ()
void DeallocOmaDataPckgBuf ()
void DeallocRemoveCertPckgBuf ()
void DeallocWimCertPckgBuf ()
void ExportPublicKeyL ( TExportPublicKey &, TRequestStatus &)
void GetCertExtrasL (const TPtr8 *, TCertExtrasInfo &, TUint , TRequestStatus &)
TInt GetKeyInfo (const TInt32 , TKeyInfo &)
void KeyList ( TDes8 &, TDes8 &, TRequestStatus &)
void RemoveL ( TWimCertRemoveAddr , TRequestStatus &)
void RetrieveACFDataL ( TJavaProv &, TRequestStatus &, const TWimServRqst )
void RetrieveACIFDataL ( TJavaProv &, TRequestStatus &, const TWimServRqst )
void RetrieveAuthObjsInfoL (const RArray < TInt > &, RArray < TJavaPINParams > &, TRequestStatus &, const TWimServRqst )
void RetrieveLabelAndPathL ( TDes8 &, TDes8 &, TRequestStatus &, const TWimServRqst )
void RetrieveOmaDataL ( TOmaProv &, TRequestStatus &, const TWimServRqst )
void SignL ( TKeySignParameters &, TRequestStatus &)
void StoreCertificateL (const TDes8 &, TWimCertAddParameters &, TWimCertLocation , TRequestStatus &)
CWimCertPckgBuf < TJavaProv > * TJavaProvPckgBuf ()
CWimCertPckgBuf < TOmaProv > * TOmaProvPckgBuf ()
Private Member Functions
RWimCertMgmt ()
RWimCertMgmt (const RWimCertMgmt &)
RWimCertMgmt & operator= (const RWimCertMgmt &)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
RWimClient::CancelInitialize()
RWimClient::Connect()
RWimClient::FreeAddrLst(const TUint32)
RWimClient::FreeWIMAddr(const TWimAddress)
RWimClient::FreeWIMAddrLst(const TWimAddressList,const TUint)
RWimClient::Initialize(TRequestStatus &)
RWimClient::RWimClient()
RWimClient::SendReceiveData(TWimServRqst,TIpcArgs &)
RWimClient::SendReceiveData(TWimServRqst,TIpcArgs &,TRequestStatus &)
RWimClient::StartWim()
RWimClient::Version()const
RWimClient::~RWimClient()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Private Attributes
TPtrC8 * iAuthIdLstPtr
TPtr8 * iAuthObjsInfoLstPtr
TPtr8 iCertInfoLst
TPtr8 iCertLst
CWimCertPckgBuf < TWimCertAddParameters > * iPckgBufAddCerts
TBool iPckgBufAddCertsAllocated
CWimCertPckgBuf < TWimCertDetails > * iPckgBufCertDetails
TBool iPckgBufCertDetailsAllocated
CWimCertPckgBuf < TExportPublicKey > * iPckgBufExportPublicKey
TBool iPckgBufExportPublicKeyAllocated
CWimCertPckgBuf < TCertExtrasInfo > * iPckgBufGetExtras
TBool iPckgBufGetExtrasAllocated
CWimCertPckgBuf < TJavaProv > * iPckgBufJavaProv
TBool iPckgBufJavaProvAllocated
TBool iPckgBufKeySignAllocated
CWimCertPckgBuf < TKeySignParameters > * iPckgBufKeySignParameters
CWimCertPckgBuf < TOmaProv > * iPckgBufOmaProv
TBool iPckgBufOmaProvAllocated
CWimCertPckgBuf < TWimCertRemoveAddr > * iPckgBufRemoveCert
TBool iPckgBufRemoveCertAllocated
Inherited Attributes
RHandleBase::iHandle

Constructor & Destructor Documentation

RWimCertMgmt()

RWimCertMgmt ( ) [private]

Constructor

RWimCertMgmt(const RWimCertMgmt &)

RWimCertMgmt ( const RWimCertMgmt & aSource ) [private]

Copy constructor

Parameters

const RWimCertMgmt & aSource -Reference to class object.

~RWimCertMgmt()

~RWimCertMgmt ( ) [virtual]

Destructor. Allocated memory is released.

Member Functions Documentation

CertCount(TWimEntryType)

TUint8 CertCount ( TWimEntryType aType )

Returns the count of certificates

Parameters

TWimEntryType aType -The type of certificates to be counted.

CertDetailsL(const TCertificateAddress, TWimCertDetails &, TRequestStatus &)

void CertDetailsL ( const TCertificateAddress aCertAddr,
TWimCertDetails & aWimCertDetails,
TRequestStatus & aStatus
)

Returns certificate details.

Parameters

const TCertificateAddress aCertAddr - reference to the certificate
TWimCertDetails & aWimCertDetails -Preallocated structure to hold the certificate info
TRequestStatus & aStatus -Caller's status

CertExtrasPckgBuf()

CWimCertPckgBuf < TCertExtrasInfo > * CertExtrasPckgBuf ( )

Return CWimCertPckgBuf<TCertExtrasInfo> pointer to caller

CertRefLst(TCertificateAddressList, TWimCertInfo *, TUint8, TWimEntryType, TRequestStatus &)

void CertRefLst ( TCertificateAddressList aCertAddrLst,
TWimCertInfo * aCertInfoArr,
TUint8 aCount,
TWimEntryType aCertEntryType,
TRequestStatus & aStatus
)

Returns certificate list on the WIM.

Parameters

TCertificateAddressList aCertAddrLst - to hold references to certificates
TWimCertInfo * aCertInfoArr -address of the certlist address
TUint8 aCount -the count of certificates
TWimEntryType aCertEntryType -What type of certificates is wanted: ECrEntryTypeAll, ECrEntryTypeCA or ECrEntryTypePersonal
TRequestStatus & aStatus -Caller's status

CertRefLst(TCertificateAddressList, TWimCertInfo *, TUint8, TWimEntryType)

TInt CertRefLst ( TCertificateAddressList aCertAddrLst,
TWimCertInfo * aCertInfoArr,
TUint8 aCount,
TWimEntryType aCertEntryType
)

Returns certificate list on the WIM.

Parameters

TCertificateAddressList aCertAddrLst - to hold references to certificates
TWimCertInfo * aCertInfoArr -address of the certlist address
TUint8 aCount -the count of certificates
TWimEntryType aCertEntryType -What type of certificates is wanted: ECrEntryTypeAll, ECrEntryTypeCA or ECrEntryTypePersonal

ClientSessionL()

RWimCertMgmt * ClientSessionL ( ) [static]

A Static method to get the client Session RWimCertMgmt*

DeallocCertAddParametersPckgBuf()

void DeallocCertAddParametersPckgBuf ( )

Deallocates memory from iPckgAddCerts.

DeallocExportPublicKeyPckgBuf()

void DeallocExportPublicKeyPckgBuf ( )

Deallocates memory from iPckgBufExportPublicKey.

DeallocGetExtrasPckgBuf()

void DeallocGetExtrasPckgBuf ( )

Deallocates memory from iPckgGetExtrasAllocated.

DeallocJavaDataPckgBuf()

void DeallocJavaDataPckgBuf ( )

Deallocates memory from iPckgBufJavaProv

DeallocKeySignPckgBuf()

void DeallocKeySignPckgBuf ( )

Deallocates memory from iPckgKeySignParameters.

DeallocOmaDataPckgBuf()

void DeallocOmaDataPckgBuf ( )

Deallocates memory from iPckgBufOmaProv

DeallocRemoveCertPckgBuf()

void DeallocRemoveCertPckgBuf ( )

Deallocates memory from iPckgRemoveCert.

DeallocWimCertPckgBuf()

void DeallocWimCertPckgBuf ( )

Deallocates memory from iPckgCertDetails.

ExportPublicKeyL(TExportPublicKey &, TRequestStatus &)

void ExportPublicKeyL ( TExportPublicKey & aPublicKeyParams,
TRequestStatus & aStatus
)

Export public key

Parameters

TExportPublicKey & aPublicKeyParams -struct which holds publickeyPtr and Key identifier. pointer.
TRequestStatus & aStatus -Caller's Status.

GetCertExtrasL(const TPtr8 *, TCertExtrasInfo &, TUint, TRequestStatus &)

void GetCertExtrasL ( const TPtr8 * aKeyId,
TCertExtrasInfo & aCertExtrasInfo,
TUint aUsage,
TRequestStatus & aStatus
)

Gets certificate extra information from one certificate

Parameters

const TPtr8 * aKeyId - identifies needed certificate
TCertExtrasInfo & aCertExtrasInfo -Preallocated structure to hold the certificate extra info
TUint aUsage -Identifies the usage of certificate, User or CA
TRequestStatus & aStatus -Caller's status

GetKeyInfo(const TInt32, TKeyInfo &)

TInt GetKeyInfo ( const TInt32 aKeyReference,
TKeyInfo & aKeyInfo
)

Gets keyInfo for single key.

Parameters

const TInt32 aKeyReference -Unique identifier for key.
TKeyInfo & aKeyInfo -Struct for other key information.

KeyList(TDes8 &, TDes8 &, TRequestStatus &)

void KeyList ( TDes8 & aKeyList,
TDes8 & aKeyCount,
TRequestStatus & aStatus
)

Returns KeyList from the WIM.

Parameters

TDes8 & aKeyList -KeyReferences are listed to this
TDes8 & aKeyCount -The number of keys is put to this
TRequestStatus & aStatus -Caller's status

RemoveL(TWimCertRemoveAddr, TRequestStatus &)

void RemoveL ( TWimCertRemoveAddr aWimCertRemoveAddr,
TRequestStatus & aStatus
)

Removes a certificate from WIM.

Parameters

TWimCertRemoveAddr aWimCertRemoveAddr - reference to the certificate
TRequestStatus & aStatus -Status from caller

RetrieveACFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)

void RetrieveACFDataL ( TJavaProv & aJavaProvStruct,
TRequestStatus & aStatus,
const TWimServRqst aOpCode
)

Retrieves ACF data.

Since
S60 3.2

Parameters

TJavaProv & aJavaProvStruct Struct to hold Java data.
TRequestStatus & aStatus Caller's status
const TWimServRqst aOpCode Code of operation

RetrieveACIFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)

void RetrieveACIFDataL ( TJavaProv & aJavaProvStruct,
TRequestStatus & aStatus,
const TWimServRqst aOpCode
)

Retrieves ACIF data.

Since
S60 3.2

Parameters

TJavaProv & aJavaProvStruct Struct to hold Java data.
TRequestStatus & aStatus Caller's status
const TWimServRqst aOpCode Code of operation

RetrieveAuthObjsInfoL(const RArray< TInt > &, RArray< TJavaPINParams > &, TRequestStatus &, const TWimServRqst)

void RetrieveAuthObjsInfoL ( const RArray < TInt > & aAuthIdList,
RArray < TJavaPINParams > & aAuthObjsInfoList,
TRequestStatus & aStatus,
const TWimServRqst aOpCode
)

Retrieves Authtication object data.

Since
S60 3.2

Parameters

const RArray < TInt > & aAuthIdList
RArray < TJavaPINParams > & aAuthObjsInfoList
TRequestStatus & aStatus Caller's status
const TWimServRqst aOpCode Code of operation

RetrieveLabelAndPathL(TDes8 &, TDes8 &, TRequestStatus &, const TWimServRqst)

void RetrieveLabelAndPathL ( TDes8 & aLabel,
TDes8 & aPath,
TRequestStatus & aStatus,
const TWimServRqst aOpCode
)

Retrieves Label and Path.

Since
S60 3.2

Parameters

TDes8 & aLabel
TDes8 & aPath
TRequestStatus & aStatus Caller's status
const TWimServRqst aOpCode Code of operation

RetrieveOmaDataL(TOmaProv &, TRequestStatus &, const TWimServRqst)

void RetrieveOmaDataL ( TOmaProv & aOmaProvStruct,
TRequestStatus & aStatus,
const TWimServRqst aOpCode
)

Retrieves data for OMA Provisioning support. Data can be data size, type or the actual binary data.

Parameters

TOmaProv & aOmaProvStruct -Struct to hold OMA Provisioning data.
TRequestStatus & aStatus -Caller's status
const TWimServRqst aOpCode -Code of operation ( EGetOMAFileSize or EGetOMAFile

SignL(TKeySignParameters &, TRequestStatus &)

void SignL ( TKeySignParameters & aSignParameters,
TRequestStatus & aStatus
)

Signs some data

Parameters

TKeySignParameters & aSignParameters -holds data for signing operation
TRequestStatus & aStatus -Caller's status

StoreCertificateL(const TDes8 &, TWimCertAddParameters &, TWimCertLocation, TRequestStatus &)

void StoreCertificateL ( const TDes8 & aCertificate,
TWimCertAddParameters & aParams,
TWimCertLocation aLocation,
TRequestStatus & aStatus
)

Stores the certificate to WIM.

Parameters

const TDes8 & aCertificate
TWimCertAddParameters & aParams - TWimCertAddParameters params to the certificate
TWimCertLocation aLocation -Location where we want to store. In this case: EWimCertLocationWIMCard
TRequestStatus & aStatus

TJavaProvPckgBuf()

CWimCertPckgBuf < TJavaProv > * TJavaProvPckgBuf ( )

Return CWimCertPckgBuf<TJavaProv> pointer to caller

TOmaProvPckgBuf()

CWimCertPckgBuf < TOmaProv > * TOmaProvPckgBuf ( )

Return CWimCertPckgBuf<TOmaProv> pointer to caller

operator=(const RWimCertMgmt &)

RWimCertMgmt & operator= ( const RWimCertMgmt & aParam ) [private]

Assignment operator

Parameters

const RWimCertMgmt & aParam -Reference to class object.

Member Data Documentation

TPtrC8 * iAuthIdLstPtr

TPtrC8 * iAuthIdLstPtr [private]

TPtr8 * iAuthObjsInfoLstPtr

TPtr8 * iAuthObjsInfoLstPtr [private]

TPtr8 iCertInfoLst

TPtr8 iCertInfoLst [private]

TPtr8 iCertLst

TPtr8 iCertLst [private]

CWimCertPckgBuf< TWimCertAddParameters > * iPckgBufAddCerts

CWimCertPckgBuf < TWimCertAddParameters > * iPckgBufAddCerts [private]

TBool iPckgBufAddCertsAllocated

TBool iPckgBufAddCertsAllocated [private]

CWimCertPckgBuf< TWimCertDetails > * iPckgBufCertDetails

CWimCertPckgBuf < TWimCertDetails > * iPckgBufCertDetails [private]

TBool iPckgBufCertDetailsAllocated

TBool iPckgBufCertDetailsAllocated [private]

CWimCertPckgBuf< TExportPublicKey > * iPckgBufExportPublicKey

CWimCertPckgBuf < TExportPublicKey > * iPckgBufExportPublicKey [private]

TBool iPckgBufExportPublicKeyAllocated

TBool iPckgBufExportPublicKeyAllocated [private]

CWimCertPckgBuf< TCertExtrasInfo > * iPckgBufGetExtras

CWimCertPckgBuf < TCertExtrasInfo > * iPckgBufGetExtras [private]

TBool iPckgBufGetExtrasAllocated

TBool iPckgBufGetExtrasAllocated [private]

CWimCertPckgBuf< TJavaProv > * iPckgBufJavaProv

CWimCertPckgBuf < TJavaProv > * iPckgBufJavaProv [private]

TBool iPckgBufJavaProvAllocated

TBool iPckgBufJavaProvAllocated [private]

TBool iPckgBufKeySignAllocated

TBool iPckgBufKeySignAllocated [private]

CWimCertPckgBuf< TKeySignParameters > * iPckgBufKeySignParameters

CWimCertPckgBuf < TKeySignParameters > * iPckgBufKeySignParameters [private]

CWimCertPckgBuf< TOmaProv > * iPckgBufOmaProv

CWimCertPckgBuf < TOmaProv > * iPckgBufOmaProv [private]

TBool iPckgBufOmaProvAllocated

TBool iPckgBufOmaProvAllocated [private]

CWimCertPckgBuf< TWimCertRemoveAddr > * iPckgBufRemoveCert

CWimCertPckgBuf < TWimCertRemoveAddr > * iPckgBufRemoveCert [private]

TBool iPckgBufRemoveCertAllocated

TBool iPckgBufRemoveCertAllocated [private]