Class DefaultUserAuthenticator

All Implemented Interfaces:

public class DefaultUserAuthenticator
extends Object
implements UserAuthenticator
A concrete and unsafe UserAuthenticator that always grant access to remote client users.
This class will be automatically loaded if no UserAuthenticator has been declared in the file.
Nicolas de Pomereu
  • Constructor Details

    • DefaultUserAuthenticator

      public DefaultUserAuthenticator()
  • Method Details

    • login

      public boolean login​(String username, char[] password, String database, String ipAddress) throws IOException, SQLException
      Description copied from interface: UserAuthenticator
      Allows to authenticate the remote (username, password) couple sent by the client side.

      The AceQL HTTP Server will call the method in order to grant or not client access.

      Typical usage would be to check the (username, password) couple against a LDAP server or against a SSH server, etc. The method allows to retrieve:

      • The name of the database to which the client wants to connect.
      • The IP address of the client.
      Specified by:
      login in interface UserAuthenticator
      username - the username sent by the client
      password - the password to connect to the server
      database - the database name to which the client wants to connect
      ipAddress - the IP address of the client user
      true. (Client is always granted access).
      IOException - if an IOException occurs
      SQLException - if a SQLException occurs