cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <>
Subject Re: Is it possible to use @RollsAllowed annotation in CFX RESTfull
Date Fri, 22 Feb 2013 13:07:45 GMT
On 22/02/13 12:59, svasanta wrote:
> Hi,
> I am using CFX 2.6.3. Does CFX RESTfull web service support @RollsAllowed
> annotation ?
> What I am looking for is:
> I want to annotate my rest method like @RollsAllowed({"admin"}). and
> expectation is only users with admin role should be allowed to access the
> method.  Like this I want to have different role constraints for
> methods/classes.
> Is there any other way to do this, preferably using annotations ?
Sure, have a look at

You can use either CXF interceptors or JAX-RS filters, the latter will 
return 403 in case of authorization failures.

For example, will 
analyze the injected bean for RolesAllowed by default - you can tell it 
if other annotation needs to be checked (such as Spring @Secured)

> --
> View this message in context:
> Sent from the cxf-user mailing list archive at

Sergey Beryozkin

Talend Community Coders


View raw message