CryptoSpi::CCryptoSpiStateApi Class Reference

class CryptoSpi::CCryptoSpiStateApi

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

Member Functions Documentation

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

IMPORT_C void EnumerateCharacteristicsL ( RPointerArray < CCharacteristicsAndPluginName > & aCharacteristics,
TInt32 aInterface,
TBool aExtended
) [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 > & aCharacteristics the array of characteristic dll list.
TInt32 aInterface the uid of the interface, 0 means that enumerating characteristics for all the interfaces
TBool aExtended if extended characteristic needs to be retrieved.

SetSelector(MPluginSelector *)

IMPORT_C void SetSelector ( 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 * aSelector The plugin selector to use

UnsetSelector()

IMPORT_C void UnsetSelector ( ) [static]

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