I am developing a Java Servlets webapp which will use container based security to authenticate users in. Now my question is that can a User be mapped to more than one security role ?
For example in my case-:
A User can be a
- Teacher
- Co-ordinator ( who can also be a Teacher)
- Admin (who can also be a Teacher)
Now obviously the Admin will have privileges to access more functionality than the teacher. So how is that possible with just container based security for a container like Tomcat ?
I am also not using any framework like Spring Security or Apache Shiro.