The authentication you say is called basic authentication in the web application, where the browser popup will be used to obtain the user credentials.
Which Java application server are you using?
To learn more about Basic Authentication, see this page.
source share