Class UserFilter

All Implemented Interfaces:
Filter, FilterConfig, Serializable

public class UserFilter extends HttpFilter
Checks whether the user is authenticated.

Initializes the request's getUserPrincipal() and getRemoteUser(), and implements its isUserInRole(String) for other filters and servlets down the chain. The user principal will be created by a UserPrincipalFactory present in the ServletContext.

Invalidates the HttpSession if a LoggedOutSessionStore is present in the ServletContext and the session has been recorded as logged out on the OpenID Provider through the OpenID Connect Back-Channel Logout protocol.

See Also: