Class Authenticator
java.lang.Object
test.de.iip_ecosphere.platform.test.mqtt.moquette.Authenticator
- All Implemented Interfaces:
io.moquette.broker.security.IAuthenticator
A simple static authenticator.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckValid(String clientId, String user, byte[] password) static voidclear()Clears this authenticator.static booleanReturns whether this authenticator is initialized.(package private) static voidsetBasicAuth(String user, String password) Sets up a simple user and password authentication.
-
Field Details
-
users
-
-
Constructor Details
-
Authenticator
public Authenticator()
-
-
Method Details
-
setBasicAuth
Sets up a simple user and password authentication.- Parameters:
user- the user to addpassword- the plaintext password of the user
-
isInitialized
public static boolean isInitialized()Returns whether this authenticator is initialized.- Returns:
truefor initialized,falseelse
-
clear
public static void clear()Clears this authenticator. -
checkValid
- Specified by:
checkValidin interfaceio.moquette.broker.security.IAuthenticator
-