简体   繁体   中英

how to authenticate user in JAX-RS using apache CXF?

I am using apache CXF for JAX-RS application.I followed the example in the url ' http://www.javatips.net/blog/2012/02/cxf-restful-tutorial '..... Finally,I am hosting the application as 'war' in tomcat under 'webapps'?...

How to inject security(simple authorization and authentication) in JAX-RS? Basically,my aim is to validate a 'user' role before catering service request?

Can anyone provide a neat example?

i have no idea about CXF but you can find a Security in JAX-RS how to ? Here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM