【发布时间】:2016-10-14 15:44:52
【问题描述】:
我正在尝试在我的 WAR 中使用 JAAS 进行身份验证。我知道我的configuration file (another link) 应该放在某个地方(如here 解释的那样)。不幸的是,如果我们在谈论 WAR,我无法理解确切的位置?以及如何命名文件?
// JAAS has to find the file and retrieve "foo" from it
LoginContext ctx = new LoginContext("foo", this);
【问题讨论】: