|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.barracuda.examples.ex1.LoginServices
This class provides basic Login services, specifically: - validateUserPwd (either from HttpReq, HttpSession, or based on a specific user/pwd combo)
Field Summary | |
static String |
AUTO_LOGIN
|
static int |
INVALID_DATA_MISSING
|
static int |
INVALID_OTHER
|
static int |
INVALID_PASSWORD
|
static int |
INVALID_SESSION_EXPIRED
|
static int |
INVALID_USER
|
static String |
NUMBER_OF_VISITS
|
static String |
PASSWORD
|
static String |
USER
|
static int |
VALID
|
Constructor Summary | |
LoginServices()
|
Method Summary | |
static int |
validateUserPwd(javax.servlet.http.HttpServletRequest req,
boolean updateSession)
Validate user/pwd, getting the information from the HttpServletRequest object |
static int |
validateUserPwd(javax.servlet.http.HttpSession session)
Validate user/pwd, getting the information from the HttpSession object |
static int |
validateUserPwd(String user,
String password)
Validate user/pwd |
static String |
xrefValidity(int valid)
Convert validation results into text |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NUMBER_OF_VISITS
public static final String AUTO_LOGIN
public static final String USER
public static final String PASSWORD
public static final int VALID
public static final int INVALID_USER
public static final int INVALID_PASSWORD
public static final int INVALID_DATA_MISSING
public static final int INVALID_SESSION_EXPIRED
public static final int INVALID_OTHER
Constructor Detail |
public LoginServices()
Method Detail |
public static String xrefValidity(int valid)
public static int validateUserPwd(javax.servlet.http.HttpServletRequest req, boolean updateSession) throws EventException
EventException
public static int validateUserPwd(javax.servlet.http.HttpSession session) throws EventException
EventException
public static int validateUserPwd(String user, String password) throws EventException
EventException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |