Use a custom callback handler
Procedure 7.1. Set callback handler using attributes This procedure describes how to specify a callback handler in the jboss-service.xml configuration file. Open the configuration file Navigate to $JBOSS_HOME/server/$PROFILE/conf/ Open the jboss-service.xml file. By default, the jboss-service.xml file contains the configuration in Example 7.3, “jboss-service default configuration� Example 7.3. jboss-service default configuration ... true org.jboss.security.plugins.JaasSecurityManager anonymous 1800 60 false ... Append the attribute To set the custom callback handler, append an element as a child of the element, and specify the fully qualified name of your callback handler. Refer to Example 7.4, “jboss-service appended callback handler� for an example element, with the callback handler specified. Example 7.4. jboss-service appended callback handler ... true org.jboss.security.plugins.JaasSecurityManager anonymous 1800 60 false org.jboss.security.plugins.[Custom_Callback_Handler_Name] ... Restart server You have now configured the jboss-service.xml file to use a custom callback handler. Restart the server to ensure the new security policy takes effect.