Package crow.game.omnisrv
Class SimpleUserAuthenticator
java.lang.Object
crow.game.omnisrv.SimpleUserAuthenticator
- All Implemented Interfaces:
UserAuthenticator
This most-simple user authenticator just does a standard password comparison.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleUserAuthenticator
-
-
Method Details
-
authenticateUser
public boolean authenticateUser(Object userID, String password, Map<String, Object> properties) throws ExceptionDescription copied from interface:UserAuthenticatorAuthenticate a user.- Specified by:
authenticateUserin interfaceUserAuthenticator- 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
-