|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.shale.view.AbstractFacesBean org.apache.shale.view.AbstractViewController org.apache.shale.usecases.profile.LogonActions
public class LogonActions
ViewController
and action methods for the Logon dialog.
WARNING - The format of the cookie used to store "remember me" credentials is NOT secure, and should be considered demo quality. The architecture of a production quality version of this function would be identical; more effort would need to be invested in improving security around the cookie values.
$Id: LogonActions.java 464373 2006-10-16 04:21:54Z rahul $
Constructor Summary | |
---|---|
LogonActions()
|
Method Summary | |
---|---|
String |
check()
Skip the logon dialog if an appropriate "remember me" cookie is discovered, and this facility is enabled. |
String |
create()
Request creation of a new user profile. |
String |
getPassword()
|
String |
getUserKey()
|
String |
getUsername()
|
boolean |
isRemember()
|
boolean |
isRememberMe()
|
String |
logoff()
Alternate exit action for this dialog. |
String |
logon()
Authenticate the entered username and password. |
void |
setPassword(String password)
|
void |
setRemember(boolean remember)
|
void |
setRememberMe(boolean rememberMe)
|
void |
setUserKey(String userKey)
|
void |
setUsername(String username)
|
Methods inherited from class org.apache.shale.view.AbstractViewController |
---|
destroy, init, isPostBack, preprocess, prerender, setPostBack |
Methods inherited from class org.apache.shale.view.AbstractFacesBean |
---|
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogonActions()
Method Detail |
---|
public boolean isRememberMe()
public void setRememberMe(boolean rememberMe)
public String getUserKey()
public void setUserKey(String userKey)
public String getPassword()
public void setPassword(String password)
public boolean isRemember()
public void setRemember(boolean remember)
public String getUsername()
public void setUsername(String username)
public String check()
Skip the logon dialog if an appropriate "remember me" cookie is discovered, and this facility is enabled.
The following logical outcome values are returned:
AUTHENTICATED
- User has been authenticated.UNAUTHENTICATED
- User has not been authenticated
(no cookie, "remember me" not supported).
public String create()
Request creation of a new user profile.
public String logoff()
Alternate exit action for this dialog. Remove the currently
logged on user (if any), remove this instance from session scope,
and return outcome unauthenticated
.
public String logon()
Authenticate the entered username and password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |