public class SpringSecurityUserRegistration extends Object implements KryoCustomization
This is needed because the User class internally contains a collection
of GrantedAuthority, which is actually a TreeSet with a
Comparator. During deserialization kryo creates a TreeSet *without*
any comparator and therefore expects that the contained items are
Comparable, which is not the case for SimpleGrantedAuthority - ClassCastException.
Motivated by issue #145: Deserialization fails on ConcurrentHashMap in Spring User object .
| Constructor and Description |
|---|
SpringSecurityUserRegistration() |
| Modifier and Type | Method and Description |
|---|---|
void |
customize(com.esotericsoftware.kryo.Kryo kryo)
Customize the provided
Kryo instance. |
public void customize(com.esotericsoftware.kryo.Kryo kryo)
KryoCustomizationKryo instance.customize in interface KryoCustomizationkryo - the Kryo instance to customize.Copyright © 2009–2018. All rights reserved.