/** * Create a handler * * @param authProvider the auth service to use * @return the handler */ static FormLoginHandler create(AuthProvider authProvider) { return new FormLoginHandlerImpl(authProvider, DEFAULT_USERNAME_PARAM, DEFAULT_PASSWORD_PARAM, DEFAULT_RETURN_URL_PARAM, null); }
if (returnURL != null) { doRedirect(req.response(), returnURL); return; doRedirect(req.response(), directLoggedInOKURL); } else {
if (returnURL != null) { doRedirect(req.response(), returnURL); return; doRedirect(req.response(), directLoggedInOKURL); } else {
/** * Create a handler * * @param authProvider the auth service to use * @param usernameParam the value of the form attribute which will contain the username * @param passwordParam the value of the form attribute which will contain the password * @param returnURLParam the value of the session attribute which will contain the return url * @param directLoggedInOKURL a url to redirect to if the user logs in directly at the url of the form login handler * without being redirected here first * * @return the handler */ static FormLoginHandler create(AuthProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL) { return new FormLoginHandlerImpl(authProvider, usernameParam, passwordParam, returnURLParam, directLoggedInOKURL); }
/** * Create a handler * * @param authProvider the auth service to use * @return the handler */ static FormLoginHandler create(AuthProvider authProvider) { return new FormLoginHandlerImpl(authProvider, DEFAULT_USERNAME_PARAM, DEFAULT_PASSWORD_PARAM, DEFAULT_RETURN_URL_PARAM, null); }
/** * Create a handler * * @param authProvider the auth service to use * @param usernameParam the value of the form attribute which will contain the username * @param passwordParam the value of the form attribute which will contain the password * @param returnURLParam the value of the session attribute which will contain the return url * @param directLoggedInOKURL a url to redirect to if the user logs in directly at the url of the form login handler * without being redirected here first * * @return the handler */ static FormLoginHandler create(AuthProvider authProvider, String usernameParam, String passwordParam, String returnURLParam, String directLoggedInOKURL) { return new FormLoginHandlerImpl(authProvider, usernameParam, passwordParam, returnURLParam, directLoggedInOKURL); }