Class FileAuthenticator

  • All Implemented Interfaces:
    IAuthenticator

    public class FileAuthenticator
    extends ResourceAuthenticator
    Deprecated.
    Load 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" | sha256sum
     
    NB -n is important because echo append a newline by default at the of string. -n avoid this behaviour.
    • Constructor Detail

      • FileAuthenticator

        public FileAuthenticator​(String parent,
                                 String filePath)
        Deprecated.