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

Inherits from

Public Member Functions
~RWimCertMgmt()
TUint8 CertCount(TWimEntryType)
voidCertDetailsL(const TCertificateAddress, TWimCertDetails &, TRequestStatus &)
CWimCertPckgBuf< TCertExtrasInfo > *CertExtrasPckgBuf()
voidCertRefLst(TCertificateAddressList, TWimCertInfo *, TUint8, TWimEntryType, TRequestStatus &)
TInt CertRefLst(TCertificateAddressList, TWimCertInfo *, TUint8, TWimEntryType)
RWimCertMgmt *ClientSessionL()
voidDeallocCertAddParametersPckgBuf()
voidDeallocExportPublicKeyPckgBuf()
voidDeallocGetExtrasPckgBuf()
voidDeallocJavaDataPckgBuf()
voidDeallocKeySignPckgBuf()
voidDeallocOmaDataPckgBuf()
voidDeallocRemoveCertPckgBuf()
voidDeallocWimCertPckgBuf()
voidExportPublicKeyL(TExportPublicKey &, TRequestStatus &)
voidGetCertExtrasL(const TPtr8 *, TCertExtrasInfo &, TUint, TRequestStatus &)
TInt GetKeyInfo(const TInt32, TKeyInfo &)
voidKeyList(TDes8 &, TDes8 &, TRequestStatus &)
voidRemoveL(TWimCertRemoveAddr, TRequestStatus &)
voidRetrieveACFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)
voidRetrieveACIFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)
voidRetrieveAuthObjsInfoL(const RArray< TInt > &, RArray< TJavaPINParams > &, TRequestStatus &, const TWimServRqst)
voidRetrieveLabelAndPathL(TDes8 &, TDes8 &, TRequestStatus &, const TWimServRqst)
voidRetrieveOmaDataL(TOmaProv &, TRequestStatus &, const TWimServRqst)
voidSignL(TKeySignParameters &, TRequestStatus &)
voidStoreCertificateL(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(TWimEntryTypeaType)

Returns the count of certificates

Parameters

TWimEntryType aType-The type of certificates to be counted.

CertDetailsL(const TCertificateAddress, TWimCertDetails &, TRequestStatus &)

voidCertDetailsL(const TCertificateAddressaCertAddr,
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 &)

voidCertRefLst(TCertificateAddressListaCertAddrLst,
TWimCertInfo *aCertInfoArr,
TUint8aCount,
TWimEntryTypeaCertEntryType,
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(TCertificateAddressListaCertAddrLst,
TWimCertInfo *aCertInfoArr,
TUint8aCount,
TWimEntryTypeaCertEntryType
)

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

voidDeallocCertAddParametersPckgBuf()

Deallocates memory from iPckgAddCerts.

DeallocExportPublicKeyPckgBuf()

voidDeallocExportPublicKeyPckgBuf()

Deallocates memory from iPckgBufExportPublicKey.

DeallocGetExtrasPckgBuf()

voidDeallocGetExtrasPckgBuf()

Deallocates memory from iPckgGetExtrasAllocated.

DeallocJavaDataPckgBuf()

voidDeallocJavaDataPckgBuf()

Deallocates memory from iPckgBufJavaProv

DeallocKeySignPckgBuf()

voidDeallocKeySignPckgBuf()

Deallocates memory from iPckgKeySignParameters.

DeallocOmaDataPckgBuf()

voidDeallocOmaDataPckgBuf()

Deallocates memory from iPckgBufOmaProv

DeallocRemoveCertPckgBuf()

voidDeallocRemoveCertPckgBuf()

Deallocates memory from iPckgRemoveCert.

DeallocWimCertPckgBuf()

voidDeallocWimCertPckgBuf()

Deallocates memory from iPckgCertDetails.

ExportPublicKeyL(TExportPublicKey &, TRequestStatus &)

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

voidGetCertExtrasL(const TPtr8 *aKeyId,
TCertExtrasInfo &aCertExtrasInfo,
TUintaUsage,
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 TInt32aKeyReference,
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 &)

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

voidRemoveL(TWimCertRemoveAddraWimCertRemoveAddr,
TRequestStatus &aStatus
)

Removes a certificate from WIM.

Parameters

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

RetrieveACFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)

voidRetrieveACFDataL(TJavaProv &aJavaProvStruct,
TRequestStatus &aStatus,
const TWimServRqstaOpCode
)

Retrieves ACF data.

Since
S60 3.2

Parameters

TJavaProv & aJavaProvStructStruct to hold Java data.
TRequestStatus & aStatusCaller's status
const TWimServRqst aOpCodeCode of operation

RetrieveACIFDataL(TJavaProv &, TRequestStatus &, const TWimServRqst)

voidRetrieveACIFDataL(TJavaProv &aJavaProvStruct,
TRequestStatus &aStatus,
const TWimServRqstaOpCode
)

Retrieves ACIF data.

Since
S60 3.2

Parameters

TJavaProv & aJavaProvStructStruct to hold Java data.
TRequestStatus & aStatusCaller's status
const TWimServRqst aOpCodeCode of operation

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

voidRetrieveAuthObjsInfoL(const RArray< TInt > &aAuthIdList,
RArray< TJavaPINParams > &aAuthObjsInfoList,
TRequestStatus &aStatus,
const TWimServRqstaOpCode
)

Retrieves Authtication object data.

Since
S60 3.2

Parameters

const RArray< TInt > & aAuthIdList
RArray< TJavaPINParams > & aAuthObjsInfoList
TRequestStatus & aStatusCaller's status
const TWimServRqst aOpCodeCode of operation

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

voidRetrieveLabelAndPathL(TDes8 &aLabel,
TDes8 &aPath,
TRequestStatus &aStatus,
const TWimServRqstaOpCode
)

Retrieves Label and Path.

Since
S60 3.2

Parameters

TDes8 & aLabel
TDes8 & aPath
TRequestStatus & aStatusCaller's status
const TWimServRqst aOpCodeCode of operation

RetrieveOmaDataL(TOmaProv &, TRequestStatus &, const TWimServRqst)

voidRetrieveOmaDataL(TOmaProv &aOmaProvStruct,
TRequestStatus &aStatus,
const TWimServRqstaOpCode
)

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

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

voidStoreCertificateL(const TDes8 &aCertificate,
TWimCertAddParameters &aParams,
TWimCertLocationaLocation,
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]