Package io.moquette.broker.security
Class FileAuthenticator
- java.lang.Object
-
- io.moquette.broker.security.ResourceAuthenticator
-
- io.moquette.broker.security.FileAuthenticator
-
- All Implemented Interfaces:
IAuthenticator
public class FileAuthenticator extends ResourceAuthenticator
Deprecated.userResourceAuthenticatorinsteadLoad user credentials from a text file. Each line of the file is formatted as "[username]:[sha256(password)]". The username mustn't contains : char. To encode your password from command line on Linux systems, you could use:echo -n "yourpassword" | sha256sumNB -n is important because echo append a newline by default at the of string. -n avoid this behaviour.
-
-
Field Summary
-
Fields inherited from class io.moquette.broker.security.ResourceAuthenticator
LOG
-
-
Constructor Summary
Constructors Constructor Description FileAuthenticator(String parent, String filePath)Deprecated.
-