java.lang.Object
io.github.jopenlibs.vault.api.OperationsBase
io.github.jopenlibs.vault.api.sys.Seal
The implementing class for operations on REST endpoints, under the "seal/unseal/seal-status" section of the Vault HTTP API docs (https://www.vaultproject.io/api/system/index.html).
This class is not intended to be constructed directly. Rather, it is meant to used by way of
Vault in a DSL-style builder pattern. See the Javadoc comments of each
public method for usage examples.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.jopenlibs.vault.api.OperationsBase
OperationsBase.EndpointOperation<T> -
Field Summary
Fields inherited from class io.github.jopenlibs.vault.api.OperationsBase
config -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionseal()Seal the Vault.Check progress of unsealing the Vault.Enter a single master key share to progress the unsealing of the Vault.Enter a single master key share to progress the unsealing of the Vault.withNameSpace(String nameSpace) Methods inherited from class io.github.jopenlibs.vault.api.OperationsBase
getRest, retry
-
Constructor Details
-
Seal
-
-
Method Details
-
withNameSpace
-
seal
Seal the Vault.
- Returns:
- The response information returned from Vault
- Throws:
VaultException- If any error occurs, or unexpected response received from Vault
-
unseal
Enter a single master key share to progress the unsealing of the Vault.
- Parameters:
key- Single master key share- Returns:
- The response information returned from Vault
- Throws:
VaultException- If any error occurs, or unexpected response received from Vault
-
unseal
Enter a single master key share to progress the unsealing of the Vault.
- Parameters:
key- Single master key sharereset- Specifies if previously-provided unseal keys are discarded and the unseal process is reset- Returns:
- The response information returned from Vault
- Throws:
VaultException- If any error occurs, or unexpected response received from Vault
-
sealStatus
Check progress of unsealing the Vault.
- Returns:
- The response information returned from Vault
- Throws:
VaultException- If any error occurs, or unexpected response received from Vault
-