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

    Modifier and Type
    Method
    Description
    @Nullable State
    De-serializes the state string into a State object.
    @Nullable String
    Serializes the state into a string for sending with the authorization redirect.
  • Method Details

    • deserialize

      @Nullable @Nullable State deserialize(String state)
      De-serializes the state string into a State object.
      Parameters:
      state - The state string
      Returns:
      The state, or null if the de-serialization encountered an error.
    • serialize

      @Nullable @Nullable 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.