Use of SSL does not change the basic way that form-based authentication works.…
- User
Use of SSL does not change the basic way that form-based authentication works. Regardless of whether you are using SSL, you use the login-config element to indicate that you are using form-based authentication and to identify the login and login-failure pages. With or without SSL, you designate the protected resources with the url-pattern subelement of web-resource-collection. None of your servlets or JSP pages need to be modified or moved to different locations when you enable or disable SSL. That’s the beauty of declarative security.翻译中文
- Assistant
使用SSL不会改变基于表单的身份验证工作的基本方式。 无论您是否使用SSL,您都使用login-config元素来指示您正在使用基于表单的身份验证,并标识登录和登录失败页面。使用或不使用SSL,您使用web-resource-collection的url-pattern子元素来指定受保护的资源。当您启用或禁用SSL时,无需修改或移动任何servlet或JSP页面。这就是声明性安全性的美妙之处。