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:
    Token
    • Method Detail

      • toToken

        Token toToken​(T t)
        Parameters:
        t - Object of type T to convert to a Token.
        Returns:
        A non null Token.
      • fromToken

        T fromToken​(Token token)
        Parameters:
        token - Token to be converted back to its original type of T.
        Returns:
        Non null object of type T.