Uses of Class
cn.dev33.satoken.session.SaTerminalInfo
Packages that use SaTerminalInfo
-
Uses of SaTerminalInfo in cn.dev33.satoken.session
Methods in cn.dev33.satoken.session that return SaTerminalInfoModifier and TypeMethodDescriptionSaSession.getTerminal(String tokenValue) 查找一个终端信息,根据 tokenValueSaTerminalInfo.setCreateTime(long createTime) 设置 创建时间SaTerminalInfo.setDeviceId(String deviceId) 设置 登录设备唯一标识,例如:kQwIOrYvnXmSDkwEiFngrKidMcdrgKorXmSDkwEiFngrKidMSaTerminalInfo.setDeviceType(String deviceType) 写入所属设备类型此次登录的自定义扩展数据 (只允许在登录前设定,登录后不建议更改)SaTerminalInfo.setExtraData(Map<String, Object> extraData) 设置 此客户端登录的挂载数据SaTerminalInfo.setIndex(int index) 设置 登录会话索引值 (该账号第几个登录的设备)SaTerminalInfo.setTokenValue(String tokenValue) 写入 Token 值Methods in cn.dev33.satoken.session that return types with arguments of type SaTerminalInfoModifier and TypeMethodDescriptionSaSession.getTerminalList()获取登录终端信息列表SaSession.getTerminalListByDeviceType(String deviceType) 获取 登录终端信息列表 (拷贝副本),根据 deviceType 筛选SaSession.terminalListCopy()获取 登录终端信息列表 (拷贝副本)Methods in cn.dev33.satoken.session with parameters of type SaTerminalInfoModifier and TypeMethodDescriptionvoidSaSession.addTerminal(SaTerminalInfo terminalInfo) 添加一个终端信息Method parameters in cn.dev33.satoken.session with type arguments of type SaTerminalInfoModifier and TypeMethodDescriptionvoidSaSession.forEachTerminalList(SaTwoParamFunction<SaSession, SaTerminalInfo> function) 遍历 terminalList 列表,执行特定函数voidSaSession.setTerminalList(List<SaTerminalInfo> terminalList) 写入登录终端信息列表 -
Uses of SaTerminalInfo in cn.dev33.satoken.stp
Methods in cn.dev33.satoken.stp that return SaTerminalInfoModifier and TypeMethodDescriptionStpLogic.getTerminalInfo()返回当前 token 指向的 SaTerminalInfo 设备信息,如果 token 无效则返回 nullstatic SaTerminalInfoStpUtil.getTerminalInfo()返回当前 token 指向的 SaTerminalInfo 设备信息,如果 token 无效则返回 nullStpLogic.getTerminalInfoByToken(String tokenValue) 返回指定 token 指向的 SaTerminalInfo 设备信息,如果 Token 无效则返回 nullstatic SaTerminalInfoStpUtil.getTerminalInfoByToken(String tokenValue) 返回指定 token 指向的 SaTerminalInfo 设备信息,如果 Token 无效则返回 nullMethods in cn.dev33.satoken.stp that return types with arguments of type SaTerminalInfoModifier and TypeMethodDescriptionStpLogic.getTerminalListByLoginId(Object loginId) 获取指定账号 id 已登录设备信息集合StpLogic.getTerminalListByLoginId(Object loginId, String deviceType) 获取指定账号 id 指定设备类型端的已登录设备信息集合static List<SaTerminalInfo>StpUtil.getTerminalListByLoginId(Object loginId) 获取指定账号 id 已登录设备信息集合static List<SaTerminalInfo>StpUtil.getTerminalListByLoginId(Object loginId, String deviceType) 获取指定账号 id 指定设备类型端的已登录设备信息集合Methods in cn.dev33.satoken.stp with parameters of type SaTerminalInfoModifier and TypeMethodDescriptionvoidStpLogic._removeTerminal(SaSession session, SaTerminalInfo terminal, SaLogoutParameter logoutParameter) 在 Account-Session 上移除 Terminal 信息 (内部方法,仅为减少重复代码,外部调用意义不大)voidStpLogic.removeTerminalByKickout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (踢人下线方式)static voidStpUtil.removeTerminalByKickout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (踢人下线方式)voidStpLogic.removeTerminalByLogout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (注销下线方式)static voidStpUtil.removeTerminalByLogout(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (注销下线方式)voidStpLogic.removeTerminalByReplaced(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (顶人下线方式)static voidStpUtil.removeTerminalByReplaced(SaSession session, SaTerminalInfo terminal) 在 Account-Session 上移除 Terminal 信息 (顶人下线方式)Method parameters in cn.dev33.satoken.stp with type arguments of type SaTerminalInfoModifier and TypeMethodDescriptionvoidStpLogic.forEachTerminalList(Object loginId, SaTwoParamFunction<SaSession, SaTerminalInfo> function) 获取指定账号 id 已登录设备信息集合,执行特定函数static voidStpUtil.forEachTerminalList(Object loginId, SaTwoParamFunction<SaSession, SaTerminalInfo> function) 获取指定账号 id 已登录设备信息集合,执行特定函数