Package com.adito.security

Examples of com.adito.security.AuthenticationModuleDefinition


        if (this.isCommiting()) {
            PropertyList l = this.getSelectedModulesList();
            if (l.size() < 1) {
                errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.noModulesSelected"));
            } else {
                AuthenticationModuleDefinition def = AuthenticationModuleManager.getInstance().getModuleDefinition(
                    l.get(0).toString());
                if (l.size() == 1){
                    if (!def.getPrimary()) {
                        errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.firstModuleNotPrimary"));
                    }
                }
                else{
                    if (!def.getPrimary() && !def.getPrimaryIfSecondardExists()) {
                        errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.firstModuleNotPrimary"));
                    }
                }
            }
        }
View Full Code Here


        if (isCommiting()) {
            PropertyList l = getSelectedModulesList();
            if (l.size() < 1) {
                errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.noModulesSelected"));
            } else {
                AuthenticationModuleDefinition def = AuthenticationModuleManager.getInstance().getModuleDefinition(
                    l.get(0).toString());
                if (l.size() == 1){
                    if (!def.getPrimary()) {
                        errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.firstModuleNotPrimary"));
                    }
                }
                else{
                    if (!def.getPrimary() && !def.getPrimaryIfSecondardExists()) {
                        errs.add(Globals.ERROR_KEY, new ActionMessage("editAuthenticationScheme.error.firstModuleNotPrimary"));
                    }
                }
            }
View Full Code Here

TOP

Related Classes of com.adito.security.AuthenticationModuleDefinition

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.