CryptoSpi::CCryptoSpiStateApi Class Reference

#include <cryptospi/cryptospistateapi.h>

Link against: cryptospi.lib

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

Detailed Description

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

Member Function 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.
ParameterDescription
aCharacteristicsthe array of characteristic dll list.
aInterfacethe uid of the interface, 0 means that enumerating characteristics for all the interfaces
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.

ParameterDescription
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.