Class VaultSecretStore

java.lang.Object
com.atlassian.secrets.store.vault.VaultSecretStore
All Implemented Interfaces:
SecretStore

public class VaultSecretStore extends Object implements SecretStore
A SecretStore implementation for storing and retrieving secret data from HashiCorp Vault.
Since:
3.1.0
  • Constructor Details

  • Method Details

    • get

      public String get(String jsonParams)
      Retrieves a secret value from HashiCorp Vault based on the provided JSON parameters.
      Specified by:
      get in interface SecretStore
      Parameters:
      jsonParams - the JSON parameters used to retrieve the secret value
      Returns:
      the secret value retrieved from HashiCorp Vault
      Throws:
      SecretStoreException - if there is a problem when getting the secret value
    • store

      public String store(String plainTextData)
      This method is used to store plaintext data.
      Specified by:
      store in interface SecretStore
      Parameters:
      plainTextData - The plaintext data to be stored.
      Throws:
      UnsupportedOperationException - Encryption is currently not supported for HashiCorp Vault.