This method should be implemented for post processing after a failed authentication. Authentication Service will invoke this method on failed authentication.
Method signature is:
public void onLoginFailure(Map requestParamsMap, HttpServletRequest request, HttpServletResponse response) throws AuthenticationException;
where
requestMap is a map containing HttpServletRequest parameters
request HttpServletRequest object
response HttpServletRequest object
com.sun.identity.authentication.spi.AuthenticationException is thrown on error.