If I understood your problem correctly, you want to collect some client data and pass this data to the container for authentication, but you need customized login modules to handle the ip address. Section 8.4 of the following documentation may be of some help, as it describes how to customize the login modules:
In 2 days, I am moving this thread to the security user forum. This is for design of JBoss security. Not user questions.