Interface Authenticator

    • Method Detail

      • authenticate

        Principal authenticate​(String name,
                               String password)
        Get a principal object for the given username if the username / password pair is valid, otherwise returns null.

        This method is doing the authentication of the given username / password pair and returns the corresponding principal object if authentication succeeded otherwise returns null.

        Returns:
        the authenticated principal if authentication succeded otherwise null
      • checkUsernamePassword

        boolean checkUsernamePassword​(String name,
                                      String password)
        Check the password for the given username. Returns true if the username / password pair match, false otherwise.
        Parameters:
        name - the username
        password - the password to check
        Returns:
        true is valid, false otherwise