Interface Kv1SecretsRx
-
-
Field Summary
Fields Modifier and Type Field Description static Engine<Kv1SecretsRx>
ENGINE
KV (Key/Value) secrets engine version 1.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Single<CreateKv1.Response>
create(CreateKv1.Request request)
Create a new secret on the defined path.default Single<CreateKv1.Response>
create(String path, Map<String,String> newSecretValues)
Create a new secret on the defined path.Single<DeleteKv1.Response>
delete(DeleteKv1.Request request)
Delete the secret.default Single<DeleteKv1.Response>
delete(String path)
Delete the secret.Single<VaultOptionalResponse<GetKv1.Response>>
get(GetKv1.Request request)
Get a secret.default Single<Optional<Secret>>
get(String path)
Get a secret.Single<UpdateKv1.Response>
update(UpdateKv1.Request request)
Update a secret on the defined path.default Single<UpdateKv1.Response>
update(String path, Map<String,String> newValues)
Update a secret on the defined path.
-
-
-
Field Detail
-
ENGINE
static final Engine<Kv1SecretsRx> ENGINE
KV (Key/Value) secrets engine version 1.Documentation: https://www.vaultproject.io/docs/secrets/kv/kv-v1
-
-
Method Detail
-
get
default Single<Optional<Secret>> get(String path)
Get a secret.- Parameters:
path
- relative to the mount point, no leading slash- Returns:
- the secret if exists
-
get
Single<VaultOptionalResponse<GetKv1.Response>> get(GetKv1.Request request)
Get a secret.- Parameters:
request
- with secret's path- Returns:
- response with secret if found
-
create
default Single<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
Single<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 Single<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
Single<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 Single<DeleteKv1.Response> delete(String path)
Delete the secret.- Parameters:
path
- relative to the mount point, no leading slash- Returns:
- vault response
-
delete
Single<DeleteKv1.Response> delete(DeleteKv1.Request request)
Delete the secret.- Parameters:
request
- request with secret's path- Returns:
- vault response
-
-