How to implement row-level security in Java?

前端 未结 3 1214
耶瑟儿~
耶瑟儿~ 2021-01-05 00:00

I am currently evaluating authentication / authorization frameworks.

Apache Shiro seems to be very nice but I am missing row-level security features

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-05 00:20

    Row level security is really best done in the database itself. The database has to be told what your user context is when you grab a connection. That user is associated with one or more security groups. The database then automatically appends filters to user supplied queries to filter out what can't be seen from the security groups. This of course means that this is a per database-type solution.

    Oracle has pretty good Row Level Security support, see http://www.orafusion.com/art_fgac.htm as an example.

提交回复
热议问题