IM InfoSphere Identity Insight, Version 8.0

Scoring plugin development interface

Custom scoring plugins require a standard interface.

Use primitive objects to eliminate a dependence on library versions and compiler options. This allows plugins to be used with multiple pipeline versions without having to rebuild the plugin when the pipeline changes library, compiler versions, or other options. You must include the following C or C++ interface prototypes:

#ifdef _WIN32
#define _DLEXPORT __declspec(dllexport)
#else
#define _DLEXPORT
#endif

extern "C"
{
  _DLEXPORT const int initPlugin(const char *configInfo, 
                                 const uint configSize, 
                                 char *errorStr, 
                                 const uint maxStrSize);
  _DLEXPORT const char *getVersion();
  _DLEXPORT const int score(const char *thresholdStr, 
                            const uint thresholdSize,
                            const char *inboundStr, 
                            const uint inboundSize, 
                            const char *candidateStr, 
                            const uint candidateSize, 
                            char *result, 
                            const uint resultSize);
};


Feedback

Last updated: 2011