Spring 框架是否支持 REST 安全性?

发布于 2024-09-08 02:45:04 字数 393 浏览 4 评论 0原文

我即将基于 Spring 框架为我的 RESTful 服务实现安全性。实际上,我以前从未保护过 RESTful WS,但我对自己有一个很好的介绍 此处。基本上,Amazon S3 甚至 OAuth 都是很好的例子。

我的问题:

  1. Spring 框架是否提供了这些开箱即用的策略?
  2. 如果是:是 Spring security 实现了这些策略吗?
  3. 如果不是:您建议如何使用 Spring 实施这些策略(OAuth ...)?

预先感谢您的任何建议。

I am about to implement security for my RESTful services based on the Spring framework. Actually, I have never secured RESTful WS before, but I've got myself a good introduction here. Basically, Amazon S3 or even OAuth are suggested as good examples.

My questions:

  1. Does the Spring framework provide these strategies out-of-the-box?
  2. If yes: Is it Spring security that implements these strategies?
  3. If no: How would you suggest to implement these strategies (OAuth ...) with Spring?

Thanks in advance for any suggestion.

Er

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雾里花 2024-09-15 02:45:04

这绝对是您正在寻找的 Spring Security。它提供了一种保护 RESTful spring-mvc 控制器调用安全的绝佳方法。

oAuth 涉及联合授权,当您构建一个应用程序,要求其用户向您的应用程序授予访问其存储在云中的部分私有数据(例如,他们的 Gmail 联系人或他们的个人数据)的应用程序时,您需要联合授权。谷歌日历。

It is definitely Spring Security that you're looking for. It provides an excellent way of securing the invocations of your RESTful spring-mvc controllers.

oAuth is in the business of federated authorization, which is what you need when you're building an application that requires its users to give your application permission to access a portion of their private data that lives in the cloud, e.g their gmail contacts or their Google Calendar.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文