Uses of Class
codes.grow.packages.vault.VaultClient
Packages that use VaultClient
Package
Description
Grow Codes SDK for HashiCorp Vault.
-
Uses of VaultClient in codes.grow.packages.vault
Methods in codes.grow.packages.vault that return VaultClientModifier and TypeMethodDescriptionVaultClient.Builder.build()Builds the configuration and the client.static VaultClientVaultClient.create(VaultConfig config) Creates a client.static VaultClientVaultClient.fromEnv()Creates a client from the SDK and vendor environment variables (GROW_HASHICORP_VAULT_*thenVAULT_*).VaultClient.withNamespace(String ns) Returns a view of this client whose requests carryX-Vault-Namespace: <ns>(""= the root namespace, no header; surrounding slashes are removed). -
Uses of VaultClient in codes.grow.packages.vault.testing
Methods in codes.grow.packages.vault.testing with parameters of type VaultClientModifier and TypeMethodDescriptionstatic VaultTesting.InitResultVaultTesting.init(VaultClient client, int secretShares, int secretThreshold) Initialises a new Shamir-sealed server (PUT sys/init).static VaultTesting.InitResultVaultTesting.initRecovery(VaultClient client, int recoveryShares, int recoveryThreshold) Initialises a server with an auto-unseal (KMS / transit) seal using recovery shares.static booleanVaultTesting.initStatus(VaultClient client) Whether the server is initialised:GET sys/init.static SealStatusVaultTesting.resetUnseal(VaultClient client) Discards the unseal keys entered so far (PUT sys/unseal {"reset": true}).static voidVaultTesting.seal(VaultClient client) Seals the server (PUT sys/seal, needs a root or sudo token on the client).static SealStatusVaultTesting.unseal(VaultClient client, Secret key) Enters one unseal key (hex or base64):PUT sys/unseal.static HealthResponseVaultTesting.waitForActive(VaultClient client, Duration timeout) Pollssys/healthevery 250 ms until the node is active (initialised, unsealed and leader).