I have my HTTP request authenticted by Apache HTTPD. Apache sets the REMOT_USER request header. I need to create a valve that allows me to create the required principal. I don't know if there is a valve that can be used for this purpose. I do not know how the class JBossGenericPrincipal can be used. It is not displayed in the JavaDoc and the compiler says there is no such class. But infact the class exists in the jar file.