> 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/jp/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

2026年11月30日リリース

> **互換性に影響する変更**
>
> **KSM-1654、KSM-1655:** `keyPair` の値全体がJSONオブジェクトとして返されるようになりました。以前のバージョンでは `KeyPair(publicKey=..., privateKey=...)` のようなKotlinの文字列が返されていました。また、存在しない `keyPair` プロパティを指定すると `NoSuchElementException` が送出されます。以前のバージョンでは空の結果が返されていました。表記法 (notation) で `keyPair` を読み取っているコードを確認してください。
>
> **KSM-1053:** `deleteFolder()` は、削除の前に `get_folders` リクエストを1回送信します。従来型の共有フォルダに対しては `access_denied` を、NSFまたは不明なフォルダに対しては `doesnt_exist` を返し、これらのUIDに対する削除リクエストは送信しません。どちらの結果も、削除が行われたことを示すものではありません。サーバーのレスポンスをキューに入れるテストコードを更新してください。

### 更新内容 <a href="#updates" id="updates"></a>

* **KSM-1053:** 階層型共有フォルダ (NSF) のレコードのサポートを追加。アプリケーションに直接共有されているNSFフォルダ内のレコードに対して、`getSecrets()`、`createSecret()`、`createSecret2()`、`updateSecret()`、`uploadFile()`、`deleteSecret()` が動作します。`getFolders(options, true)` でも、これらのフォルダを一覧表示できます。この呼び出しはアプリケーションがアクセスできるすべてのレコードをダウンロードするため、サーバーのレコード数の上限を超えると失敗します。`KeeperFolder.isDrive` と `KeeperRecord.isDrive` で、NSFの項目を識別できます。`deleteSecret()` と `deleteFolder()` は、サーバーが一致を確認できなかったUIDに対して項目を返さないため、結果をリクエストしたUIDと照合してください。
* **KSM-1061、KSM-1682:** `getFolders()` は、AES-GCMを使用するサブフォルダと、末尾にゼロバイトを含むものを含め、AES-GCMを使用する最上位フォルダの名前を読み取れるようになりました。`updateFolder()` は、フォルダ名をそのフォルダと同じ暗号方式で書き込みます。
* **KSM-1634:** `getSecrets()` を同時に呼び出しても、`encrypted transmission key is invalid` で失敗しなくなりました。JenkinsなどでBouncyCastleプロバイダーが登録されている場合、呼び出しによってJVMを再起動するまでSHA-256が使用できなくなることもありました。SDKは、呼び出しごとにダイジェスト、鍵ペアジェネレーター、鍵ファクトリーを作成するようになりました。
* **KSM-1045:** 新しいワンタイムトークンを使用するクライアントの最初の呼び出しとして `getFolders()` を実行でき、クライアントの紐付けも完了します。最初のリクエストでサーバーが `access_denied` を返した場合、SDKは不完全な構成ファイルを削除します。同じ構成パスで、新しいワンタイムトークンを使用してください。
* **KSM-1887:** `updateFolder()` は、従来型のサブフォルダの名前を変更する際に、そのフォルダの色などのメタデータを保持します。
* **KSM-1654、KSM-1655:** 表記法 (notation) で、`keyPair[0][privateKey]` と `keyPair[][publicKey]` に対して保存されているキーが返されるようになりました。また、`getValue` は従来の `keyPair[privateKey]` 形式も受け付けます。2番目のインデックスを空にすると値全体が選択されるため、`url[0][]` は `url[0]` と同じ結果になります。
* **KSM-1871:** レコードの解析エラーメッセージに、復号されたレコードの内容が標準出力へ書き込まれる可能性がある不具合を修正。解析エラーでは、レコード、ファイル、フォルダのUIDと例外クラスのみが標準エラー出力に表示されるようになりました。復号の失敗など、ほかの理由でSDKがスキップしたレコード、ファイル、フォルダのログにも、例外クラスのみが表示されます。
* **KSM-1878:** 構成文字列を解析できない場合に、`InMemoryStorage` のエラーメッセージに構成の内容が含まれる可能性がある不具合を修正。コンストラクターは、固定のメッセージとともに `SecretsManagerException` を送出するようになりました。

### **リソース** <a href="#resources" id="resources"></a>

* [Maven Centralパッケージ](https://central.sonatype.com/artifact/com.keepersecurity.secrets-manager/core/18.0.0)
* [Java SDKに関するドキュメント](https://docs.keeper.io/keeperpam/jp/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/jp/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.
