CWimJavaUtils Class Reference
class CWimJavaUtils : public CActive |
Reads Java provisioning information from Smart Card
WimClient.lib
- Since
- S60 3.2
Public Member Functions |
---|
| ~CWimJavaUtils() |
IMPORT_C void | CancelGetACFSize() |
IMPORT_C void | CancelGetACIFSize() |
IMPORT_C void | CancelGetAuthObjsInfo() |
IMPORT_C void | CancelInitialize() |
IMPORT_C void | CancelRetrieveACFContent() |
IMPORT_C void | CancelRetrieveACIFContent() |
IMPORT_C void | CancelRetrieveWimLabelAndPath() |
IMPORT_C void | GetACFSize(TInt &, const TDesC8 &, TRequestStatus &) |
IMPORT_C void | GetACIFSize(TInt &, TRequestStatus &) |
IMPORT_C void | GetAuthObjsInfo(const RArray< TInt > &, RArray< TJavaPINParams > &, TRequestStatus &) |
IMPORT_C void | Initialize(TRequestStatus &) |
IMPORT_C CWimJavaUtils * | NewL() |
IMPORT_C void | RetrieveACFContent(TDes8 &, const TDesC8 &, TRequestStatus &) |
IMPORT_C void | RetrieveACIFContent(TDes8 &, TRequestStatus &) |
IMPORT_C void | RetrieveWimLabelAndPath(TDes8 &, TDes8 &, TRequestStatus &) |
Private Member Enumerations |
---|
enum | TJavaUtilPhase { EInitialize, EConnectClientSession, EInitializeWim, EInitializeDone, EGetACIFSize, EGetACIFSizeDone, ERetrieveACIFContent, ERetrieveACIFContentDone, EGetACFSize, EGetACFSizeDone, ERetrieveACFContent, ERetrieveACFContentDone, EGetAuthObjsInfo, EGetAuthObjsInfoDone, ERetrieveWimLabelAndPath, ERetrieveWimLabelAndPathDone } |
Constructor & Destructor Documentation
~CWimJavaUtils()
IMPORT_C | ~CWimJavaUtils | ( | ) | [virtual] |
Member Functions Documentation
AllocMemoryForJavaProvStructL(const TInt)
void | AllocMemoryForJavaProvStructL | ( | const TInt | aDataLength | ) | [private] |
Allocates memory for member variables, which are needed in Java Provisioning struct.
Parameters
const TInt aDataLength | -The length of the data to be allocated |
AllocMemoryForPathAndLabelL()
void | AllocMemoryForPathAndLabelL | ( | ) | [private] |
Allocates memory for path and label
CancelGetACFSize()
IMPORT_C void | CancelGetACFSize | ( | ) | |
Cancels outgoing GetACFSize operation.
CancelGetACIFSize()
IMPORT_C void | CancelGetACIFSize | ( | ) | |
Cancels outgoing GetACIFSize operation.
CancelGetAuthObjsInfo()
IMPORT_C void | CancelGetAuthObjsInfo | ( | ) | |
Cancel outgoing GetAuthObjsInfo
CancelInitialize()
IMPORT_C void | CancelInitialize | ( | ) | |
Cancels outgoing Initialize operation.
CancelRetrieveACFContent()
IMPORT_C void | CancelRetrieveACFContent | ( | ) | |
Cancels outgoing Retrieve operation.
CancelRetrieveACIFContent()
IMPORT_C void | CancelRetrieveACIFContent | ( | ) | |
Cancels outgoing Retrieve operation.
CancelRetrieveWimLabelAndPath()
IMPORT_C void | CancelRetrieveWimLabelAndPath | ( | ) | |
Cancel outgoing Retrieve operation
ConstructL()
void | ConstructL | ( | ) | [private] |
DeallocMemoryFromJavaProvStruct()
void | DeallocMemoryFromJavaProvStruct | ( | ) | [private] |
Deallocates memory from member variables
DeallocMemoryFromPathAndLabel()
void | DeallocMemoryFromPathAndLabel | ( | ) | [private] |
Deallocates memory from path and label
DoCancel()
void | DoCancel | ( | ) | [private, virtual] |
Cancellation function Deallocates member variables and completes client status with KErrCancel error code.
GetACFSize(TInt &, const TDesC8 &, TRequestStatus &)
Parameters
TInt & aSize | The lenght of ACF |
const TDesC8 & aACFPath | The path of ACF on smart card |
TRequestStatus & aStatus | Indicates the result of this call. |
GetACIFSize(TInt &, TRequestStatus &)
Fetches the size of ACIF. This information can be used as a notification of existing of provisioning information. If the size is not included in Smart Card's DODF-JavaPROV file then the full length of the file containing the provisioning information is returned.
Parameters
TInt & aSize | The length of ACIF |
TRequestStatus & aStatus | Indicates the result of this call. KErrNone, no errors. NOTE: size can still be 0 indicating that no provisioning information was found. If aSize > 0 it means that provisioning information was found. KErrNoMemory, No memory KErrGeneral, any other error |
GetAuthObjsInfo(const RArray< TInt > &, RArray< TJavaPINParams > &, TRequestStatus &)
Get the Authobj information
Initialize(TRequestStatus &)
Initializes the WIM Server cache. This is the most time consuming call.
Parameters
TRequestStatus & aStatus | Indicates the result of this call. Values: KErrNone, call was successull KErrNotFound, no WIM was found KErrNoMemory, no memory KErrGeneral, any other error |
RetrieveACFContent(TDes8 &, const TDesC8 &, TRequestStatus &)
Fetches the whole data of ACF file
Parameters
TDes8 & aACFData | ACF binary data from smart card |
const TDesC8 & aACFPath | ACF file path on smart card |
TRequestStatus & aStatus | Indicates the result of this call. |
RetrieveACIFContent(TDes8 &, TRequestStatus &)
Fetches the whole data of ACIF file.
Parameters
TDes8 & aACIFData | ACIF binary data from smart card |
TRequestStatus & aStatus | Indicates the result of this call. KErrNone, no errors. KErrNoMemory, No memory KErrGeneral, any other error |
RetrieveWimLabelAndPath(TDes8 &, TDes8 &, TRequestStatus &)
Fetches the wim label and path
RunError(TInt)
TInt
| RunError | ( | TInt | aError | ) | [private, virtual] |
The active scheduler calls this function if this active object's RunL() function leaves. Handles necessary cleanup and completes request with received error code.
Parameters
TInt aError | -The error code which caused this function call. |
RunL()
void | RunL | ( | ) | [private, virtual] |
Different phases are handled here.
SignalOwnStatusAndComplete()
void | SignalOwnStatusAndComplete | ( | ) | [private] |
Sets own iStatus to KRequestPending, and signals it with User::RequestComplete() -request. This gives chance active scheduler to run other active objects. After a quick visit in active scheduler, signal returns to RunL() and starts next phase of operation.
Member Enumerations Documentation
Enum TJavaUtilPhase
Enumerators
EInitialize | |
EConnectClientSession | |
EInitializeWim | |
EInitializeDone | |
EGetACIFSize | |
EGetACIFSizeDone | |
ERetrieveACIFContent | |
ERetrieveACIFContentDone | |
EGetACFSize | |
EGetACFSizeDone | |
ERetrieveACFContent | |
ERetrieveACFContentDone | |
EGetAuthObjsInfo | |
EGetAuthObjsInfoDone | |
ERetrieveWimLabelAndPath | |
ERetrieveWimLabelAndPathDone | |
Member Data Documentation
TBuf8< KPathMaxLength > iACFPath
RArray< TInt > * iAuthIdList
RArray< TJavaPINParams > * iAuthObjsInfoList
RWimMgmt * iClientSession
TRequestStatus * iClientStatus
RArray< TJavaPINParams > * iClientsAuthObjsInfoList
RWimCertMgmt * iConnectionHandle
TPtr8 * iJavaProvBufPtr
TPtr8 * | iJavaProvBufPtr | [private] |
TPtr8 * iLabelBufPtr
TPtr8 * | iLabelBufPtr | [private] |
TPtr8 * iPathBufPtr
TPtr8 * | iPathBufPtr | [private] |
TInt
iWimStartErr
TInt
| iWimStartErr | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.