public abstract class FileHashingExtension extends AbstractDigestExtension
Constructor and Description |
---|
FileHashingExtension(String name) |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
getFileHandle(ByteArrayReader msg,
SftpSubsystem sftp) |
void |
processMessage(ByteArrayReader msg,
int requestId,
SftpSubsystem sftp) |
protected void |
sendReply(int requestId,
String algorithm,
List<byte[]> hashValue,
SftpSubsystem sftp) |
doHash, doHash, processExtendedMessage, supportsExtendedMessage
generateDefaultData, getDefaultData, getName, isDeclaredInVersion
public FileHashingExtension(String name)
public void processMessage(ByteArrayReader msg, int requestId, SftpSubsystem sftp)
protected abstract byte[] getFileHandle(ByteArrayReader msg, SftpSubsystem sftp) throws IOException, PermissionDeniedException
IOException
PermissionDeniedException
protected void sendReply(int requestId, String algorithm, List<byte[]> hashValue, SftpSubsystem sftp) throws IOException
IOException
Copyright © 2024. All rights reserved.