Interface CubbyholeSecretsRx
-
-
Field Summary
Fields Modifier and Type Field Description static Engine<CubbyholeSecretsRx>
ENGINE
Cubbyhole (token scoped) secrets engine.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Single<CreateCubbyhole.Response>
create(CreateCubbyhole.Request request)
Create a new secret on the defined path.default Single<CreateCubbyhole.Response>
create(String path, Map<String,String> values)
Create a Cubbyhole secret.Single<DeleteCubbyhole.Response>
delete(DeleteCubbyhole.Request request)
Delete the secret.default Single<DeleteCubbyhole.Response>
delete(String path)
Delete a Cubbyhole secret.Single<VaultOptionalResponse<GetCubbyhole.Response>>
get(GetCubbyhole.Request request)
Get a secret.default Single<Optional<Secret>>
get(String path)
Get a Cubbyhole secret.Single<UpdateCubbyhole.Response>
update(UpdateCubbyhole.Request request)
Update a secret on the defined path.
-
-
-
Field Detail
-
ENGINE
static final Engine<CubbyholeSecretsRx> ENGINE
Cubbyhole (token scoped) secrets engine.Documentation: https://www.vaultproject.io/docs/secrets/cubbyhole
-
-
Method Detail
-
get
default Single<Optional<Secret>> get(String path)
Get a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- secret if found
-
create
default Single<CreateCubbyhole.Response> create(String path, Map<String,String> values)
Create a Cubbyhole secret.- Parameters:
path
- secret's pathvalues
- value of the new secret- Returns:
- vault response
-
delete
default Single<DeleteCubbyhole.Response> delete(String path)
Delete a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- vault response
-
get
Single<VaultOptionalResponse<GetCubbyhole.Response>> get(GetCubbyhole.Request request)
Get a secret.- Parameters:
request
- get cubbyhole request- Returns:
- the secret if exists
-
create
Single<CreateCubbyhole.Response> create(CreateCubbyhole.Request request)
Create a new secret on the defined path.- Parameters:
request
- create cubbyhole request- Returns:
- vault response
-
update
Single<UpdateCubbyhole.Response> update(UpdateCubbyhole.Request request)
Update a secret on the defined path. The new values replace existing values.- Parameters:
request
- update request (same as create request)- Returns:
- vault response
-
delete
Single<DeleteCubbyhole.Response> delete(DeleteCubbyhole.Request request)
Delete the secret.- Parameters:
request
- delete request- Returns:
- vault response
-
-