This example demonstrates how a Java program can save KMIP Secret Data and Opaque Data object onto a KMIP server.
The contents of these objects originate in the Java program (e.g., password can be stored in a Secret Data object). The following API functions are used: initializeLibrary, open, registerSecretData, registerOpaqueObject, getSecretData, getOpaqueObject, destroy, close, freeLibrary.