Class FileHashingExtension
java.lang.Object
com.sshtools.common.sftp.extensions.AbstractSftpExtension
com.sshtools.common.sftp.extensions.AbstractDigestExtension
com.sshtools.common.sftp.extensions.FileHashingExtension
- All Implemented Interfaces:
SftpExtension
- Direct Known Subclasses:
FileHandleHashingExtension,FilenameHashingExtension
-
Field Summary
Fields inherited from interface com.sshtools.common.sftp.SftpExtension
SSH_FXP_EXTENDED_REPLY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract byte[]getFileHandle(com.sshtools.common.util.ByteArrayReader msg, SftpSubsystem sftp) voidprocessMessage(com.sshtools.common.util.ByteArrayReader msg, int requestId, SftpSubsystem sftp) protected voidsendReply(int requestId, String algorithm, List<byte[]> hashValue, SftpSubsystem sftp) Methods inherited from class com.sshtools.common.sftp.extensions.AbstractDigestExtension
doHash, doHash, processExtendedMessage, supportsExtendedMessageMethods inherited from class com.sshtools.common.sftp.extensions.AbstractSftpExtension
generateDefaultData, getDefaultData, getName, isDeclaredInVersion
-
Constructor Details
-
FileHashingExtension
-
-
Method Details
-
processMessage
public void processMessage(com.sshtools.common.util.ByteArrayReader msg, int requestId, SftpSubsystem sftp) -
getFileHandle
protected abstract byte[] getFileHandle(com.sshtools.common.util.ByteArrayReader msg, SftpSubsystem sftp) throws IOException, PermissionDeniedException - Throws:
IOExceptionPermissionDeniedException
-
sendReply
protected void sendReply(int requestId, String algorithm, List<byte[]> hashValue, SftpSubsystem sftp) throws IOException - Throws:
IOException
-