This example demonstrates how a Java program can locate a key by searching for keys with specific attribute values.
The following API functions are used: initializeLibrary, open, createSymmetricKey, locateByTextAttribute, destroy, close, and freeLibrary.