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

Examples of org.jtalks.jcommune.plugin.api.core.AuthenticationPlugin.authenticate()


            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 {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.