Interface IAuthenticatorConfig

    • Method Detail

      • getRealm

        String getRealm()
        Returns the realm name, which will be displayed in the login interface.
        Returns:
        the realm name.
      • getPassword

        @Nullable
        char[] getPassword​(String username)
        Returns the expected password, or password hash, for the provided username, depending on the value returned by getPasswordHashAlgorithm().
        Parameters:
        username - the username of which retrieve the password.
        Returns:
        the password or password hash, or null if the username doesn't exist.
      • getPasswordHashAlgorithm

        @Nullable
        String getPasswordHashAlgorithm()
        Returns the password hashing algoritm (SHA-1, SHA-256, etc.), or null when the password is returned as it is.
        Returns:
        the password hashing algorithm, or null if no hash is applied.
      • getFailDelayMillis

        int getFailDelayMillis()
        Returns the time to wait after a failed login; useful to mitigate brute-force attacks.
        Returns:
        the delay in milliseconds.
      • getFailureLoggingLevel

        String getFailureLoggingLevel()
        Returns the logging level for login failures (wrong credentials).
        Returns:
        the level name (INFO, WARNING, etc.).