The role based security currently does not support annotations as far as
I know. It should be possible to extend the mechanism in this way.
I added an isseu to track this:
https://issues.apache.org/jira/browse/KARAF-2570
Btw. the current implementation has the advantage that you can protect
services without changing them.
Christian
Am 12.11.2013 05:28, schrieb Mansour Al Akeel:
I am try to understand how to get role based security to work. As I
was searching, I found this thread and the implementation
http://karaf.922171.n3.nabble.com/Some-thoughts-around-adding-security-for-Karaf-Shell-Commands-td4029474.html
https://issues.apache.org/jira/browse/KARAF-2455
Which (fortunately) has been merged into the trunk.
Still, I can not find documentation or a complete example on how to
secure a service using annotation like @RolesAllowed or @RunAs .. etc.
Thank you.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com