@Deprecated public class SerializationUtils extends Object
SerializationStrategy
.
The class looks for the strategy in META-INF/spring.factories
,
or the strategy can also be set by calling setSerializationStrategy(SerializationStrategy)
.
If no strategy is specified, the default is DefaultSerializationStrategy
.
Note that the default strategy allows deserializing arbitrary classes which may result in security problems
if data comes from an untrusted source. To prevent possible issues, use WhitelistedSerializationStrategy
with a list of allowed classes for deserialization.
Constructor and Description |
---|
SerializationUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
deserialize(byte[] byteArray)
Deprecated.
|
static SerializationStrategy |
getSerializationStrategy()
Deprecated.
|
static byte[] |
serialize(Object object)
Deprecated.
|
static void |
setSerializationStrategy(SerializationStrategy serializationStrategy)
Deprecated.
Sets a new serialization strategy.
|
public static SerializationStrategy getSerializationStrategy()
public static void setSerializationStrategy(SerializationStrategy serializationStrategy)
serializationStrategy
- The serialization strategy.public static byte[] serialize(Object object)
public static <T> T deserialize(byte[] byteArray)
Copyright © 2019. All rights reserved.