Package org.forgerock.am.cts.adapters
Interface TokenAdapter<T>
- All Known Subinterfaces:
JavaBeanAdapter<T>
public interface TokenAdapter<T>
Describes the ability to convert from one type of object into a Token and the
reverse operation of converting from a Token into the object of type T.
This is a key feature of the Core Token Service, which acts as a generic
token storage mechanism.
- See Also:
-
Method Summary
-
Method Details
-
toToken
- Parameters:
t
- Object of type T to convert to a Token.- Returns:
- A non null Token.
-
fromToken
- Parameters:
token
- Token to be converted back to its original type of T.- Returns:
- Non null object of type T.
-