简体   繁体   中英

JAX-WS Header Authentication

i've made a webservice where i expose some methods:

/Orders /Plans

etc.

I would like to add authentication for every method. I would like to pass this information on HEADER request.

So, for every request i will send my username/password and the webservice will reply me with the information that i've request (if my username/password is correct), 405 or else if i cant access to this.

I would like to implement a mechanism like Parse.com.

In this webservice (reading the doc) for every rerquest i send API KEY and CLIENT KEY. I would like to do the same in my RESTful Web Service. I will access it from iPhone/Android application, but this isnt a problem.

The problem is... how secure all my methods ?

SSL,带有用于检查密钥是否存在和有效性的过滤器。

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