Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.SecurityService


            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        SecurityService securityService = config.getSecurityService();
       
        // check if there exists an audit module by the specified name
        // if so return failure.
        List<AuditModule> ams = securityService.getAuditModule();
        for (AuditModule am : ams) {
            if (am.getName().equals(auditModuleName)) {
                report.setMessage(localStrings.getLocalString(
                    "create.audit.module.duplicatefound",
                    "AuditModule named {0} exists. " +
View Full Code Here


            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        SecurityService secService = config.getSecurityService();
               
        List<MessageSecurityConfig> mscs = secService.getMessageSecurityConfig();
       
        // Let's find the correct MessageSecurityConfig. As of now,
        // there can be only two of them - one for SOAP and one for
        // HttpServlet
        MessageSecurityConfig msgSecCfg = null;
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        final SecurityService securityService = config.getSecurityService();

        // ensure we have the file authrealm
        if (authRealmName == null)
            authRealmName = securityService.getDefaultRealm();
        AuthRealm fileAuthRealm = null;
        for (AuthRealm authRealm : securityService.getAuthRealm()) {
            if (authRealm.getName().equals(authRealmName))
                fileAuthRealm = authRealm;
        }

        if (fileAuthRealm == null) {
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        final SecurityService securityService = config.getSecurityService();
        List<MessageSecurityConfig> mscs = securityService.getMessageSecurityConfig();       
       
        for (MessageSecurityConfig  msc : mscs) {
            if (msc.getAuthLayer().equals(authLayer)) {
                msgSecCfg = msc;
            }
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        final SecurityService securityService = config.getSecurityService();

        // ensure we have the file authrealm
        AuthRealm fileAuthRealm = null;
       
        if (authRealmName == null)
            authRealmName = securityService.getDefaultRealm();       
       
        for (AuthRealm authRealm : securityService.getAuthRealm()) {           
            if (authRealm.getName().equals(authRealmName)) {
                fileAuthRealm = authRealm;           
                break;
            }
        }      
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        SecurityService securityService = config.getSecurityService();
       
        // check if there exists an auth realm byt he specified name
        // if so return failure.
        List<AuthRealm> authrealms = securityService.getAuthRealm();
        for (AuthRealm authrealm : authrealms) {
            if (authrealm.getName().equals(authRealmName)) {
                report.setMessage(localStrings.getLocalString(
                    "create.auth.realm.duplicatefound",
                    "Authrealm named {0} exists. Cannot add duplicate AuthRealm.",
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        SecurityService securityService = config.getSecurityService();
        ActionReport report = context.getActionReport();

        try {           
            for (AuditModule am : securityService.getAuditModule()) {
                if (am.getName().equals(auditModuleName)) {
                    auditModule = am;
                }
            }
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        final SecurityService securityService = config.getSecurityService();

        // ensure we have the file authrealm
        if (authRealmName == null)
            authRealmName = securityService.getDefaultRealm();       
       
        AuthRealm fileAuthRealm = null;       
        for (AuthRealm authRealm : securityService.getAuthRealm()) {           
            if (authRealm.getName().equals(authRealmName))                
                fileAuthRealm = authRealm;           
        }       
        if (fileAuthRealm == null) {
            report.setMessage(localStrings.getLocalString(
View Full Code Here

        }
        com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
        if (cluster!=null) {
            config = domain.getConfigNamed(cluster.getConfigRef());
        }
        final SecurityService securityService = config.getSecurityService();

//        Enumeration realms = Realm.getRealmNames();
//
//        if ( realms == null || !realms.hasMoreElements()) {
//            //Create realms
//            realmsManager.createRealms(securityService);
//        }

        for (AuthRealm authRealm : securityService.getAuthRealm()) {
            ActionReport.MessagePart part = report.getTopMessagePart().addChild();
            part.setMessage(authRealm.getName());
        }
        report.setActionExitCode(ActionReport.ExitCode.SUCCESS);
    }
View Full Code Here

            com.sun.enterprise.config.serverbeans.Cluster cluster = domain.getClusterNamed(target);
            if (cluster != null) {
                config = domain.getConfigNamed(cluster.getConfigRef());
            }
        }
        final SecurityService securityService = config.getSecurityService();
       
        final ActionReport report = context.getActionReport();

        report.getTopMessagePart().setChildrenType("audit-module");
        for (AuditModule am : securityService.getAuditModule()) {
            ActionReport.MessagePart part = report.getTopMessagePart().addChild();
            part.setMessage(am.getName());
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.SecurityService

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.