使用jersey保护其余的Web服务 [英] secure a rest web service using jersey

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

问题描述

我已经为我的应用程序实现了剩余的Web服务.由于这不应该是一项公共服务,因此我想强制执行某种类型的客户端身份验证.请说明如何执行此操作.

I have implemented rest web services for my application. Since this should not be a public service ,I want to enforce some type of client authentication. Please throw light on how to do that.

仅供参考,我正在使用apache Tomcat 7和MYSQL数据库

FYI, I am using apache Tomcat 7 and a MYSQL database

推荐答案

此处有很多选择-从容器管理的安全性(基本或摘要)到 Spring Security .

You have a lot of options here - anything from container managed security (basic or digest) to Shiro or Spring Security.

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

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