CWimCert Class Reference
class CWimCert : public CActive |
Reads certificate extra information from Smart Card
WimClient
- Since
- Series60 2.1
Constructor & Destructor Documentation
~CWimCert()
IMPORT_C | ~CWimCert | ( | ) | [virtual] |
Member Functions Documentation
AllocMemoryForExtraDataRetrieveL()
void | AllocMemoryForExtraDataRetrieveL | ( | ) | [private] |
Allocates variables when retrieving extra certificate data from WimServer.
CancelGetExtras()
IMPORT_C void | CancelGetExtras | ( | ) | |
Cancels outgoing GetExtras operation. After necessary cleanup, caller is signalled with KErrCancel
CancelInitialize()
IMPORT_C void | CancelInitialize | ( | ) | |
Cancels outgoing Initialize operation. After necessary cleanup, caller (given aStatus) is signalled with KErrCancel
CertificateLocated()
TBool
| CertificateLocated | ( | ) | [private] |
Tries to locate certificate by using retrieved KeyId.
Cleanup(TAny *)
void | Cleanup | ( | TAny * | aObject | ) | [private, static] |
Handles cleanup for an object which is not derived from CBase
Parameters
TAny * aObject | -object to be cleaned up |
CleanupRefLst(TAny *)
void | CleanupRefLst | ( | TAny * | aObject | ) | [private, static] |
Handles cleanup for an object which is not derived from CBase
Parameters
TAny * aObject | -object to be cleaned up |
ConstructL()
void | ConstructL | ( | ) | [private] |
DeAllocMemoryForExtraDataRetrieve()
void | DeAllocMemoryForExtraDataRetrieve | ( | ) | [private] |
DeallocRArrays()
void | DeallocRArrays | ( | ) | [private] |
DeallocWimCertInfo()
void | DeallocWimCertInfo | ( | ) | [private] |
Deallocates memory from the array.
DoCancel()
void | DoCancel | ( | ) | [private, virtual] |
Cancellation function Deallocates member variables and completes client status with KErrCancel error code.
ExtraDataFoundL()
void | ExtraDataFoundL | ( | ) | [private] |
Fills caller's data area with requested extra data
GetExtras(const TDesC8 &, RCPointerArray< HBufC > &, TCertLocation &, TRequestStatus &)
Fetches trusted usages and location information for Key ID.
Parameters
const TDesC8 & aKeyId | (IN) Key identifier (hash), which points to a certificate. |
RCPointerArray< HBufC > & aTrustedUsages | (OUT) An array of OID strings indicating trusted usage. The notation is dot delimited (for example 1.23.456.7), the length of O D can vary. (OID=Object IDentifier). Caller is responsible of destroying array. |
TCertLocation & aLocation | (OUT) Indicates certificate directory location in Smart Card. |
TRequestStatus & aStatus | Indicates the result of this call. Values: KErrNotFound, given certificate KeyId was not found from card KErrNone, no errors, given certificate was found and trusted usage was present and location were known KErrPathNotFound, trusted usage was not found or location was not known KErrGeneral, any other error KErrNoMemory, No memory |
Initialize(TRequestStatus &)
Initializes the WIM server cache and restores certificates to WimClient memory area. This is the most time consuming call.
Parameters
TRequestStatus & aStatus | Indicates the result of this call. Values: KErrNotFound, no certificates was found KErrNone, call was successull and at least one certificate found. KErrGeneral, any other error KErrNoMemory, no memory |
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 | -Error code which launched this event. |
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 to active scheduler to run other active objects. After a quick visit in actives cheduler, signal returns to RunL() and starts next phase of operation.
Member Enumerations Documentation
Enum TPhase
Different states of this state machine
Enumerators
EConnectClientSession | |
ECreateNewSession | |
EInitializeWim | |
EListCertsFromWim | |
EGetCertClientSession | |
ELocateCertificate | |
EGiveExtraData | |
Member Data Documentation
HBufC * iCertHBufTrustedUsageFromServer
HBufC * | iCertHBufTrustedUsageFromServer | [private] |
TPtr * iCertHBufTrustedUsageFromServerPtr
TPtr * | iCertHBufTrustedUsageFromServerPtr | [private] |
RArray< TUint > iCertTypes
RWimMgmt * iClientSession
TRequestStatus * iClientStatus
RWimCertMgmt * iConnectionHandle
PTPtr8 * iIssuerHashPtr
PTPtr8 * | iIssuerHashPtr | [private] |
TPtr8 * iKeyIdPointer
TPtr8 * | iKeyIdPointer | [private] |
HBufC8 * iKeyIdToBeMatched
HBufC8 * | iKeyIdToBeMatched | [private] |
RArray< HBufC8 * > iKeyIds
TCertLocation * iLocation
RArray< TUint > iTrustedUsageLengths
RCPointerArray< HBufC > * iTrustedUsages
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.