Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您好,我的 WebApp 有问题!
我创建了一个索引页面,其中包含指向 2 个不同站点(JSP)的链接。我想保护这两个站点。第一个站点只能通过证书访问(auth-method> CLIENT-CERT
我在 web.xml 中创建了“安全约束”,但我的问题是我不知道如何使用这个“登录配置”进行配置。我没有在网上找到任何可以解决此类问题的好的解决方案。
我真的需要创建 3 个 WebApps(Netbeans Projekts) 来用 3 个不同的 web.xml 文件解决这个问题吗?
问候
Servlet 规范要求每个 Web 应用程序最多有一个登录配置。如果您想要更复杂的配置,您需要单独的 Web 应用程序,或者您可以使用 Spring Security 或 SecurityFilter 之类的安全库,它们可能(我尚未检查)在单个 Web 应用程序中提供对多个身份验证方案的支持。