java.lang.Object
io.helidon.integrations.vault.VaultUtil
Utility class for Vault API.
-
Method Summary
Modifier and TypeMethodDescriptionarrayToList
(JsonArray array) Create a list of strings from JSON array.processListDataResponse
(JsonObject response) Process response fromLIST
operations.toMap
(JsonObject object, String name) Return a map of a json object that is nested in the provided object.
-
Method Details
-
arrayToList
Create a list of strings from JSON array.- Parameters:
array
- array to process- Returns:
- each element from the array as a string
-
processListDataResponse
Process response fromLIST
operations. Finds thedata
object, and processes thekeys
array.- Parameters:
response
- JSON response from APILIST
call- Returns:
- keys as a list of strings
-
toMap
Return a map of a json object that is nested in the provided object. If the name isnil
or not present, returns an empty map.- Parameters:
object
- JSON object to processname
- name of a nested JSON object to return as a map- Returns:
- map representation of the nested object
-