Package org.wildfly.security.json.util
Class JsonUtil
- java.lang.Object
-
- org.wildfly.security.json.util.JsonUtil
-
public class JsonUtil extends Object
Utilities for JSON manipulation.- Author:
- Pedro Igor
-
-
Constructor Summary
Constructors Constructor Description JsonUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static String
asString(jakarta.json.JsonValue value)
static Attributes
toAttributes(jakarta.json.JsonObject claims)
Returns aAttributes
instance based on the givenJsonObject
.
-
-
-
Method Detail
-
toAttributes
public static Attributes toAttributes(jakarta.json.JsonObject claims)
Returns aAttributes
instance based on the givenJsonObject
.- Parameters:
claims
- a json object with the claims to extract- Returns:
- an
Attributes
instance with attributes from the given json object
-
asString
private static String asString(jakarta.json.JsonValue value)
-
-