Set a security callback handler using injection
Procedure 7.2. Set security callback handler using injection This procedure describes how to inject a security callback handler instance into the JNDISecurityManagement bean. Create custom callback instance You must create an instance of the custom callback handler, and register it. Open the configuration file Navigate to $JBOSS_HOME/server/$PROFILE/deploy/security/ Open the security-jboss-beans.xml file. By default, the security-jboss-beans.xml file contains the JNDIBasedSecurityManagement bean configuration in Example 7.5, “security-jboss-beans default configuration� Example 7.5. security-jboss-beans default configuration Append the injection property To inject the callback handler, append a element as a child of the JNDIBasedSecurityManagement element. Specify the callback handler using the the and elements described in Example 7.4, “jboss-service appended callback handler�. Example 7.6. security-jboss-beans callback handler Restart server You have now configured the security-jboss-beans.xml file to inject your custom callback handler. Restart the server to ensure the new security policy takes effect.