Example usage for org.springframework.vault.support JsonMapFlattener flatten

List of usage examples for org.springframework.vault.support JsonMapFlattener flatten

Introduction

In this page you can find the example usage for org.springframework.vault.support JsonMapFlattener flatten.

Prototype

public static Map<String, Object> flatten(Map<String, ? extends Object> inputMap) 

Source Link

Document

Flatten a hierarchical Map into a flat Map with key names using property dot notation.

Usage

From source file:org.springframework.vault.core.env.LeaseAwareVaultPropertySource.java

/**
 * Utility method converting a {@code String/Object} map to a {@code String/String}
 * map./*  w w  w  . j  a  v a  2s  . c om*/
 *
 * @param data the map
 * @return
 */
protected Map<String, String> toStringMap(Map<String, Object> data) {
    return JsonMapFlattener.flatten(data);
}