Interface CubbyholeSecrets
- All Superinterfaces:
Secrets
Cubbyhole engine secrets API.
Cubbyhole secrets are scoped to the current token and are not visible by other users.
This is a blocking API that blocks the current thread for each method. DO NOT USE IN REACTIVE CODE.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(CreateCubbyhole.Request request) Create a new secret on the defined path.static CubbyholeSecrets
create
(CubbyholeSecretsRx reactiveSecrets) Create a new instance of blocking API for Cubbyhole secrets from its reactive counterpart.default CreateCubbyhole.Response
Create a Cubbyhole secret.delete
(DeleteCubbyhole.Request request) Delete the secret.default DeleteCubbyhole.Response
Delete a Cubbyhole secret.get
(GetCubbyhole.Request request) Get a secret.Get a Cubbyhole secret.update
(UpdateCubbyhole.Request request) Update a secret on the defined path.
-
Method Details
-
create
Create a new instance of blocking API for Cubbyhole secrets from its reactive counterpart. In an environment supporting injection, an instance can be injected and this method should never be called.- Parameters:
reactiveSecrets
- reactive Cubbyhole secrets- Returns:
- blocking Cubbyhole secrets
-
get
Get a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- secret if found
-
create
Create a Cubbyhole secret.- Parameters:
path
- secret's pathvalues
- value of the new secret- Returns:
- vault response
-
delete
Delete a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- vault response
-
get
Get a secret.- Parameters:
request
- get cubbyhole request- Returns:
- the secret if exists
-
create
Create a new secret on the defined path.- Parameters:
request
- create cubbyhole request- Returns:
- vault response
-
update
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
Delete the secret.- Parameters:
request
- delete request- Returns:
- vault response
-