password = config.getAttribute(PASSWORD);
}
public void authenticate(String userID, String password) throws SecurityException {
if ( !this.userID.equals(userID) )
throw new InvalidUserException("Unknown User '"+userID+"'");
if ( !this.password.equals(password) )
throw new InvalidCredentialsException("Invalid credentials for User '"+userID+"'");
}