@Singleton public class JacksonStateSerDes extends java.lang.Object implements StateSerDes
Constructor and Description |
---|
JacksonStateSerDes(io.micronaut.json.JsonMapper jsonMapper) |
JacksonStateSerDes(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Deprecated.
Use
JacksonStateSerDes(JsonMapper) instead |
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.
|
@Deprecated public JacksonStateSerDes(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
JacksonStateSerDes(JsonMapper)
insteadobjectMapper
- To serialize/de-serialize the state@Inject public JacksonStateSerDes(io.micronaut.json.JsonMapper jsonMapper)
jsonMapper
- 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