/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.auth.core.token;

import com.codvision.authcore.bean.SysUserBean;

/**
 * token管理器接口
 *
 * @author lingee
 * @date 2023/11/22
 */
public interface ITokenManager {

    /**
     * 设置token用户
     *
     * @param token   token
     * @param sysUser 用户信息
     */
    void setTokenUser(String token, SysUserBean sysUser);

    /**
     * 获取token用户
     *
     * @param token token
     * @return 用户信息
     */
    SysUserBean getTokenUser(String token);

    /**
     * 移除token
     *
     * @param token token
     */
    void removeTokenUser(String token);
}
