Package org.jayasoft.woj.common.services.authentification

Examples of org.jayasoft.woj.common.services.authentification.HttpAuthentificationService


        return _masterServerProvider;
    }

    public AuthentificationService getAuthentificationService() {
        if(_authentificationService == null) {
            HttpAuthentificationService authentificationService = new HttpAuthentificationService();
            authentificationService.setServer(getMasterServerProvider());
            authentificationService.setSsp(this);
            authentificationService.setUnifiedAuthService(UnifiedAuthentificationService.getInstance());
            _authentificationService = authentificationService;
        }
        return _authentificationService;
    }
View Full Code Here


           
            UnifiedAuthentificationService uas = new UnifiedAuthentificationService();
            uas.setAuthentificationServer(Portal.getInstance().getMasterServer());
            uas.setLoginInfo(userLogged.getLogin(), userLogged.getPassword(), CommonSecurityHelper.BROWSER, true, Portal.getVersion());
           
            HttpAuthentificationService af = new HttpAuthentificationService();
            af.setServer(new SimpleTargetServerProvider(Portal.getInstance().getMasterServer()));
            af.setUnifiedAuthService(uas);
            af.setSsp(userSSP);
           
            UAK u = null;
            try {
                Authentification a = af.authenticate(userLogged.getLogin(), userLogged.getPassword(), CommonSecurityHelper.BROWSER, true, Portal.getInstance().getVersion());
                if (a instanceof AuthSuccessfull) {
                    AuthSuccessfull au = (AuthSuccessfull)a;
                    u = au.getKey();
                    uas.setLoginInfo(userLogged.getLogin(), userLogged.getPassword(), CommonSecurityHelper.BROWSER, true, Portal.getVersion(), u.getUserId(), u.getGroups(), u.getPublishVisibilityRight());
                    uas.setUAK(u);
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.services.authentification.HttpAuthentificationService

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.