Examples of Authentification


Examples of org.jayasoft.woj.common.model.security.Authentification

    public static void main(String[] args) {
        try {
            WojToolsSettings settings = WojToolsSettings.buildInstance(args);

            ClientServerServicesProvider ssp = ClientServerServicesProvider.get(settings.getServer());
            Authentification auth;
            auth = ssp.getAuthentificationService().authenticate(settings.getUserName(), settings.getPassword(), "");
           
            if (auth instanceof AuthSuccessfull) {
                ModuleManagementService mms = ssp.getModuleManagementService();
                RemoveModuleFromWOJBatch batch = new RemoveModuleFromWOJBatch(mms);
View Full Code Here

Examples of org.jayasoft.woj.common.model.security.Authentification

            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
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.