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 Detail

      • deserialize

        @Nullable
        State deserialize​(java.lang.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
        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.