Class DefaultMqttServerAuthHandler
- java.lang.Object
-
- br.com.anteros.mqtt.core.server.support.DefaultMqttServerAuthHandler
-
- All Implemented Interfaces:
IMqttServerAuthHandler
public class DefaultMqttServerAuthHandler extends Object implements IMqttServerAuthHandler
默认的认证处理- Author:
- L.cm
-
-
Field Summary
-
Fields inherited from interface br.com.anteros.mqtt.core.server.auth.IMqttServerAuthHandler
logger
-
-
Constructor Summary
Constructors Constructor Description DefaultMqttServerAuthHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(org.tio.core.ChannelContext context, String uniqueId, String clientId, String userName, String password)认证-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface br.com.anteros.mqtt.core.server.auth.IMqttServerAuthHandler
verifyAuthenticate
-
-
-
-
Method Detail
-
authenticate
public boolean authenticate(org.tio.core.ChannelContext context, String uniqueId, String clientId, String userName, String password)Description copied from interface:IMqttServerAuthHandler认证- Specified by:
authenticatein interfaceIMqttServerAuthHandler- Parameters:
context- ChannelContextuniqueId- mqtt 内唯一id,默认和 clientId 相同clientId- 客户端 IDuserName- 用户名password- 密码- Returns:
- 是否认证成功
-
-