Uses of Class
org.apache.sshd.common.util.buffer.Buffer
-
-
Uses of Buffer in org.apache.sshd.agent
Methods in org.apache.sshd.agent with parameters of type Buffer Modifier and Type Method Description voidSshAgentKeyConstraint.Extension. put(Buffer buffer)voidSshAgentKeyConstraint.FidoProviderExtension. put(Buffer buffer)voidSshAgentKeyConstraint.LifeTime. put(Buffer buffer)voidSshAgentKeyConstraint. put(Buffer buffer)Writes this constraint into the givenBuffer. -
Uses of Buffer in org.apache.sshd.agent.common
Fields in org.apache.sshd.agent.common declared as Buffer Modifier and Type Field Description private BufferAbstractAgentClient. bufferMethods in org.apache.sshd.agent.common that return Buffer Modifier and Type Method Description protected BufferAbstractAgentProxy. createBuffer(byte cmd)protected BufferAbstractAgentProxy. createBuffer(byte cmd, int extraLen)protected BufferAbstractAgentClient. prepare(Buffer buf)protected BufferAbstractAgentProxy. prepare(Buffer buffer)protected abstract BufferAbstractAgentProxy. request(Buffer buffer)Methods in org.apache.sshd.agent.common with parameters of type Buffer Modifier and Type Method Description voidAbstractAgentClient. messageReceived(Buffer message)protected BufferAbstractAgentClient. prepare(Buffer buf)protected BufferAbstractAgentProxy. prepare(Buffer buffer)protected voidAbstractAgentClient. process(int cmd, Buffer req, Buffer rep)protected abstract voidAbstractAgentClient. reply(Buffer buf)protected abstract BufferAbstractAgentProxy. request(Buffer buffer) -
Uses of Buffer in org.apache.sshd.agent.local
Fields in org.apache.sshd.agent.local declared as Buffer Modifier and Type Field Description private BufferAgentForwardedChannel. receiveBufferFields in org.apache.sshd.agent.local with type parameters of type Buffer Modifier and Type Field Description private java.util.Queue<Buffer>AgentForwardedChannel. messagesMethods in org.apache.sshd.agent.local that return Buffer Modifier and Type Method Description protected BufferAgentForwardedChannel. request(Buffer buffer)protected BufferAgentForwardedChannel. waitForMessageBuffer()Methods in org.apache.sshd.agent.local with parameters of type Buffer Modifier and Type Method Description protected OpenFutureChannelAgentForwarding. doInit(Buffer buffer)protected voidChannelAgentForwarding.AgentClient. reply(Buffer buf)protected BufferAgentForwardedChannel. request(Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.auth
Methods in org.apache.sshd.client.auth with parameters of type Buffer Modifier and Type Method Description booleanAbstractUserAuth. process(Buffer buffer)booleanUserAuth. process(Buffer buffer)protected abstract booleanAbstractUserAuth. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)default voidUserAuth. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)Signals reception ofSSH_MSG_USERAUTH_FAILUREmessagedefault voidUserAuth. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer)Signal reception ofSSH_MSG_USERAUTH_SUCCESSmessage -
Uses of Buffer in org.apache.sshd.client.auth.hostbased
Methods in org.apache.sshd.client.auth.hostbased with parameters of type Buffer Modifier and Type Method Description protected byte[]UserAuthHostBased. appendSignature(ClientSession session, java.lang.String service, java.lang.String keyType, java.security.PublicKey key, byte[] keyBytes, java.lang.String clientHostname, java.lang.String clientUsername, Signature verifier, Buffer buffer)protected booleanUserAuthHostBased. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)voidUserAuthHostBased. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthHostBased. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.auth.keyboard
Methods in org.apache.sshd.client.auth.keyboard with parameters of type Buffer Modifier and Type Method Description protected booleanUserAuthKeyboardInteractive. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.auth.password
Methods in org.apache.sshd.client.auth.password with parameters of type Buffer Modifier and Type Method Description protected booleanUserAuthPassword. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)protected IoWriteFutureUserAuthPassword. sendPassword(Buffer buffer, ClientSession session, java.lang.String oldPassword, java.lang.String newPassword)Sends the password via aSSH_MSG_USERAUTH_REQUESTmessage.voidUserAuthPassword. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthPassword. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.auth.pubkey
Methods in org.apache.sshd.client.auth.pubkey with parameters of type Buffer Modifier and Type Method Description protected byte[]UserAuthPublicKey. appendSignature(ClientSession session, java.lang.String service, java.lang.String name, java.lang.String username, java.lang.String algo, java.security.PublicKey key, Buffer buffer)protected booleanUserAuthPublicKey. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)voidUserAuthPublicKey. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)voidUserAuthPublicKey. signalAuthMethodSuccess(ClientSession session, java.lang.String service, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.channel
Fields in org.apache.sshd.client.channel with type parameters of type Buffer Modifier and Type Field Description protected java.util.Deque<java.util.Map.Entry<Buffer,java.util.function.Consumer<? super java.lang.Throwable>>>ClientChannelPendingMessagesQueue. pendingQueueMethods in org.apache.sshd.client.channel with parameters of type Buffer Modifier and Type Method Description intClientChannelPendingMessagesQueue. handleIncomingMessage(Buffer buffer, java.util.function.Consumer<? super java.lang.Throwable> errHandler)Checks if the future is already open and manages the message handling accordingly:protected RequestHandler.ResultChannelSession. handleInternalRequest(java.lang.String req, boolean wantReply, Buffer buffer)voidAbstractClientChannel. handleOpenFailure(Buffer buffer)voidAbstractClientChannel. handleOpenSuccess(int recipient, long rwSize, long packetSize, Buffer buffer)voidAbstractClientChannel. handleWindowAdjust(Buffer buffer)protected RequestHandler.ResultChannelSession. handleXonXoff(Buffer buffer, boolean wantReply)OpenFutureAbstractClientChannel. open(int recipient, long rwSize, long packetSize, Buffer buffer)protected voidClientChannelPendingMessagesQueue. writeMessage(Buffer buffer, java.util.function.Consumer<? super java.io.IOException> errHandler) -
Uses of Buffer in org.apache.sshd.client.channel.exit
Methods in org.apache.sshd.client.channel.exit with parameters of type Buffer Modifier and Type Method Description RequestHandler.ResultAbstractChannelExitRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)protected abstract VAbstractChannelExitRequestHandler. processRequestValue(Channel channel, java.lang.String request, Buffer buffer)Invoked by default fromAbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)when a request matching the handler's name is receivedprotected java.lang.StringExitSignalChannelRequestHandler. processRequestValue(Channel channel, java.lang.String request, Buffer buffer)protected java.lang.IntegerExitStatusChannelRequestHandler. processRequestValue(Channel channel, java.lang.String request, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.global
Methods in org.apache.sshd.client.global with parameters of type Buffer Modifier and Type Method Description protected RequestHandler.ResultOpenSshHostKeysHandler. handleHostKeys(Session session, java.util.Collection<? extends java.security.PublicKey> keys, boolean wantReply, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.kex
Methods in org.apache.sshd.client.kex with parameters of type Buffer Modifier and Type Method Description booleanDHGClient. next(int cmd, Buffer buffer)booleanDHGEXClient. next(int cmd, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.session
Methods in org.apache.sshd.client.session with parameters of type Buffer Modifier and Type Method Description protected voidClientSessionImpl. handleDisconnect(int code, java.lang.String msg, java.lang.String lang, Buffer buffer)voidClientUserAuthService. process(int cmd, Buffer buffer)protected voidClientUserAuthService. processUserAuth(Buffer buffer)Execute one step in user authentication.protected booleanAbstractClientSession. readIdentification(Buffer buffer)protected byte[]AbstractClientSession. receiveKexInit(Buffer buffer)voidAbstractClientSession. startService(java.lang.String name, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common
Methods in org.apache.sshd.common with parameters of type Buffer Modifier and Type Method Description voidService. process(int cmd, Buffer buffer)Service the request. -
Uses of Buffer in org.apache.sshd.common.channel
Fields in org.apache.sshd.common.channel declared as Buffer Modifier and Type Field Description private BufferChannelAsyncInputStream. bufferprivate BufferChannelAsyncInputStream.IoReadFutureImpl. bufferprivate BufferChannelOutputStream. bufferprivate BufferChannelPipedInputStream. bufferprivate BufferIoWriteFutureImpl. bufferMethods in org.apache.sshd.common.channel that return Buffer Modifier and Type Method Description protected BufferChannelAsyncOutputStream. createSendBuffer(Buffer buffer, Channel channel, long length)BufferChannelAsyncInputStream.IoReadFutureImpl. getBuffer()BufferIoWriteFutureImpl. getBuffer()Methods in org.apache.sshd.common.channel with parameters of type Buffer Modifier and Type Method Description protected BufferChannelAsyncOutputStream. createSendBuffer(Buffer buffer, Channel channel, long length)protected voidAbstractChannel. handleChannelRequest(java.lang.String req, boolean wantReply, Buffer buffer)voidAbstractChannel. handleData(Buffer buffer)voidChannel. handleData(Buffer buffer)Invoked whenSSH_MSG_CHANNEL_DATAreceivedvoidAbstractChannel. handleExtendedData(Buffer buffer)voidChannel. handleExtendedData(Buffer buffer)Invoked whenSSH_MSG_CHANNEL_EXTENDED_DATAreceivedprotected RequestHandler.ResultAbstractChannel. handleInternalRequest(java.lang.String req, boolean wantReply, Buffer buffer)Called byAbstractChannel.handleUnknownChannelRequest(String, boolean, Buffer)in order to allow channel request handling if none of the registered handlers processed the request - last chance.voidChannel. handleOpenFailure(Buffer buffer)For a client channel, this method will be called internally by the session when the server has rejected this channel opening.voidChannel. handleOpenSuccess(int recipient, long rwSize, long packetSize, Buffer buffer)For a client channel, this method will be called internally by the session when the confirmation has been received.voidAbstractChannel. handleRequest(Buffer buffer)voidChannel. handleRequest(Buffer buffer)Invoked whenSSH_MSG_CHANNEL_REQUESTreceivedprotected voidAbstractChannel. handleUnknownChannelRequest(java.lang.String req, boolean wantReply, Buffer buffer)Called when none of the register request handlers reported handling the requestvoidAbstractChannel. handleWindowAdjust(Buffer buffer)voidChannel. handleWindowAdjust(Buffer buffer)Invoked whenSSH_MSG_CHANNEL_WINDOW_ADJUSTreceivedOpenFutureChannel. open(int recipient, long rwSize, long packetSize, Buffer buffer)For a server channel, this method will actually open the channelRequestHandler.ResultChannelRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)RequestHandler.ResultRequestHandler. process(T t, java.lang.String request, boolean wantReply, Buffer buffer)Process an SSH request.IoReadFutureChannelAsyncInputStream. read(Buffer buf)protected IoWriteFutureAbstractChannel. sendResponse(Buffer buffer, java.lang.String req, RequestHandler.Result result, boolean wantReply)IoWriteFutureBufferedIoOutputStream. writeBuffer(Buffer buffer)IoWriteFutureChannelAsyncOutputStream. writeBuffer(Buffer buffer)IoWriteFutureSimpleIoOutputStream. writeBuffer(Buffer buffer)IoWriteFutureAbstractChannel. writePacket(Buffer buffer)IoWriteFutureChannel. writePacket(Buffer buffer)Encode and send the given buffer.Constructors in org.apache.sshd.common.channel with parameters of type Buffer Constructor Description IoReadFutureImpl(java.lang.Object id, Buffer buffer)IoWriteFutureImpl(java.lang.Object id, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.channel.throttle
Methods in org.apache.sshd.common.channel.throttle with parameters of type Buffer Modifier and Type Method Description IoWriteFutureChannelStreamWriter. writeData(Buffer buffer)Encode and send the given data packet buffer.IoWriteFutureDefaultChannelStreamWriter. writeData(Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.compression
Methods in org.apache.sshd.common.compression with parameters of type Buffer Modifier and Type Method Description voidCompression. compress(Buffer buffer)Compress the given buffer in place.voidCompressionNone. compress(Buffer buffer)voidCompressionZlib. compress(Buffer buffer)voidCompression. uncompress(Buffer from, Buffer to)Uncompress the data in a buffer into another buffer.voidCompressionNone. uncompress(Buffer from, Buffer to)voidCompressionZlib. uncompress(Buffer from, Buffer to) -
Uses of Buffer in org.apache.sshd.common.forward
Fields in org.apache.sshd.common.forward declared as Buffer Modifier and Type Field Description private BufferSocksProxy.Socks5. responseMethods in org.apache.sshd.common.forward with parameters of type Buffer Modifier and Type Method Description protected java.lang.StringSocksProxy.Socks5. getBLString(Buffer buffer)protected java.lang.StringSocksProxy.Socks4. getNTString(Buffer buffer)protected intSocksProxy.Proxy. getUByte(Buffer buffer)protected intSocksProxy.Proxy. getUShort(Buffer buffer)protected voidSocksProxy.Proxy. onMessage(Buffer buffer)protected voidSocksProxy.Socks4. onMessage(Buffer buffer)protected voidSocksProxy.Socks5. onMessage(Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.global
Methods in org.apache.sshd.common.global with parameters of type Buffer Modifier and Type Method Description protected abstract RequestHandler.ResultAbstractOpenSshHostKeysHandler. handleHostKeys(Session session, java.util.Collection<? extends java.security.PublicKey> keys, boolean wantReply, Buffer buffer)RequestHandler.ResultAbstractOpenSshHostKeysHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.io
Methods in org.apache.sshd.common.io that return Buffer Modifier and Type Method Description BufferIoReadFuture. getBuffer()Methods in org.apache.sshd.common.io with parameters of type Buffer Modifier and Type Method Description IoReadFutureIoInputStream. read(Buffer buffer)NOTE: the buffer must not be touched until the returned read future is completed.IoWriteFutureIoOutputStream. writeBuffer(Buffer buffer)Write the given buffer.IoWriteFutureIoSession. writeBuffer(Buffer buffer)Write a packet on the socket. -
Uses of Buffer in org.apache.sshd.common.io.nio2
Methods in org.apache.sshd.common.io.nio2 with parameters of type Buffer Modifier and Type Method Description IoWriteFutureNio2Session. writeBuffer(Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.kex
Methods in org.apache.sshd.common.kex with parameters of type Buffer Modifier and Type Method Description booleanKeyExchange. next(int cmd, Buffer buffer)Process the next packetvoidAbstractDH. putE(Buffer buffer, byte[] e)voidECDH. putE(Buffer buffer, byte[] e)voidXDH. putE(Buffer buffer, byte[] e)voidAbstractDH. putF(Buffer buffer, byte[] f)voidECDH. putF(Buffer buffer, byte[] f)voidXDH. putF(Buffer buffer, byte[] f) -
Uses of Buffer in org.apache.sshd.common.kex.dh
Methods in org.apache.sshd.common.kex.dh with parameters of type Buffer Modifier and Type Method Description protected byte[]AbstractDHKeyExchange. updateE(Buffer buffer)protected byte[]AbstractDHKeyExchange. updateF(Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.kex.extension
Methods in org.apache.sshd.common.kex.extension with parameters of type Buffer Modifier and Type Method Description default booleanKexExtensionHandler. handleKexCompressionMessage(Session session, Buffer buffer)Parses theSSH_MSG_NEWCOMPRESSmessage.default booleanKexExtensionHandler. handleKexExtensionsMessage(Session session, Buffer buffer)Parses theSSH_MSG_EXT_INFOmessage.TKexExtensionParser. parseExtension(Buffer buffer)static java.util.List<java.util.Map.Entry<java.lang.String,?>>KexExtensions. parseExtensions(Buffer buffer)Attempts to parse anSSH_MSG_EXT_INFOmessagevoidKexExtensionParser. putExtension(T value, Buffer buffer)Adds the name + value to the bufferstatic voidKexExtensions. putExtensions(java.util.Collection<? extends java.util.Map.Entry<java.lang.String,?>> exts, Buffer buffer)Creates anSSH_MSG_EXT_INFOmessage using the provided extensions. -
Uses of Buffer in org.apache.sshd.common.kex.extension.parser
Methods in org.apache.sshd.common.kex.extension.parser with parameters of type Buffer Modifier and Type Method Description protected abstract voidAbstractKexExtensionParser. encode(T value, Buffer buffer)protected voidDelayCompression. encode(DelayedCompressionAlgorithms algos, Buffer buffer)protected voidElevation. encode(java.lang.String value, Buffer buffer)protected voidNoFlowControl. encode(java.lang.String value, Buffer buffer)protected voidServerSignatureAlgorithms. encode(java.util.List<java.lang.String> names, Buffer buffer)DelayedCompressionAlgorithmsDelayCompression. parseExtension(Buffer buffer)java.lang.StringElevation. parseExtension(Buffer buffer)java.lang.StringNoFlowControl. parseExtension(Buffer buffer)java.util.List<java.lang.String>ServerSignatureAlgorithms. parseExtension(Buffer buffer)voidAbstractKexExtensionParser. putExtension(T value, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.session
Subclasses of Buffer in org.apache.sshd.common.session Modifier and Type Class Description classSessionWorkBufferMethods in org.apache.sshd.common.session that return Buffer Modifier and Type Method Description BufferSessionWorkBuffer. clear(boolean wipeData)default BufferSession. createBuffer(byte cmd)Create a new buffer for the specified SSH packet and reserve the needed space (5 bytes) for the packet header.BufferSession. createBuffer(byte cmd, int estimatedSize)Create a new buffer for the specified SSH packet and reserve the needed space (5 bytes) for the packet header.BufferSession. prepareBuffer(byte cmd, Buffer buffer)Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.BufferSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)Send a global request and wait for the response.default BufferSession. request(java.lang.String request, Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)Send a global request and wait for the response.default BufferSession. request(java.lang.String request, Buffer buffer, java.time.Duration timeout)Send a global request and wait for the response.Methods in org.apache.sshd.common.session with parameters of type Buffer Modifier and Type Method Description default voidReservedSessionMessagesHandler. handleDebugMessage(Session session, Buffer buffer)Invoked when anSSH_MSG_DEBUGpacket is receiveddefault voidReservedSessionMessagesHandler. handleIgnoreMessage(Session session, Buffer buffer)Invoked when anSSH_MSG_IGNOREpacket is receiveddefault booleanReservedSessionMessagesHandler. handleUnimplementedMessage(Session session, int cmd, Buffer buffer)Invoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTEDitselfChannelUnknownChannelReferenceHandler. handleUnknownChannelCommand(ConnectionService service, byte cmd, int channelId, Buffer buffer)Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.default booleanSessionDisconnectHandler. handleUnsupportedServiceDisconnectReason(Session session, int cmd, java.lang.String serviceName, Buffer buffer)Invoked when a request has been made related to an unknown SSH service as described in RFC 4253 - section 10.BufferSession. prepareBuffer(byte cmd, Buffer buffer)Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.RequestHandler.ResultConnectionServiceRequestHandler. process(ConnectionService service, java.lang.String request, boolean wantReply, Buffer buffer)BufferSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)Send a global request and wait for the response.default BufferSession. request(java.lang.String request, Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)Send a global request and wait for the response.default BufferSession. request(java.lang.String request, Buffer buffer, java.time.Duration timeout)Send a global request and wait for the response.default IoWriteFutureReservedSessionMessagesHandler. sendKexInitRequest(Session session, java.util.Map<KexProposalOption,java.lang.String> proposal, Buffer packet)Invoked before sending theSSH_MSG_KEXINITpacketvoidSession. startService(java.lang.String name, Buffer buffer)IoWriteFutureSession. writePacket(Buffer buffer)Encode and send the given buffer.default IoWriteFutureSession. writePacket(Buffer buffer, long maxWaitMillis)Encode and send the given buffer with the specified timeout.IoWriteFutureSession. writePacket(Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)Encode and send the given buffer with the specified timeout.default IoWriteFutureSession. writePacket(Buffer buffer, java.time.Duration timeout)Encode and send the given buffer with the specified timeout. -
Uses of Buffer in org.apache.sshd.common.session.helpers
Fields in org.apache.sshd.common.session.helpers declared as Buffer Modifier and Type Field Description private BufferPendingWriteFuture. bufferMethods in org.apache.sshd.common.session.helpers with type parameters of type Buffer Modifier and Type Method Description protected <B extends Buffer>
BAbstractSession. validateTargetBuffer(int cmd, B buffer)Makes sure that the buffer used for output is notnullor one of the session's internal ones used for decoding and uncompressingMethods in org.apache.sshd.common.session.helpers that return Buffer Modifier and Type Method Description BufferAbstractSession. createBuffer(byte cmd, int len)protected BufferAbstractSession. encode(Buffer buffer)Encode a buffer into the SSH protocol.BufferPendingWriteFuture. getBuffer()BufferAbstractSession. prepareBuffer(byte cmd, Buffer buffer)protected BufferAbstractSession. preProcessEncodeBuffer(int cmd, Buffer buffer)protected BufferSessionHelper. preProcessEncodeBuffer(int cmd, Buffer buffer)Invoked by the session before encoding the buffer in order to make sure that it is at least of sizeSSH_PACKET_HEADER_LEN.BufferAbstractSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)protected BufferAbstractSession. resolveOutputPacket(Buffer buffer)Methods in org.apache.sshd.common.session.helpers with parameters of type Buffer Modifier and Type Method Description protected voidAbstractSession. aeadOutgoingBuffer(Buffer buf, int offset, int len)protected voidAbstractSession. appendOutgoingMac(Buffer buf, int offset, int len)voidAbstractConnectionService. channelClose(Buffer buffer)Close a channel due to a close packet receivedvoidAbstractConnectionService. channelData(Buffer buffer)Process incoming data on a channelvoidAbstractConnectionService. channelEof(Buffer buffer)Process end of file on a channelvoidAbstractConnectionService. channelExtendedData(Buffer buffer)Process incoming extended data on a channelvoidAbstractConnectionService. channelFailure(Buffer buffer)Process a failure on a channelprotected voidAbstractConnectionService. channelOpen(Buffer buffer)voidAbstractConnectionService. channelOpenConfirmation(Buffer buffer)voidAbstractConnectionService. channelOpenFailure(Buffer buffer)voidAbstractConnectionService. channelRequest(Buffer buffer)Service a request on a channelvoidAbstractConnectionService. channelSuccess(Buffer buffer)Process a success on a channelvoidAbstractConnectionService. channelWindowAdjust(Buffer buffer)Process a window adjust packet on a channelprotected voidAbstractSession. doHandleMessage(Buffer buffer)protected voidSessionHelper. doInvokeDebugMessageHandler(Buffer buffer)Invoked bySessionHelper.handleDebug(Buffer)after validating that the buffer structure seems well-formed and also resetting the idle timeout.protected voidSessionHelper. doInvokeIgnoreMessageHandler(Buffer buffer)Invoked bySessionHelper.handleDebug(Buffer)after validating that the buffer structure seems well-formed and also resetting the idle timeout.protected booleanAbstractSession. doInvokeUnimplementedMessageHandler(int cmd, Buffer buffer)protected booleanSessionHelper. doInvokeUnimplementedMessageHandler(int cmd, Buffer buffer)protected java.util.List<java.lang.String>SessionHelper. doReadIdentification(Buffer buffer, boolean server)Read the remote identification from this buffer.protected IoWriteFutureAbstractSession. doWritePacket(Buffer buffer)protected BufferAbstractSession. encode(Buffer buffer)Encode a buffer into the SSH protocol.protected voidAbstractSession. encryptOutgoingBuffer(Buffer buf, int offset, int len)protected PendingWriteFutureAbstractSession. enqueuePendingPacket(Buffer buffer)Checks if key-exchange is done - if so, or the packet is related to the key-exchange protocol, then allows the packet to go through, otherwise enqueues it to be sent when key-exchange completedprotected ChannelAbstractConnectionService. getChannel(byte cmd, int recipient, Buffer buffer)protected ChannelAbstractConnectionService. getChannel(byte cmd, Buffer buffer)Retrieve the channel designated by the given packetprotected IoWriteFutureAbstractConnectionService. globalRequest(Buffer buffer)Process global requestsprotected voidSessionHelper. handleDebug(Buffer buffer)voidReservedSessionMessagesHandlerAdapter. handleDebugMessage(Session session, boolean display, java.lang.String msg, java.lang.String lang, Buffer buffer)voidReservedSessionMessagesHandlerAdapter. handleDebugMessage(Session session, Buffer buffer)protected voidSessionHelper. handleDisconnect(int code, java.lang.String msg, java.lang.String lang, Buffer buffer)protected voidSessionHelper. handleDisconnect(Buffer buffer)protected booleanAbstractSession. handleFirstKexPacketFollows(int cmd, Buffer buffer, boolean followFlag)protected voidSessionHelper. handleIgnore(Buffer buffer)voidReservedSessionMessagesHandlerAdapter. handleIgnoreMessage(Session session, byte[] data, Buffer buffer)voidReservedSessionMessagesHandlerAdapter. handleIgnoreMessage(Session session, Buffer buffer)protected voidAbstractSession. handleKexExtension(int cmd, Buffer buffer)protected voidAbstractSession. handleKexInit(Buffer buffer)protected voidAbstractSession. handleKexMessage(int cmd, Buffer buffer)protected voidAbstractSession. handleMessage(Buffer buffer)Abstract method for processing incoming decoded packets.protected voidAbstractSession. handleNewCompression(int cmd, Buffer buffer)protected voidAbstractSession. handleNewKeys(int cmd, Buffer buffer)protected voidAbstractSession. handleServiceAccept(java.lang.String serviceName, Buffer buffer)protected voidAbstractSession. handleServiceAccept(Buffer buffer)protected booleanAbstractSession. handleServiceRequest(java.lang.String serviceName, Buffer buffer)protected voidAbstractSession. handleServiceRequest(Buffer buffer)protected voidSessionHelper. handleUnimplemented(Buffer buffer)booleanReservedSessionMessagesHandlerAdapter. handleUnimplementedMessage(Session session, int cmd, Buffer buffer)ChannelDefaultUnknownChannelReferenceHandler. handleUnknownChannelCommand(ConnectionService service, byte cmd, int channelId, Buffer buffer)protected IoWriteFutureAbstractConnectionService. handleUnknownRequest(Buffer buffer, java.lang.String req, boolean wantReply)protected IoWriteFutureAbstractSession. notImplemented(int cmd, Buffer buffer)Send aSSH_MSG_UNIMPLEMENTEDpacket.BufferAbstractSession. prepareBuffer(byte cmd, Buffer buffer)protected BufferAbstractSession. preProcessEncodeBuffer(int cmd, Buffer buffer)protected BufferSessionHelper. preProcessEncodeBuffer(int cmd, Buffer buffer)Invoked by the session before encoding the buffer in order to make sure that it is at least of sizeSSH_PACKET_HEADER_LEN.voidAbstractConnectionService. process(int cmd, Buffer buffer)RequestHandler.ResultAbstractConnectionServiceRequestHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)protected abstract booleanAbstractSession. readIdentification(Buffer buffer)Read the other side identification.protected byte[]AbstractSession. receiveKexInit(Buffer buffer)protected byte[]AbstractSession. receiveKexInit(Buffer buffer, java.util.Map<KexProposalOption,java.lang.String> proposal)Receive the remote key exchange init message.BufferAbstractSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)protected voidAbstractConnectionService. requestFailure(Buffer buffer)protected voidAbstractSession. requestFailure(Buffer buffer)Indicates the reception of aSSH_MSG_REQUEST_FAILUREmessageprotected voidAbstractConnectionService. requestSuccess(Buffer buffer)protected voidAbstractSession. requestSuccess(Buffer buffer)Indicates the reception of aSSH_MSG_REQUEST_SUCCESSmessageprotected BufferAbstractSession. resolveOutputPacket(Buffer buffer)protected IoWriteFutureAbstractConnectionService. sendChannelOpenFailure(Buffer buffer, int sender, int reasonCode, java.lang.String message, java.lang.String lang)protected IoWriteFutureAbstractConnectionService. sendGlobalResponse(Buffer buffer, java.lang.String req, RequestHandler.Result result, boolean wantReply)IoWriteFutureAbstractSession. writePacket(Buffer buffer)IoWriteFutureSessionHelper. writePacket(Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)Constructors in org.apache.sshd.common.session.helpers with parameters of type Buffer Constructor Description PendingWriteFuture(java.lang.Object id, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.util.buffer
Subclasses of Buffer in org.apache.sshd.common.util.buffer Modifier and Type Class Description classByteArrayBufferProvides an implementation ofBufferusing a backing byte arrayMethods in org.apache.sshd.common.util.buffer with type parameters of type Buffer Modifier and Type Method Description static <B extends Buffer>
BBufferUtils. clear(B buffer)Invokesclear()Methods in org.apache.sshd.common.util.buffer that return Buffer Modifier and Type Method Description BufferBuffer. clear()Reset read/write positions to zero - Note: zeroes any previously existing dataabstract BufferBuffer. clear(boolean wipeData)Reset read/write positions to zeroBufferByteArrayBuffer. clear(boolean wipeData)BufferBuffer. ensureCapacity(int capacity)abstract BufferBuffer. ensureCapacity(int capacity, java.util.function.IntUnaryOperator growthFactor)BufferByteArrayBuffer. ensureCapacity(int capacity, java.util.function.IntUnaryOperator growthFactor)Methods in org.apache.sshd.common.util.buffer with parameters of type Buffer Modifier and Type Method Description static intBufferUtils. updateLengthPlaceholder(Buffer buffer, int lenPos)Used for encodings where we don't know the data length before adding it to the buffer.static voidBufferUtils. updateLengthPlaceholder(Buffer buffer, int lenPos, int dataLength)Updates a 32-bit "placeholder" location for data length - moves the write position to the specified placeholder position, updates the length value and then moves the write position it back to its original value. -
Uses of Buffer in org.apache.sshd.common.util.buffer.keys
Methods in org.apache.sshd.common.util.buffer.keys with parameters of type Buffer Modifier and Type Method Description protected java.security.interfaces.ECPublicKeyECBufferPublicKeyParser. getRawECKey(java.lang.String expectedCurve, java.security.spec.ECParameterSpec spec, Buffer buffer)PUBBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)java.security.interfaces.DSAPublicKeyDSSBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)java.security.interfaces.ECPublicKeyECBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)java.security.PublicKeyED25519BufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)OpenSshCertificateOpenSSHCertPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)java.security.interfaces.RSAPublicKeyRSABufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)SkEcdsaPublicKeySkECBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)SkED25519PublicKeySkED25519BufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.util.security
Methods in org.apache.sshd.common.util.security with type parameters of type Buffer Modifier and Type Method Description static <B extends Buffer>
BSecurityUtils. putEDDSAKeyPair(B buffer, java.security.KeyPair kp)static <B extends Buffer>
BSecurityUtils. putEDDSAKeyPair(B buffer, java.security.PublicKey pubKey, java.security.PrivateKey prvKey)static <B extends Buffer>
BSecurityUtils. putRawEDDSAPublicKey(B buffer, java.security.PublicKey key)Methods in org.apache.sshd.common.util.security with parameters of type Buffer Modifier and Type Method Description static java.security.KeyPairSecurityUtils. extractEDDSAKeyPair(Buffer buffer, java.lang.String keyType) -
Uses of Buffer in org.apache.sshd.common.util.security.eddsa
Methods in org.apache.sshd.common.util.security.eddsa with type parameters of type Buffer Modifier and Type Method Description static <B extends Buffer>
BEdDSASecurityProviderUtils. putEDDSAKeyPair(B buffer, java.security.PublicKey pubKey, java.security.PrivateKey prvKey)static <B extends Buffer>
BEdDSASecurityProviderUtils. putRawEDDSAPublicKey(B buffer, java.security.PublicKey key) -
Uses of Buffer in org.apache.sshd.server.auth
Methods in org.apache.sshd.server.auth with parameters of type Buffer Modifier and Type Method Description java.lang.BooleanAbstractUserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)java.lang.BooleanUserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)Try to authenticate the user.protected abstract java.lang.BooleanAbstractUserAuth. doAuth(Buffer buffer, boolean init)java.lang.BooleanUserAuthNone. doAuth(Buffer buffer, boolean init)java.lang.BooleanAbstractUserAuth. next(Buffer buffer)java.lang.BooleanUserAuth. next(Buffer buffer)Handle another step in the authentication process. -
Uses of Buffer in org.apache.sshd.server.auth.gss
Methods in org.apache.sshd.server.auth.gss with parameters of type Buffer Modifier and Type Method Description protected java.lang.BooleanUserAuthGSS. doAuth(Buffer buffer, boolean initial) -
Uses of Buffer in org.apache.sshd.server.auth.hostbased
Methods in org.apache.sshd.server.auth.hostbased with parameters of type Buffer Modifier and Type Method Description protected java.lang.BooleanUserAuthHostBased. doAuth(Buffer buffer, boolean init) -
Uses of Buffer in org.apache.sshd.server.auth.keyboard
Methods in org.apache.sshd.server.auth.keyboard with type parameters of type Buffer Modifier and Type Method Description <B extends Buffer>
BInteractiveChallenge. append(B buffer)<B extends Buffer>
BPromptEntry. append(B buffer)Methods in org.apache.sshd.server.auth.keyboard with parameters of type Buffer Modifier and Type Method Description protected java.lang.BooleanUserAuthKeyboardInteractive. doAuth(Buffer buffer, boolean init)protected java.lang.BooleanUserAuthKeyboardInteractive. doInitialAuth(ServerSession session, java.lang.String username, KeyboardInteractiveAuthenticator auth, Buffer buffer)protected java.lang.BooleanUserAuthKeyboardInteractive. doValidateAuthResponse(ServerSession session, java.lang.String username, KeyboardInteractiveAuthenticator auth, Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.auth.password
Methods in org.apache.sshd.server.auth.password with parameters of type Buffer Modifier and Type Method Description protected java.lang.BooleanUserAuthPassword. checkPassword(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String password)Invokes the configuredPasswordAuthenticatorand returns the result.java.lang.BooleanUserAuthPassword. doAuth(Buffer buffer, boolean init)protected java.lang.BooleanUserAuthPassword. handleClientPasswordChangeRequest(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String oldPassword, java.lang.String newPassword)Invoked when the client sends aSSH_MSG_USERAUTH_REQUESTindicating a password change.protected java.lang.BooleanUserAuthPassword. handleServerPasswordChangeRequest(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String password, PasswordChangeRequiredException e)Invoked byUserAuthPassword.checkPassword(Buffer, ServerSession, String, String)when aPasswordChangeRequiredExceptionwas thrown by the authenticator. -
Uses of Buffer in org.apache.sshd.server.auth.pubkey
Methods in org.apache.sshd.server.auth.pubkey with parameters of type Buffer Modifier and Type Method Description java.lang.BooleanUserAuthPublicKey. doAuth(Buffer buffer, boolean init)protected voidUserAuthPublicKey. sendPublicKeyResponse(ServerSession session, java.lang.String username, java.lang.String alg, java.security.PublicKey key, byte[] keyBlob, int offset, int blobLen, Buffer buffer)protected booleanUserAuthPublicKey. verifySignature(ServerSession session, java.lang.String username, java.lang.String alg, java.security.PublicKey key, Buffer buffer, Signature verifier, byte[] sig) -
Uses of Buffer in org.apache.sshd.server.channel
Fields in org.apache.sshd.server.channel declared as Buffer Modifier and Type Field Description protected BufferChannelSession. extendedDataBufferprotected BufferChannelSession. receiverBufferMethods in org.apache.sshd.server.channel with parameters of type Buffer Modifier and Type Method Description protected OpenFutureAbstractServerChannel. doInit(Buffer buffer)protected RequestHandler.ResultChannelSession. handleAgentForwarding(java.lang.String requestType, Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleBreak(Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleEnv(Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleExec(java.lang.String request, Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleInternalRequest(java.lang.String requestType, boolean wantReply, Buffer buffer)voidAbstractServerChannel. handleOpenFailure(Buffer buffer)voidAbstractServerChannel. handleOpenSuccess(int recipient, long rwSize, long packetSize, Buffer buffer)protected RequestHandler.ResultChannelSession. handlePtyReq(Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleShell(java.lang.String request, Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleSignal(Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleSubsystem(java.lang.String request, Buffer buffer, boolean wantReply)voidChannelSession. handleWindowAdjust(Buffer buffer)protected RequestHandler.ResultChannelSession. handleWindowChange(Buffer buffer, boolean wantReply)protected RequestHandler.ResultChannelSession. handleX11Forwarding(java.lang.String requestType, Buffer buffer, boolean wantReply)OpenFutureAbstractServerChannel. open(int recipient, long rwSize, long packetSize, Buffer buffer)RequestHandler.ResultPuttyRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)protected RequestHandler.ResultPuttyRequestHandler. processPuttyOpcode(Channel channel, java.lang.String request, java.lang.String opcode, boolean wantReply, Buffer buffer)protected IoWriteFutureChannelSession. sendResponse(Buffer buffer, java.lang.String req, RequestHandler.Result result, boolean wantReply) -
Uses of Buffer in org.apache.sshd.server.forward
Methods in org.apache.sshd.server.forward with parameters of type Buffer Modifier and Type Method Description protected OpenFutureTcpipServerChannel. doInit(Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.global
Methods in org.apache.sshd.server.global with parameters of type Buffer Modifier and Type Method Description protected RequestHandler.ResultOpenSshHostKeysHandler. handleHostKeys(Session session, java.util.Collection<? extends java.security.PublicKey> keys, boolean wantReply, Buffer buffer)RequestHandler.ResultCancelTcpipForwardHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)RequestHandler.ResultKeepAliveHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)RequestHandler.ResultNoMoreSessionsHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)RequestHandler.ResultTcpipForwardHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.kex
Methods in org.apache.sshd.server.kex with parameters of type Buffer Modifier and Type Method Description booleanDHGEXServer. next(int cmd, Buffer buffer)booleanDHGServer. next(int cmd, Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.session
Methods in org.apache.sshd.server.session with parameters of type Buffer Modifier and Type Method Description booleanServerProxyAcceptor. acceptServerProxyMetadata(ServerSession session, Buffer buffer)Invoked before any attempt is made to retrieve the SSH client identification data of the standard SSH protocol.protected voidServerUserAuthService. asyncAuth(int cmd, Buffer buffer, boolean authed)protected voidServerUserAuthService. handleAuthenticationFailure(int cmd, Buffer buffer)protected voidServerUserAuthService. handleAuthenticationInProgress(int cmd, Buffer buffer)protected voidServerUserAuthService. handleAuthenticationSuccess(int cmd, Buffer buffer)protected voidAbstractServerSession. handleServiceAccept(java.lang.String serviceName, Buffer buffer)protected booleanAbstractServerSession. handleServiceRequest(java.lang.String serviceName, Buffer buffer)protected booleanServerUserAuthService. handleUserAuthRequestMessage(ServerSession session, Buffer buffer, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> authHolder)voidServerUserAuthService. process(int cmd, Buffer buffer)protected booleanAbstractServerSession. readIdentification(Buffer buffer)IoWriteFutureAbstractServerSession. signalAuthenticationSuccess(java.lang.String username, java.lang.String authService, Buffer buffer)IoWriteFutureServerSession. signalAuthenticationSuccess(java.lang.String username, java.lang.String authService, Buffer buffer)voidAbstractServerSession. startService(java.lang.String name, Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.shell
Fields in org.apache.sshd.server.shell declared as Buffer Modifier and Type Field Description private BufferTtyFilterInputStream. bufferMethods in org.apache.sshd.server.shell that return Buffer Modifier and Type Method Description protected BufferTtyFilterInputStream. insertCharacter(Buffer org, int c)Methods in org.apache.sshd.server.shell with parameters of type Buffer Modifier and Type Method Description protected BufferTtyFilterInputStream. insertCharacter(Buffer org, int c) -
Uses of Buffer in org.apache.sshd.sftp.client
Methods in org.apache.sshd.sftp.client that return Buffer Modifier and Type Method Description BufferRawSftpClient. receive(int id)BufferRawSftpClient. receive(int id, long timeout)BufferRawSftpClient. receive(int id, java.time.Duration timeout)Methods in org.apache.sshd.sftp.client with parameters of type Buffer Modifier and Type Method Description intRawSftpClient. send(int cmd, Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.client.extensions.helpers
Methods in org.apache.sshd.sftp.client.extensions.helpers that return Buffer Modifier and Type Method Description protected BufferAbstractSftpClientExtension. checkExtendedReplyBuffer(Buffer buffer)protected BufferAbstractSftpClientExtension. getCommandBuffer(int extraSize)protected BufferAbstractSftpClientExtension. getCommandBuffer(java.lang.Object target)protected BufferAbstractSftpClientExtension. getCommandBuffer(java.lang.Object target, int extraSize)BufferAbstractSftpClientExtension. putTarget(Buffer buffer, java.lang.Object target)BufferAbstractSftpClientExtension. receive(int id)BufferAbstractSftpClientExtension. receive(int id, long timeout)BufferAbstractSftpClientExtension. receive(int id, java.time.Duration timeout)Methods in org.apache.sshd.sftp.client.extensions.helpers with parameters of type Buffer Modifier and Type Method Description protected BufferAbstractSftpClientExtension. checkExtendedReplyBuffer(Buffer buffer)protected voidAbstractSftpClientExtension. checkStatus(Buffer buffer)BufferAbstractSftpClientExtension. putTarget(Buffer buffer, java.lang.Object target)intAbstractSftpClientExtension. send(int cmd, Buffer buffer)protected voidAbstractSftpClientExtension. sendAndCheckExtendedCommandStatus(Buffer buffer)protected intAbstractSftpClientExtension. sendExtendedCommand(Buffer buffer)protected voidAbstractSftpClientExtension. validateIncomingResponse(int cmd, int id, int type, int length, Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.client.extensions.openssh
Methods in org.apache.sshd.sftp.client.extensions.openssh with parameters of type Buffer Modifier and Type Method Description static OpenSSHStatExtensionInfoOpenSSHStatExtensionInfo. decode(Buffer buffer)static voidOpenSSHStatExtensionInfo. decode(Buffer buffer, OpenSSHStatExtensionInfo info)static voidOpenSSHStatExtensionInfo. encode(Buffer buffer, OpenSSHStatExtensionInfo info)Constructors in org.apache.sshd.sftp.client.extensions.openssh with parameters of type Buffer Constructor Description OpenSSHStatExtensionInfo(Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.client.fs
Methods in org.apache.sshd.sftp.client.fs that return Buffer Modifier and Type Method Description BufferSftpFileSystem.Wrapper. receive(int id)BufferSftpFileSystem.Wrapper. receive(int id, long timeout)BufferSftpFileSystem.Wrapper. receive(int id, java.time.Duration timeout)Methods in org.apache.sshd.sftp.client.fs with parameters of type Buffer Modifier and Type Method Description intSftpFileSystem.Wrapper. send(int cmd, Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.client.impl
Fields in org.apache.sshd.sftp.client.impl declared as Buffer Modifier and Type Field Description protected BufferSftpInputStreamAsync. bufferprotected BufferSftpOutputStreamAsync. bufferprivate BufferDefaultSftpClient. receiveBufferFields in org.apache.sshd.sftp.client.impl with type parameters of type Buffer Modifier and Type Field Description private java.util.Map<java.lang.Integer,Buffer>DefaultSftpClient. messagesMethods in org.apache.sshd.sftp.client.impl with type parameters of type Buffer Modifier and Type Method Description protected <B extends Buffer>
BAbstractSftpClient. putReferencedName(int cmd, B buf, java.lang.String name, int nameIndex)protected <B extends Buffer>
BAbstractSftpClient. writeAttributes(int cmd, B buffer, SftpClient.Attributes attributes)Methods in org.apache.sshd.sftp.client.impl that return Buffer Modifier and Type Method Description BufferDefaultSftpClient. receive(int id)BufferDefaultSftpClient. receive(int id, long idleTimeout)BufferDefaultSftpClient. receive(int id, java.time.Duration idleTimeout)protected BufferDefaultSftpClient. waitForInitResponse(java.time.Duration initializationTimeout)Methods in org.apache.sshd.sftp.client.impl with parameters of type Buffer Modifier and Type Method Description protected SftpClient.AttributesAbstractSftpClient. checkAttributes(int cmd, Buffer request)protected SftpClient.AttributesAbstractSftpClient. checkAttributesResponse(int cmd, Buffer buffer)protected voidAbstractSftpClient. checkCommandStatus(int cmd, Buffer request)Sends the specified command, waits for the response and then invokesAbstractSftpClient.checkResponseStatus(int, Buffer)protected intAbstractSftpClient. checkData(int cmd, Buffer request, int dstOffset, byte[] dst, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> eofSignalled)protected intAbstractSftpClient. checkDataResponse(int cmd, Buffer buffer, int dstoff, byte[] dst, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> eofSignalled)protected java.util.List<SftpClient.DirEntry>AbstractSftpClient. checkDirResponse(int cmd, Buffer buffer, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> eolIndicator)protected byte[]AbstractSftpClient. checkHandle(int cmd, Buffer request)protected byte[]AbstractSftpClient. checkHandleResponse(int cmd, Buffer buffer)protected java.lang.StringAbstractSftpClient. checkOneName(int cmd, Buffer request)protected java.lang.StringAbstractSftpClient. checkOneNameResponse(int cmd, Buffer buffer)protected voidAbstractSftpClient. checkResponseStatus(int cmd, Buffer buffer)Checks if the incoming response is anSSH_FXP_STATUSone, and if so whether the substatus isSSH_FX_OK.voidSftpInputStreamAsync.BufferConsumer. consume(Buffer buffer)protected java.lang.StringAbstractSftpClient. getReferencedName(int cmd, Buffer buf, int nameIndex)protected voidDefaultSftpClient. handleInitResponse(Buffer buffer)protected SftpClient.AttributesAbstractSftpClient. handleUnexpectedAttributesPacket(int cmd, int id, int type, int length, Buffer buffer)protected byte[]AbstractSftpClient. handleUnexpectedHandlePacket(int cmd, int id, int type, int length, Buffer buffer)protected java.io.IOExceptionAbstractSftpClient. handleUnexpectedPacket(int cmd, int expected, int id, int type, int length, Buffer buffer)protected intAbstractSftpClient. handleUnknownDataPacket(int cmd, int id, int type, int length, Buffer buffer)protected java.util.List<SftpClient.DirEntry>AbstractSftpClient. handleUnknownDirListingPacket(int cmd, int id, int type, int length, Buffer buffer)protected java.lang.StringAbstractSftpClient. handleUnknownOneNamePacket(int cmd, int id, int type, int length, Buffer buffer)protected voidDefaultSftpClient. process(Buffer incoming)Process an SFTP packetprotected SftpClient.AttributesAbstractSftpClient. readAttributes(int cmd, Buffer buffer, java.util.concurrent.atomic.AtomicInteger nameIndex)protected booleanDefaultSftpClient. receive(Buffer incoming)Read SFTP packets from bufferintDefaultSftpClient. send(int cmd, Buffer buffer)protected voidAbstractSftpClient. validateIncomingResponse(int cmd, int id, int type, int length, Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.common
Methods in org.apache.sshd.sftp.common with type parameters of type Buffer Modifier and Type Method Description static <B extends Buffer>
BSftpHelper. encodeACLs(B buffer, int version, java.util.Collection<? extends java.nio.file.attribute.AclEntry> acl)static <B extends Buffer>
BSftpHelper. writeAclEntry(B buffer, java.nio.file.attribute.AclEntry acl)static <B extends Buffer>
BSftpHelper. writeACLs(B buffer, int version, java.util.Collection<? extends java.nio.file.attribute.AclEntry> acl)static <B extends Buffer>
BSftpHelper. writeAttributes(B buffer, SftpClient.Attributes attributes, int sftpVersion)static <B extends Buffer>
BSftpHelper. writeAttrs(B buffer, int version, java.util.Map<java.lang.String,?> attributes)Writes a file / folder's attributes to a bufferstatic <B extends Buffer>
BSftpHelper. writeAttrsV3(B buffer, int version, java.util.Map<java.lang.String,?> attributes)Writes the retrieved file / directory attributes in V3 formatstatic <B extends Buffer>
BSftpHelper. writeAttrsV4(B buffer, int version, java.util.Map<java.lang.String,?> attributes)Writes the retrieved file / directory attributes in V4+ formatstatic <B extends Buffer>
BSftpHelper. writeExtensions(B buffer, java.util.Map<?,?> extensions)static <B extends Buffer>
BSftpHelper. writeTime(B buffer, int version, int flags, java.nio.file.attribute.FileTime time)Encodes aFileTimevalue into a bufferMethods in org.apache.sshd.sftp.common with parameters of type Buffer Modifier and Type Method Description static java.util.List<java.nio.file.attribute.AclEntry>SftpHelper. decodeACLs(Buffer buffer, int version)static java.lang.BooleanSftpHelper. getEndOfFileIndicatorValue(Buffer buffer, int version)Retrieves the end-of-file indicator forSSH_FXP_DATAresponses, provided the version is at least 6, and the buffer has enough available datastatic java.lang.BooleanSftpHelper. getEndOfListIndicatorValue(Buffer buffer, int version)Retrieves the end-of-list indicator forSSH_FXP_NAMEresponses, provided the version is at least 6, and the buffer has enough available datastatic java.lang.BooleanSftpHelper. indicateEndOfNamesList(Buffer buffer, int version, PropertyResolver resolver)Appends the end-of-list=TRUEindicator forSSH_FXP_NAMEresponses, provided the version is at least 6 and the feature is enabledstatic java.lang.BooleanSftpHelper. indicateEndOfNamesList(Buffer buffer, int version, PropertyResolver resolver, boolean indicatorValue)Appends the end-of-list indicator forSSH_FXP_NAMEresponses, provided the version is at least 6, the feature is enabled and the indicator value is notnullstatic java.util.List<java.nio.file.attribute.AclEntry>SftpHelper. readACLs(Buffer buffer, int version)static java.util.NavigableMap<java.lang.String,java.lang.Object>SftpHelper. readAttrs(Buffer buffer, int version)static java.util.NavigableMap<java.lang.String,byte[]>SftpHelper. readExtensions(Buffer buffer)static java.nio.file.attribute.FileTimeSftpHelper. readTime(Buffer buffer, int version, int flags)Decodes aFileTimevalue from a buffer -
Uses of Buffer in org.apache.sshd.sftp.common.extensions
Methods in org.apache.sshd.sftp.common.extensions with parameters of type Buffer Modifier and Type Method Description static SpaceAvailableExtensionInfoSpaceAvailableExtensionInfo. decode(Buffer buffer)static voidSpaceAvailableExtensionInfo. decode(Buffer buffer, SpaceAvailableExtensionInfo info)static voidSpaceAvailableExtensionInfo. encode(Buffer buffer, SpaceAvailableExtensionInfo info)AclSupportedParser.AclCapabilitiesAclSupportedParser. parse(Buffer buffer)Supported2Parser.Supported2Supported2Parser. parse(Buffer buffer)SupportedParser.SupportedSupportedParser. parse(Buffer buffer)VendorIdParser.VendorIdVendorIdParser. parse(Buffer buffer)Constructors in org.apache.sshd.sftp.common.extensions with parameters of type Buffer Constructor Description SpaceAvailableExtensionInfo(Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.server
Fields in org.apache.sshd.sftp.server declared as Buffer Modifier and Type Field Description protected BufferSftpSubsystem. bufferprotected static BufferSftpSubsystem. CLOSEFields in org.apache.sshd.sftp.server with type parameters of type Buffer Modifier and Type Field Description protected java.util.concurrent.BlockingQueue<Buffer>SftpSubsystem. requestsMethods in org.apache.sshd.sftp.server that return Buffer Modifier and Type Method Description protected abstract BufferAbstractSftpSubsystemHelper. prepareReply(Buffer buffer)protected BufferSftpSubsystem. prepareReply(Buffer buffer)Methods in org.apache.sshd.sftp.server with parameters of type Buffer Modifier and Type Method Description protected intAbstractSftpSubsystemHelper. appendAclSupportedExtension(Buffer buffer, ServerSession session)protected voidAbstractSftpSubsystemHelper. appendExtensions(Buffer buffer, java.lang.String supportedVersions)protected voidAbstractSftpSubsystemHelper. appendNewlineExtension(Buffer buffer, ServerSession session)Appends the "newline" extension to the buffer.protected java.util.List<AbstractOpenSSHExtensionParser.OpenSSHExtension>AbstractSftpSubsystemHelper. appendOpenSSHExtensions(Buffer buffer, ServerSession session)protected voidAbstractSftpSubsystemHelper. appendSupported2Extension(Buffer buffer, java.util.Collection<java.lang.String> extras)Appends the "supported2" extension to the buffer.protected voidAbstractSftpSubsystemHelper. appendSupportedExtension(Buffer buffer, java.util.Collection<java.lang.String> extras)Appends the "supported" extension to the buffer.protected voidAbstractSftpSubsystemHelper. appendVendorIdExtension(Buffer buffer, java.util.Map<java.lang.String,?> versionProperties, ServerSession session)Appends the "vendor-id" extension to the buffer.protected voidAbstractSftpSubsystemHelper. appendVersionsExtension(Buffer buffer, java.lang.String value, ServerSession session)Appends the "versions" extension to the buffer.protected java.util.Map.Entry<java.lang.Integer,java.lang.String>AbstractSftpSubsystemHelper. checkVersionCompatibility(Buffer buffer, int id, int proposed, int failureOpcode)Checks if a proposed version is within supported range.protected voidAbstractSftpSubsystemHelper. doBlock(Buffer buffer, int id)protected abstract voidAbstractSftpSubsystemHelper. doCheckFileHash(int id, java.lang.String targetType, java.lang.String target, java.util.Collection<java.lang.String> algos, long startOffset, long length, int blockSize, Buffer buffer)protected voidAbstractSftpSubsystemHelper. doCheckFileHash(int id, java.nio.file.Path file, NamedFactory<? extends Digest> factory, long startOffset, long length, int blockSize, Buffer buffer)protected voidAbstractSftpSubsystemHelper. doCheckFileHash(Buffer buffer, int id, java.lang.String targetType)protected voidSftpSubsystem. doCheckFileHash(int id, java.lang.String targetType, java.lang.String target, java.util.Collection<java.lang.String> algos, long startOffset, long length, int blockSize, Buffer buffer)protected voidAbstractSftpSubsystemHelper. doClose(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doCopyData(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doCopyFile(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doExtended(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doFSetStat(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doFStat(Buffer buffer, int id)protected abstract voidAbstractSftpSubsystemHelper. doInit(Buffer buffer, int id)protected voidSftpSubsystem. doInit(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doLink(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doLStat(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doMakeDirectory(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doMD5Hash(Buffer buffer, int id, java.lang.String targetType)protected voidAbstractSftpSubsystemHelper. doOpen(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doOpenDir(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doOpenSSHFsync(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doOpenSSHHardLink(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doPosixRename(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doProcess(Buffer buffer, int length, int type, int id)protected voidSftpSubsystem. doProcess(Buffer buffer, int length, int type, int id)protected voidAbstractSftpSubsystemHelper. doRead(Buffer buffer, int id)protected intAbstractSftpSubsystemHelper. doReadDir(int id, java.lang.String handle, DirectoryHandle dir, Buffer buffer, int maxSize, boolean followLinks)protected abstract voidAbstractSftpSubsystemHelper. doReadDir(Buffer buffer, int id)protected voidSftpSubsystem. doReadDir(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doReadLink(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doRealPath(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doRemove(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doRemoveDirectory(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doRename(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doSetStat(Buffer buffer, int id, java.lang.String extension, int cmd, java.lang.Boolean followLinks)protected voidAbstractSftpSubsystemHelper. doSpaceAvailable(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doStat(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doSymLink(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doTextSeek(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doUnblock(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. doUnsupported(Buffer buffer, int length, int type, int id)protected voidAbstractSftpSubsystemHelper. doUnsupportedExtension(Buffer buffer, int id, java.lang.String extension)protected voidAbstractSftpSubsystemHelper. doVersionSelect(Buffer buffer, int id)protected abstract voidAbstractSftpSubsystemHelper. doVersionSelect(Buffer buffer, int id, java.lang.String proposed)protected voidSftpSubsystem. doVersionSelect(Buffer buffer, int id, java.lang.String proposed)protected voidAbstractSftpSubsystemHelper. doWrite(Buffer buffer, int id)protected voidAbstractSftpSubsystemHelper. executeExtendedCommand(Buffer buffer, int id, java.lang.String extension)protected abstract BufferAbstractSftpSubsystemHelper. prepareReply(Buffer buffer)protected BufferSftpSubsystem. prepareReply(Buffer buffer)protected voidAbstractSftpSubsystemHelper. process(Buffer buffer)Process an SFTP command.default voidSftpFileSystemAccessor. putRemoteFileName(SftpSubsystemProxy subsystem, java.nio.file.Path path, Buffer buf, java.lang.String name, boolean shortName)Invoked in order to encode the outgoing referenced file name/pathprotected java.util.Map<java.lang.String,java.lang.Object>AbstractSftpSubsystemHelper. readAttrs(Buffer buffer)protected abstract voidAbstractSftpSubsystemHelper. send(Buffer buffer)protected voidSftpSubsystem. send(Buffer buffer)protected voidAbstractSftpSubsystemHelper. sendAttrs(Buffer buffer, int id, java.util.Map<java.lang.String,?> attributes)protected voidAbstractSftpSubsystemHelper. sendHandle(Buffer buffer, int id, java.lang.String handle)protected voidAbstractSftpSubsystemHelper. sendLink(Buffer buffer, int id, java.nio.file.Path file, java.lang.String link)protected voidAbstractSftpSubsystemHelper. sendPath(Buffer buffer, int id, java.nio.file.Path f, java.util.Map<java.lang.String,?> attrs)protected voidAbstractSftpSubsystemHelper. sendStatus(Buffer buffer, int id, int substatus, java.lang.String msg)protected voidAbstractSftpSubsystemHelper. sendStatus(Buffer buffer, int id, int substatus, java.lang.String msg, java.lang.String lang)protected voidAbstractSftpSubsystemHelper. sendStatus(Buffer buffer, int id, java.lang.Throwable e, int cmd, java.lang.Object... args)Invoked when an exception was thrown due to the execution of some SFTP commandprotected java.lang.BooleanAbstractSftpSubsystemHelper. validateProposedVersion(Buffer buffer, int id, java.lang.String proposal)protected voidAbstractSftpSubsystemHelper. writeAttrs(Buffer buffer, java.util.Map<java.lang.String,?> attributes)protected voidAbstractSftpSubsystemHelper. writeDirEntry(int id, DirectoryHandle dir, java.util.Map<java.lang.String,java.nio.file.Path> entries, Buffer buffer, int index, java.nio.file.Path f, java.lang.String shortName, java.nio.file.LinkOption... options)protected voidAbstractSftpSubsystemHelper. writeDirEntry(ServerSession session, int id, Buffer buffer, int index, java.nio.file.Path f, java.lang.String shortName, SftpClient.Attributes attributes)
-