Interface CubbyholeSecrets
-
- All Superinterfaces:
Secrets
public interface CubbyholeSecrets extends 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:
CubbyholeSecretsRx
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateCubbyhole.Response
create(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(String path, Map<String,String> values)
Create a Cubbyhole secret.DeleteCubbyhole.Response
delete(DeleteCubbyhole.Request request)
Delete the secret.default DeleteCubbyhole.Response
delete(String path)
Delete a Cubbyhole secret.VaultOptionalResponse<GetCubbyhole.Response>
get(GetCubbyhole.Request request)
Get a secret.default Optional<Secret>
get(String path)
Get a Cubbyhole secret.UpdateCubbyhole.Response
update(UpdateCubbyhole.Request request)
Update a secret on the defined path.
-
-
-
Method Detail
-
create
static CubbyholeSecrets create(CubbyholeSecretsRx reactiveSecrets)
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
default Optional<Secret> get(String path)
Get a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- secret if found
-
create
default 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 DeleteCubbyhole.Response delete(String path)
Delete a Cubbyhole secret.- Parameters:
path
- secret's path- Returns:
- vault response
-
get
VaultOptionalResponse<GetCubbyhole.Response> get(GetCubbyhole.Request request)
Get a secret.- Parameters:
request
- get cubbyhole request- Returns:
- the secret if exists
-
create
CreateCubbyhole.Response create(CreateCubbyhole.Request request)
Create a new secret on the defined path.- Parameters:
request
- create cubbyhole request- Returns:
- vault response
-
update
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
DeleteCubbyhole.Response delete(DeleteCubbyhole.Request request)
Delete the secret.- Parameters:
request
- delete request- Returns:
- vault response
-
-