@AutoService(value=dev.paseto.jpaseto.io.Serializer.class) public class GsonSerializer<T> extends java.lang.Object implements Serializer<T>
| Constructor and Description |
|---|
GsonSerializer() |
GsonSerializer(com.google.gson.Gson gson) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
serialize(T t) |
protected byte[] |
writeValueAsBytes(T t) |
public GsonSerializer()
public GsonSerializer(com.google.gson.Gson gson)
public byte[] serialize(T t) throws SerializationException
serialize in interface Serializer<T>SerializationExceptionprotected byte[] writeValueAsBytes(T t)
Copyright © 2019-2020 paseto.dev. All Rights Reserved.