I need to implement the oauth spring persistence for RandomValueProviderTokenServices class.
The class that needs to be stored according to the abstract protected methods of the RandomValueProviderTokenServices is OAuthProviderTokenImpl. however, this class contains a reference to Authentication interface which has various implementations.
I assume that implementations of these methods were done by any who used the spring-oauth library for their projects.
Is there a common practice to achieve that? ( without using the Java built it serialization mechanism).