Class ExternalVaultConfigLoader


  • public class ExternalVaultConfigLoader
    extends Object
    ExternalVaultLoader contains utilities to load configuration file content required for External vault loader implementation.
    • Method Detail

      • loadExternalVaultConfigs

        public static void loadExternalVaultConfigs​(org.wso2.carbon.securevault.SecretCallbackHandlerService secretCallbackHandlerService)
                                             throws ExternalVaultException
        Reads the external-vaults.xml file located in conf/security dir and loads to the memory.
        Parameters:
        secretCallbackHandlerService - secret resolver to resolve the cipher-tool encrypted secrets
        Throws:
        ExternalVaultException
      • getVaultParameters

        public static Map<String,​String> getVaultParameters​(String name)
        Get the external vault configuration map based on the given vault name.
        Parameters:
        name - vault name