@SuppressWarnings("deprecation")
    protected void setSecurityManagerFactory(WebIniSecurityManagerFactory factory) {
        this.factory = factory;
    }
Allows for setting the SecurityManager factory which will be used to create the SecurityManager.

@param factory the SecurityManager factory to used.
@since 1.4
web/src/main/java/org/apache/shiro/web/env/IniWebEnvironment.java