Class EntitySerializationTokenManager

java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationTokenManager

@Component("core_EntitySerializationTokenManager") public class EntitySerializationTokenManager extends Object
  • Field Details

  • Constructor Details

    • EntitySerializationTokenManager

      public EntitySerializationTokenManager()
  • Method Details

    • generateSecurityToken

      @Nullable public String generateSecurityToken(Object entity)
      Encrypt security state and write the result to the security token
    • restoreSecurityToken

      public void restoreSecurityToken(Object entity, @Nullable String securityToken)
      Decrypt security token and read filtered data
    • validateToken

      protected void validateToken(com.google.gson.JsonObject tokenObject, Object entity, MetaClass metaClass)
    • createCipher

      protected Cipher createCipher(int mode)
    • parseId

      protected Object parseId(com.google.gson.JsonElement value, MetaClass metaClass)
    • addSingleId

      protected void addSingleId(com.google.gson.JsonObject jsonObject, String property, @Nullable Object value)
    • 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()