Class SimpleUserAuthenticator

java.lang.Object
crow.game.omnisrv.SimpleUserAuthenticator
All Implemented Interfaces:
UserAuthenticator

public class SimpleUserAuthenticator extends Object implements UserAuthenticator
This most-simple user authenticator just does a standard password comparison.
  • Constructor Details

    • SimpleUserAuthenticator

      public SimpleUserAuthenticator(UserLoader userLoader)
  • Method Details

    • authenticateUser

      public boolean authenticateUser(Object userID, String password, Map<String,Object> properties) throws Exception
      Description copied from interface: UserAuthenticator
      Authenticate a user.
      Specified by:
      authenticateUser in interface UserAuthenticator
      Parameters:
      userID - The user ID object, usually a string or integer.
      password - The password, could be hashed, etc.
      properties - An open-ended properties dict, containing details about the client, the password hashing mechanism, anything else implementation specific.
      Returns:
      true if the authentication passes, false otherwise
      Throws:
      Exception - on an unexpected error