Commit Graph

52 Commits

Author SHA1 Message Date
1f44d03934 Add strong salted password hashing using PBKDF2 2020-07-11 09:25:42 +02:00
DieGurke
0bbb4c9f29 Adjusted Query and implemented pending groupMessageStatusChange proc*ing 2020-07-08 13:53:10 +02:00
b6de5b2c20 Fix some inconsistencies 2020-07-06 16:14:14 +02:00
af765ee1f7 Filter out subclasses in ObjectMessageProcessor 2020-07-06 12:34:13 +02:00
5374296e6c Active Code Review 2020-07-06 11:40:13 +02:00
DieGurke
e33bc726ac Apply suggestions from code review (not everything)
Co-authored-by: CyB3RC0nN0R <CyB3RC0nN0R@users.noreply.github.com>
2020-07-05 16:53:27 +02:00
8ba70407af Merge branch 'develop' into f/groupMessages 2020-07-04 14:23:12 +00:00
DieGurke
75dc563a07 Implemented sending RECEIVED GroupMessageStatusChanges
If a member logs in and receives pending groupMessages, there are now
groupMessageStatusChanges sent to all other members, that are online and
have already received the groupMessage.
2020-07-03 17:46:37 +02:00
DieGurke
a9578d6fe6 Implemented PendingGroupMessageStatusChanges for RECEIVED 2020-06-28 16:11:47 +02:00
DieGurke
acf58941ac Fixed error regarding notSerializable exception 2020-06-28 10:33:06 +02:00
delvh
4270532ffc Merge branch 'develop' into f/refactored_package 2020-06-28 09:54:45 +02:00
delvh
2ebc377937 Renamed wrongly named package (enovy.* to envoy.*) 2020-06-28 09:49:51 +02:00
DieGurke
cea599ac2f Implemented functionality regarding pending groupMessages (unfinished)
(This was implemented some weeks ago but never pushed (made some
revision))
2020-06-27 21:58:53 +02:00
a4b1ad6d22 Validate user name during registration 2020-06-26 22:04:40 +02:00
e1bfab814c Fix notifying the sender about a message delivery
This addresses bugs in two instances of delivery notification:
* the sender is online -> no event was sent
* the sender comes online later -> wrong status (SENT) was sent
2020-06-25 17:00:41 +02:00
0d7cb38b6d Apply suggestions from code review 2020-06-23 09:12:15 +02:00
e9610b00ce Add simple version comparison algorithm 2020-06-20 14:38:06 +02:00
3660dec859 Shorten event names, refactor, prepare compatibility verification 2020-06-20 13:42:42 +02:00
07e84448c5 Some refactorings based on suggestions from @delvh 2020-06-14 16:40:51 +02:00
d6e4c54b75 Replaces print statements by logger calls
Closes #34
2020-06-11 12:06:06 +02:00
DieGurke
05822cf13d Fixed issue regarding the sender of a message not getting an MSCEvent
Added messageStatusChangeEvent sending to online sender if recipient
logs in and sender is online at the same time
2020-06-11 10:44:49 +02:00
DieGurke
cb01d7139a Make GroupMessage extend Message, prepared GroupMessageStatus processing 2020-06-11 10:44:47 +02:00
delvh
53bde70529 Improved Login security 2020-04-10 15:53:30 +02:00
delvh
4e385396ad fixes #129 - contacts are now sent as a part of the user
(if they were not already)...
Additionally renamed some methods named `...Id()` to `...ID()`
2020-04-06 22:55:27 +02:00
DieGurke
dd4ad91aa9 Implemented Groups on the database and implemented MSChange management 2020-04-02 20:41:05 +02:00
delvh
e6cf3af745 Restored compatability with envoy-common
additionally added NameChangeProcessor
2020-04-02 16:32:23 +02:00
delvh
198ba2a52d Created method to extract all currently online members of a group
additionally, refactored every ".Id" to ".ID"
2020-03-26 20:14:09 +01:00
DieGurke
1bedd5fb7f Updated database implementation
*Added a contact abstract class that serves as a superclass for user and
group
* Added a group class
* Updated persistenceManager to fit the new contact system.
* Updated all classes that used methods, that were updated.
2020-03-25 16:34:55 +01:00
delvh
9020598335 Added database support to forward messages (#30)
* Added server support for forwarding messages

* added newline at EOF for any file not having one at its end
2020-03-23 22:12:27 +01:00
delvh
a89f0939e8 Changed compiler compliance to 11, modularized all packages (#29)
* added package- and module-info.java, changed JRE from 8 to 11

* moved ObjectProcessor into the processors package

Co-authored-by: CyB3RC0nN0R <kske@outlook.de>
2020-03-07 22:04:02 +01:00
0347715d72 Moved PersistenceManager into data package, refactored transaction use 2020-02-15 22:43:20 +01:00
98a51e1106 Fixed ConnectionManager#isOnline(long), moved ConnectionManager to net 2020-02-12 22:01:32 +01:00
c4b60dfab7 Clean-up, disabled SQL logging 2020-02-12 07:10:33 +01:00
66de88029f Merge branch 'develop' into f/reject_handshake 2020-02-12 06:49:17 +01:00
c5017e71fc Refactored contact search, added Javadoc 2020-02-10 22:29:34 +01:00
DieGurke
a96199ccd7 Implemented contact adding mechanism + database update on both clients.
* Added filtering on searchRequest response (temporary: has to be done
in query not manually in ContactsRequestProcessor.)
2020-02-10 20:02:05 +01:00
delvh
3079ee8346 fixed bug that made registering a new user impossible 2020-02-09 20:41:29 +01:00
delvh
163141e3a3 added methods to signal an invalid login
additionally added a failsafe to set all users to offline in case of
shutdown of the server
2020-02-09 16:37:53 +01:00
33dc6ba4ac Implemented user search response 2020-02-08 13:53:58 +01:00
delvh
65b016b9b7 Implemented method to check for the validity of logins
Warning: will only work once f/advanced_login of envoy-common will be merged into develop
2020-02-07 23:37:33 +01:00
bacc171ccd Adding user to their own contacts, reusing one database transaction
Fixes #15
2020-02-07 09:34:02 +01:00
delvh
053b7eec1f fixed not updating user status and implemented easier to read structure 2020-02-05 21:32:53 +01:00
delvh
5fcbf59349 Fixed contacts initialisation, socket logout error
additionally fixed small spelling mistakes
2020-02-04 21:09:59 +01:00
f11ed4a585 Sending unread message as common messages instead of database messages 2020-02-03 07:06:52 +01:00
delvh
79d11f4fba Added status update for when a client goes offline 2020-02-02 13:34:28 +01:00
delvh
5b28f2f25b Added UserStatusChangeProcessor
additionally added UserStatus updating in the LoginCredentialProcessor
yet missing: method to handle clients going offline
2020-02-01 23:37:44 +01:00
DieGurke
3eed956a60 Revised LoginCredentialProcessor and worked on MessageProcessor 2020-01-25 18:41:44 +01:00
DieGurke
ec315f870d Interface Communication Login Credentials 2020-01-21 17:51:50 +01:00
DieGurke
1e00930d4b implemented login and registration (unfinished) 2020-01-18 23:50:41 +01:00
delvh
c5f8c3c6be Added method to get contacts, although as of now all Users are returned 2020-01-18 13:28:54 +01:00