Interface LoginResponseHandler
-
- All Known Implementing Classes:
Cas2Authenticator
,WebEngineFormAuthenticator
public interface LoginResponseHandler
Interface for services that knows how to handle login responses. This was specially introduced to extendNuxeoAuthenticationPlugin
interface to add login response handling capabilities to existing authenticators.This interface should be implemented by
NuxeoAuthenticationPlugin
instances that needs full control over the login response.- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles the login error response.boolean
onSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles login success response.
-
-
-
Method Detail
-
onError
boolean onError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles the login error response.- Parameters:
request
- the HTTP requestresponse
- the HTTP response- Returns:
- true if error was handled, false otherwise
-
onSuccess
boolean onSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Handles login success response.- Parameters:
request
- the HTTP requestresponse
- the HTTP response- Returns:
- true if response was handled, false otherwise
-
-