Simple Kerberos client in Java?

后端 未结 9 591
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 06:47

Applications such a Google\'s Chrome and IE can transparently handle Kerberos authentication; however I can not find a \"simple\" Java solution to match this transparency. A

9条回答
  •  不思量自难忘°
    2020-12-02 07:19

    You don't actually need to do anything. In Java 6, on a Windows client machine you can do this:

    new URL("http://myhost/myapp").openStream();
    

    And negotiate authentication just works. At least it does for me. And the server I tested on only supports Negotiate, not NTLM auth.

提交回复
热议问题