Class AllowListJdkSerializationRedisSerializer

java.lang.Object
org.springframework.integration.redis.support.AllowListJdkSerializationRedisSerializer
All Implemented Interfaces:
RedisSerializer<Object>

public class AllowListJdkSerializationRedisSerializer extends Object implements RedisSerializer<Object>
A JDK serialization based RedisSerializer which deserializes only classes matching the allowed patterns.

By default, only java.lang, java.util, java.time and Spring messaging types are allowed, which is enough to deserialize a Message with standard headers and simple payloads. Any other types must be allowed via addAllowedPatterns(String...). Arrays, primitives, String and Number types are always allowed.

Since:
5.5.23
Author:
Artem Bilan
See Also:
  • Constructor Details

    • AllowListJdkSerializationRedisSerializer

      public AllowListJdkSerializationRedisSerializer()
    • AllowListJdkSerializationRedisSerializer

      public AllowListJdkSerializationRedisSerializer(@Nullable ClassLoader classLoader)
  • Method Details