3

Apache CXF の JAX-RS 実装を介して公開された RESTful API を保護する簡単な方法はありますか? Spring Security を介したセキュリティのためのフックはありますか?.

HTTPS 経由で基本認証を使用している人はいると聞きましたが、実際の例は見たことがありません。どんなアイデアでも大歓迎です。

ありがとう!

4

2 に答える 2

0

Don't know about CXF, but in Resteasy you can configure it as you would for any other web application, and then do..

@Context private SecurityContext sc;

Which allows you to check things such as sc.isUserInRole("admin");. CXF may provide the same functionality.

于 2010-07-12T10:31:22.953 に答える
0

http://chrisdail.com/2008/08/13/http-basic-authentication-with-apache-cxf-revisited/を参照してください。

于 2010-06-25T20:27:21.550 に答える