Package org.apache.shiro.web.env

Examples of org.apache.shiro.web.env.DefaultWebEnvironment


        InjectorHolder.getInjector().inject(strategy, DomainAuthorizationStrategy.class);
        getSecuritySettings().setAuthorizationStrategy(strategy);
    }

    private void initWebEnvironment() {
        DefaultWebEnvironment environment = new DefaultWebEnvironment();
        SecurityManagerHolder manager = new SecurityManagerHolder();
        InjectorHolder.getInjector().inject(manager, SecurityManagerHolder.class);
        environment.setSecurityManager(manager.getWebSecurityManager());
        getServletContext().setAttribute(EnvironmentLoader.ENVIRONMENT_ATTRIBUTE_KEY, environment);
    }
View Full Code Here

TOP

Related Classes of org.apache.shiro.web.env.DefaultWebEnvironment

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.