cn.antcore.security.session.UserSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-security Show documentation
Show all versions of spring-boot-starter-security Show documentation
This is spring-boot-starter-security.
The newest version!
package cn.antcore.security.session;
import cn.antcore.security.entity.UserDetails;
import java.io.Serializable;
/**
* 用户Session
*
* Created by Hong.
* 2021/3/25
**/
public interface UserSession {
/**
* 是否登录
*
* @return true or false
*/
boolean isLogin();
/**
* 获取用Id
*
* @return 用户ID
*/
Serializable getUserId();
/**
* 获取登录用户名
*
* @return 用户名
*/
String getUsername();
/**
* 获取用户登录数据
*
* @return 用户数据
*/
UserDetails getUserDetails();
}