my classes .. the important thing is this code 

in doGetAuthorizationInfo method:

//THIS IS THE MAIN CODE YOU NEED TO DO !!!!
                SimpleAuthorizationInfo info = new 
SimpleAuthorizationInfo(roles);
                info.setRoles(roles); //fill in roles (set of string) 
                info.setObjectPermissions(permissions); //add permisions ... 
custom
objects (MUST IMPLEMENT SHIRO PERMISSION INTERFACE)


bye 

Armando
-- 
View this message in context: 
http://shiro-user.582556.n2.nabble.com/How-to-add-a-role-to-the-subject-tp5562700p5562986.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to