Added Credentials.java which is a record to hold credentials. Take them at the login and parse it to the Client MainApp as part of the content. Take credentials from a csv file. Let the server use another file to compare the content with an own file. (Connection exists before establishing connection tho, and through sending it with the content I am not sure if that might be too late. Security risk?!). When the content arrives server checks if the credentials (at the beginning of the content) match with their file and only accepts content if okay (needs to be checked with invalid credentials tho. Must start an app in which I can log in with other credentials and just try to send to the server with random password!!).
ToDo. ScreenOutput. Make it cheesy...
Added Credentials.java which is a record to hold credentials. Take them at the login and parse it to the Client MainApp as part of the content. Take credentials from a csv file. Let the server use another file to compare the content with an own file. (Connection exists before establishing connection tho, and through sending it with the content I am not sure if that might be too late. Security risk?!). When the content arrives server checks if the credentials (at the beginning of the content) match with their file and only accepts content if okay (needs to be checked with invalid credentials tho. Must start an app in which I can log in with other credentials and just try to send to the server with random password!!). ToDo. ScreenOutput. Make it cheesy...