public class LoginServiceProcessor extends Object implements LoginProcessorIntf
Constructor and Description |
---|
LoginServiceProcessor() |
Modifier and Type | Method and Description |
---|---|
User |
getUser(LoginReqBody loginReqBody,
org.tio.core.ChannelContext channelContext) |
User |
getUser(String token)
根据token获取用户信息
|
User |
getUser(String loginname,
String password)
根据用户名和密码获取用户
|
List<Group> |
initFriends(User user) |
List<Group> |
initGroups(User user) |
boolean |
isProtocol(org.tio.core.ChannelContext channelContext)
不同协议判断方法
|
String |
name()
该proCmd处理器名称(自定义)
|
String |
newToken() |
String |
nextImg() |
public User getUser(String loginname, String password)
loginname
- password
- public String nextImg()
public String newToken()
public User getUser(LoginReqBody loginReqBody, org.tio.core.ChannelContext channelContext)
getUser
in interface LoginProcessorIntf
public boolean isProtocol(org.tio.core.ChannelContext channelContext)
ProcessorIntf
isProtocol
in interface ProcessorIntf
public String name()
ProcessorIntf
name
in interface ProcessorIntf
Copyright © 2018. All rights reserved.