Package de.xima.fc.web
Class LoginHelper
- java.lang.Object
-
- de.xima.fc.web.LoginHelper
-
@Deprecated public class LoginHelper extends Object
Deprecated.Since version 8.0.0 login is done viaILoginLogic
orISecurityConfig
.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LoginHelper()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Benutzer
doFormHeaderLogin(IExtendedFormRequestContext ctx)
Deprecated.static Benutzer
doFormRequestLogin(IExtendedFormRequestContext ctx)
Deprecated.static Benutzer
doLogin(AutoLoginInData data)
Deprecated.static Benutzer
doLogin(UserContext uc, String userLogin, String userPwd, Long mandantId)
static void
doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Deprecated.static void
doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON)
Deprecated.static void
doLoginAndRedirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Set<EUserAuthorizationType> type)
Deprecated.static void
doLogout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Deprecated.static boolean
isAuth(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON)
Deprecated.To determine user authorizations get the user from the web context.static String
responseCurrentBenutzer(Benutzer user, javax.servlet.http.HttpSession session, String lang)
Deprecated.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)
Deprecated.static String
responseLogin(IUser user, javax.servlet.http.HttpSession session, String lang, String userLogin, String targetUrl)
Deprecated.
-
-
-
Method Detail
-
isAuth
@Deprecated public static boolean isAuth(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON) throws IOException
Deprecated.To determine user authorizations get the user from the web context. SeeSecurityWebContextHelper.getUser(HttpServletRequest, HttpServletResponse, IAuthenticationTarget)
.Prüft ob der Nutzer im System authentifiziert ist.- Parameters:
req
- HttpServletRequestresp
- HttpServlerResponse- Returns:
true
wenn der Nutzer authentifiziert ist, ansonstenfalse
- Throws:
IOException
- on errors during writing to the response
-
doLogin
@Deprecated public static void doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws IOException
Deprecated.- Throws:
IOException
-
doLogin
@Deprecated public static void doLogin(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean supressJSON) throws IOException
Deprecated.Executes a login via username and password request parameters:user
&pass
. Theuser
parameter contains the username & name of the client separated by an@
character.- Parameters:
req
- HttpServletRequestresp
- HttpServlerResponse- Throws:
IOException
-
doFormHeaderLogin
@Deprecated public static Benutzer doFormHeaderLogin(IExtendedFormRequestContext ctx)
Deprecated.
-
doFormRequestLogin
@Deprecated public static Benutzer doFormRequestLogin(IExtendedFormRequestContext ctx)
Deprecated.
-
doLogin
@Deprecated public static Benutzer doLogin(UserContext uc, String userLogin, String userPwd, Long mandantId)
Deprecated.Führt Login anhand der übergebenen Daten durch. Bei Erfolg wirdBenutzer
-Objekt zurückgegeben- Parameters:
uc
- the user contextuserLogin
- the user loginuserPwd
- the user passwordmandantId
- the client id- Returns:
- an
Benutzer
ornull
-
responseCurrentBenutzer
@Deprecated public static String responseCurrentBenutzer(Benutzer user, javax.servlet.http.HttpSession session, String lang)
Deprecated.
-
responseLogin
public static String responseLogin(IUser user, javax.servlet.http.HttpSession session, String lang, String userLogin, String targetUrl)
Deprecated.
-
responseLogin
@Deprecated public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang)
Deprecated.
-
responseLogin
@Deprecated public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang, String userLogin, Long manID)
Deprecated.
-
responseLogin
@Deprecated public static String responseLogin(Benutzer user, javax.servlet.http.HttpSession session, String lang, String userLogin, Long manID, String targetUrl)
Deprecated.
-
doLogout
@Deprecated public static void doLogout(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
Deprecated.Führt den Logout durch.- Parameters:
req
- req HttpServletRequestresp
- HttpServlerResponse
-
doLoginAndRedirect
@Deprecated public static void doLoginAndRedirect(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Set<EUserAuthorizationType> type) throws IOException
Deprecated.Führt den Login bei geschützten Formularen durch. Nach dem Login wird auf das entsprechende Formular weitergeleitet.- Parameters:
req
- HttpServletRequestresp
- HttpServlerResponse- Throws:
IOException
- on errors during the redirect
-
doLogin
@Deprecated public static Benutzer doLogin(AutoLoginInData data)
Deprecated.- Parameters:
data
-AutoLoginInData
of the user- Returns:
- an
Benutzer
ornull
-
-