+ try {
+ if (authProvider.authenticated(username, password)) {
+ currentUser = username;
+ logger.trace("user {}@{} authenticated", currentUser, remoteAddressWithPort);
+ return AuthenticationResult.SUCCESS;
+ }
+ } catch (Exception e) {
+ logger.warn("Authentication failed due to :" + e.getLocalizedMessage());
+ }