This example demonstrates how a Java program uses streaming encryption / decryption KMIP operations.
This example shows that return data is not always available from a call to encryptInit/encryptUpdate but depends on the amount of data given to the server. The following API functions are used: initializeLibrary, open, createSymmetricKey, activate, encryptInit, encryptUpdate, encryptFinal, decryptInit, decryptUpdate, decryptFinal, revoke, destroy, close, and freeLibrary.