Class UserCredentialsSigninBean
- java.lang.Object
-
- de.xima.fc.gui.common.bean.security.UserCredentialsSigninBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class UserCredentialsSigninBean extends Object implements Serializable
Bean for handling user login withUserCredentials.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UserCredentialsSigninBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckAuthorization(IAuthenticationTarget authenticationTarget)voiddoUserCredentialsLogin(BiConsumer<String,org.apache.commons.lang3.tuple.Pair<String,String>> loginLogic, IAuthenticationTarget target)Executes the user credentials (login ID & password) login for the given target with the (optional) login logic.static StringgetLoginErrorMessage(Exception e)StringgetLoginId()StringgetLoginIdLabel()StringgetPassword()UserProfilegetResetCredentialsProfile()StringgetSelectedInputClient()voidinitSelectedInputClient(List<javax.faces.model.SelectItem> options)initializes the selected input client form the cookie value.booleanisRememberMe()booleanisShowRememberMe()voidresendCredentialsResetMail()voidsetLoginId(String loginId)voidsetPassword(String password)voidsetRememberMe(boolean rememberMe)voidsetSelectedInputClient(String clientName)
-
-
-
Method Detail
-
getSelectedInputClient
public String getSelectedInputClient()
-
setSelectedInputClient
public void setSelectedInputClient(String clientName)
-
getLoginId
public String getLoginId()
-
setLoginId
public void setLoginId(String loginId)
-
getLoginIdLabel
public String getLoginIdLabel()
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
isRememberMe
public boolean isRememberMe()
-
setRememberMe
public void setRememberMe(boolean rememberMe)
-
isShowRememberMe
public boolean isShowRememberMe()
-
getResetCredentialsProfile
public UserProfile getResetCredentialsProfile()
-
initSelectedInputClient
public void initSelectedInputClient(List<javax.faces.model.SelectItem> options)
initializes the selected input client form the cookie value. The cookie value needs to be in the given collection of client options.- Parameters:
options- The new options to use.
-
checkAuthorization
public void checkAuthorization(IAuthenticationTarget authenticationTarget)
-
resendCredentialsResetMail
public void resendCredentialsResetMail()
-
doUserCredentialsLogin
public void doUserCredentialsLogin(BiConsumer<String,org.apache.commons.lang3.tuple.Pair<String,String>> loginLogic, IAuthenticationTarget target)
Executes the user credentials (login ID & password) login for the given target with the (optional) login logic. If no login logic is given then the default login logic will be executed.- Parameters:
loginLogic- (optional) to be executed. Ifnullthan the default login logic will be executed.target- the authentication target to do the login for.
-
-