@Singleton public class JacksonStateSerDes extends java.lang.Object implements StateSerDes
Constructor and Description |
---|
JacksonStateSerDes(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
State |
deserialize(java.lang.String state)
De-serializes the state string into a
State object. |
java.lang.String |
serialize(State state)
Serializes the state into a string for sending with the authorization redirect.
|
public JacksonStateSerDes(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper
- To serialize/de-serialize the statepublic State deserialize(java.lang.String state)
StateSerDes
State
object.deserialize
in interface StateSerDes
state
- The state stringpublic java.lang.String serialize(State state)
StateSerDes
serialize
in interface StateSerDes
state
- The state object