Interface IMqttServerAuthHandler
-
- All Known Implementing Classes:
DefaultMqttServerAuthHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IMqttServerAuthHandler
mqtt 服务端,认证处理器- Author:
- L.cm
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Loggerlogger
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanauthenticate(org.tio.core.ChannelContext context, String uniqueId, String clientId, String userName, String password)认证default booleanverifyAuthenticate(org.tio.core.ChannelContext context, String uniqueId, String clientId, String userName, String password)认证
-
-
-
Method Detail
-
verifyAuthenticate
default boolean verifyAuthenticate(org.tio.core.ChannelContext context, String uniqueId, String clientId, String userName, String password)认证- Parameters:
context- ChannelContextuniqueId- mqtt 内唯一id,默认和 clientId 相同clientId- 客户端 IDuserName- 用户名password- 密码- Returns:
- 是否认证成功
-
-