-
Field Summary
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Fields inherited from interface org.apache.sshd.common.OptionalFeature
FALSE, TRUE
-
Method Summary
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
Methods inherited from interface org.apache.sshd.common.OptionalFeature
isSupported
-
Method Details
-
checkFileHandle
- Parameters:
handle - Remote file SftpClient.Handle - must be a file and opened for read
algorithms - Hash algorithms in preferred order
startOffset - Start offset of the hash
length - Length of data to hash - if zero then till EOF
blockSize - Input block size to calculate individual hashes - if zero the one hash of all
the data
- Returns:
- An immutable
Map.Entry where key=hash algorithm name, value=the
calculated hashes.
- Throws:
IOException - If failed to execute the command