Ok thanks - I already have a custom realm as it is for a standalone client
app that uses simple "pin" access not userandpassword... so i will look into
the existing Shiro classes to see what i need to add to my realm for adding
permission support

thanks



Moataz Elmasry-3 wrote:
> 
> 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-
>>   
> 
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Programatically-adding-Permissions-tp4018307p4018920.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to