All Superinterfaces:
Secrets

public interface Kv1Secrets extends Secrets
Secrets for KV version 1 secrets engine. All methods block the current thread. This implementation is not suitable for reactive programming. Use Kv1SecretsRx in reactive code.
  • Method Details

    • get

      default Optional<Secret> get(String path)
      Get a secret.
      Parameters:
      path - relative to the mount point, no leading slash
      Returns:
      the secret if exists
    • get

      Get a secret.
      Parameters:
      request - with secret's path
      Returns:
      response with secret if found
    • create

      default CreateKv1.Response create(String path, Map<String,String> newSecretValues)
      Create a new secret on the defined path.
      Parameters:
      path - relative to the mount point, no leading slash
      newSecretValues - values to use in the new secret
      Returns:
      vault response
    • create

      Create a new secret on the defined path.
      Parameters:
      request - with path and secret's values
      Returns:
      vault response
    • update

      default UpdateKv1.Response update(String path, Map<String,String> newValues)
      Update a secret on the defined path. The new values replace existing values.
      Parameters:
      path - relative to the mount point, no leading slash
      newValues - new values of the secret
      Returns:
      vault response
    • update

      Update a secret on the defined path. The new values replace existing values.
      Parameters:
      request - with secret's path and new values
      Returns:
      vault response
    • delete

      default DeleteKv1.Response delete(String path)
      Delete the secret.
      Parameters:
      path - relative to the mount point, no leading slash
      Returns:
      vault response
    • delete

      Delete the secret.
      Parameters:
      request - request with secret's path
      Returns:
      vault response