Deserialize session data that was serialized using {@link #serialize(MemcachedBackupSession)}(or a combination of {@link #serializeAttributes(MemcachedBackupSession,Map)} and{@link #serialize(MemcachedBackupSession,byte[])}).
Note: the returned session already has the manager set and {@link MemcachedBackupSession#doAfterDeserialization()} is invoked. Additionallythe attributes hash is set (via {@link MemcachedBackupSession#setDataHashCode(int)}).
@param data the byte array of the serialized session and its session attributes. Can be
null
.
@param realm the realm that is used to reconstruct the principal if there was any stored in the session.
@param manager the manager to set on the deserialized session.
@return the deserialized {@link MemcachedBackupSession}or
null
if the provided
byte[] data
was
null
.