public class PerformLoginAction extends AbstractCoserAction implements org.apache.struts2.interceptor.SessionAware
Modifier and Type | Field and Description |
---|---|
protected String |
login |
protected String |
password |
protected Map<String,Object> |
session |
service
Constructor and Description |
---|
PerformLoginAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
equalsSHA1Password(CoserWebConfig config,
String password)
Check if sha1 password equals to config password.
|
String |
execute() |
void |
setLogin(String login) |
void |
setPassword(String password) |
void |
setSession(Map<String,Object> session) |
getService, requestBuilder, requestBuilder
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
public void setLogin(String login)
public void setPassword(String password)
public void setSession(Map<String,Object> session)
setSession
in interface org.apache.struts2.interceptor.SessionAware
public String execute() throws Exception
execute
in interface com.opensymphony.xwork2.Action
execute
in class com.opensymphony.xwork2.ActionSupport
Exception
protected boolean equalsSHA1Password(CoserWebConfig config, String password)
config
- configpassword
- password to checkCopyright © 2010–2015 Ifremer. All rights reserved.