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 SummaryConstructors Constructor Description JsonUtils()
 - 
Method SummaryAll 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- 
splitClaimPathpublic 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
 
 - 
hasPathpublic static boolean hasPath(String claim) Determines if the givenclaimcontains paths.- Parameters:
- claim- the claim
- Returns:
- trueif the- claimcontains paths. Otherwise, false.
 
 
- 
 
-