Example usage for org.apache.shiro.mgt AuthorizingSecurityManager setAuthorizer

List of usage examples for org.apache.shiro.mgt AuthorizingSecurityManager setAuthorizer

Introduction

In this page you can find the example usage for org.apache.shiro.mgt AuthorizingSecurityManager setAuthorizer.

Prototype

public void setAuthorizer(Authorizer authorizer) 

Source Link

Document

Sets the underlying Authorizer instance to which this SecurityManager implementation will delegate all of its authorization calls.

Usage

From source file:com.github.mizool.technology.web.shiro.AbstractEnvironmentLoaderListener.java

License:Apache License

@Override
protected WebEnvironment createEnvironment(ServletContext pServletContext) {
    WebEnvironment environment = super.createEnvironment(pServletContext);
    AuthorizingSecurityManager securityManager = (AuthorizingSecurityManager) environment.getSecurityManager();
    securityManager.setRealms(getRealms());
    securityManager.setAuthorizer(getAuthorizer());

    return environment;
}