Package org.apache.cocoon.webapps.authentication.components

Examples of org.apache.cocoon.webapps.authentication.components.Manager


        } else {
           throw new ProcessingException("Unknown mode " + modeString);
        }

        // logout
        Manager authManager = null;
        try {
            RequestState state = RequestState.getState();
           
            authManager = (Manager) this.manager.lookup(Manager.ROLE);
            final String handlerName = par.getParameter("handler",
                                                         (state == null ? null : state.getHandlerName()));
            if ( null == handlerName )
                throw new ProcessingException("LogoutAction requires at least the handler parameter.");
            authManager.logout( handlerName , mode );
        } finally {
            this.manager.release( (Component)authManager );
        }

        if (this.getLogger().isDebugEnabled() ) {
View Full Code Here


                                   ", par="+par);
        }

        Map map = null;
        String handlerName = par.getParameter("handler", null);
        Manager authManager = null;

        try {
            authManager = (Manager) this.manager.lookup(Manager.ROLE);
            if (authManager.isAuthenticated(handlerName) ) {
                RequestState state = RequestState.getState();
                map = state.getHandler().getContext().getContextInfo();
            }
        } finally {
            this.manager.release( (Component)authManager);
View Full Code Here

                                   ", source="+source+
                                   ", par="+par);
        }
        String handlerName = null;
        String applicationName = null;
        Manager authManager = null;
        Map map = null;

        try {
            handlerName = par.getParameter("handler", null);
            applicationName = par.getParameter("application", null);

            authManager = (Manager) this.manager.lookup( Manager.ROLE );

            // do authentication
            if ( !authManager.checkAuthentication(redirector, handlerName, applicationName) ) {
                // All events are ignored
                // the sitemap.xsl ensures that only the redirect is processed
            } else {
                RequestState state = RequestState.getState();
                map = state.getHandler().getContext().getContextInfo();
View Full Code Here

TOP

Related Classes of org.apache.cocoon.webapps.authentication.components.Manager

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.