Package org.apache.ofbiz.ldap
Class LdapLoginWorker
- java.lang.Object
-
- org.apache.ofbiz.webapp.control.LoginWorker
-
- org.apache.ofbiz.ldap.LdapLoginWorker
-
public class LdapLoginWorker extends LoginWorker
Common LDAP Login Workers
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.webapp.control.LoginWorker
module, resourceWebapp, securityProperties, X509_CERT_ATTR
-
-
Constructor Summary
Constructors Constructor Description LdapLoginWorker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
checkLogin(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that checks to see is a userLogin is logged in.protected static org.w3c.dom.Element
getRootElement(HttpServletRequest request)
static java.lang.String
login(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that logs in a userLogin.static java.lang.String
logout(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that logs out a userLogin by clearing the session.-
Methods inherited from class org.apache.ofbiz.webapp.control.LoginWorker
autoChangePassword, autoLoginCheck, autoLoginRemove, autoLoginSet, check509CertLogin, checkImpersonationInProcess, checkLogout, checkRequestHeaderLogin, checkServletRequestRemoteUserLogin, checkValidIssuer, createSecuredLoginIdCookie, depersonateLogin, doBasicLogin, doBasicLogout, doMainLogin, extensionCheckLogin, extensionConnectLogin, getAppBarWebInfos, getAutoLoginCookieName, getAutoUserLoginId, getSecuredLoginIdCookieName, getSecuredUserLoginId, getUserLoginSession, hasApplicationPermission, hasBasePermission, impersonateLogin, isFlaggedLoggedOut, isUserLoggedIn, isUserLoginActive, loginUserWithUserLoginId, makeLoginUrl, makeLoginUrl, makeLoginUrl, makeLoginUrl, setLoggedOut, setWebContextObjects
-
-
-
-
Method Detail
-
checkLogin
public static java.lang.String checkLogin(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that checks to see is a userLogin is logged in. If not, the user is forwarded to the login page.- 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
-
login
public static java.lang.String login(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that logs in a userLogin. This should run before the security check.- 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:
- Return a boolean which specifies whether or not the calling Servlet or JSP should generate its own content. This allows an event to override the default content.
-
logout
public static java.lang.String logout(HttpServletRequest request, HttpServletResponse response)
An HTTP WebEvent handler that logs out a userLogin by clearing the session.- Parameters:
request
- The HTTP request object for the current request.response
- The HTTP response object for the current request.- Returns:
- Return a boolean which specifies whether or not the calling request should generate its own content. This allows an event to override the default content.
-
getRootElement
protected static org.w3c.dom.Element getRootElement(HttpServletRequest request)
-
-