}
/** . */
public AuthenticationResult login(HttpServletRequest request, HttpServletResponse response, String userName, String password, long validityMillis) throws ServletException
{
AuthenticationResult result = registration.context.login(request, response, userName, password, validityMillis);
//
if (!(result instanceof GenericAuthenticationResult))
{
fireEvent(EventType.LOGIN, new AuthenticationEvent(request, response, new Credentials(userName, password)));