}
public class TrivialAuthHandlerFactory implements AuthenticationHandlerFactory {
public AuthenticationHandler create() {
PluginAuthenticationHandler ret = new PluginAuthenticationHandler();
UsernamePasswordValidator validator = new UsernamePasswordValidator() {
public void login(String username, String password)
throws LoginFailedException {
if (!username.equals(password)) {
throw new LoginFailedException("username=" + username + ", password=" + password);
}