public class DefaultMqttServerAuthHandler extends Object implements IMqttServerAuthHandler
logger| 构造器和说明 |
|---|
DefaultMqttServerAuthHandler(String authUserName,
String authPassword) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
authenticate(org.tio.core.ChannelContext context,
String uniqueId,
String clientId,
String userName,
String password)
认证
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitverifyAuthenticatepublic boolean authenticate(org.tio.core.ChannelContext context,
String uniqueId,
String clientId,
String userName,
String password)
IMqttServerAuthHandlerauthenticate 在接口中 IMqttServerAuthHandlercontext - ChannelContextuniqueId - mqtt 内唯一id,默认和 clientId 相同clientId - 客户端 IDuserName - 用户名password - 密码Copyright © 2022. All rights reserved.