Use case : HTTP context, I need to restrict access to urls given a certain session attribute state
Extending the is* methods of AccessControlFilter in a custom filter works, but it looks sorta ugly : I have no Realm.
AFAIK Realms are used for things like LDAP, JDBC, INI backends. Whenever my "realm" is in fact web-bound, i.e the HttpSession itself is the realm.
- Is my custom filter the proper way to secure, given that I have the information I need in the HttpSession
- If not, how would you bind a Realm to web based context ? Like HttpSession or even HttpServletRequest