This Filter is used to:
Associate a SecurityManager with the request
Set up the current user if a cookie is detected
Remove the user cookie after the request if the user is logged out
This type adds support for establishing Shiro Authentication in a JAX-RS container
using native JAX-RS features, rather than relying on an external Servlet Container.