This is not a duplicate of How to perform checksums during a SFTP file transfer for data integrity? as I am more looking for the details of JSch and how it implements SFTP. If it implements SFTP, then as pointed out here, there is no need to do file checksum.
My problem statement is: For pulling files from remote SFTP location, we are using JSch library. We have been asked to ensure file integrity during the transfer.
The com.jcraft.jsch.Channel
object has been created as
ChannelSftp sftpChannel = (ChannelSftp) session.openChannel("sftp");
Does creating an object of com.jcraft.jsch.ChannelSFTP
ensure that SFTP is implemented properly? The reason I ask is I couldn't find any proper justification around it. If it doesn't, can someone help me how can I determine the remote file checksum
before the start of the transfer?
Many thanks in advance for any help.