if (getLogger().isDebugEnabled()) {
getLogger().debug("Authenticating user: [" + user + "]");
}
boolean authenticated = false;
if (user != null && user.authenticate(password)) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("User [" + user + "] authenticated.");
}
if (!identity.contains(user)) {