AuthenticationStrategy
Decouples the CausewayRestfulObjectsInteractionFilter
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)
}
1 | lookupValid(HttpServletRequest, HttpServletResponse)
Returns a still-valid InteractionContext or null |
2 | bind(HttpServletRequest, HttpServletResponse, InteractionContext)
Binds the request to a still-valid InteractionContext if applicable |
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