/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/entitlement/ |
H A D | EntitlementConditionAdaptor.java | 67 protected void setState(JSONObject jo) { argument 68 displayType = (jo.has("displayType")) ? jo.optString("displayType") : 72 protected void toJSONObject(JSONObject jo) argument 75 jo.put("displayType", displayType);
|
H A D | EntitlementListener.java | 48 public EntitlementListener(JSONObject jo) argument 50 String strURL = jo.optString("url"); 58 mapAppToRes = JSONUtils.getMapStringSetString(jo, "mapAppToRes"); 62 JSONObject jo = new JSONObject(); 63 jo.put("url", url.toString()); 64 jo.put("mapAppToRes", mapAppToRes); 65 return jo;
|
H A D | ReferralPrivilege.java | 122 public static ReferralPrivilege getInstance(JSONObject jo) { argument 125 r.name = jo.optString("name"); 126 r.description = jo.optString("description"); 127 if (jo.has("createdBy")) { 128 r.createdBy = jo.getString("createdBy"); 130 if (jo.has("lastModifiedBy")) { 131 r.lastModifiedBy = jo.getString("lastModifiedBy"); 133 if (jo.has("active")) { 134 r.active = jo.getBoolean("active"); 136 r.creationDate = JSONUtils.getLong(jo, "creationDat [all...] |
H A D | Entitlement.java | 91 public Entitlement(JSONObject jo) throws JSONException { argument 92 name = (String) jo.opt("name"); 93 applicationName = (String) jo.opt("applicationName"); 94 resourceNames = JSONUtils.getSet(jo, "resourceNames"); 95 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 96 advices = JSONUtils.getMapStringSetString(jo, "advices"); 97 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 569 JSONObject jo = toJSONObject(); 570 s = (jo == null) ? super.toString() : jo [all...] |
H A D | Privilege.java | 356 JSONObject jo = toJSONObject(); 357 s = (jo == null) ? super.toString() : jo.toString(2); 366 JSONObject jo = new JSONObject(); 367 jo.put(NAME_ATTRIBUTE, name); 370 jo.put("description", description); 373 jo.put("entitlement", entitlement.toJSONObject()); 380 jo.put("eSubject", subjo); 387 jo.put("eCondition", subjo); 395 jo 428 init(JSONObject jo) argument 430 getInstance(JSONObject jo) argument 468 getResourceAttributes(JSONObject jo) argument 498 getESubject(JSONObject jo) argument 521 getECondition(JSONObject jo) argument 903 getNewInstance(String jo) argument 915 getNewInstance(JSONObject jo) argument [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/entitlement/ |
H A D | EntitlementConditionAdaptor.java | 67 protected void setState(JSONObject jo) { argument 68 displayType = (jo.has("displayType")) ? jo.optString("displayType") : 72 protected void toJSONObject(JSONObject jo) argument 75 jo.put("displayType", displayType);
|
H A D | EntitlementListener.java | 48 public EntitlementListener(JSONObject jo) argument 50 String strURL = jo.optString("url"); 58 mapAppToRes = JSONUtils.getMapStringSetString(jo, "mapAppToRes"); 62 JSONObject jo = new JSONObject(); 63 jo.put("url", url.toString()); 64 jo.put("mapAppToRes", mapAppToRes); 65 return jo;
|
H A D | Entitlement.java | 92 public Entitlement(JSONObject jo) throws JSONException { argument 93 name = (String) jo.opt("name"); 94 applicationName = (String) jo.opt("applicationName"); 95 resourceNames = JSONUtils.getSet(jo, "resourceNames"); 96 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 97 advices = JSONUtils.getMapStringSetString(jo, "advices"); 98 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 570 JSONObject jo = toJSONObject(); 571 s = (jo == null) ? super.toString() : jo [all...] |
H A D | ReferralPrivilege.java | 135 public static ReferralPrivilege getInstance(JSONObject jo) { argument 138 r.name = jo.optString("name"); 139 r.description = jo.optString("description"); 140 if (jo.has("createdBy")) { 141 r.createdBy = jo.getString("createdBy"); 143 if (jo.has("lastModifiedBy")) { 144 r.lastModifiedBy = jo.getString("lastModifiedBy"); 146 if (jo.has("active")) { 147 r.active = jo.getBoolean("active"); 149 r.creationDate = JSONUtils.getLong(jo, "creationDat [all...] |
/forgerock/openam-v13/openam-entitlements/src/main/java/com/sun/identity/entitlement/ |
H A D | JSONEntitlement.java | 67 * @param jo JSON object. 68 * @throws JSONException if <code>jo</code> is not well formed. 70 public JSONEntitlement(JSONObject jo) throws JSONException { argument 71 resourceName = jo.optString("resourceName"); 72 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 73 advices = JSONUtils.getMapStringSetString(jo, "advices"); 74 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 103 JSONObject jo = new JSONObject(); 104 jo.put("actionsValues", actionValues); 105 jo 118 getEntitlements(JSONObject jo) argument [all...] |
/forgerock/openam-v13/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/rest/ |
H A D | StubPrivilege.java | 56 protected void init(JSONObject jo) { argument
|
/forgerock/openam/openam-entitlements/src/main/java/com/sun/identity/entitlement/ |
H A D | JSONEntitlement.java | 67 * @param jo JSON object. 68 * @throws JSONException if <code>jo</code> is not well formed. 70 public JSONEntitlement(JSONObject jo) throws JSONException { argument 71 resourceName = jo.optString("resourceName"); 72 actionValues = JSONUtils.getMapStringBoolean(jo, "actionsValues"); 73 advices = JSONUtils.getMapStringSetString(jo, "advices"); 74 attributes = JSONUtils.getMapStringSetString(jo, "attributes"); 103 JSONObject jo = new JSONObject(); 104 jo.put("actionsValues", actionValues); 105 jo 118 getEntitlements(JSONObject jo) argument [all...] |
/forgerock/openam/openam-entitlements/src/test/java/org/forgerock/openam/entitlement/rest/ |
H A D | StubPrivilege.java | 56 protected void init(JSONObject jo) { argument
|
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | PolicyCondition.java | 123 JSONObject jo = new JSONObject(state); 124 setState(jo); 125 this.name = jo.optString("name"); 126 this.className = jo.optString("className"); 127 this.properties = getProperties((JSONObject)jo.opt("properties")); 133 private Map<String, Set<String>> getProperties(JSONObject jo) argument 136 for (Iterator i = jo.keys(); i.hasNext(); ) { 138 JSONArray arr = (JSONArray)jo.opt(key); 155 JSONObject jo = new JSONObject(); 158 toJSONObject(jo); [all...] |
H A D | PolicySubject.java | 131 JSONObject jo = new JSONObject(state); 132 this.name = jo.optString("name"); 133 this.className = jo.optString("className"); 134 this.exclusive = jo.optBoolean("exclusive"); 135 this.values = getValues((JSONArray)jo.opt("values")); 141 private Set<String> getValues(JSONArray jo) argument 144 for (int i = 0; i < jo.length(); i++) { 145 result.add(jo.getString(i)); 156 JSONObject jo = new JSONObject(); 159 jo [all...] |
H A D | OpenSSOPrivilege.java | 218 JSONObject jo = super.toJSONObject(); 220 jo.put("policyName", policyName); 222 return jo; 225 protected void init(JSONObject jo) { argument 226 policyName = jo.optString("policyName");
|
H A D | PolicyResponseProvider.java | 200 JSONObject jo = new JSONObject(); 203 jo.put("className", className); 204 jo.put("propertyValues", propertyValues); 205 jo.put("pResponseProviderName", pResponseProviderName); 206 jo.put("propertyName", propertyName); 207 return jo.toString(2); 220 JSONObject jo = new JSONObject(state); 221 this.className = jo.optString("className"); 222 this.propertyValues = JSONUtils.getSet(jo, "propertyValues"); 223 this.pResponseProviderName = jo 250 getProperties(JSONObject jo) argument [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | PolicyCondition.java | 123 JSONObject jo = new JSONObject(state); 124 setState(jo); 125 this.name = jo.optString("name"); 126 this.className = jo.optString("className"); 127 this.properties = getProperties((JSONObject)jo.opt("properties")); 133 private Map<String, Set<String>> getProperties(JSONObject jo) argument 136 for (Iterator i = jo.keys(); i.hasNext(); ) { 138 JSONArray arr = (JSONArray)jo.opt(key); 155 JSONObject jo = new JSONObject(); 158 toJSONObject(jo); [all...] |
H A D | PolicySubject.java | 131 JSONObject jo = new JSONObject(state); 132 this.name = jo.optString("name"); 133 this.className = jo.optString("className"); 134 this.exclusive = jo.optBoolean("exclusive"); 135 this.values = getValues((JSONArray)jo.opt("values")); 141 private Set<String> getValues(JSONArray jo) argument 144 for (int i = 0; i < jo.length(); i++) { 145 result.add(jo.getString(i)); 156 JSONObject jo = new JSONObject(); 159 jo [all...] |
H A D | OpenSSOPrivilege.java | 219 JSONObject jo = super.toJSONObject(); 221 jo.put("policyName", policyName); 223 return jo; 226 protected void init(JSONObject jo) { argument 227 policyName = jo.optString("policyName");
|
H A D | PolicyResponseProvider.java | 200 JSONObject jo = new JSONObject(); 203 jo.put("className", className); 204 jo.put("propertyValues", propertyValues); 205 jo.put("pResponseProviderName", pResponseProviderName); 206 jo.put("propertyName", propertyName); 207 return jo.toString(2); 220 JSONObject jo = new JSONObject(state); 221 this.className = jo.optString("className"); 222 this.propertyValues = JSONUtils.getSet(jo, "propertyValues"); 223 this.pResponseProviderName = jo 250 getProperties(JSONObject jo) argument [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/coretoken/spi/ |
H A D | OpenSSOCoreTokenStore.java | 399 String tokenType, JSONObject jo) throws JSONException { 402 for (Iterator i = jo.keys(); i.hasNext(); ) { 407 JSONArray arr = (JSONArray)jo.getJSONArray(key); 397 getSearchableAttribute( JSONArray tokenSubject, String tokenType, JSONObject jo) argument
|
/forgerock/openam-v13/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/ |
H A D | IPvXCondition.java | 122 JSONObject jo = new JSONObject(state); 123 setState(jo); 124 setIpRangesFromJson(jo); 125 setDnsNamesFromJson(jo); 126 setStartIpAndEndIpFromJson(jo); 134 private void setStartIpAndEndIpFromJson(JSONObject jo) throws JSONException, EntitlementException { argument 135 String ipStart = jo.has(START_IP) ? jo.getString(START_IP) : null; 136 String ipEnd = jo.has(END_IP) ? jo 140 setIpRangesFromJson(JSONObject jo) argument 154 setDnsNamesFromJson(JSONObject jo) argument [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/coretoken/spi/ |
H A D | OpenSSOCoreTokenStore.java | 401 String tokenType, JSONObject jo) throws JSONException { 404 for (Iterator i = jo.keys(); i.hasNext(); ) { 409 JSONArray arr = (JSONArray)jo.getJSONArray(key); 399 getSearchableAttribute( JSONArray tokenSubject, String tokenType, JSONObject jo) argument
|
/forgerock/openam/openam-entitlements/src/main/java/org/forgerock/openam/entitlement/conditions/environment/ |
H A D | IPvXCondition.java | 122 JSONObject jo = new JSONObject(state); 123 setState(jo); 124 setIpRangesFromJson(jo); 125 setDnsNamesFromJson(jo); 126 setStartIpAndEndIpFromJson(jo); 134 private void setStartIpAndEndIpFromJson(JSONObject jo) throws JSONException, EntitlementException { argument 135 String ipStart = jo.has(START_IP) ? jo.getString(START_IP) : null; 136 String ipEnd = jo.has(END_IP) ? jo 140 setIpRangesFromJson(JSONObject jo) argument 154 setDnsNamesFromJson(JSONObject jo) argument [all...] |