if (!username.equals(password)) {
throw new LoginFailedException("username=" + username + ", password=" + password);
}
}
};
ret.addPlugin(new PlainAuthenticationHandler(validator));
ret.addPlugin(new LoginAuthenticationHandler(validator));
return ret;
}