Interface UMChangeUserPasswordModel

    • Method Detail

      • getUserName

        String getUserName​(String userId)
        Returns user name.
        Parameters:
        userId - Universal ID of user.
        Returns:
        user name.
      • changePassword

        void changePassword​(String userId,
                            String password)
                     throws AMConsoleException
        Modifies user password.
        Parameters:
        userId - Universal ID of user.
        password - New password.
        Throws:
        AMConsoleException - if password cannot be modified.
      • changePwd

        void changePwd​(String userId,
                       String oldpwd,
                       String newpwd)
                throws AMConsoleException
        Modifies user password after validating old password.
        Parameters:
        userId - Universal ID of user.
        oldpwd - old password.
        newpwd - New password.
        Throws:
        AMConsoleException - if password cannot be modified.
      • isOldPasswordRequired

        boolean isOldPasswordRequired()
        Tells whether the old password is required when changing the password. This method will also consider if you have configured the admin console service in the realm and return accordingly.
        Returns:
        true if old password required setting is enabled in the realm, or there is no per-realm service and the global setting is set to enabled.