Custom Security Filters in Jersey - NextInstruction
Most apps that provide RESTful web services these days use standards like OAuth for web application security however many enterprise and legacy systems still interface with large directory services or proprietary user repositories. If the security requirements at your company extend beyond BASIC_AUTH and aren't based on newer standards like OAuth you may need to write your own security filters. Sure there's Spring Security, but you may just need something simple and highly customizable: Enter Jersey ContainerRequestFilters.
In Jersey a ContainerRequestFilter
is very similar to a standard J2EE ServletRequestFilter and in fact we can use them in Jersey powered apps to do much the same thing as traditional Servlet Filters. The main difference (as you will see) is that traditional filters are rather low-level whilst ContainerRequestFilters are much easier to work with.
Read full article from Custom Security Filters in Jersey - NextInstruction
No comments:
Post a Comment