cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schneider <ch...@die-schneider.net>
Subject Re: Is it possible to integrate CXF JAX-RS with Spring Security 2.0.5 ?
Date Tue, 16 Feb 2010 06:56:12 GMT
Hi Sergey,

I have a proposal for the example. To secure the methods @Secured is 
used. The problem with the annotation is that it is spring proprietary. 
I propose to use the @RolesAllowed annotain from jsr 250 common 
annotations. It works in the same way as @Secured

The dependency is:

<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
</dependency>

This allows to keep the code free of direct dependencies to spring.

Do you think it makes sense to change this?

Greetings

Christian


Am 15.02.2010 11:01, schrieb Sergey Beryozkin:
> Hi
>
> please see
>
> http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/SecureBookInterface.java

>
> (interface)
> http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/SecureBookStore.java

>
> (impl)
> http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/SecureBook.java

>
> (secure subresource)
> http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/security/JAXRSSpringSecurityClassTest.java

>
> (test)
>
>


Mime
View raw message