public class JSONEntitlement extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_DECISION_ARRAY_KEY |
Constructor and Description |
---|
JSONEntitlement(org.json.JSONObject jo)
Constructor.
|
JSONEntitlement(String resourceName,
Map<String,Boolean> actionValues,
Map<String,Set<String>> advices,
Map<String,Set<String>> attributes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getActionValue(String action) |
Map<String,Boolean> |
getActionValues() |
Map<String,Set<String>> |
getAdvices() |
Map<String,Set<String>> |
getAttributes() |
static List<JSONEntitlement> |
getEntitlements(org.json.JSONObject jo) |
String |
getResourceName()
Returns resource name.
|
org.json.JSONObject |
toJSONObject() |
public static final String JSON_DECISION_ARRAY_KEY
public JSONEntitlement(String resourceName, Map<String,Boolean> actionValues, Map<String,Set<String>> advices, Map<String,Set<String>> attributes)
resourceName
- reource name.actionValues
- action values.public JSONEntitlement(org.json.JSONObject jo) throws org.json.JSONException
jo
- JSON object.org.json.JSONException
- if jo
is not well formed.public String getResourceName()
public org.json.JSONObject toJSONObject() throws org.json.JSONException
org.json.JSONException
public static List<JSONEntitlement> getEntitlements(org.json.JSONObject jo) throws org.json.JSONException
org.json.JSONException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.