Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IKMIPClient::initialize ( P6KMIPFLAGS  flags,
p6IKeystore pCerts,
P6KMIP_PREF  preferences 
)
pure virtual

Sets up the component to run properly.

Other configuration settings can be found in the p6kmip.conf file: [p6kmip-gen] logDir = "/var/log/KMIP/logs" errorStream = "kmipclient-errors.txt" uri = "/kmip"

Key: "logDir" is the absolute path to an existing, writable directory, where the client can write KMIP messages and other log information. "errorStream" is a file name in the logDir where the XML tools can write error and warnings.

Parameters
flags[ in ] Set perferences for the new object. These preferences are fixed during the lifetime of the object.
pCerts[ in ] Pointer to a P6R keystore that contains certificates and keys required by the SSL protocol for connections to a KMIP server. The passed in keystore must be openned via the p6IKeystoreInit interface before it is passed into this function. When this component is running in the P6R platform then this parameter can be NULL, in which case the platform keystore is used by default.
preferences[ in ] Allows the caller to tailor the actions of this KMIP client
Returns
SuccessP6R::eOk 
FailureP6R::eNoMemoryInsuffficient memory to properly initialize the component
P6R::eAlreadyInitializedOnly one successful call to this function is allowed.
P6R::eInvalidVersionThe pVersion parameter must be set to either "1.0" or "1.1" if not NULL.