A C D E G I L N O P R S U V

A

ACTION_FAILURE - Static variable in class org.web_auth.utils.ActionUtils
 
ACTION_SUCCESS - Static variable in class org.web_auth.utils.ActionUtils
 
ActionMappingException - exception org.web_auth.utils.ActionMappingException.
This class provides a wrapper for any exceptions occured while processing action mapping configurations in struts-config.xml.
ActionMappingException(String) - Constructor for class org.web_auth.utils.ActionMappingException
Contructs an ActionMappingException with a detailed message.
ActionMappingException(Throwable) - Constructor for class org.web_auth.utils.ActionMappingException
Contructs an ActionMappingException to encapsulate another exception.
ActionMappingException(String, Throwable) - Constructor for class org.web_auth.utils.ActionMappingException
Contructs an ActionMappingException with a detailed message and to encapsulate another exception.
ActionUtils - class org.web_auth.utils.ActionUtils.
This class provides utility functions for struts actions.
ActionUtils() - Constructor for class org.web_auth.utils.ActionUtils
 
AddUserAction - class org.web_auth.ui.action.AddUserAction.
This controller contains application logics for adding a user and persisting it to the database.
AddUserAction() - Constructor for class org.web_auth.ui.action.AddUserAction
 
ApplicationException - exception org.web_auth.utils.ApplicationException.
This exception class allows the thrower to embed an application resource key in the exception.
ApplicationException(String) - Constructor for class org.web_auth.utils.ApplicationException
Contructs an ApplicationException with an application resource key.
ApplicationException(String, Throwable) - Constructor for class org.web_auth.utils.ApplicationException
Contructs an ApplicationException with an application resource key and to encapsulate another exception.
add(Connection) - Method in interface org.web_auth.bizobj.IUser
This method persists the user object in the database.
add(Connection) - Method in class org.web_auth.bizobj.impl.User
This method persists the user object in the database.
authenticateByUsernamePassword(Connection) - Method in interface org.web_auth.bizobj.IUser
This method does username/password authentication.
authenticateByUsernamePassword(Connection) - Method in class org.web_auth.bizobj.impl.User
This method does username/password authentication.

C

changePassword(Connection, String) - Method in interface org.web_auth.bizobj.IUser
This method changes the user password.
changePassword(Connection, String) - Method in class org.web_auth.bizobj.impl.User
This method changes the user password.
createSession(Connection, String) - Method in interface org.web_auth.bizobj.IUserSession
Creates a user session.
createSession(Connection, String) - Method in class org.web_auth.bizobj.impl.UserSession
Creates a user session.

D

DATA_SOURCE_CONFIG_DATA_SOURCE_TYPE - Static variable in class org.web_auth.utils.DbUtils
 
DATA_SOURCE_CONFIG_PASSWORD - Static variable in class org.web_auth.utils.DbUtils
 
DATA_SOURCE_CONFIG_URL - Static variable in class org.web_auth.utils.DbUtils
 
DATA_SOURCE_CONFIG_USERNAME - Static variable in class org.web_auth.utils.DbUtils
 
DATA_SOURCE_TYPE_MYSQL - Static variable in class org.web_auth.utils.DbUtils
 
DATA_SOURCE_TYPE_ORACLE - Static variable in class org.web_auth.utils.DbUtils
 
DbUtils - class org.web_auth.utils.DbUtils.
Utility class facilitates database related operations.
DbUtils() - Constructor for class org.web_auth.utils.DbUtils
 
destroy() - Method in class org.web_auth.ui.servlet.LoginFilter
 
doFilter(ServletRequest, ServletResponse, FilterChain) - Method in class org.web_auth.ui.servlet.LoginFilter
Detect whether the session id, passed via ServletRequest, is a valid session object.

E

execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) - Method in class org.web_auth.ui.action.AddUserAction
 
execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) - Method in class org.web_auth.ui.action.LoginAction
 
execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) - Method in class org.web_auth.ui.action.LogoutAction
 
execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) - Method in class org.web_auth.ui.action.PasswordChangeAction
 
execute(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) - Method in class org.web_auth.ui.action.RemoveUserAction
 
exist(Connection) - Method in interface org.web_auth.bizobj.IUser
Check whether this user exists.
exist(Connection) - Method in class org.web_auth.bizobj.impl.User
Check whether this user exists.

G

GetConnection() - Static method in class org.web_auth.utils.DbUtils
Returns a Connection object for the default data source.
GetConnection(String) - Static method in class org.web_auth.utils.DbUtils
Returns a Connection object for a given data source.
GetConnection(HttpServletRequest) - Static method in class org.web_auth.utils.DbUtils
Returns a Connection object for the default data source and the given http servlet request.
GetConnection(HttpServletRequest, String) - Static method in class org.web_auth.utils.DbUtils
Returns a Connection object for a given data source and the given http servlet request.
getApplicationResourceKey() - Method in class org.web_auth.utils.ApplicationException
Get the application resource key from this object.
getId() - Method in interface org.web_auth.bizobj.IUserSession
 
getId() - Method in class org.web_auth.bizobj.impl.UserSession
 
getNewPassword1() - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
getNewPassword2() - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
getObject(ActionMapping, String) - Static method in class org.web_auth.utils.ActionUtils
This method finds the value of a parameter defined in a struts action mapping.
getOldPassword() - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
getPassword() - Method in interface org.web_auth.bizobj.IUser
 
getPassword() - Method in class org.web_auth.bizobj.impl.User
 
getPassword() - Method in class org.web_auth.ui.formbean.LoginForm
 
getSessionType() - Method in class org.web_auth.bizobj.impl.UserSession
Subclass needs to implement this method to return a unique int that represents the type of user session.
getUser(HttpServletRequest) - Method in interface org.web_auth.bizobj.IUserSession
Get the IUser object from the current session
getUser(HttpServletRequest) - Method in class org.web_auth.bizobj.impl.UserSession
Get the IUser object from the current session
getUserType() - Method in class org.web_auth.bizobj.impl.User
Subclass needs to implement this method to return a unique int that represents the type of user.
getUsername() - Method in interface org.web_auth.bizobj.IUser
 
getUsername() - Method in class org.web_auth.bizobj.impl.User
 
getUsername() - Method in class org.web_auth.ui.formbean.LoginForm
 
getUsername() - Method in class org.web_auth.ui.formbean.UsernameForm
 
getVisitedBefore() - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 

I

IUser - interface org.web_auth.bizobj.IUser.
An interface that represents a user who is required to use username/password authentication for login.
IUserSession - interface org.web_auth.bizobj.IUserSession.
An interface to model any type of user sessions.
InvalidateSession(Connection, String) - Static method in class org.web_auth.bizobj.impl.UserSession
Makes a user session invalid.
init(FilterConfig) - Method in class org.web_auth.ui.servlet.LoginFilter
Initialize this filter.
invalidateSession(Connection) - Method in interface org.web_auth.bizobj.IUserSession
Makes the user session invalid.
invalidateSession(Connection) - Method in class org.web_auth.bizobj.impl.UserSession
Makes this user session invalid.
isLoggedIn(Connection, HttpServletRequest) - Method in interface org.web_auth.bizobj.IUserSession
Checked whether a user has logged in or not.
isLoggedIn(Connection, HttpServletRequest) - Method in class org.web_auth.bizobj.impl.UserSession
Checked whether a user has logged in or not based on whether the current HTTP session is a valid or not.
isValidSession(Connection) - Method in interface org.web_auth.bizobj.IUserSession
Check whether the session object is a valid session or not.
isValidSession(Connection) - Method in class org.web_auth.bizobj.impl.UserSession
Check whether the session object is a valid session or not.

L

LOGIN_INVALID - Static variable in class org.web_auth.utils.ApplicationException
 
LoginAction - class org.web_auth.ui.action.LoginAction.
This controller contains application logics for handling user login.
LoginAction() - Constructor for class org.web_auth.ui.action.LoginAction
 
LoginFilter - class org.web_auth.ui.servlet.LoginFilter.
The generic filter for all user protected pages that required user login.
LoginFilter() - Constructor for class org.web_auth.ui.servlet.LoginFilter
 
LoginForm - class org.web_auth.ui.formbean.LoginForm.
 
LoginForm() - Constructor for class org.web_auth.ui.formbean.LoginForm
 
LogoutAction - class org.web_auth.ui.action.LogoutAction.
This controller contains application logics for handling user logout.
LogoutAction() - Constructor for class org.web_auth.ui.action.LogoutAction
 

N

NEW_PASSWORD1_MISSING - Static variable in class org.web_auth.utils.ApplicationException
 
NEW_PASSWORD2_MISSING - Static variable in class org.web_auth.utils.ApplicationException
 
NEW_PASSWORDS_MISMATCH - Static variable in class org.web_auth.utils.ApplicationException
 
NEW_PASSWORD_TOO_LONG - Static variable in class org.web_auth.utils.ApplicationException
 
NEW_PASSWORD_TOO_SHORT - Static variable in class org.web_auth.utils.ApplicationException
 
NEW_PASSWORD_UNCHANGED - Static variable in class org.web_auth.utils.ApplicationException
 
Now() - Static method in class org.web_auth.utils.DbUtils
A convenient method that returns a date object representing the current date and time.

O

OLD_PASSWORD_MISSING - Static variable in class org.web_auth.utils.ApplicationException
 
OLD_PASSWORD_WRONG - Static variable in class org.web_auth.utils.ApplicationException
 
org.web_auth.bizobj - package org.web_auth.bizobj
This package contains interfaces of domain objects of this project.
org.web_auth.bizobj.impl - package org.web_auth.bizobj.impl
This package contains implementations of domain objects of this project.
org.web_auth.ui.action - package org.web_auth.ui.action
This package contains controllers for several actions: login, logout, change password, add user and remove user.
org.web_auth.ui.formbean - package org.web_auth.ui.formbean
This package contains form beans needed by the controllers.
org.web_auth.ui.servlet - package org.web_auth.ui.servlet
This package contains servlet filters and listeners.
org.web_auth.utils - package org.web_auth.utils
This package contains utility classes and exception classes.

P

PASSWORD_LENGTH_MAX - Static variable in class org.web_auth.bizobj.impl.User
 
PASSWORD_LENGTH_MIN - Static variable in class org.web_auth.bizobj.impl.User
 
PASSWORD_MISSING - Static variable in class org.web_auth.utils.ApplicationException
 
PASSWORD_TOO_LONG - Static variable in class org.web_auth.utils.ApplicationException
 
PASSWORD_TOO_SHORT - Static variable in class org.web_auth.utils.ApplicationException
 
PasswordChangeAction - class org.web_auth.ui.action.PasswordChangeAction.
This controller contains application logics for changing user password.
PasswordChangeAction() - Constructor for class org.web_auth.ui.action.PasswordChangeAction
 
PasswordChangeForm - class org.web_auth.ui.formbean.PasswordChangeForm.
 
PasswordChangeForm() - Constructor for class org.web_auth.ui.formbean.PasswordChangeForm
 
password - Variable in class org.web_auth.bizobj.impl.User
 

R

RemoveUserAction - class org.web_auth.ui.action.RemoveUserAction.
This controller contains application logics for removing a user from database.
RemoveUserAction() - Constructor for class org.web_auth.ui.action.RemoveUserAction
 
remove(Connection) - Method in interface org.web_auth.bizobj.IUser
This method removes the user from the database.
remove(Connection) - Method in class org.web_auth.bizobj.impl.User
This method removes the user from the database.

S

SYSTEM_ERROR - Static variable in class org.web_auth.utils.ApplicationException
 
String2KeyValuePairs(String) - Static method in class org.web_auth.utils.StringUtils
This method parses a string that is in the format of "key1=val1;key2=val2;key3=val3" and returns a HashMap that reflects the key-vaule pairs.
StringUtils - class org.web_auth.utils.StringUtils.
Utility class facilitates string related operations.
StringUtils() - Constructor for class org.web_auth.utils.StringUtils
 
sessionCreated(HttpSessionEvent) - Method in class org.web_auth.ui.servlet.UserSessionListener
 
sessionDestroyed(HttpSessionEvent) - Method in class org.web_auth.ui.servlet.UserSessionListener
 
setApplicationResourceKey(String) - Method in class org.web_auth.utils.ApplicationException
Set the application resource key in this object.
setId(String) - Method in interface org.web_auth.bizobj.IUserSession
 
setId(String) - Method in class org.web_auth.bizobj.impl.UserSession
 
setNewPassword1(String) - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
setNewPassword2(String) - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
setOldPassword(String) - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 
setPassword(String) - Method in interface org.web_auth.bizobj.IUser
 
setPassword(String) - Method in class org.web_auth.bizobj.impl.User
 
setPassword(String) - Method in class org.web_auth.ui.formbean.LoginForm
 
setUser(HttpServletRequest, IUser) - Method in interface org.web_auth.bizobj.IUserSession
Set the IUser object to the current session.
setUser(HttpServletRequest, IUser) - Method in class org.web_auth.bizobj.impl.UserSession
Set the User object to the current session.
setUsername(String) - Method in interface org.web_auth.bizobj.IUser
 
setUsername(String) - Method in class org.web_auth.bizobj.impl.User
 
setUsername(String) - Method in class org.web_auth.ui.formbean.LoginForm
 
setUsername(String) - Method in class org.web_auth.ui.formbean.UsernameForm
 
setVisitedBefore(String) - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 

U

USERNAME_MISSING - Static variable in class org.web_auth.utils.ApplicationException
 
USERNAME_USED - Static variable in class org.web_auth.utils.ApplicationException
 
USER_NOT_EXSIT - Static variable in class org.web_auth.utils.ApplicationException
 
User - class org.web_auth.bizobj.impl.User.
An abstract class that represents a user who is required to use username/password authentication for login.
User() - Constructor for class org.web_auth.bizobj.impl.User
 
UserClass - Static variable in class org.web_auth.utils.ActionUtils
 
UserSession - class org.web_auth.bizobj.impl.UserSession.
An abstract class to model any type of user sessions.
UserSession() - Constructor for class org.web_auth.bizobj.impl.UserSession
 
UserSessionClass - Static variable in class org.web_auth.utils.ActionUtils
 
UserSessionListener - class org.web_auth.ui.servlet.UserSessionListener.
 
UserSessionListener() - Constructor for class org.web_auth.ui.servlet.UserSessionListener
 
UsernameForm - class org.web_auth.ui.formbean.UsernameForm.
 
UsernameForm() - Constructor for class org.web_auth.ui.formbean.UsernameForm
 
username - Variable in class org.web_auth.bizobj.impl.User
 

V

validate(ActionMapping, HttpServletRequest) - Method in class org.web_auth.ui.formbean.LoginForm
 
validate(ActionMapping, HttpServletRequest) - Method in class org.web_auth.ui.formbean.PasswordChangeForm
 

A C D E G I L N O P R S U V

Copyright © 2003 Zhengrong Tang. All Rights Reserved.