JSONUtil
instead.@Deprecated
public class JSONUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_SUFFIX_XSS
Deprecated.
Key suffix for XSS protected properties
|
Constructor and Description |
---|
JSONUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
putProtected(JSONObject object,
java.lang.String key,
java.lang.String value,
XSSFilter xss)
Deprecated.
Puts a xss protected value into a JSON object.
|
static void |
putWithProtected(JSONObject object,
java.lang.String key,
java.lang.String value,
XSSFilter xss)
Deprecated.
Puts a value into a JSON object
In addition, the xss protected value is put under the provided key appended by
KEY_SUFFIX_XSS |
static void |
writeProtected(JSONWriter writer,
java.lang.String key,
java.lang.String[] values,
XSSFilter xss)
Deprecated.
Writes a xss protected value array into a JSON writer.
|
static void |
writeProtected(JSONWriter writer,
java.lang.String key,
java.lang.String value,
XSSFilter xss)
Deprecated.
Writes a xss protected value into a JSON writer.
|
static void |
writeWithProtected(JSONWriter writer,
java.lang.String key,
java.lang.String[] values,
XSSFilter xss)
Deprecated.
Writes a value array into a JSON write.
|
static void |
writeWithProtected(JSONWriter writer,
java.lang.String key,
java.lang.String value,
XSSFilter xss)
Deprecated.
Writes a value into a JSON write
In addition, the xss protected value is written with the provided key appended by
KEY_SUFFIX_XSS |
public static final java.lang.String KEY_SUFFIX_XSS
public static void putProtected(JSONObject object, java.lang.String key, java.lang.String value, XSSFilter xss) throws JSONException
object
- JSON objectkey
- Key to writevalue
- Value to writexss
- XSS protection filterJSONException
- If value could not be put into the objectjava.lang.NullPointerException
- If xss protection filter is null
public static void putWithProtected(JSONObject object, java.lang.String key, java.lang.String value, XSSFilter xss) throws JSONException
KEY_SUFFIX_XSS
object
- JSON objectkey
- Key to writevalue
- Value to writexss
- XSS protection filterJSONException
- If value could not be put into the objectjava.lang.NullPointerException
- If xss protection filter is null
public static void writeProtected(JSONWriter writer, java.lang.String key, java.lang.String value, XSSFilter xss) throws JSONException
writer
- JSON writerkey
- Key to writevalue
- Value to writexss
- XSS protection filterJSONException
- If value could not be writtenjava.lang.NullPointerException
- If xss protection filter is null
public static void writeProtected(JSONWriter writer, java.lang.String key, java.lang.String[] values, XSSFilter xss) throws JSONException
writer
- The JSON writer.key
- Key to use.values
- The value arrays.xss
- The XSS protection filter.JSONException
- If an JSON specific error occurs.java.lang.NullPointerException
- If xss protection filter is null
public static void writeWithProtected(JSONWriter writer, java.lang.String key, java.lang.String value, XSSFilter xss) throws JSONException
KEY_SUFFIX_XSS
writer
- JSON writerkey
- Key to writevalue
- Value to writexss
- XSS protection filterJSONException
- If value could not be writtenjava.lang.NullPointerException
- If xss protection filter is null
public static void writeWithProtected(JSONWriter writer, java.lang.String key, java.lang.String[] values, XSSFilter xss) throws JSONException
KEY_SUFFIX_XSS
writer
- The JSON writer to use.key
- The key to write.values
- The value array.xss
- The xss protection filter.JSONException
- If a JSON specific error occurs.java.lang.NullPointerException
- If xss protection filter is null
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"