Class EncryptedOrient
- java.lang.Object
-
- com.orientechnologies.orient.core.record.ORecordAbstract
-
- com.orientechnologies.orient.core.record.impl.ODocument
-
- org.gcube.informationsystem.resourceregistry.utils.EncryptedOrient
-
- All Implemented Interfaces:
com.orientechnologies.orient.core.db.record.ODetachable,com.orientechnologies.orient.core.db.record.OIdentifiable,com.orientechnologies.orient.core.db.record.ORecordElement,com.orientechnologies.orient.core.record.OElement,com.orientechnologies.orient.core.record.ORecord,com.orientechnologies.orient.core.record.ORecordSchemaAware,com.orientechnologies.orient.core.serialization.OSerializableStream,Externalizable,Serializable,Comparable<com.orientechnologies.orient.core.db.record.OIdentifiable>,Iterable<Map.Entry<String,Object>>,Comparator<com.orientechnologies.orient.core.db.record.OIdentifiable>
public class EncryptedOrient extends com.orientechnologies.orient.core.record.impl.ODocument- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringcontextEncryptedValueprotected StringdbEncryptedValueprotected StringdecryptedValuestatic StringNAMEstatic StringVALUE
-
Constructor Summary
Constructors Modifier Constructor Description EncryptedOrient()protectedEncryptedOrient(String iClassName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContextEncryptedValue()StringgetDbEncryptedValue()StringgetDecryptedValue()StringgetEncryptedValue()voidsetDecryptedValue(String decryptedValue, boolean setEncryptedForContext)voidsetEncryptedValue(String encryptedValue)StringtoJSON(String iFormat)-
Methods inherited from class com.orientechnologies.orient.core.record.impl.ODocument
addOwner, asEdge, asVertex, autoConvertFieldsToClass, autoConvertValues, checkClass, checkFieldName, checkForFields, clear, clearSource, clearTrackData, containsField, convertAllMultiValuesToTrackedVersions, copy, copyTo, deserializeFields, detach, equals, eval, eval, field, field, field, field, field, fieldNames, fields, fields, fields, fieldType, fieldValues, fill, fill, fillClassIfNeed, fromJSON, fromJSON, fromJSON, fromJSON, fromMap, fromStream, fromString, getClassName, getCollectionTimeLine, getDirtyFields, getGlobalPropertyById, getImmutableSchemaClass, getImmutableSchemaClass, getOrCreate, getOriginalValue, getOwner, getOwners, getProperty, getPropertyNames, getRawEntries, getRawProperty, getRecordType, getSchemaClass, getSchemaType, hashCode, hasOwners, hasSameContentOf, internalReset, isAllowChainedAccess, isEdge, isEmbedded, isEmpty, isLazyLoad, isOrdered, isTrackingChanges, isVertex, iterator, load, load, load, merge, merge, mergeMap, placeholder, rawContainsField, rawField, rawField, readExternal, reload, removeField, removeOwner, removeProperty, reset, save, save, save, setAllowChainedAccess, setClass, setClassName, setClassNameIfExists, setDirty, setDirtyNoChanged, setFieldType, setLazyLoad, setOrdered, setProperty, setProperty, setTrackingChanges, setup, toMap, toStream, toStream, toString, toString, track, undo, undo, unload, unTrack, validate, validateEmbedded, validateField, validateLink, validateLinkCollection, validateType, writeExternal
-
Methods inherited from class com.orientechnologies.orient.core.record.ORecordAbstract
addIdentityChangeListener, addListener, checkForLoading, compare, compareTo, delete, flatCopy, getDatabase, getDatabaseIfDefined, getDatabaseIfDefinedInternal, getDatabaseInternal, getDirtyManager, getIdentity, getInternalStatus, getRecord, getSize, getVersion, invokeListenerEvent, isContentChanged, isDirty, isLocked, load, lock, lockingStrategy, onAfterIdentityChanged, onBeforeIdentityChanged, reload, reload, reload, removeIdentityChangeListener, removeListener, save, setContentChanged, setDirtyManager, setIdentity, setIdentity, setInternalStatus, setVersion, toJSON, toJSON, toJSON, unlock, unsetDirty
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface java.util.Comparator
compare, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface com.orientechnologies.orient.core.db.record.OIdentifiable
getRecord, isLocked, lock, lockingStrategy, unlock
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
VALUE
public static final String VALUE
- See Also:
- Constant Field Values
-
decryptedValue
protected String decryptedValue
-
dbEncryptedValue
protected String dbEncryptedValue
-
contextEncryptedValue
protected String contextEncryptedValue
-
-
Constructor Detail
-
EncryptedOrient
public EncryptedOrient()
-
EncryptedOrient
protected EncryptedOrient(String iClassName)
-
-
Method Detail
-
getEncryptedValue
public String getEncryptedValue()
-
setEncryptedValue
public void setEncryptedValue(String encryptedValue)
-
toJSON
public String toJSON(String iFormat)
- Specified by:
toJSONin interfacecom.orientechnologies.orient.core.record.ORecord- Overrides:
toJSONin classcom.orientechnologies.orient.core.record.ORecordAbstract
-
getDecryptedValue
public String getDecryptedValue()
-
getDbEncryptedValue
public String getDbEncryptedValue()
-
getContextEncryptedValue
public String getContextEncryptedValue()
-
-