T- The type of the object being serialized and deserialized.
public interface Serializer<T>
Serializerconverts objects to raw binary data and vice versa, enabling persistent storage of objects to files, HTTP cookies, or other mechanism. A
Serializershould only do conversion, never change the data, such as encoding/decoding or encryption. These orthogonal concerns are handled elsewhere by Shiro, for example, via
byte serialize(T o) throws SerializationException
o- the Object to convert into a byte array.
SerializationException- if an error occurrs converting the Object into a byte array.
T deserialize(byte serialized) throws SerializationException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.