public class LoginHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Modifier | Constructor and Description |
---|---|
protected |
LoginHelper() |
Modifier and Type | Method and Description |
---|---|
static Benutzer |
doFormHeaderLogin(IExtendedFormRequestContext ctx) |
static Benutzer |
doFormRequestLogin(IExtendedFormRequestContext ctx) |
static Benutzer |
doLogin(AutoLoginInData data) |
static void |
doLogin(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
static void |
doLogin(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean supressJSON)
Führt den Login durch.
|
static Benutzer |
doLogin(UserContext uc,
String userLogin,
String userPwd,
Long mandantId)
Führt Login anhand der übergebenen Daten durch.
|
static void |
doLoginAndRedirect(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
Set<EUserAuthorizationType> type)
Führt den Login bei geschützten Formularen durch.
|
static void |
doLogout(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Führt den Logout durch.
|
static boolean |
isAuth(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean supressJSON)
Prüft ob der Nutzer im System authentifiziert ist.
|
static String |
responseCurrentBenutzer(Benutzer user,
javax.servlet.http.HttpSession session,
String lang) |
static String |
responseLogin(Benutzer user,
javax.servlet.http.HttpSession session,
String lang)
Deprecated.
|
static String |
responseLogin(Benutzer user,
javax.servlet.http.HttpSession session,
String lang,
String userLogin,
Long manID)
Deprecated.
|
static String |
responseLogin(Benutzer user,
javax.servlet.http.HttpSession session,
String lang,
String userLogin,
Long manID,
String targetUrl) |
public static boolean isAuth(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON) throws IOException
req
- HttpServletRequestresp
- HttpServlerResponsetrue
wenn der Nutzer authentifiziert ist, ansonsten false
IOException
- on errors during writing to the responsepublic static void doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
IOException
public static void doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON) throws IOException
req
- HttpServletRequestresp
- HttpServlerResponseIOException
public static Benutzer doFormHeaderLogin(IExtendedFormRequestContext ctx)
public static Benutzer doFormRequestLogin(IExtendedFormRequestContext ctx)
public static Benutzer doLogin(UserContext uc, String userLogin, String userPwd, Long mandantId)
Benutzer
-Objekt zurückgegebenuc
- the user contextuserLogin
- the user loginuserPwd
- the user passwordmandantId
- the client idBenutzer
or null
public static String responseCurrentBenutzer(Benutzer user, javax.servlet.http.HttpSession session, String lang)
@Deprecated public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang)
@Deprecated public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang, String userLogin, Long manID)
public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang, String userLogin, Long manID, String targetUrl)
public static void doLogout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
req
- req HttpServletRequestresp
- HttpServlerResponsepublic static void doLoginAndRedirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Set<EUserAuthorizationType> type) throws IOException
req
- HttpServletRequestresp
- HttpServlerResponseIOException
- on errors during the redirectpublic static Benutzer doLogin(AutoLoginInData data)
data
- AutoLoginInData
of the userBenutzer
or null
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.