Class TrackerToken

java.lang.Object
de.turnertech.thw.cop.trackers.TrackerToken

public class TrackerToken extends Object
This class abstracts the storage and retrieval of Tracker and Token pairs from the rest of the code.
  • Method Details

    • exists

      public static boolean exists(String opta)
    • entrySet

      public static Set<Map.Entry<Object,Object>> entrySet()
      Returns:
      an entry set containing both the keys and values.
      See Also:
    • isValid

      public static boolean isValid(String opta, String key)
    • getKey

      public static Optional<String> getKey(String opta)
    • generateKey

      public static Optional<String> generateKey(String opta)
      Will update the existing key if called on an existing OPTA!
      Parameters:
      opta -
      Returns:
    • save

      public static void save()
      Saves the cached tracker tokens from the internal storage to the directory configured in Settings under the key Settings.DATA. Note, that the file name is fixed.
    • load

      public static void load()
      Loads the stored tracker tokens from the directory configured in Settings under the key Settings.DATA. Note, that the file name is fixed.