Package org.apache.ofbiz.common.login
Class LoginServices
java.lang.Object
org.apache.ofbiz.common.login.LoginServices
Title: Login Services
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkNewPassword
(GenericValue userLogin, String currentPassword, String newPassword, String newPasswordVerify, String passwordHint, List<String> errorMessageList, boolean ignoreCurrentPassword, Locale locale) static boolean
checkPassword
(String oldPassword, boolean useEncryption, String currentPassword) createUserLogin
(DispatchContext ctx, Map<String, ?> context) Creates a UserLoginstatic void
createUserLoginPasswordHistory
(GenericValue userLogin) static String
updatePassword
(DispatchContext ctx, Map<String, ?> context) Updates UserLogin Password infoupdateUserLoginId
(DispatchContext ctx, Map<String, ?> context) Updates the UserLoginId for a party, replicating password, etc from current login and expiring the old login.updateUserLoginSecurity
(DispatchContext ctx, Map<String, ?> context) Updates UserLogin Security infouserImpersonate
(DispatchContext ctx, Map<String, ?> context) Login service to authenticate a username without password, storing historyuserLogin
(DispatchContext ctx, Map<String, ?> context) Login service to authenticate username and password
-
Constructor Details
-
LoginServices
public LoginServices()
-
-
Method Details
-
userLogin
Login service to authenticate username and password- Returns:
- Map of results including (userLogin) GenericValue object
-
userImpersonate
Login service to authenticate a username without password, storing history- Returns:
- Map of results including (userLogin) GenericValue object
-
createUserLoginPasswordHistory
public static void createUserLoginPasswordHistory(GenericValue userLogin) throws GenericEntityException - Throws:
GenericEntityException
-
createUserLogin
Creates a UserLogin- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updatePassword
Updates UserLogin Password info- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateUserLoginId
Updates the UserLoginId for a party, replicating password, etc from current login and expiring the old login.- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
updateUserLoginSecurity
public static Map<String,Object> updateUserLoginSecurity(DispatchContext ctx, Map<String, ?> context) Updates UserLogin Security info- Parameters:
ctx
- The DispatchContext that this service is operating incontext
- Map containing the input parameters- Returns:
- Map with the result of the service, the output parameters
-
checkNewPassword
-
getHashType
-
checkPassword
-