throws UnexpectedErrorException, NoConnectionException {
AuthenticationPlugin authPlugin
= (AuthenticationPlugin) pluginLoader.getPluginByClassName(AuthenticationPlugin.class);
Map<String, String> authInfo = new HashMap<>();
if (authPlugin != null && authPlugin.getState() == Plugin.State.ENABLED) {
authInfo.putAll(authPlugin.authenticate(username, passwordHash));
}
return authInfo;
}
private JCUser getByUsername(String username) throws NotFoundException {