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 ObjectgetJsonValue(com.fasterxml.jackson.databind.JsonNode node, String claim)Returns the value corresponding to the givenclaim.static booleanhasPath(String claim)Determines if the givenclaimcontains paths.static List<String>splitClaimPath(String claim)Splits the givenclaiminto separate paths if the value contains separators as perCLAIM_COMPONENT.
-
-
-
Method Detail
-
splitClaimPath
public static List<String> splitClaimPath(String claim)
Splits the givenclaiminto 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 givenclaimcontains paths.- Parameters:
claim- the claim- Returns:
trueif theclaimcontains paths. Otherwise, false.
-
-