Class JsonObject
java.lang.Object
com.couchbase.client.java.document.json.JsonValue
com.couchbase.client.java.document.json.JsonObject
- All Implemented Interfaces:
Serializable
public class JsonObject extends JsonValue implements Serializable
Represents a JSON object that can be stored and loaded from Couchbase Server.
If boxed return values are unboxed, the calling code needs to make sure to handle potential
NullPointerExceptions.
The JsonObject is backed by a Map and is intended to work similar to it API wise, but to only
allow to store such objects which can be represented by JSON.- Since:
- 2.0
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static StringENCRYPTION_PREFIXEncryption prefix -
Method Summary
Modifier and Type Method Description voidclearEncryptionPaths()Clear the encryption pathsbooleancontainsKey(String name)Checks if theJsonObjectcontains the field name.booleancontainsValue(Object value)Checks if theJsonObjectcontains the value.static JsonObjectcreate()Creates a emptyJsonObject.static JsonObjectempty()Creates a emptyJsonObject.Map<String,String>encryptionPathInfo()Get the encryption list to merge path with parentbooleanequals(Object o)static JsonObjectfrom(Map<String,?> mapData)Constructs aJsonObjectfrom aMap<String, ?>.static JsonObjectfromJson(String s)Static method to create aJsonObjectfrom a JSONString.Objectget(String name)Retrieves the (potential null) content and not casting its type.ObjectgetAndDecrypt(String name, String providerName)Retrieve and decrypt content and not casting its type Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc.JsonArraygetAndDecryptArray(String name, String providerName)Retrieves the decrypted value from the field name and casts it toJsonArray.BigDecimalgetAndDecryptBigDecimal(String name, String providerName)Retrieves the decrypted value from the field name and casts it toBigDecimal.BigIntegergetAndDecryptBigInteger(String name, String providerName)Retrieves the decrypted value from the field name and casts it toBigInteger.BooleangetAndDecryptBoolean(String name, String providerName)Retrieves the decrypted value from the field name and casts it toBoolean.DoublegetAndDecryptDouble(String name, String providerName)Retrieves the value from the field name and casts it toDouble.IntegergetAndDecryptInt(String name, String providerName)Retrieves the decrypted value from the field name and casts it toInteger.LonggetAndDecryptLong(String name, String providerName)Retrieves the decrypted value from the field name and casts it toLong.NumbergetAndDecryptNumber(String name, String providerName)Retrieves the decrypted value from the field name and casts it toNumber.JsonObjectgetAndDecryptObject(String name, String providerName)Retrieves the decrypted value from the field name and casts it toJsonObject.StringgetAndDecryptString(String name, String providerName)Retrieves the decrypted value from the field name and casts it toString.JsonArraygetArray(String name)Retrieves the value from the field name and casts it toJsonArray.BigDecimalgetBigDecimal(String name)Retrieves the value from the field name and casts it toBigDecimal.BigIntegergetBigInteger(String name)Retrieves the value from the field name and casts it toBigInteger.BooleangetBoolean(String name)Retrieves the value from the field name and casts it toBoolean.CryptoManagergetCryptoManager()Get the encryption configuration for decryptionDoublegetDouble(String name)Retrieves the value from the field name and casts it toDouble.IntegergetInt(String name)Retrieves the value from the field name and casts it toInteger.LonggetLong(String name)Retrieves the value from the field name and casts it toLong.Set<String>getNames()Returns a set of field names on theJsonObject.NumbergetNumber(String name)Retrieves the value from the field name and casts it toNumber.JsonObjectgetObject(String name)Retrieves the value from the field name and casts it toJsonObject.StringgetString(String name)Retrieves the value from the field name and casts it toString.inthashCode()booleanisEmpty()Returns true if theJsonObjectis empty, false otherwise.booleanisEncrypted(String name)Returns true if the field is encrypted.JsonObjectput(String name, boolean value)Stores aBooleanvalue identified by the field name.JsonObjectput(String name, double value)Stores aDoublevalue identified by the field name.JsonObjectput(String name, int value)Stores aIntegervalue identified by the field name.JsonObjectput(String name, long value)Stores aLongvalue identified by the field name.JsonObjectput(String name, JsonArray value)Stores aJsonArrayvalue identified by the field name.JsonObjectput(String name, JsonObject value)Stores aJsonObjectvalue identified by the field name.JsonObjectput(String name, Number value)Stores aNumbervalue identified by the field name.JsonObjectput(String name, Object value)Stores aObjectvalue identified by the field name.JsonObjectput(String name, String value)Stores aStringvalue identified by the field name.JsonObjectput(String name, List<?> value)Stores aJsonArrayvalue identified by the field name.JsonObjectput(String name, Map<String,?> value)Attempt to convert aMapto aJsonObjectvalue and store it, identified by the field name.JsonObjectputAndEncrypt(String name, boolean value, String providerName)Stores aBooleanvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, double value, String providerName)Stores aDoublevalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, int value, String providerName)Stores aIntegervalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, long value, String providerName)Stores aLongvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, JsonArray value, String providerName)Stores aJsonArrayvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, JsonObject value, String providerName)Stores aJsonObjectvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, Number value, String providerName)Stores aNumbervalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, Object value, String providerName)Stores theObjectvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, String value, String providerName)Stores aStringvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, List<?> value, String providerName)Stores aJsonArrayvalue as encrypted identified by the field name.JsonObjectputAndEncrypt(String name, Map<String,?> value, String providerName)Attempt to convert aMapto aJsonObjectvalue and store it, as encrypted identified by the field name.JsonObjectputNull(String name)Store a null value identified by the field's name.JsonObjectputNullAndEncrypt(String name, String providerName)Store a null value as encrypted identified by the field's name.JsonObjectremoveKey(String name)Removes an entry from theJsonObject.voidsetCryptoManager(CryptoManager cryptoManager)Set the encryption configuration for decryptionintsize()The size of theJsonObject.Map<String,Object>toDecryptedMap(String providerName)Transforms theJsonObjectinto aMap.StringtoDecryptedString(String providerName)Converts theJsonObjectinto its decrypted JSON string representation.Map<String,Object>toMap()Transforms theJsonObjectinto aMap.StringtoString()Converts theJsonObjectinto its JSON string representation.
-
Field Details
-
ENCRYPTION_PREFIX
Encryption prefix- See Also:
- Constant Field Values
-
-
Method Details
-
empty
Creates a emptyJsonObject.- Returns:
- a empty
JsonObject.
-
create
Creates a emptyJsonObject.- Returns:
- a empty
JsonObject.
-
from
Constructs aJsonObjectfrom aMap<String, ?>. This is only possible if the given Map is well formed, that is it contains non null keys, and all values are of a supported type. A null input Map or null key will lead to aNullPointerExceptionbeing thrown. If any unsupported value is present in the Map, anIllegalArgumentExceptionwill be thrown. *Sub Maps and Lists* If possible, Maps and Lists contained in mapData will be converted to JsonObject and JsonArray respectively. However, same restrictions apply. Any non-convertible collection will raise aClassCastException. If the sub-conversion raises an exception (like an IllegalArgumentException) then it is put as cause for the ClassCastException.- Parameters:
mapData- the Map to convert to a JsonObject- Returns:
- the resulting JsonObject
- Throws:
IllegalArgumentException- in case one or more unsupported values are presentNullPointerException- in case a null map is provided or if it contains a null keyClassCastException- if map contains a sub-Map or sub-List not supported (see above)
-
fromJson
Static method to create aJsonObjectfrom a JSONString. The string is expected to be a valid JSON object representation (eg. starting with a '{').- Parameters:
s- the JSON String to convert to aJsonObject.- Returns:
- the corresponding
JsonObject. - Throws:
IllegalArgumentException- if the conversion cannot be done.
-
put
Stores aObjectvalue identified by the field name. Note that the value is checked and aIllegalArgumentExceptionis thrown if not supported.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores theObjectvalue as encrypted identified by the field name. Note that the value is checked and aIllegalArgumentExceptionis thrown if not supported. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
get
Retrieves the (potential null) content and not casting its type.- Parameters:
name- the key of the field.- Returns:
- the value of the field, or null if it does not exist.
-
getAndDecrypt
Retrieve and decrypt content and not casting its type Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the key of the fieldproviderName- the crypto algorithm provider name- Returns:
- the value of the field, or null if it does not exist
- Throws:
Exception
-
put
Stores aStringvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aStringvalue as encrypted identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- the crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getString
Retrieves the value from the field name and casts it toString. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptString
Retrieves the decrypted value from the field name and casts it toString. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- the crypto provider name for decryption.- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aIntegervalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aIntegervalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getInt
Retrieves the value from the field name and casts it toInteger. Note that if value was stored as another numerical type, some truncation or rounding may occur.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptInt
Retrieves the decrypted value from the field name and casts it toInteger. Note that if value was stored as another numerical type, some truncation or rounding may occur.- Parameters:
name- the name of the field.providerName- crypto provider name for decryption.- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aLongvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aLongvalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getLong
Retrieves the value from the field name and casts it toLong. Note that if value was stored as another numerical type, some truncation or rounding may occur.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptLong
Retrieves the decrypted value from the field name and casts it toLong. Note that if value was stored as another numerical type, some truncation or rounding may occur. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- the crypto provider name for decryption- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aDoublevalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aDoublevalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getDouble
Retrieves the value from the field name and casts it toDouble. Note that if value was stored as another numerical type, some truncation or rounding may occur.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptDouble
Retrieves the value from the field name and casts it toDouble. Note that if value was stored as another numerical type, some truncation or rounding may occur. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- the crypto provider name for decryption- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aBooleanvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aBooleanvalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getBoolean
Retrieves the value from the field name and casts it toBoolean.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptBoolean
Retrieves the decrypted value from the field name and casts it toBoolean. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- the provider name of the field.- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aJsonObjectvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aJsonObjectvalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
put
Attempt to convert aMapto aJsonObjectvalue and store it, identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject. - See Also:
from(Map)
-
putAndEncrypt
Attempt to convert aMapto aJsonObjectvalue and store it, as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject. - See Also:
from(Map)
-
getObject
Retrieves the value from the field name and casts it toJsonObject.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptObject
Retrieves the decrypted value from the field name and casts it toJsonObject. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- Crypto provider name for decryption- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
put
Stores aJsonArrayvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aJsonArrayvalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- the crypto provider name for encryption.- Returns:
- the
JsonObject.
-
put
Stores aNumbervalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aNumbervalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject.
-
put
Stores aJsonArrayvalue identified by the field name.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.- Returns:
- the
JsonObject.
-
putAndEncrypt
Stores aJsonArrayvalue as encrypted identified by the field name. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the JSON field.value- the value of the JSON field.providerName- the crypto provider name for encryption.- Returns:
- the
JsonObject.
-
getArray
Retrieves the value from the field name and casts it toJsonArray.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptArray
Retrieves the decrypted value from the field name and casts it toJsonArray. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- crypto provider name for decryption.- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
getBigInteger
Retrieves the value from the field name and casts it toBigInteger.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptBigInteger
Retrieves the decrypted value from the field name and casts it toBigInteger. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- crypto provider name for decryption.- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
getBigDecimal
Retrieves the value from the field name and casts it toBigDecimal.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptBigDecimal
Retrieves the decrypted value from the field name and casts it toBigDecimal. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- crypto provider for decryption- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
getNumber
Retrieves the value from the field name and casts it toNumber.- Parameters:
name- the name of the field.- Returns:
- the result or null if it does not exist.
-
getAndDecryptNumber
Retrieves the decrypted value from the field name and casts it toNumber. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the name of the field.providerName- the crypto provider name for decryption- Returns:
- the result or null if it does not exist.
- Throws:
Exception
-
putNull
Store a null value identified by the field's name. This method is equivalent to callingput(String, Object)with eitherJsonValue.NULLor a null value explicitly cast to Object.- Parameters:
name- The null field's name.- Returns:
- the
JsonObject
-
putNullAndEncrypt
Store a null value as encrypted identified by the field's name. This method is equivalent to callingput(String, Object)with eitherJsonValue.NULLor a null value explicitly cast to Object. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- The null field's name.providerName- Crypto provider name for encryption.- Returns:
- the
JsonObject
-
removeKey
Removes an entry from theJsonObject.- Parameters:
name- the name of the field to remove- Returns:
- the
JsonObject
-
getNames
Returns a set of field names on theJsonObject.- Returns:
- the set of names on the object.
-
isEmpty
public boolean isEmpty()Returns true if theJsonObjectis empty, false otherwise.- Returns:
- true if empty, false otherwise.
-
toMap
Transforms theJsonObjectinto aMap. The resulting map is not backed by thisJsonObject, and all sub-objects or sub-arrays (JsonArray) are also recursively converted to maps and lists, respectively.- Returns:
- the content copied as a
Map.
-
toDecryptedMap
Transforms theJsonObjectinto aMap. The resulting map is not backed by thisJsonObject, and all sub-objects or sub-arrays (JsonArray) are also recursively converted to maps and lists, respectively. The encrypted values are decrypted. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015. -
containsKey
Checks if theJsonObjectcontains the field name.- Parameters:
name- the name of the field.- Returns:
- true if its contained, false otherwise.
-
containsValue
Checks if theJsonObjectcontains the value.- Parameters:
value- the actual value.- Returns:
- true if its contained, false otherwise.
-
size
public int size()The size of theJsonObject.- Returns:
- the size.
-
isEncrypted
Returns true if the field is encrypted. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Parameters:
name- the key name of the field.
-
encryptionPathInfo
Get the encryption list to merge path with parent -
clearEncryptionPaths
Clear the encryption paths -
setCryptoManager
Set the encryption configuration for decryption -
getCryptoManager
Get the encryption configuration for decryption -
toString
Converts theJsonObjectinto its JSON string representation.- Overrides:
toStringin classObject- Returns:
- the JSON string representing this
JsonObject.
-
toDecryptedString
Converts theJsonObjectinto its decrypted JSON string representation. Note: Use of the Field Level Encryption functionality provided in the com.couchbase.client.encryption namespace provided by Couchbase is subject to the Couchbase Inc. Enterprise Subscription License Agreement at https://www.couchbase.com/ESLA-11132015.- Returns:
- the decrypted JSON string representing this
JsonObject. - Throws:
Exception
-
equals
-
hashCode
public int hashCode()
-