split VaultConnector interface into clients per module
All checks were successful
CI / build (11) (push) Successful in 33s
CI / build (17) (push) Successful in 31s
CI / build (true, 21) (push) Successful in 25s

The connector interface has grown quite big and does not even cover all
potential APIs. We now extract functionality into submodules and group
them to handle each area in separate interfaces. Provide fluent access,
strip prefixes from methods and preserve a 1:1 migration path.

Examples:

* connector.unseal() => connector.sys().unseal()
* connector.readSecretVersion() => connector.kv2().readVersion()
* connector.createToken() => connector.token().create()
* connector.lookupAppRole() => connector.appRole().lookup()
* connector.transitHash() => connector.transit().hash()
This commit is contained in:
2025-09-02 15:35:18 +02:00
parent e96ece3385
commit 1072e9b4a9
11 changed files with 1384 additions and 1120 deletions

View File

@@ -3,7 +3,7 @@
<groupId>de.stklcode.jvault</groupId>
<artifactId>jvault-connector</artifactId>
<version>1.5.3-SNAPSHOT</version>
<version>2.0.0-SNAPSHOT</version>
<packaging>jar</packaging>