Best Security Framework to secure and authenticate an iPhone app which uses REST?

前端 未结 2 1287
挽巷
挽巷 2021-02-03 15:19

I built an iPhone app which transfers data via a REST web service (Jersey) via JSON objects to a Java middle tier back end...

Question(s):

(1) What is the best

2条回答
  •  梦如初夏
    2021-02-03 16:09

    I did a demo at JavaOne at the beginning of June that used Jersey on the server, OAuth (via OpenSSO) and a JavaFX client. The code is somewhat experimental, but it might be useful to you - see this blog entry - especially comment #2. There's also a video that explains it at a high level. I used XML, but, since OAuth works at the HTTP level, it works equally well for JSON.

    BTW - there's an Objective C OAuth Consumer implementation - I haven't used it, but Pownce did.

提交回复
热议问题