Interface StateSerDes
- 
- All Known Implementing Classes:
 JacksonStateSerDes
@DefaultImplementation(JacksonStateSerDes.class) public interface StateSerDes
Responsible for serialization and de-serialization of the state.- Since:
 - 1.2.0
 - Author:
 - James Kleeh
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Statedeserialize(java.lang.String state)De-serializes the state string into aStateobject.java.lang.Stringserialize(State state)Serializes the state into a string for sending with the authorization redirect. 
 - 
 
- 
- 
Method Detail
- 
deserialize
@Nullable State deserialize(java.lang.String state)
De-serializes the state string into aStateobject.- Parameters:
 state- The state string- Returns:
 - The state, or null if the de-serialization encountered an error.
 
 
- 
serialize
@Nullable java.lang.String serialize(State state)
Serializes the state into a string for sending with the authorization redirect.- Parameters:
 state- The state object- Returns:
 - The serialized state, or null if the serialization encountered an error.
 
 
 - 
 
 -