Adding/deleting permissions to my understanding would mean changing the
contents of the realm (properties file, database, etc...).
shiro only offers a general use realm, but nothign specific, since shiro
can't forsee what structure your realm have.
So my answer to your question would be: you can't add permissions
programatically only with shiro, you'll need to extend your own realm
and add your add/delete functions.
Hope this helps
Moataz
aloleary wrote:
Hello,
Simple question really - what is the best approach for adding permissions
(wildcard is perfect) at runtime ?
I need to programatically setup a users permissions.
Any tips/hints appreciated
thanks
-A-