def METHOD_NAME(self):
    self.transport = paramiko.Transport(self.request)
    securityOptions = self.transport.get_security_options()
    securityOptions.digests = ('hmac-sha1', 'hmac-sha2-256')
    securityOptions.compression = ('zlib@openssh.com', 'none')
    self.transport.add_server_key(self.server.hostKey)
    self.transport.set_subsystem_handler('sftp', paramiko.SFTPServer, _SftpServerAdapter)