All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.tio.utils.token.HashMapTokenStorage Maven / Gradle / Ivy

There is a newer version: 3.7.3.v202400213-RELEASE
Show newest version
package com.litongjava.tio.utils.token;

import java.util.HashMap;
import java.util.Map;

public class HashMapTokenStorage implements ITokenStorage {

  private Map storage = new HashMap<>();

  @Override
  public void put(Object userId, String tokenValue) {
    storage.put(userId, tokenValue);
  }

  @Override
  public boolean containsKey(Object userId) {
    return storage.containsKey(userId);
  }

  @Override
  public String remove(Object userId) {
    return storage.remove(userId);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy