Interface Kv1Secrets

  • 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 Detail

      • 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
      • 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

        CreateKv1.Response create​(CreateKv1.Request request)
        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

        UpdateKv1.Response update​(UpdateKv1.Request request)
        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