By default, JReport Designer uses its own security system. If you want to enable the Security Context Support, you will first need to configure the config.xml file in <designer_install_root>\bin
.
<SecurityContextFactory value=""/>
and <DeployWizardFactory value=""/>
as the child of the element <Option>
.
|
<install_root>\bin
.Security Context interfaces in JReport Server are different from those of JReport Designer, and you will have to implement the Server interfaces separately.
<server_install_root>\bin
.
Open the server.properites file, and then modify (add if it doesn't exist) the value of the property com.jinfonet.securityContextFactory to be that of your SecurityContextFactory implementing class package and name as follows:
com.jinfonet.securityContextFactory = mypackage.myclass
Note: Alternatively, you can add the parameter –D com.jinfonet.securityContextFactory = mypackage.myclass
to the file JRServer.bat with which you start your JReport Server.