@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 base64State)
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 base64State)
StateSerDes
State
object.deserialize
in interface StateSerDes
base64State
- The state stringpublic java.lang.String serialize(State state)
StateSerDes
serialize
in interface StateSerDes
state
- The state object