使用oAuth 2.0保护基于Jersey的REST服务 [英] Securing Jersey based REST service using oAuth 2.0

查看:167
本文介绍了使用oAuth 2.0保护基于Jersey的REST服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Jersey Library在java / netbeans中创建了RESTful服务。现在我想使用oAuth 2.0来保护这项服务。

I have created RESTful services in java/netbeans using the Jersey Library. Now i want to secure this service using oAuth 2.0.

是否有任何库或任何教程可以实现这一目标?我在谷歌找不到任何有用的东西。

Are there any libraries or any tutorial to achieve that? I couldn't find anything useful in google.

推荐答案

你可以使用Apache Oltu(以前的Apache Amber):https://cwiki.apache.org/confluence/display/OLTU/Documentation

You can use Apache Oltu (formerly Apache Amber): https://cwiki.apache.org/confluence/display/OLTU/Documentation

Authorization Server和Resource Server部分介绍了如何保护REST服务。

The Authorization Server and Resource Server sections explain how to secure your REST services.

这篇关于使用oAuth 2.0保护基于Jersey的REST服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆