Class LoginServices

java.lang.Object
org.apache.ofbiz.common.login.LoginServices

public class LoginServices extends Object
Title: Login Services
  • Constructor Details

    • LoginServices

      public LoginServices()
  • Method Details

    • userLogin

      public static Map<String,Object> userLogin(DispatchContext ctx, Map<String,?> context)
      Login service to authenticate username and password
      Returns:
      Map of results including (userLogin) GenericValue object
    • userImpersonate

      public static Map<String,Object> userImpersonate(DispatchContext ctx, Map<String,?> context)
      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

      public static Map<String,Object> createUserLogin(DispatchContext ctx, Map<String,?> context)
      Creates a UserLogin
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • updatePassword

      public static Map<String,Object> updatePassword(DispatchContext ctx, Map<String,?> context)
      Updates UserLogin Password info
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • updateUserLoginId

      public static Map<String,Object> updateUserLoginId(DispatchContext ctx, Map<String,?> context)
      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 in
      context - 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 in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • checkNewPassword

      public static void checkNewPassword(GenericValue userLogin, String currentPassword, String newPassword, String newPasswordVerify, String passwordHint, List<String> errorMessageList, boolean ignoreCurrentPassword, Locale locale)
    • getHashType

      public static String getHashType()
    • checkPassword

      public static boolean checkPassword(String oldPassword, boolean useEncryption, String currentPassword)