Interface TokenStore

  • All Known Implementing Classes:
    MemoryTokensStorage

    public interface TokenStore
    Interface for long term storage of tokens
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String id)
      Remove the token data from storage for the given ID.
      java.lang.String load​(java.lang.String id)
      Load the token data from storage for the given ID.
      void store​(java.lang.String id, java.lang.String tokens)
      Put the token data into storage for the given ID.
    • Method Detail

      • load

        java.lang.String load​(java.lang.String id)
                       throws java.io.IOException
        Load the token data from storage for the given ID.
        Parameters:
        id - ID of token data to load.
        Returns:
        The loaded token data.
        Throws:
        java.io.IOException - An error loading the token data from storage.
      • store

        void store​(java.lang.String id,
                   java.lang.String tokens)
            throws java.io.IOException
        Put the token data into storage for the given ID.
        Parameters:
        id - ID of token data to store.
        tokens - The token data to store.
        Throws:
        java.io.IOException - An error storing the token data.
      • delete

        void delete​(java.lang.String id)
             throws java.io.IOException
        Remove the token data from storage for the given ID.
        Parameters:
        id - ID of token data to store.
        Throws:
        java.io.IOException - An error storing the token data.