public class JacksonSerializer<T> extends AbstractSerializer<T>
ObjectMapper.| Modifier and Type | Field and Description |
|---|---|
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
JacksonSerializer()
Constructor using JJWT's default
ObjectMapper singleton for serialization. |
JacksonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Creates a new Jackson Serializer that uses the specified
ObjectMapper for serialization. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doSerialize(T t,
OutputStream out) |
serialize, serializepublic JacksonSerializer()
ObjectMapper singleton for serialization.public JacksonSerializer(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper for serialization.objectMapper - the ObjectMapper to use for serialization.protected void doSerialize(T t, OutputStream out) throws Exception
doSerialize in class AbstractSerializer<T>ExceptionCopyright © 2014–2025 jsonwebtoken.io. All rights reserved.