Package io.jmix.core.impl.serialization
Class EntitySerializationTokenManager
java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationTokenManager
@Component("core_EntitySerializationTokenManager")
public class EntitySerializationTokenManager
extends Object
-
Field Summary
Modifier and TypeFieldDescriptionprotected CoreProperties
protected static final String
protected static final String
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCollectionId
(com.google.gson.JsonObject jsonObject, String property, Collection<Object> values) protected void
addSingleId
(com.google.gson.JsonObject jsonObject, String property, Object value) protected void
protected Cipher
createCipher
(int mode) generateSecurityToken
(Object entity) Encrypt security state and write the result to the security tokenprotected Object
void
restoreSecurityToken
(Object entity, String securityToken) Decrypt security token and read filtered dataprotected void
validateToken
(com.google.gson.JsonObject tokenObject, Object entity, MetaClass metaClass)
-
Field Details
-
metadata
-
metadataTools
-
coreProperties
-
ENTITY_NAME_KEY
- See Also:
-
ENTITY_ID_KEY
- See Also:
-
SYSTEM_ATTRIBUTE_KEYS
-
-
Constructor Details
-
EntitySerializationTokenManager
public EntitySerializationTokenManager()
-
-
Method Details
-
generateSecurityToken
Encrypt security state and write the result to the security token -
restoreSecurityToken
Decrypt security token and read filtered data -
validateToken
-
createCipher
-
parseId
-
addSingleId
-
addCollectionId
protected void addCollectionId(com.google.gson.JsonObject jsonObject, String property, Collection<Object> values) -
applicationInitialized
@EventListener(org.springframework.boot.context.event.ApplicationContextInitializedEvent.class) protected void applicationInitialized()
-