CryptoSpi::CCryptoSpiStateApi Class Reference

class CryptoSpi::CCryptoSpiStateApi

The class provides the APIs to set and unset the rule-based selector.

Public Member Functions
IMPORT_C voidEnumerateCharacteristicsL(RPointerArray< CCharacteristicsAndPluginName > &, TInt32, TBool)
IMPORT_C voidSetSelector(MPluginSelector *)
IMPORT_C voidUnsetSelector()

Member Functions Documentation

EnumerateCharacteristicsL(RPointerArray< CCharacteristicsAndPluginName > &, TInt32, TBool)

IMPORT_C voidEnumerateCharacteristicsL(RPointerArray< CCharacteristicsAndPluginName > &aCharacteristics,
TInt32aInterface,
TBoolaExtended
)[static]
Enumerate the all characteristics in the system
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

RPointerArray< CCharacteristicsAndPluginName > & aCharacteristicsthe array of characteristic dll list.
TInt32 aInterfacethe uid of the interface, 0 means that enumerating characteristics for all the interfaces
TBool aExtendedif extended characteristic needs to be retrieved.

SetSelector(MPluginSelector *)

IMPORT_C voidSetSelector(MPluginSelector *aSelector)[static]

Set the rule-based selector for the current thread. Once the rule-based selector is set, it will be used by the crypto factory to select appropriate plugin implementation. The owner of the selector is the user, and the ownership is not transferd.

Parameters

MPluginSelector * aSelectorThe plugin selector to use

UnsetSelector()

IMPORT_C voidUnsetSelector()[static]

The function unsets the selector for the current thread, so that the legacy selector will be used to select plugins.