> For the complete documentation index, see [llms.txt](https://docs.keeper.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.keeper.io/release-notes/enterprise/keeper-secrets-manager/2026/java-sdk-18.0.0.md). Agents can also search and read this documentation through its [MCP server](https://docs.keeper.io/~gitbook/mcp).

# Java SDK 18.0.0

Released on \[TBD]

> **Breaking changes**
>
> **KSM-1654, KSM-1655:** A whole `keyPair` value is now a JSON object, where earlier versions returned Kotlin text such as `KeyPair(publicKey=..., privateKey=...)`. An unknown `keyPair` property now throws `NoSuchElementException`, where earlier versions returned an empty result. Check code that reads `keyPair` through notation.
>
> **KSM-1053:** `deleteFolder()` sends one `get_folders` request before the delete. It returns `access_denied` for a classic shared folder and `doesnt_exist` for an NSF or unknown folder, without a delete request for those UIDs. Neither result confirms a deletion. Update test code that queues server responses.

### Updates

* **KSM-1053:** Added support for NSF (Nested Shared Folders) records. `getSecrets()`, `createSecret()`, `createSecret2()`, `updateSecret()`, `uploadFile()`, and `deleteSecret()` work with records in NSF folders that are shared directly to the application. `getFolders(options, true)` also lists those folders. That call downloads every record that the application can access, and it fails above the server record limit. `KeeperFolder.isDrive` and `KeeperRecord.isDrive` identify NSF items. `deleteSecret()` and `deleteFolder()` return no item for a UID that the server did not match, so compare the result with the requested UIDs.
* **KSM-1061, KSM-1682:** `getFolders()` reads AES-GCM subfolders and top-level AES-GCM folder names, including names with trailing zero bytes. `updateFolder()` writes the folder name with the same cipher as the folder.
* **KSM-1634:** Concurrent `getSecrets()` calls no longer fail with `encrypted transmission key is invalid`. With the BouncyCastle provider registered, for example in Jenkins, a call could also leave SHA-256 broken until the JVM restarted. The SDK now creates its digest, key pair generator, and key factory for each call.
* **KSM-1045:** `getFolders()` works as the first call of a client that uses a new one-time token, and it finishes the binding of the client. If the server returns `access_denied` on that first request, the SDK removes the incomplete config file. Use a new one-time token on the same config path.
* **KSM-1887:** `updateFolder()` keeps the color and other metadata of a classic subfolder when it renames the folder.
* **KSM-1654, KSM-1655:** Notation returns the stored keys for `keyPair[0][privateKey]` and `keyPair[][publicKey]`, and `getValue` also accepts the legacy `keyPair[privateKey]` form. An empty second index selects the whole value, so `url[0][]` gives the same result as `url[0]`.
* **KSM-1871:** Fixed an issue where decrypted record content could be written to standard output in record parse error messages. Parse errors now show only the UID of the record, file, or folder and the exception class, and go to standard error. The log for a record, file, or folder that the SDK skips for any other reason, such as a decryption failure, now shows the exception class only.
* **KSM-1878:** Fixed an issue where configuration content could be included in the `InMemoryStorage` error message when a configuration string could not be parsed. The constructor now throws `SecretsManagerException` with a fixed message.

### **Resources**

* [Maven Central package](https://central.sonatype.com/artifact/com.keepersecurity.secrets-manager/core/18.0.0)
* [Java SDK Documentation](https://docs.keeper.io/keeperpam/secrets-manager/developer-sdk-library/java-sdk.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.keeper.io/release-notes/enterprise/keeper-secrets-manager/2026/java-sdk-18.0.0.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
