Package org.cafesip.jiplet.config.jip

Examples of org.cafesip.jiplet.config.jip.AuthConstraint


        Iterator iter = config.getSecurityConstraint().iterator();
        while (iter.hasNext() == true)
        {
            SecurityConstraint constraint = (SecurityConstraint) iter.next();
            AuthConstraint auth = constraint.getAuthConstraint();
            Iterator i = auth.getRoleName().iterator();
            String[] roles = new String[auth.getRoleName().size()];
            int index = 0;
            while (i.hasNext() == true)
            {
                String role = (String) i.next();
                roles[index++] = role;
            }

            i = constraint.getJipletResourceCollection().getJipletNames()
                    .getJipletName().iterator();
            while (i.hasNext() == true)
            {
                String jiplet = (String) i.next();

                Jiplet j = context.findJiplet(jiplet);
                if (j == null)
                {
                    throw new JipletException(
                            "While creating security constraint for collection "
                                    + constraint.getJipletResourceCollection()
                                            .getJipletResourceName()
                                    + " jiplet " + jiplet + " was not found");
                }

                synchronized (jipletMap)
                {
                    String rname = auth.getRealm();
                    if (rname == null)
                    {
                        rname = JipletContainer.getInstance().getDefaultRealm();
                    }
View Full Code Here

TOP

Related Classes of org.cafesip.jiplet.config.jip.AuthConstraint

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.