Package org.keycloak.utils
Class JsonUtils
- java.lang.Object
-
- org.keycloak.utils.JsonUtils
-
public class JsonUtils extends Object
Utility methods for manipulating JSON objects.
-
-
Constructor Summary
Constructors Constructor Description JsonUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
getJsonValue(com.fasterxml.jackson.databind.JsonNode node, String claim)
Returns the value corresponding to the givenclaim
.static boolean
hasPath(String claim)
Determines if the givenclaim
contains paths.static List<String>
splitClaimPath(String claim)
Splits the givenclaim
into separate paths if the value contains separators as perCLAIM_COMPONENT
.
-
-
-
Method Detail
-
splitClaimPath
public static List<String> splitClaimPath(String claim)
Splits the givenclaim
into separate paths if the value contains separators as perCLAIM_COMPONENT
.- Parameters:
claim
- the claim- Returns:
- a list with the paths
-
hasPath
public static boolean hasPath(String claim)
Determines if the givenclaim
contains paths.- Parameters:
claim
- the claim- Returns:
true
if theclaim
contains paths. Otherwise, false.
-
-