ai1.serverjava.numguess.model
Class LoginBean

java.lang.Object
  extended byai1.serverjava.numguess.model.LoginBean
All Implemented Interfaces:
java.io.Serializable

public class LoginBean
extends java.lang.Object
implements java.io.Serializable

Handles authentication. Userid and password are hardcoded to USER and PASS. No other combinations are valid.

See Also:
Serialized Form

Constructor Summary
LoginBean()
           
 
Method Summary
 boolean authenticate(java.lang.String userID, java.lang.String password)
          Checks userid and password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginBean

public LoginBean()
Method Detail

authenticate

public boolean authenticate(java.lang.String userID,
                            java.lang.String password)
Checks userid and password.

Parameters:
userID - The userID to authenticate.
password - The password to authenticate.
Returns:
true if authentication succeeded. false if authentication failed.