Class VaultSecretStore
java.lang.Object
com.atlassian.secrets.store.vault.VaultSecretStore
- All Implemented Interfaces:
SecretStore
A
SecretStore implementation for
storing and retrieving secret data from HashiCorp Vault.- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionVaultSecretStore(VaultTemplateFactory templateFactory, VaultAuthenticationProvider vaultAuthenticationProvider) -
Method Summary
-
Constructor Details
-
VaultSecretStore
public VaultSecretStore(VaultTemplateFactory templateFactory, VaultAuthenticationProvider vaultAuthenticationProvider) -
VaultSecretStore
public VaultSecretStore()
-
-
Method Details
-
get
Retrieves a secret value from HashiCorp Vault based on the provided JSON parameters.- Specified by:
getin interfaceSecretStore- 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
This method is used to store plaintext data.- Specified by:
storein interfaceSecretStore- Parameters:
plainTextData- The plaintext data to be stored.- Throws:
UnsupportedOperationException- Encryption is currently not supported for HashiCorp Vault.
-