AuthenticationStrategy (interface)

Decouples the IsisRestfulObjectsInteractionFilter from the mechanism of obtaining the InteractionContext .

API

AuthenticationStrategy.java
interface AuthenticationStrategy {
  InteractionContext lookupValid(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)     (1)
  void bind(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, InteractionContext auth)     (2)
  void invalidate(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
}

Members

lookupValid(HttpServletRequest, HttpServletResponse)

Returns a still-valid InteractionContext or null

bind(HttpServletRequest, HttpServletResponse, InteractionContext)

Binds the request to a still-valid InteractionContext if applicable