Package org.jvnet.glassfish.comms.security.auth.impl

Examples of org.jvnet.glassfish.comms.security.auth.impl.SipSecurityManager


                initializeServletDispatcher();

                Authenticator.initNonceManager();
    org.jvnet.glassfish.comms.security.auth.impl.PAssertedAuthenticatorFactory.getInstance();               
                SipSecurityManager manager = SipSecurityManager.createManager((SipBundleDescriptor)super.getDescriptor(),true);
                String pContextId = manager.getContextID();
                if (!manager.inService()) {
                    new DescriptorProcessor().process(pContextId, convergedContext.getSipApplication());
                }
                convergedContext.getDispatcher().setContextId(pContextId);

                SipApplication application = convergedContext.getSipApplication();
                Map<String, org.jvnet.glassfish.comms.deployment.backend.Servlet> map = application.getServlets();
                Collection<org.jvnet.glassfish.comms.deployment.backend.Servlet> coll = map.values();
                Iterator<org.jvnet.glassfish.comms.deployment.backend.Servlet> itr = coll.iterator();
                HashMap<String, String> runAsMap = new HashMap<String, String>();

                while (itr.hasNext()) {
                    org.jvnet.glassfish.comms.deployment.backend.Servlet servlet = itr.next();
                    String rolename = servlet.getRunAsRoleName();
                    String servletName = servlet.getServletName();
                    runAsMap.put(servletName, rolename);
                }

                if (runAsMap.size() > 0) {
                    convergedContext.getDispatcher().getAuthModule().setRunAs(manager.readRunAs(super.getDescriptor(), runAsMap));
                }
            } catch (Exception e) {
                e.printStackTrace();
                ok = false;
            }
View Full Code Here


        super.generatePolicy();
        SipBundleDescriptor sipDesc = (org.jvnet.glassfish.comms.deployment.backend.SipBundleDescriptor) desc;

        SipApplication sipApplication = (SipApplication) sipDesc.getSipApplication();

        SipSecurityManager manager = SipSecurityManager.createManager(sipDesc, true);
        String pContextId = manager.getContextID();

        if (!manager.inService()) {
            new DescriptorProcessor().process(pContextId, sipApplication);
        }


    }
View Full Code Here

    public void generatePolicy(ArchiveDescriptor desc) throws Exception {
        SipBundleDescriptor sipDesc = (org.jvnet.glassfish.comms.deployment.backend.SipBundleDescriptor) desc;

        SipApplication sipApplication = (SipApplication) sipDesc.getSipApplication();

        SipSecurityManager manager = SipSecurityManager.createManager(sipDesc, true);
        String pContextId = manager.getContextID();

        if (!manager.inService()) {
            new DescriptorProcessor().process(pContextId, sipApplication);
        }


    }
View Full Code Here

TOP

Related Classes of org.jvnet.glassfish.comms.security.auth.impl.SipSecurityManager

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.