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. UseKv1SecretsRxin reactive code.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateKv1.Responsecreate(CreateKv1.Request request)Create a new secret on the defined path.default CreateKv1.Responsecreate(String path, Map<String,String> newSecretValues)Create a new secret on the defined path.DeleteKv1.Responsedelete(DeleteKv1.Request request)Delete the secret.default DeleteKv1.Responsedelete(String path)Delete the secret.VaultOptionalResponse<GetKv1.Response>get(GetKv1.Request request)Get a secret.default Optional<Secret>get(String path)Get a secret.UpdateKv1.Responseupdate(UpdateKv1.Request request)Update a secret on the defined path.default UpdateKv1.Responseupdate(String path, Map<String,String> newValues)Update a secret on the defined path.
-
-
-
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
-
get
VaultOptionalResponse<GetKv1.Response> get(GetKv1.Request request)
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 slashnewSecretValues- 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 slashnewValues- 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
-
delete
DeleteKv1.Response delete(DeleteKv1.Request request)
Delete the secret.- Parameters:
request- request with secret's path- Returns:
- vault response
-
-