Class VaultSecretBackend

java.lang.Object
com.atlassian.secrets.service.vault.VaultSecretBackend
All Implemented Interfaces:
SecretServiceBackend

public class VaultSecretBackend extends Object implements SecretServiceBackend
This class is an implementation of SecretServiceBackend for interacting with HashiCorp Vault. It provides methods to seal and unseal secrets.
Since:
5.0.0
  • Field Details

  • Constructor Details

    • VaultSecretBackend

      public VaultSecretBackend(String backendId, VaultConfig config)
      Constructs a new VaultSecretService with the provided configuration. Uses default implementations for the template factory and authentication provider.
      Parameters:
      config - the configuration for the HashiCorp Vault
    • VaultSecretBackend

      public VaultSecretBackend(String backendId, VaultConfig vaultConfig, VaultTemplateFactory templateFactory, VaultAuthenticationProvider authenticationProvider)
      Constructs a new VaultSecretService with the provided configuration, template factory, and authentication provider. This constructor is useful for testing purposes.
      Parameters:
      vaultConfig - the configuration for the HashiCorp Vault
      templateFactory - the factory to create VaultTemplates
      authenticationProvider - the provider for Vault authentication
  • Method Details