Class VaultInitializationRequest
java.lang.Object
org.springframework.vault.support.VaultInitializationRequest
Value object to bind Vault HTTP Initialization API requests.
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic VaultInitializationRequest
create
(int secretShares, int secretThreshold) Create a new VaultInitializationRequest givensecretShares
andsecretThreshold
.int
int
-
Method Details
-
create
Create a new VaultInitializationRequest givensecretShares
andsecretThreshold
.- Parameters:
secretShares
- number of key shares.secretThreshold
- number of required keys for unsealing.- Returns:
- a new
VaultInitializationRequest
.
-
getSecretThreshold
public int getSecretThreshold()- Returns:
- required number of secret shares to unseal Vault.
-