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.
我想一个使用 NTLoginModule 进行身份验证的 jaas.conf 文件示例会有所帮助。
我不确定这是否是你的意思,但我想你可能有:
SomeName { com.sun.security.auth.module.NTLoginModule required; };
然后你可以使用它:
LoginContext lc = new LoginContext("SomeName", new SomeCallbackHandler()); lc.login();
该java.security.auth.login.config属性应指向配置文件所在的位置。
java.security.auth.login.config