We are trying to create a plugin for Centera and want to know how can we upload the PEA file for connection authentication. Is there a way for it?
This is a ConnectorPlugin, yes?
The best way to do this is to write the PEA file out to temporary storage associated with your PluginSession.
in startSession(), create a new PluginSession (declare your own subclass, see the examples) and use PluginCallback.getTempDirectory() to get a temp directory to write to. Write the PEA file out to that directory, and save the path somewhere in the session.
In all the other methods that need the PEA file, get its path from the session.
The temp directory will be cleaned up automatically when the framework closes the PluginSession.
I would certainly want someone from ENG to weigh in, but my initial thought would be that you would want to extract the information from the PEA and make it available as part of the Connector configuration. Similar to the HCP and S3 connectors for example.
Connector plugins cannot rely on separately uploaded artifacts currently. All configuration for the connector is isolated to the connector plugin's config. You can either expose separate PEA entries in the plugin config (as Jon Chinitz suggested), or have one config option where the user can paste the content of the PEA file (which is a clear-text, XML-formatted, non-encrypted file, from what I understand).
Is there a way that on saving the config, we can generate a PEA file and put it on a folder which is accessible to us later on? The reason I am asking is that we are using public centera for testing and they only have PEA file for authentication.
As a follow-up question:
Per Centera SDK:
Use the static public initializer loadFPLibrary to load the underlying library (dll or shared library), which contains methods defined by this class, if your environment requires this. The library is called FPLibrary.dll on Windows and libFPLibrary.so on a Unix system. Save the library to a location where the virtual machine can find it to load.
Can you please let me know if there any place we can put these so files and have plugin framework seeing them?
As we mention here: HCI: How to create a stage plugin that includes a closed source JNI with multiple .so files?
we do not support JNI currently.
Retrieving data ...