Package org.jvnet.glassfish.comms.deployment.backend

Examples of org.jvnet.glassfish.comms.deployment.backend.SecurityConstraint


        }

        Enumeration<SecurityConstraint> scCollection = sipApplicationModel.getSecurityConstraints();

        while (scCollection.hasMoreElements()) {
            SecurityConstraint constraint = scCollection.nextElement();
            @SuppressWarnings(value = "unchecked")
            Collection<ResourceCollection> resourceCollection = constraint.getResourceCollections();
            Iterator<ResourceCollection> rcItr = resourceCollection.iterator();

            while (rcItr.hasNext()) {
                ResourceCollection rc = rcItr.next();
                @SuppressWarnings(value = "unchecked")
                Collection<String> sn = rc.getServletNames();
                @SuppressWarnings(value = "unchecked")
                Collection<String> sm = rc.getSipMethods();
                Collection<String> roles = constraint.getAuthorizationConstraintRoleNames();
                Iterator<String> snItr = sn.iterator();
                if(roles == null)continue;
                while (snItr.hasNext()) {
                    String servletName = snItr.next();
                    Iterator<String> smItr = sm.iterator();

                    while (smItr.hasNext()) {
                        String sipMethod = smItr.next();
                        Key key = new Key(servletName, sipMethod);
                        Set<String> roleSet = null;
                        roleSet = new HashSet<String>(8);
                        if (servletConstraints.containsKey(key)) {
                            ServletConstraints sc = servletConstraints.get(key);
                            roleSet = sc.roles;
                        } else {


                            boolean proxy = constraint.isProxyAuthenticated();
                            ServletConstraints sc = new ServletConstraints(proxy,
                                    roleSet);
                            servletConstraints.put(key, sc);
                        }
View Full Code Here


        Map<String, TransportConstraints> userDataConsTable = new HashMap<String, TransportConstraints>();
        HashMap<String, Set> restrictedActionList = new HashMap<String, Set>();

        while (constraints.hasMoreElements()) {
            SecurityConstraint sc = constraints.nextElement();
            Collection<ResourceCollection> resources = sc.getResourceCollections();
            Collection<String> roles = sc.getAuthorizationConstraintRoleNames();
            String transportType = sc.getUserDataTransportGuarantee();
            Iterator resItr = resources.iterator();

            while (resItr.hasNext()) {
                ResourceCollection rc = (ResourceCollection) resItr.next();
                Collection snColl = rc.getServletNames();
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.deployment.backend.SecurityConstraint

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.