Interface TokenManager<T>

All Known Implementing Classes:
TokenManagerInMemory

public interface TokenManager<T>
Manages tokens so we can implement and plug various policies.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String tokenId)
    Returns user details for a token.
    put(T token)
    Creates a new token for the user and returns it.
    boolean
    remove(String tokenId)
    Removes a single token.
  • Method Details

    • put

      String put(T token)
      Creates a new token for the user and returns it. It may add it to the token list or replace the previous one for the user. Never returns null.
    • get

      T get(String tokenId)
      Returns user details for a token.
    • remove

      boolean remove(String tokenId)
      Removes a single token.