org.enhydra.barracuda.examples.ex1
Class LoginServices

java.lang.Object
  |
  +--org.enhydra.barracuda.examples.ex1.LoginServices

public class LoginServices
extends java.lang.Object

This class provides basic Login services, specifically: - validateUserPwd (either from HttpReq, HttpSession, or based on a specific user/pwd combo)


Field Summary
static java.lang.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 java.lang.String NUMBER_OF_VISITS
           
static java.lang.String PASSWORD
           
static java.lang.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(java.lang.String user, java.lang.String password)
          Validate user/pwd
static java.lang.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

NUMBER_OF_VISITS

public static final java.lang.String NUMBER_OF_VISITS

AUTO_LOGIN

public static final java.lang.String AUTO_LOGIN

USER

public static final java.lang.String USER
See Also:
Constant Field Values

PASSWORD

public static final java.lang.String PASSWORD
See Also:
Constant Field Values

VALID

public static final int VALID
See Also:
Constant Field Values

INVALID_USER

public static final int INVALID_USER
See Also:
Constant Field Values

INVALID_PASSWORD

public static final int INVALID_PASSWORD
See Also:
Constant Field Values

INVALID_DATA_MISSING

public static final int INVALID_DATA_MISSING
See Also:
Constant Field Values

INVALID_SESSION_EXPIRED

public static final int INVALID_SESSION_EXPIRED
See Also:
Constant Field Values

INVALID_OTHER

public static final int INVALID_OTHER
See Also:
Constant Field Values
Constructor Detail

LoginServices

public LoginServices()
Method Detail

xrefValidity

public static java.lang.String xrefValidity(int valid)
Convert validation results into text


validateUserPwd

public static int validateUserPwd(javax.servlet.http.HttpServletRequest req,
                                  boolean updateSession)
                           throws EventException
Validate user/pwd, getting the information from the HttpServletRequest object

EventException

validateUserPwd

public static int validateUserPwd(javax.servlet.http.HttpSession session)
                           throws EventException
Validate user/pwd, getting the information from the HttpSession object

EventException

validateUserPwd

public static int validateUserPwd(java.lang.String user,
                                  java.lang.String password)
                           throws EventException
Validate user/pwd

EventException


Copyright © 2001 Enhydra.org