Re: Apache Shiro annotation support in Apache Camel

2017-05-11 Thread imranrazakhan
Hi,

Thanks for update

infact this bean is resourceClass for CXFRS component so i was looking for
annotation option as it already support like 

@POST
@Consumes({"application/x-www-form-urlencoded", "application/json"}) 

I just started looking different option like

https://github.com/LosD/Shiro-Jersey2-annotations


Regards,



--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Shiro-annotation-support-in-Apache-Camel-tp5799253p5799293.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Apache Shiro annotation support in Apache Camel

2017-05-11 Thread Claus Ibsen
You likely need to look at Shiro and how to use those annotations as
its not something Camel support specific / or do to support. The
camel-shiro component is just for a route policy to tie into shiro.
How shiro does bean security with annotations is not Camel per see.

I can imagine you need for those beans to somehow be managed by spring
or shiro or some way for it to be able to wrap/inject or whatever it
does around those annotations. But as said check the shiro docs.

On Wed, May 10, 2017 at 9:55 PM, imranrazakhan  wrote:
> Hi,
>
> I configured Apache Shiro in order perform authorisation of rest service, it
> works fine as per provided examples but I want to use annotations like:
>
> import org.apache.shiro.authz.annotation.RequiresPermissions;
>
> @RequiresPermissions("my:create:message")
> public void sendmessage() {
> ...
> }
>
> Those annoations are never evaluated.
>
> Regards,
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Apache-Shiro-annotation-support-in-Apache-Camel-tp5799253.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2


Apache Shiro annotation support in Apache Camel

2017-05-10 Thread imranrazakhan
Hi,

I configured Apache Shiro in order perform authorisation of rest service, it
works fine as per provided examples but I want to use annotations like:

import org.apache.shiro.authz.annotation.RequiresPermissions;

@RequiresPermissions("my:create:message")
public void sendmessage() {
...
}

Those annoations are never evaluated.

Regards,



--
View this message in context: 
http://camel.465427.n5.nabble.com/Apache-Shiro-annotation-support-in-Apache-Camel-tp5799253.html
Sent from the Camel - Users mailing list archive at Nabble.com.