Java 带有 Kerberos 身份验证的 Restful Web 服务

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20344285/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 01:13:01  来源:igfitidea点击:

Restful Web Service with Kerberos Authentication

javaspring-securityjax-rs

提问by ServerMonkey

Starting a new project to create a restful Web Service that requires callers to be Authenticated by Kerberos (Active Directory).

启动一个新项目以创建要求调用者通过 Kerberos (Active Directory) 进行身份验证的 Restful Web 服务。

The web service will be hosted by Tomcat and I was planning to use JAX-RS with JAAS but I'm not finding much information on this, does anyone have information or experience on getting this to work?

Web 服务将由 Tomcat 托管,我计划将 JAX-RS 与 JAAS 一起使用,但我没有找到太多关于此的信息,有没有人有关于使其工作的信息或经验?

Should I be looking at Spring and Spring Security instead?

我应该看看 Spring 和 Spring Security 吗?

采纳答案by Juned Ahsan

Apache provides good documentation for using JAXRS with kerberos. Here is the link:

Apache 为将 JAXRS 与 kerberos 一起使用提供了很好的文档。链接在这里:

http://cxf.apache.org/docs/jaxrs-kerberos.html

http://cxf.apache.org/docs/jaxrs-kerberos.html