<login-config> <auth-method>BASIC</auth-method> <realm-name>User Auth</realm-name> </login-config> <login-config> <auth-method>DIGEST</auth-method> <realm-name>User Auth</realm-name> </login-config> <login-config> <auth-method>CLIENT-CERT</auth-method> <realm-name>User Auth</realm-name> </login-config> <login-config> <auth-method>FORM</auth-method> <realm-name>User Auth</realm-name> <form-login-config> <form-login-page>login.jsp</form-login-page> <form-error-page>error.jsp</form-error-page> </form-login-config> </login-config>
Originally posted by Ulf Dittmer: <realm-name> is optional. If it's present then it's displayed in the dialog box asking for the credentials.