Class LoginEvents


  • public class LoginEvents
    extends java.lang.Object
    LoginEvents - Events for UserLogin and Security handling.
    • Field Detail

      • module

        public static final java.lang.String module
      • usernameCookieName

        public static final java.lang.String usernameCookieName
        See Also:
        Constant Field Values
    • Constructor Detail

      • LoginEvents

        public LoginEvents()
    • Method Detail

      • saveEntryParams

        public static java.lang.String saveEntryParams​(HttpServletRequest request,
                                                       HttpServletResponse response)
        Save USERNAME and PASSWORD for use by auth pages even if we start in non-auth pages.
        Parameters:
        request - The HTTP request object for the current JSP or Servlet request.
        response - The HTTP response object for the current JSP or Servlet request.
        Returns:
        String
      • forgotPassword

        public static java.lang.String forgotPassword​(HttpServletRequest request,
                                                      HttpServletResponse response)
        The user forgot his/her password. This will call showPasswordHint, emailPassword or simply returns "success" in case no operation has been specified.
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event
      • showPasswordHint

        public static java.lang.String showPasswordHint​(HttpServletRequest request,
                                                        HttpServletResponse response)
        Show the password hint for the userLoginId specified in the request object.
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event
      • emailPasswordRequest

        public static java.lang.String emailPasswordRequest​(HttpServletRequest request,
                                                            HttpServletResponse response)
        event to send an email with a link to change password
        Parameters:
        request - The HTTPRequest object for the current request
        response - The HTTPResponse object for the current request
        Returns:
        String specifying the exit status of this event
      • storeLogin

        public static java.lang.String storeLogin​(HttpServletRequest request,
                                                  HttpServletResponse response)
                                           throws java.io.UnsupportedEncodingException
        Throws:
        java.io.UnsupportedEncodingException