Class VaultKvManager

    • Constructor Detail

      • VaultKvManager

        public VaultKvManager()
    • Method Detail

      • readSecret

        public Map<String,​String> readSecret​(String path)
        Description copied from interface: VaultKVSecretEngine
        Provides the values stored in the Vault kv secret engine at a particular path.
        Specified by:
        readSecret in interface VaultKVSecretEngine
        Parameters:
        path - in Vault, without the kv engine mount path
        Returns:
        list of key value pairs stored at 'path' in Vault
      • writeSecret

        public void writeSecret​(String path,
                                Map<String,​String> secret)
        Description copied from interface: VaultKVSecretEngine
        Writes the secret at the given path. If the path does not exist, the secret will be created. If not the new secret will be merged with the existing one.
        Specified by:
        writeSecret in interface VaultKVSecretEngine
        Parameters:
        path - in Vault, without the kv engine mount path
        secret - to write at path
      • deleteSecret

        public void deleteSecret​(String path)
        Description copied from interface: VaultKVSecretEngine
        Deletes the secret at the given path. It has no effect if no secret is currently stored at path.
        Specified by:
        deleteSecret in interface VaultKVSecretEngine
        Parameters:
        path - to delete