AMT Help Files
homeAMT AdminAdvanced ConfigurationSecure Storage VaultsCustom Secure Storage

Custom Secure Storage

Custom Secure Storage allows organizations to integrate their own proprietary or third-party key vault solutions with AMT Java. This option provides flexibility for environments that use specialized security infrastructure not directly supported by the built-in vault types.

Configuring Custom Secure Storage

To use a custom vault implementation, you must first create a Java class that implements the AmtVaultAPI interface. This class will handle the connection logic and secret retrieval from your chosen secure storage solution.

Implementing AmtVaultAPI

Your custom vault class must implement the following interface:

package com.avanade.ltcoe.amt.secure.storage;

public interface AmtVaultAPI {
    void initialize(Map<String, String> vaultConfiguration) 
        throws AmtVaultInitializationException;
    
    String getSecret(String key);
}

The implementation should:

For reference examples, see the built-in implementations such as AmtSimpleVault, AmtAzureVault, or AmtHashiCorpVault in the secure storage API package.

Updating Secure Storage Configuration

After creating your custom vault implementation, update the Control Center or Application configuration file to reference your custom class:

secureStorages:
  - id: custom
    vaultType: Custom
    vaultClass: com.example.mycompany.MyCustomVault
    vaultConfiguration:
      # Add your custom configuration key-value pairs here
      customSetting1: value1
      customSetting2: value2

Configuration Parameters:

Important
If the class specified in vaultClass cannot be found on the classpath, the runtime will fail to start with a VaultClassNotFoundException.

Deployment Requirements

Your custom vault implementation must:

Good to know
Your custom vault implementation has access to all configuration values specified in vaultConfiguration, allowing you to pass connection strings, credentials, or any other settings your vault needs.

Contents

 Go to top