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 fromLISToperations.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 fromLISToperations. Finds thedataobject, and processes thekeysarray.- Parameters:
response- JSON response from APILISTcall- 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 isnilor 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
-