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 <[email protected]> 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
