I need to create two small java applications, a command line client and a server daemon.
The server component runs as a daemon on Machine A. It uses an embedded SFTP server (Apache MINA) to write incoming files to a specific, local directory. The credentials are fixed. The server has the capability to do MD5 verification.
The second piece is a small client that runs from the command line on Machien B. Given a file name, it should verify the file exists, compute an MD5 hash, connect to the daemon on Machine A, transmit the file, then instruct the daemon to perform an MD5 hash of the recieved file. It will then compare the two signatures for success.
The daemon might also employ a RESTful interface through an embedded webserver (jetty) for communication of the MD5 results.
Helpful Link: https://mina.apache.org/ftpserver-project/embedding_ftpserver.html