Package org.jtalks.jcommune.plugin.api.core

Examples of org.jtalks.jcommune.plugin.api.core.AuthenticationPlugin


     * @throws UnexpectedErrorException if some unexpected error occurred
     * @throws NoConnectionException    if some connection error occurred
     */
    private Map<String, String> authenticateByAvailablePlugin(String username, String passwordHash)
            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;
    }
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.plugin.api.core.AuthenticationPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.