}
else if (callback instanceof PlainPasswordCallback)
{
if (_users.containsKey(username))
{
PlainPasswordCallback plainPasswordCallback = (PlainPasswordCallback) callback;
String password = plainPasswordCallback.getPlainPassword();
plainPasswordCallback.setAuthenticated(password.equals(_users.get(username)));
}
}
else if (callback instanceof AuthorizeCallback)
{
((AuthorizeCallback) callback).setAuthorized(true);