Class AbstractDigestExtension
java.lang.Object
com.sshtools.common.sftp.extensions.AbstractSftpExtension
com.sshtools.common.sftp.extensions.AbstractDigestExtension
- All Implemented Interfaces:
SftpExtension
- Direct Known Subclasses:
AbstractMD5Extension,FileHashingExtension
-
Field Summary
Fields inherited from interface com.sshtools.common.sftp.SftpExtension
SSH_FXP_EXTENDED_REPLY -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]doHash(String algorithm, byte[] handle, long startOffset, long length, SftpSubsystem sftp) protected byte[]doHash(String algorithm, String filename, long startOffset, long length, SftpSubsystem sftp) voidprocessExtendedMessage(com.sshtools.common.util.ByteArrayReader msg, SftpSubsystem sftp) booleansupportsExtendedMessage(int messageId) Methods inherited from class com.sshtools.common.sftp.extensions.AbstractSftpExtension
generateDefaultData, getDefaultData, getName, isDeclaredInVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.sftp.SftpExtension
processMessage
-
Method Details
-
doHash
protected byte[] doHash(String algorithm, String filename, long startOffset, long length, SftpSubsystem sftp) throws FileNotFoundException, PermissionDeniedException, IOException, SshException, InvalidHandleException -
doHash
protected byte[] doHash(String algorithm, byte[] handle, long startOffset, long length, SftpSubsystem sftp) throws SshException, EOFException, InvalidHandleException, IOException, PermissionDeniedException -
supportsExtendedMessage
public boolean supportsExtendedMessage(int messageId) -
processExtendedMessage
public void processExtendedMessage(com.sshtools.common.util.ByteArrayReader msg, SftpSubsystem sftp)
-