-
public interface SysRx
Vault sys operation as reactive non-blocking API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Single<CreatePolicy.Response>
createPolicy(CreatePolicy.Request request)
Create a policy.default Single<CreatePolicy.Response>
createPolicy(String name, String policy)
Create a policy.Single<DeletePolicy.Response>
deletePolicy(DeletePolicy.Request request)
Delete a policy.default Single<DeletePolicy.Response>
deletePolicy(String name)
Delete a policy.Single<DisableAuth.Response>
disableAuth(DisableAuth.Request request)
Disable an authentication method.default Single<DisableAuth.Response>
disableAuth(String path)
Disable an authentication method.default Single<DisableEngine.Response>
disableEngine(Engine<?> engine)
Disable (unmount) a secret engine from default path.Single<DisableEngine.Response>
disableEngine(DisableEngine.Request request)
Disable (unmount) a secrets engine.default Single<DisableEngine.Response>
disableEngine(String path)
Disable (unmount) a secrets engine from specific path.default Single<EnableAuth.Response>
enableAuth(AuthMethod<?> authMethod)
Enable an authentication method on default path.Single<EnableAuth.Response>
enableAuth(EnableAuth.Request request)
Enable an authentication method on custom path or with additional configuration.default Single<EnableEngine.Response>
enableEngine(Engine<?> engine)
Enable (mount) a secret engine on a default path.Single<EnableEngine.Response>
enableEngine(EnableEngine.Request request)
Enable (mount) a secret engine with custom configuration.
-
-
-
Method Detail
-
enableEngine
default Single<EnableEngine.Response> enableEngine(Engine<?> engine)
Enable (mount) a secret engine on a default path.- Parameters:
engine
- engine to enable- Returns:
- when the engine is enabled
-
enableEngine
Single<EnableEngine.Response> enableEngine(EnableEngine.Request request)
Enable (mount) a secret engine with custom configuration.- Parameters:
request
- request for mount operation- Returns:
- when the engine is enabled
-
disableEngine
default Single<DisableEngine.Response> disableEngine(Engine<?> engine)
Disable (unmount) a secret engine from default path.- Parameters:
engine
- to disable- Returns:
- when the engine is disabled
-
disableEngine
default Single<DisableEngine.Response> disableEngine(String path)
Disable (unmount) a secrets engine from specific path.- Parameters:
path
- mount path- Returns:
- when the engine is disabled
-
disableEngine
Single<DisableEngine.Response> disableEngine(DisableEngine.Request request)
Disable (unmount) a secrets engine.- Parameters:
request
- disable engine request- Returns:
- disable engine response
-
enableAuth
default Single<EnableAuth.Response> enableAuth(AuthMethod<?> authMethod)
Enable an authentication method on default path.- Parameters:
authMethod
- authentication method to enable- Returns:
- when the method is enabled
-
enableAuth
Single<EnableAuth.Response> enableAuth(EnableAuth.Request request)
Enable an authentication method on custom path or with additional configuration.- Parameters:
request
- mount request- Returns:
- when the method is enabled
-
disableAuth
default Single<DisableAuth.Response> disableAuth(String path)
Disable an authentication method.- Parameters:
path
- path of the method- Returns:
- disable authentication method response
-
disableAuth
Single<DisableAuth.Response> disableAuth(DisableAuth.Request request)
Disable an authentication method.- Parameters:
request
- disable authentication method request- Returns:
- disable authentication method response
-
createPolicy
default Single<CreatePolicy.Response> createPolicy(String name, String policy)
Create a policy.- Parameters:
name
- name of the policypolicy
- policy document- Returns:
- when policy is created
-
createPolicy
Single<CreatePolicy.Response> createPolicy(CreatePolicy.Request request)
Create a policy.- Parameters:
request
- create a policy request- Returns:
- create policy response
-
deletePolicy
default Single<DeletePolicy.Response> deletePolicy(String name)
Delete a policy.- Parameters:
name
- name of the policy- Returns:
- when policy is deleted
-
deletePolicy
Single<DeletePolicy.Response> deletePolicy(DeletePolicy.Request request)
Delete a policy.- Parameters:
request
- delete policy request- Returns:
- delete policy response
-
-