Class VaultInitializationRequest

java.lang.Object
org.springframework.vault.support.VaultInitializationRequest

public class VaultInitializationRequest extends Object
Value object to bind Vault HTTP Initialization API requests.
Author:
Mark Paluch
  • Method Details

    • create

      public static VaultInitializationRequest create(int secretShares, int secretThreshold)
      Create a new VaultInitializationRequest given secretShares and secretThreshold.
      Parameters:
      secretShares - number of key shares.
      secretThreshold - number of required keys for unsealing.
      Returns:
      a new VaultInitializationRequest.
    • getSecretShares

      public int getSecretShares()
      Returns:
      number of secret shares.
    • getSecretThreshold

      public int getSecretThreshold()
      Returns:
      required number of secret shares to unseal Vault.