Uses of Class
org.apache.sshd.common.util.buffer.Buffer
Packages that use Buffer
-
Uses of Buffer in org.apache.sshd.agent
Methods in org.apache.sshd.agent with parameters of type BufferModifier and TypeMethodDescriptionvoid
void
void
void
Writes this constraint into the givenBuffer
. -
Uses of Buffer in org.apache.sshd.agent.common
Fields in org.apache.sshd.agent.common declared as BufferMethods in org.apache.sshd.agent.common that return BufferModifier and TypeMethodDescriptionprotected Buffer
AbstractAgentProxy.createBuffer
(byte cmd) protected Buffer
AbstractAgentProxy.createBuffer
(byte cmd, int extraLen) protected Buffer
protected Buffer
protected abstract Buffer
Methods in org.apache.sshd.agent.common with parameters of type BufferModifier and TypeMethodDescriptionvoid
AbstractAgentClient.messageReceived
(Buffer message) protected Buffer
protected Buffer
protected void
protected abstract void
protected abstract Buffer
-
Uses of Buffer in org.apache.sshd.agent.local
Fields in org.apache.sshd.agent.local declared as BufferFields in org.apache.sshd.agent.local with type parameters of type BufferMethods in org.apache.sshd.agent.local that return BufferModifier and TypeMethodDescriptionprotected Buffer
protected Buffer
AgentForwardedChannel.waitForMessageBuffer()
Methods in org.apache.sshd.agent.local with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.client.auth
Methods in org.apache.sshd.client.auth with parameters of type BufferModifier and TypeMethodDescriptionboolean
boolean
protected abstract boolean
AbstractUserAuth.processAuthDataRequest
(ClientSession session, String service, Buffer buffer) default void
UserAuth.signalAuthMethodFailure
(ClientSession session, String service, boolean partial, List<String> serverMethods, Buffer buffer) Signals reception ofSSH_MSG_USERAUTH_FAILURE
messagedefault void
UserAuth.signalAuthMethodSuccess
(ClientSession session, String service, Buffer buffer) Signal reception ofSSH_MSG_USERAUTH_SUCCESS
message -
Uses of Buffer in org.apache.sshd.client.auth.hostbased
Methods in org.apache.sshd.client.auth.hostbased with parameters of type BufferModifier and TypeMethodDescriptionprotected byte[]
UserAuthHostBased.appendSignature
(ClientSession session, String service, String keyType, PublicKey key, byte[] keyBytes, String clientHostname, String clientUsername, Signature verifier, Buffer buffer) protected boolean
UserAuthHostBased.processAuthDataRequest
(ClientSession session, String service, Buffer buffer) void
UserAuthHostBased.signalAuthMethodFailure
(ClientSession session, String service, boolean partial, List<String> serverMethods, Buffer buffer) void
UserAuthHostBased.signalAuthMethodSuccess
(ClientSession session, 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 BufferModifier and TypeMethodDescriptionprotected boolean
UserAuthKeyboardInteractive.processAuthDataRequest
(ClientSession session, 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 BufferModifier and TypeMethodDescriptionprotected boolean
UserAuthPassword.processAuthDataRequest
(ClientSession session, String service, Buffer buffer) protected IoWriteFuture
UserAuthPassword.sendPassword
(Buffer buffer, ClientSession session, String oldPassword, String newPassword) Sends the password via aSSH_MSG_USERAUTH_REQUEST
message.void
UserAuthPassword.signalAuthMethodFailure
(ClientSession session, String service, boolean partial, List<String> serverMethods, Buffer buffer) void
UserAuthPassword.signalAuthMethodSuccess
(ClientSession session, 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 BufferModifier and TypeMethodDescriptionprotected byte[]
UserAuthPublicKey.appendSignature
(ClientSession session, String service, String name, String username, String algo, PublicKey key, PublicKey serverKey, Buffer buffer) protected boolean
UserAuthPublicKey.processAuthDataRequest
(ClientSession session, String service, Buffer buffer) void
UserAuthPublicKey.signalAuthMethodFailure
(ClientSession session, String service, boolean partial, List<String> serverMethods, Buffer buffer) void
UserAuthPublicKey.signalAuthMethodSuccess
(ClientSession session, String service, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.channel
Methods in org.apache.sshd.client.channel with parameters of type BufferModifier and TypeMethodDescriptionprotected RequestHandler.Result
ChannelSession.handleInternalRequest
(String req, boolean wantReply, Buffer buffer) void
AbstractClientChannel.handleOpenFailure
(Buffer buffer) void
AbstractClientChannel.handleOpenSuccess
(long recipient, long rwSize, long packetSize, Buffer buffer) void
AbstractClientChannel.handleWindowAdjust
(Buffer buffer) protected RequestHandler.Result
ChannelSession.handleXonXoff
(Buffer buffer, boolean wantReply) -
Uses of Buffer in org.apache.sshd.client.channel.exit
Methods in org.apache.sshd.client.channel.exit with parameters of type BufferModifier and TypeMethodDescriptionAbstractChannelExitRequestHandler.process
(Channel channel, String request, boolean wantReply, Buffer buffer) protected abstract V
AbstractChannelExitRequestHandler.processRequestValue
(Channel channel, String request, Buffer buffer) Invoked by default fromAbstractChannelExitRequestHandler.process(Channel, String, boolean, Buffer)
when a request matching the handler's name is receivedprotected String
ExitSignalChannelRequestHandler.processRequestValue
(Channel channel, String request, Buffer buffer) protected Integer
ExitStatusChannelRequestHandler.processRequestValue
(Channel channel, String request, Buffer buffer) -
Uses of Buffer in org.apache.sshd.client.global
Methods in org.apache.sshd.client.global with parameters of type BufferModifier and TypeMethodDescriptionprotected RequestHandler.Result
OpenSshHostKeysHandler.handleHostKeys
(Session session, Collection<? extends 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 -
Uses of Buffer in org.apache.sshd.client.session
Methods in org.apache.sshd.client.session with parameters of type BufferModifier and TypeMethodDescriptionprotected void
ClientSessionImpl.handleDisconnect
(int code, String msg, String lang, Buffer buffer) void
protected void
ClientUserAuthService.processUserAuth
(Buffer buffer) Execute one step in user authentication.protected boolean
AbstractClientSession.readIdentification
(Buffer buffer) protected byte[]
AbstractClientSession.receiveKexInit
(Buffer buffer) void
AbstractClientSession.startService
(String name, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common
Methods in org.apache.sshd.common with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.common.channel
Fields in org.apache.sshd.common.channel declared as BufferModifier and TypeFieldDescriptionprivate final Buffer
ChannelAsyncInputStream.buffer
(package private) final Buffer
ChannelAsyncInputStream.IoReadFutureImpl.buffer
private Buffer
ChannelOutputStream.buffer
private Buffer
ChannelPipedInputStream.buffer
private final Buffer
IoWriteFutureImpl.buffer
Methods in org.apache.sshd.common.channel that return BufferModifier and TypeMethodDescriptionprotected Buffer
ChannelAsyncOutputStream.createSendBuffer
(Buffer buffer, Channel channel, int length) ChannelAsyncInputStream.IoReadFutureImpl.getBuffer()
IoWriteFutureImpl.getBuffer()
protected Buffer
ChannelOutputStream.newBuffer
(int size) Methods in org.apache.sshd.common.channel with parameters of type BufferModifier and TypeMethodDescriptionprotected Buffer
ChannelAsyncOutputStream.createSendBuffer
(Buffer buffer, Channel channel, int length) protected void
AbstractChannel.handleChannelRequest
(String req, boolean wantReply, Buffer buffer) void
AbstractChannel.handleData
(Buffer buffer) void
Channel.handleData
(Buffer buffer) Invoked whenSSH_MSG_CHANNEL_DATA
receivedvoid
AbstractChannel.handleExtendedData
(Buffer buffer) void
Channel.handleExtendedData
(Buffer buffer) Invoked whenSSH_MSG_CHANNEL_EXTENDED_DATA
receivedprotected RequestHandler.Result
AbstractChannel.handleInternalRequest
(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.void
Channel.handleOpenFailure
(Buffer buffer) For a client channel, this method will be called internally by the session when the server has rejected this channel opening.void
Channel.handleOpenSuccess
(long 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.void
AbstractChannel.handleRequest
(Buffer buffer) void
Channel.handleRequest
(Buffer buffer) Invoked whenSSH_MSG_CHANNEL_REQUEST
receivedprotected void
AbstractChannel.handleUnknownChannelRequest
(String req, boolean wantReply, Buffer buffer) Called when none of the register request handlers reported handling the requestvoid
AbstractChannel.handleWindowAdjust
(Buffer buffer) void
Channel.handleWindowAdjust
(Buffer buffer) Invoked whenSSH_MSG_CHANNEL_WINDOW_ADJUST
receivedFor a server channel, this method will actually open the channelProcess an SSH request.protected IoWriteFuture
AbstractChannel.sendResponse
(Buffer buffer, String req, RequestHandler.Result result, boolean wantReply) BufferedIoOutputStream.writeBuffer
(Buffer buffer) ChannelAsyncOutputStream.writeBuffer
(Buffer buffer) Write the given buffer.SimpleIoOutputStream.writeBuffer
(Buffer buffer) AbstractChannel.writePacket
(Buffer buffer) Channel.writePacket
(Buffer buffer) Encode and send the given buffer.Constructors in org.apache.sshd.common.channel with parameters of type BufferModifierConstructorDescription(package private)
BufferedFuture
(Object id, Buffer buffer) IoReadFutureImpl
(Object id, Buffer buffer) IoWriteFutureImpl
(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 BufferModifier and TypeMethodDescriptionEncode and send the given data packet buffer. -
Uses of Buffer in org.apache.sshd.common.compression
Methods in org.apache.sshd.common.compression with parameters of type BufferModifier and TypeMethodDescriptionvoid
Compress the given buffer in place.void
void
void
Compression.uncompress
(Buffer from, Buffer to) Uncompress the data in a buffer into another buffer.void
CompressionNone.uncompress
(Buffer from, Buffer to) void
CompressionZlib.uncompress
(Buffer from, Buffer to) -
Uses of Buffer in org.apache.sshd.common.forward
Fields in org.apache.sshd.common.forward declared as BufferMethods in org.apache.sshd.common.forward with parameters of type BufferModifier and TypeMethodDescriptionprotected String
SocksProxy.Socks5.getBLString
(Buffer buffer) protected String
SocksProxy.Socks4.getNTString
(Buffer buffer) protected int
protected int
protected void
protected void
protected void
-
Uses of Buffer in org.apache.sshd.common.future
Methods in org.apache.sshd.common.future that return BufferModifier and TypeMethodDescriptionGlobalRequestFuture.getBuffer()
Obtains the replyBuffer
if the request was successful.Methods in org.apache.sshd.common.future with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.common.global
Methods in org.apache.sshd.common.global with parameters of type BufferModifier and TypeMethodDescriptionprotected abstract RequestHandler.Result
AbstractOpenSshHostKeysHandler.handleHostKeys
(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer) AbstractOpenSshHostKeysHandler.process
(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.io
Methods in org.apache.sshd.common.io that return BufferModifier and TypeMethodDescriptionIoReadFuture.getBuffer()
Retrieves the buffer data was read into.Methods in org.apache.sshd.common.io with parameters of type BufferModifier and TypeMethodDescriptionNOTE: the buffer must not be touched until the returned read future is completed.IoOutputStream.writeBuffer
(Buffer buffer) Write the given buffer.IoSession.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 -
Uses of Buffer in org.apache.sshd.common.kex
Methods in org.apache.sshd.common.kex with parameters of type BufferModifier and TypeMethodDescriptionboolean
Process the next packetvoid
void
void
void
void
void
-
Uses of Buffer in org.apache.sshd.common.kex.dh
Methods in org.apache.sshd.common.kex.dh with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.common.kex.extension
Methods in org.apache.sshd.common.kex.extension with parameters of type BufferModifier and TypeMethodDescriptiondefault boolean
KexExtensionHandler.handleKexCompressionMessage
(Session session, Buffer buffer) Parses theSSH_MSG_NEWCOMPRESS
message.default boolean
KexExtensionHandler.handleKexExtensionsMessage
(Session session, Buffer buffer) Parses theSSH_MSG_EXT_INFO
message.KexExtensionParser.parseExtension
(Buffer buffer) KexExtensions.parseExtensions
(Buffer buffer) Attempts to parse anSSH_MSG_EXT_INFO
messagevoid
KexExtensionParser.putExtension
(T value, Buffer buffer) Adds the name + value to the bufferstatic void
KexExtensions.putExtensions
(Collection<? extends Map.Entry<String, ?>> exts, Buffer buffer) Creates anSSH_MSG_EXT_INFO
message 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 BufferModifier and TypeMethodDescriptionprotected abstract void
protected void
DelayCompression.encode
(DelayedCompressionAlgorithms algos, Buffer buffer) protected void
protected void
protected void
protected void
DelayCompression.parseExtension
(Buffer buffer) Elevation.parseExtension
(Buffer buffer) HostBoundPubkeyAuthentication.parseExtension
(Buffer buffer) NoFlowControl.parseExtension
(Buffer buffer) ServerSignatureAlgorithms.parseExtension
(Buffer buffer) void
AbstractKexExtensionParser.putExtension
(T value, Buffer buffer) -
Uses of Buffer in org.apache.sshd.common.session
Subclasses of Buffer in org.apache.sshd.common.sessionMethods in org.apache.sshd.common.session that return BufferModifier and TypeMethodDescriptionSessionWorkBuffer.clear
(boolean wipeData) default Buffer
Session.createBuffer
(byte cmd) Create a new buffer for the specified SSH packet and reserve the needed space (5 bytes) for the packet header.Session.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.Session.prepareBuffer
(byte cmd, Buffer buffer) Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.Send a global request and wait for the response, if the request is sent withwant-reply = true
.default Buffer
Send a global request and wait for the response, if the request is sent withwant-reply = true
.default Buffer
Send a global request and wait for the response, if the request is sent withwant-reply = true
.Methods in org.apache.sshd.common.session with parameters of type BufferModifier and TypeMethodDescriptiondefault void
ReservedSessionMessagesHandler.handleDebugMessage
(Session session, Buffer buffer) Invoked when anSSH_MSG_DEBUG
packet is receiveddefault void
ReservedSessionMessagesHandler.handleIgnoreMessage
(Session session, Buffer buffer) Invoked when anSSH_MSG_IGNORE
packet is receiveddefault boolean
ReservedSessionMessagesHandler.handleUnimplementedMessage
(Session session, int cmd, Buffer buffer) Invoked when a packet with an un-implemented message is received - includingSSH_MSG_UNIMPLEMENTED
itselfUnknownChannelReferenceHandler.handleUnknownChannelCommand
(ConnectionService service, byte cmd, long channelId, Buffer buffer) Invoked when the connection service responsible for handling channel messages receives a message intended for an unknown channel.default boolean
SessionDisconnectHandler.handleUnsupportedServiceDisconnectReason
(Session session, int cmd, String serviceName, Buffer buffer) Invoked when a request has been made related to an unknown SSH service as described in RFC 4253 - section 10.Session.prepareBuffer
(byte cmd, Buffer buffer) Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.ConnectionServiceRequestHandler.process
(ConnectionService service, String request, boolean wantReply, Buffer buffer) Send a global request and wait for the response, if the request is sent withwant-reply = true
.default Buffer
Send a global request and wait for the response, if the request is sent withwant-reply = true
.default Buffer
Send a global request and wait for the response, if the request is sent withwant-reply = true
.Session.request
(Buffer buffer, String request, GlobalRequestFuture.ReplyHandler replyHandler) Send a global request and handle the reply asynchronously.default IoWriteFuture
ReservedSessionMessagesHandler.sendKexInitRequest
(Session session, Map<KexProposalOption, String> proposal, Buffer packet) Invoked before sending theSSH_MSG_KEXINIT
packetvoid
Session.startService
(String name, Buffer buffer) Session.writePacket
(Buffer buffer) Encode and send the given buffer.default IoWriteFuture
Session.writePacket
(Buffer buffer, long maxWaitMillis) Encode and send the given buffer with the specified timeout.Session.writePacket
(Buffer buffer, long timeout, TimeUnit unit) Encode and send the given buffer with the specified timeout.default IoWriteFuture
Session.writePacket
(Buffer buffer, 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 BufferFields in org.apache.sshd.common.session.helpers with type parameters of type BufferModifier and TypeFieldDescriptionprivate final Map<Buffer,
LongConsumer> AbstractSession.globalSequenceNumbers
Methods in org.apache.sshd.common.session.helpers with type parameters of type BufferModifier and TypeMethodDescriptionprotected <B extends Buffer>
BAbstractSession.validateTargetBuffer
(int cmd, B buffer) Makes sure that the buffer used for output is notnull
or one of the session's internal ones used for decoding and uncompressingMethods in org.apache.sshd.common.session.helpers that return BufferModifier and TypeMethodDescriptionAbstractSession.createBuffer
(byte cmd, int len) protected Buffer
Encode a buffer into the SSH protocol.PendingWriteFuture.getBuffer()
AbstractSession.prepareBuffer
(byte cmd, Buffer buffer) protected Buffer
AbstractSession.preProcessEncodeBuffer
(int cmd, Buffer buffer) protected Buffer
SessionHelper.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
.protected Buffer
AbstractSession.resolveOutputPacket
(Buffer buffer) Methods in org.apache.sshd.common.session.helpers with parameters of type BufferModifier and TypeMethodDescriptionprotected void
AbstractSession.aeadOutgoingBuffer
(Buffer buf, int offset, int len) protected void
AbstractSession.appendOutgoingMac
(Buffer buf, int offset, int len) void
AbstractConnectionService.channelClose
(Buffer buffer) Close a channel due to a close packet receivedvoid
AbstractConnectionService.channelData
(Buffer buffer) Process incoming data on a channelvoid
AbstractConnectionService.channelEof
(Buffer buffer) Process end of file on a channelvoid
AbstractConnectionService.channelExtendedData
(Buffer buffer) Process incoming extended data on a channelvoid
AbstractConnectionService.channelFailure
(Buffer buffer) Process a failure on a channelprotected void
AbstractConnectionService.channelOpen
(Buffer buffer) void
AbstractConnectionService.channelOpenConfirmation
(Buffer buffer) void
AbstractConnectionService.channelOpenFailure
(Buffer buffer) void
AbstractConnectionService.channelRequest
(Buffer buffer) Service a request on a channelvoid
AbstractConnectionService.channelSuccess
(Buffer buffer) Process a success on a channelvoid
AbstractConnectionService.channelWindowAdjust
(Buffer buffer) Process a window adjust packet on a channelprotected void
AbstractSession.doHandleMessage
(Buffer buffer) protected void
SessionHelper.doInvokeDebugMessageHandler
(Buffer buffer) Invoked bySessionHelper.handleDebug(Buffer)
after validating that the buffer structure seems well-formed and also resetting the idle timeout.protected void
SessionHelper.doInvokeIgnoreMessageHandler
(Buffer buffer) Invoked bySessionHelper.handleDebug(Buffer)
after validating that the buffer structure seems well-formed and also resetting the idle timeout.protected boolean
AbstractSession.doInvokeUnimplementedMessageHandler
(int cmd, Buffer buffer) protected boolean
SessionHelper.doInvokeUnimplementedMessageHandler
(int cmd, Buffer buffer) SessionHelper.doReadIdentification
(Buffer buffer, boolean server) Read the remote identification from this buffer.protected IoWriteFuture
AbstractSession.doWritePacket
(Buffer buffer) protected Buffer
Encode a buffer into the SSH protocol.protected void
AbstractSession.encryptOutgoingBuffer
(Buffer buf, int offset, int len) protected PendingWriteFuture
KeyExchangeMessageHandler.enqueuePendingPacket
(int cmd, Buffer buffer) Enqueues a packet to be written once a running key exchange terminates.protected Channel
AbstractConnectionService.getChannel
(byte cmd, long recipient, Buffer buffer) protected Channel
AbstractConnectionService.getChannel
(byte cmd, Buffer buffer) Retrieve the channel designated by the given packetprotected IoWriteFuture
AbstractConnectionService.globalRequest
(Buffer buffer) Process global requestsprotected void
SessionHelper.handleDebug
(Buffer buffer) void
ReservedSessionMessagesHandlerAdapter.handleDebugMessage
(Session session, boolean display, String msg, String lang, Buffer buffer) void
ReservedSessionMessagesHandlerAdapter.handleDebugMessage
(Session session, Buffer buffer) protected void
SessionHelper.handleDisconnect
(int code, String msg, String lang, Buffer buffer) protected void
SessionHelper.handleDisconnect
(Buffer buffer) protected boolean
AbstractSession.handleFirstKexPacketFollows
(int cmd, Buffer buffer, boolean followFlag) protected void
SessionHelper.handleIgnore
(Buffer buffer) void
ReservedSessionMessagesHandlerAdapter.handleIgnoreMessage
(Session session, byte[] data, Buffer buffer) void
ReservedSessionMessagesHandlerAdapter.handleIgnoreMessage
(Session session, Buffer buffer) protected void
AbstractSession.handleKexExtension
(int cmd, Buffer buffer) protected void
AbstractSession.handleKexInit
(Buffer buffer) protected void
AbstractSession.handleKexMessage
(int cmd, Buffer buffer) protected void
AbstractSession.handleMessage
(Buffer buffer) Abstract method for processing incoming decoded packets.protected void
AbstractSession.handleNewCompression
(int cmd, Buffer buffer) protected void
AbstractSession.handleNewKeys
(int cmd, Buffer buffer) protected void
AbstractSession.handleServiceAccept
(String serviceName, Buffer buffer) protected void
AbstractSession.handleServiceAccept
(Buffer buffer) protected boolean
AbstractSession.handleServiceRequest
(String serviceName, Buffer buffer) protected void
AbstractSession.handleServiceRequest
(Buffer buffer) protected void
SessionHelper.handleUnimplemented
(Buffer buffer) boolean
ReservedSessionMessagesHandlerAdapter.handleUnimplementedMessage
(Session session, int cmd, Buffer buffer) DefaultUnknownChannelReferenceHandler.handleUnknownChannelCommand
(ConnectionService service, byte cmd, long channelId, Buffer buffer) protected IoWriteFuture
AbstractConnectionService.handleUnknownRequest
(Buffer buffer, String req, boolean wantReply) protected IoWriteFuture
AbstractSession.notImplemented
(int cmd, Buffer buffer) Send aSSH_MSG_UNIMPLEMENTED
packet.AbstractSession.prepareBuffer
(byte cmd, Buffer buffer) protected Buffer
AbstractSession.preProcessEncodeBuffer
(int cmd, Buffer buffer) protected Buffer
SessionHelper.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
.void
AbstractConnectionServiceRequestHandler.process
(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) boolean
Processes a service request.protected abstract boolean
AbstractSession.readIdentification
(Buffer buffer) Read the other side identification.protected byte[]
AbstractSession.receiveKexInit
(Buffer buffer) protected byte[]
AbstractSession.receiveKexInit
(Buffer buffer, Map<KexProposalOption, String> proposal) Receive the remote key exchange init message.AbstractSession.request
(Buffer buffer, String request, GlobalRequestFuture.ReplyHandler replyHandler) protected void
AbstractConnectionService.requestFailure
(Buffer buffer) protected void
AbstractSession.requestFailure
(Buffer buffer) Indicates the reception of aSSH_MSG_REQUEST_FAILURE
messageprotected void
AbstractConnectionService.requestSuccess
(Buffer buffer) protected void
AbstractSession.requestSuccess
(Buffer buffer) Indicates the reception of aSSH_MSG_REQUEST_SUCCESS
messageprotected Buffer
AbstractSession.resolveOutputPacket
(Buffer buffer) protected IoWriteFuture
AbstractConnectionService.sendChannelOpenFailure
(Buffer buffer, long sender, int reasonCode, String message, String lang) protected IoWriteFuture
AbstractConnectionService.sendGlobalResponse
(Buffer buffer, String req, RequestHandler.Result result, boolean wantReply) private boolean
protected IoWriteFuture
KeyExchangeMessageHandler.writeOrEnqueue
(int cmd, Buffer buffer, long timeout, TimeUnit unit) Writes an SSH packet.AbstractSession.writePacket
(Buffer buffer) AbstractSession.writePacket
(Buffer buffer, long timeout, TimeUnit unit) KeyExchangeMessageHandler.writePacket
(Buffer buffer, long timeout, TimeUnit unit) Writes a packet.Constructors in org.apache.sshd.common.session.helpers with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.common.util.buffer
Subclasses of Buffer in org.apache.sshd.common.util.bufferModifier and TypeClassDescriptionclass
Provides an implementation ofBuffer
using a backing byte arrayMethods in org.apache.sshd.common.util.buffer with type parameters of type BufferModifier and TypeMethodDescriptionstatic <B extends Buffer>
BBufferUtils.clear
(B buffer) Invokesclear()
Methods in org.apache.sshd.common.util.buffer that return BufferModifier and TypeMethodDescriptionBuffer.clear()
Reset read/write positions to zero - Note: zeroes any previously existing dataabstract Buffer
Buffer.clear
(boolean wipeData) Reset read/write positions to zeroByteArrayBuffer.clear
(boolean wipeData) Buffer.ensureCapacity
(int capacity) abstract Buffer
Buffer.ensureCapacity
(int capacity, IntUnaryOperator growthFactor) ByteArrayBuffer.ensureCapacity
(int capacity, IntUnaryOperator growthFactor) Methods in org.apache.sshd.common.util.buffer with parameters of type BufferModifier and TypeMethodDescriptionstatic int
BufferUtils.updateLengthPlaceholder
(Buffer buffer, int lenPos) Used for encodings where we don't know the data length before adding it to the buffer.static void
BufferUtils.updateLengthPlaceholder
(Buffer buffer, int lenPos, long 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 BufferModifier and TypeMethodDescriptionprotected ECPublicKey
ECBufferPublicKeyParser.getRawECKey
(String expectedCurve, ECParameterSpec spec, Buffer buffer) BufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) DSSBufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) ECBufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) ED25519BufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) OpenSSHCertPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) RSABufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) SkECBufferPublicKeyParser.getRawPublicKey
(String keyType, Buffer buffer) SkED25519BufferPublicKeyParser.getRawPublicKey
(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 BufferModifier and TypeMethodDescriptionstatic <B extends Buffer>
BSecurityUtils.putEDDSAKeyPair
(B buffer, KeyPair kp) static <B extends Buffer>
BSecurityUtils.putEDDSAKeyPair
(B buffer, PublicKey pubKey, PrivateKey prvKey) static <B extends Buffer>
BSecurityUtils.putRawEDDSAPublicKey
(B buffer, PublicKey key) Methods in org.apache.sshd.common.util.security with parameters of type BufferModifier and TypeMethodDescriptionstatic KeyPair
SecurityUtils.extractEDDSAKeyPair
(Buffer buffer, 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 BufferModifier and TypeMethodDescriptionstatic <B extends Buffer>
BEdDSASecurityProviderUtils.putEDDSAKeyPair
(B buffer, PublicKey pubKey, PrivateKey prvKey) static <B extends Buffer>
BEdDSASecurityProviderUtils.putRawEDDSAPublicKey
(B buffer, PublicKey key) -
Uses of Buffer in org.apache.sshd.server.auth
Methods in org.apache.sshd.server.auth with parameters of type BufferModifier and TypeMethodDescriptionAbstractUserAuth.auth
(ServerSession session, String username, String service, Buffer buffer) UserAuth.auth
(ServerSession session, String username, String service, Buffer buffer) Try to authenticate the user.protected abstract Boolean
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 -
Uses of Buffer in org.apache.sshd.server.auth.hostbased
Methods in org.apache.sshd.server.auth.hostbased with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.server.auth.keyboard
Methods in org.apache.sshd.server.auth.keyboard with type parameters of type BufferModifier and TypeMethodDescription<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 BufferModifier and TypeMethodDescriptionprotected Boolean
protected Boolean
UserAuthKeyboardInteractive.doInitialAuth
(ServerSession session, String username, KeyboardInteractiveAuthenticator auth, Buffer buffer) protected Boolean
UserAuthKeyboardInteractive.doValidateAuthResponse
(ServerSession session, 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 BufferModifier and TypeMethodDescriptionprotected Boolean
UserAuthPassword.checkPassword
(Buffer buffer, ServerSession session, String username, String password) Invokes the configuredPasswordAuthenticator
and returns the result.protected Boolean
UserAuthPassword.handleClientPasswordChangeRequest
(Buffer buffer, ServerSession session, String username, String oldPassword, String newPassword) Invoked when the client sends aSSH_MSG_USERAUTH_REQUEST
indicating a password change.protected Boolean
UserAuthPassword.handleServerPasswordChangeRequest
(Buffer buffer, ServerSession session, String username, String password, PasswordChangeRequiredException e) Invoked byUserAuthPassword.checkPassword(Buffer, ServerSession, String, String)
when aPasswordChangeRequiredException
was 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 BufferModifier and TypeMethodDescriptionprotected void
UserAuthPublicKey.sendPublicKeyResponse
(ServerSession session, String username, String alg, PublicKey key, byte[] keyBlob, int offset, int blobLen, Buffer buffer) protected boolean
UserAuthPublicKey.verifySignature
(ServerSession session, String username, String alg, 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 BufferModifier and TypeFieldDescriptionprotected Buffer
ChannelSession.extendedDataBuffer
protected Buffer
ChannelSession.receiverBuffer
Methods in org.apache.sshd.server.channel with parameters of type BufferModifier and TypeMethodDescriptionprotected OpenFuture
protected RequestHandler.Result
ChannelSession.handleAgentForwarding
(String requestType, Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleBreak
(Buffer buffer, boolean wantReply) protected RequestHandler.Result
protected RequestHandler.Result
ChannelSession.handleExec
(String request, Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleInternalRequest
(String requestType, boolean wantReply, Buffer buffer) void
AbstractServerChannel.handleOpenFailure
(Buffer buffer) void
AbstractServerChannel.handleOpenSuccess
(long recipient, long rwSize, long packetSize, Buffer buffer) protected RequestHandler.Result
ChannelSession.handlePtyReq
(Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleShell
(String request, Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleSignal
(Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleSubsystem
(String request, Buffer buffer, boolean wantReply) void
ChannelSession.handleWindowAdjust
(Buffer buffer) protected RequestHandler.Result
ChannelSession.handleWindowChange
(Buffer buffer, boolean wantReply) protected RequestHandler.Result
ChannelSession.handleX11Forwarding
(String requestType, Buffer buffer, boolean wantReply) protected RequestHandler.Result
PuttyRequestHandler.processPuttyOpcode
(Channel channel, String request, String opcode, boolean wantReply, Buffer buffer) protected IoWriteFuture
ChannelSession.sendResponse
(Buffer buffer, 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 BufferModifier and TypeMethodDescriptionprotected OpenFuture
void
TcpipServerChannel.handleWindowAdjust
(Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.global
Methods in org.apache.sshd.server.global with parameters of type BufferModifier and TypeMethodDescriptionprotected RequestHandler.Result
OpenSshHostKeysHandler.handleHostKeys
(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer) CancelTcpipForwardHandler.process
(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) KeepAliveHandler.process
(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) NoMoreSessionsHandler.process
(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) TcpipForwardHandler.process
(ConnectionService connectionService, 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 -
Uses of Buffer in org.apache.sshd.server.session
Methods in org.apache.sshd.server.session with parameters of type BufferModifier and TypeMethodDescriptionboolean
ServerProxyAcceptor.acceptServerProxyMetadata
(ServerSession session, Buffer buffer) Invoked before any attempt is made to retrieve the SSH client identification data of the standard SSH protocol.protected void
protected void
ServerUserAuthService.handleAuthenticationFailure
(int cmd, Buffer buffer) protected void
ServerUserAuthService.handleAuthenticationInProgress
(int cmd, Buffer buffer) protected void
ServerUserAuthService.handleAuthenticationSuccess
(int cmd, Buffer buffer) protected void
AbstractServerSession.handleServiceAccept
(String serviceName, Buffer buffer) protected boolean
AbstractServerSession.handleServiceRequest
(String serviceName, Buffer buffer) protected boolean
ServerUserAuthService.handleUserAuthRequestMessage
(ServerSession session, Buffer buffer, AtomicReference<Boolean> authHolder) void
protected boolean
AbstractServerSession.readIdentification
(Buffer buffer) AbstractServerSession.signalAuthenticationSuccess
(String username, String authService, Buffer buffer) ServerSession.signalAuthenticationSuccess
(String username, String authService, Buffer buffer) void
AbstractServerSession.startService
(String name, Buffer buffer) -
Uses of Buffer in org.apache.sshd.server.shell
Fields in org.apache.sshd.server.shell declared as BufferMethods in org.apache.sshd.server.shell that return BufferModifier and TypeMethodDescriptionprotected Buffer
TtyFilterInputStream.insertCharacter
(Buffer org, int c) Methods in org.apache.sshd.server.shell with parameters of type BufferModifier and TypeMethodDescriptionprotected Buffer
TtyFilterInputStream.insertCharacter
(Buffer org, int c) -
Uses of Buffer in org.apache.sshd.sftp.client
Methods in org.apache.sshd.sftp.client that return BufferModifier and TypeMethodDescriptionRawSftpClient.receive
(int id) RawSftpClient.receive
(int id, long timeout) Methods in org.apache.sshd.sftp.client with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.sftp.client.extensions.helpers
Methods in org.apache.sshd.sftp.client.extensions.helpers that return BufferModifier and TypeMethodDescriptionprotected Buffer
AbstractSftpClientExtension.checkExtendedReplyBuffer
(Buffer buffer) protected Buffer
AbstractSftpClientExtension.getCommandBuffer
(int extraSize) protected Buffer
AbstractSftpClientExtension.getCommandBuffer
(Object target) protected Buffer
AbstractSftpClientExtension.getCommandBuffer
(Object target, int extraSize) AbstractSftpClientExtension.receive
(int id) AbstractSftpClientExtension.receive
(int id, long timeout) Methods in org.apache.sshd.sftp.client.extensions.helpers with parameters of type BufferModifier and TypeMethodDescriptionprotected Buffer
AbstractSftpClientExtension.checkExtendedReplyBuffer
(Buffer buffer) protected void
AbstractSftpClientExtension.checkStatus
(Buffer buffer) int
protected void
AbstractSftpClientExtension.sendAndCheckExtendedCommandStatus
(Buffer buffer) protected int
AbstractSftpClientExtension.sendExtendedCommand
(Buffer buffer) protected void
AbstractSftpClientExtension.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 type parameters of type BufferModifier and TypeMethodDescription<B extends Buffer>
BOpenSSHLimitsExtensionInfo.encode
(B buffer) static <B extends Buffer>
BOpenSSHLimitsExtensionInfo.encode
(B buffer, OpenSSHLimitsExtensionInfo info) <B extends Buffer>
BOpenSSHStatExtensionInfo.encode
(B buffer) static <B extends Buffer>
BOpenSSHStatExtensionInfo.encode
(B buffer, OpenSSHStatExtensionInfo info) Methods in org.apache.sshd.sftp.client.extensions.openssh with parameters of type BufferModifier and TypeMethodDescriptionstatic <I extends OpenSSHLimitsExtensionInfo>
Istatic OpenSSHStatExtensionInfo
static <I extends OpenSSHStatExtensionInfo>
IConstructors in org.apache.sshd.sftp.client.extensions.openssh with parameters of type BufferModifierConstructorDescriptionOpenSSHLimitsExtensionInfo
(Buffer buffer) OpenSSHStatExtensionInfo
(Buffer buffer) -
Uses of Buffer in org.apache.sshd.sftp.client.fs
Methods in org.apache.sshd.sftp.client.fs that return BufferModifier and TypeMethodDescriptionSftpFileSystem.Wrapper.receive
(int id) SftpFileSystem.Wrapper.receive
(int id, long timeout) Methods in org.apache.sshd.sftp.client.fs with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.sftp.client.impl
Fields in org.apache.sshd.sftp.client.impl declared as BufferModifier and TypeFieldDescriptionprotected Buffer
SftpInputStreamAsync.buffer
protected Buffer
SftpOutputStreamAsync.buffer
private final Buffer
DefaultSftpClient.receiveBuffer
Fields in org.apache.sshd.sftp.client.impl with type parameters of type BufferMethods in org.apache.sshd.sftp.client.impl with type parameters of type BufferModifier and TypeMethodDescriptionprotected <B extends Buffer>
BAbstractSftpClient.putReferencedName
(int cmd, B buf, 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 BufferModifier and TypeMethodDescriptionDefaultSftpClient.receive
(int id) DefaultSftpClient.receive
(int id, long idleTimeout) protected Buffer
DefaultSftpClient.waitForInitResponse
(Duration initializationTimeout) Methods in org.apache.sshd.sftp.client.impl with parameters of type BufferModifier and TypeMethodDescriptionprotected SftpClient.Attributes
AbstractSftpClient.checkAttributes
(int cmd, Buffer request) protected SftpClient.Attributes
AbstractSftpClient.checkAttributesResponse
(int cmd, Buffer buffer) protected void
AbstractSftpClient.checkCommandStatus
(int cmd, Buffer request) Sends the specified command, waits for the response and then invokesAbstractSftpClient.checkResponseStatus(int, Buffer)
protected int
AbstractSftpClient.checkData
(int cmd, Buffer request, int dstOffset, byte[] dst, AtomicReference<Boolean> eofSignalled) protected int
AbstractSftpClient.checkDataResponse
(int cmd, Buffer buffer, int dstoff, byte[] dst, AtomicReference<Boolean> eofSignalled) protected List<SftpClient.DirEntry>
AbstractSftpClient.checkDirResponse
(int cmd, Buffer buffer, AtomicReference<Boolean> eolIndicator) protected byte[]
AbstractSftpClient.checkHandle
(int cmd, Buffer request) protected byte[]
AbstractSftpClient.checkHandleResponse
(int cmd, Buffer buffer) protected String
AbstractSftpClient.checkOneName
(int cmd, Buffer request) protected String
AbstractSftpClient.checkOneNameResponse
(int cmd, Buffer buffer) protected void
AbstractSftpClient.checkResponseStatus
(int cmd, Buffer buffer) Checks if the incoming response is anSSH_FXP_STATUS
one, and if so whether the substatus isSSH_FX_OK
.void
protected String
AbstractSftpClient.getReferencedName
(int cmd, Buffer buf, int nameIndex) protected void
DefaultSftpClient.handleInitResponse
(Buffer buffer) protected SftpClient.Attributes
AbstractSftpClient.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 IOException
AbstractSftpClient.handleUnexpectedPacket
(int cmd, int expected, int id, int type, int length, Buffer buffer) protected int
AbstractSftpClient.handleUnknownDataPacket
(int cmd, int id, int type, int length, Buffer buffer) protected List<SftpClient.DirEntry>
AbstractSftpClient.handleUnknownDirListingPacket
(int cmd, int id, int type, int length, Buffer buffer) protected String
AbstractSftpClient.handleUnknownOneNamePacket
(int cmd, int id, int type, int length, Buffer buffer) protected void
Process an SFTP packetprotected SftpClient.Attributes
AbstractSftpClient.readAttributes
(int cmd, Buffer buffer, AtomicInteger nameIndex) protected boolean
Read SFTP packets from bufferint
protected void
AbstractSftpClient.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 BufferModifier and TypeMethodDescriptionstatic <B extends Buffer>
BSftpHelper.encodeACLs
(B buffer, int version, Collection<AclEntry> acl) static <B extends Buffer>
BSftpHelper.writeAclEntry
(B buffer, AclEntry acl) static <B extends Buffer>
BSftpHelper.writeACLs
(B buffer, int version, Collection<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, Map<String, ?> attributes) Writes a file / folder's attributes to a bufferstatic <B extends Buffer>
BSftpHelper.writeAttrsV3
(B buffer, int version, Map<String, ?> attributes) Writes the retrieved file / directory attributes in V3 formatstatic <B extends Buffer>
BSftpHelper.writeAttrsV4
(B buffer, int version, Map<String, ?> attributes) Writes the retrieved file / directory attributes in V4+ formatstatic <B extends Buffer>
BSftpHelper.writeExtensions
(B buffer, Map<?, ?> extensions) static <B extends Buffer>
BEncodes aFileTime
value into a bufferMethods in org.apache.sshd.sftp.common with parameters of type BufferModifier and TypeMethodDescriptionSftpHelper.decodeACLs
(Buffer buffer, int version) static Boolean
SftpHelper.getEndOfFileIndicatorValue
(Buffer buffer, int version) Retrieves the end-of-file indicator forSSH_FXP_DATA
responses, provided the version is at least 6, and the buffer has enough available datastatic Boolean
SftpHelper.getEndOfListIndicatorValue
(Buffer buffer, int version) Retrieves the end-of-list indicator forSSH_FXP_NAME
responses, provided the version is at least 6, and the buffer has enough available datastatic Boolean
SftpHelper.indicateEndOfNamesList
(Buffer buffer, int version, PropertyResolver resolver) Appends the end-of-list=TRUE
indicator forSSH_FXP_NAME
responses, provided the version is at least 6 and the feature is enabledstatic Boolean
SftpHelper.indicateEndOfNamesList
(Buffer buffer, int version, PropertyResolver resolver, boolean indicatorValue) Appends the end-of-list indicator forSSH_FXP_NAME
responses, provided the version is at least 6, the feature is enabled and the indicator value is notnull
static NavigableMap<String,
Object> static NavigableMap<String,
byte[]> SftpHelper.readExtensions
(Buffer buffer) static FileTime
Decodes aFileTime
value 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 BufferModifier and TypeMethodDescriptionstatic SpaceAvailableExtensionInfo
static void
SpaceAvailableExtensionInfo.decode
(Buffer buffer, SpaceAvailableExtensionInfo info) static void
SpaceAvailableExtensionInfo.encode
(Buffer buffer, SpaceAvailableExtensionInfo info) Constructors in org.apache.sshd.sftp.common.extensions with parameters of type Buffer -
Uses of Buffer in org.apache.sshd.sftp.server
Fields in org.apache.sshd.sftp.server declared as BufferModifier and TypeFieldDescriptionprotected final Buffer
SftpSubsystem.buffer
protected static final Buffer
SftpSubsystem.CLOSE
Fields in org.apache.sshd.sftp.server with type parameters of type BufferMethods in org.apache.sshd.sftp.server that return BufferModifier and TypeMethodDescriptionprotected abstract Buffer
AbstractSftpSubsystemHelper.prepareReply
(Buffer buffer) protected Buffer
SftpSubsystem.prepareReply
(Buffer buffer) Methods in org.apache.sshd.sftp.server with parameters of type BufferModifier and TypeMethodDescriptionprotected int
AbstractSftpSubsystemHelper.appendAclSupportedExtension
(Buffer buffer, ServerSession session) protected void
AbstractSftpSubsystemHelper.appendExtensions
(Buffer buffer, String supportedVersions) protected String
AbstractSftpSubsystemHelper.appendNewlineExtension
(Buffer buffer, ServerSession session) Appends the "newline" extension to the buffer.AbstractSftpSubsystemHelper.appendOpenSSHExtensions
(Buffer buffer, ServerSession session) protected void
AbstractSftpSubsystemHelper.appendSupported2Extension
(Buffer buffer, Collection<String> extras) Appends the "supported2" extension to the buffer.protected void
AbstractSftpSubsystemHelper.appendSupportedExtension
(Buffer buffer, Collection<String> extras) Appends the "supported" extension to the buffer.AbstractSftpSubsystemHelper.appendVendorIdExtension
(Buffer buffer, Map<String, ?> versionProperties, ServerSession session) Appends the "vendor-id" extension to the buffer.protected String
AbstractSftpSubsystemHelper.appendVersionsExtension
(Buffer buffer, String value, ServerSession session) Appends the "versions" extension to the buffer.AbstractSftpSubsystemHelper.checkVersionCompatibility
(Buffer buffer, int id, int proposed, int failureOpcode) Checks if a proposed version is within supported range.protected void
protected abstract void
AbstractSftpSubsystemHelper.doCheckFileHash
(int id, String targetType, String target, Collection<String> algos, long startOffset, long length, int blockSize, Buffer buffer) protected void
AbstractSftpSubsystemHelper.doCheckFileHash
(int id, Path file, NamedFactory<? extends Digest> factory, long startOffset, long length, int blockSize, Buffer buffer) protected void
AbstractSftpSubsystemHelper.doCheckFileHash
(Buffer buffer, int id, String targetType) protected void
SftpSubsystem.doCheckFileHash
(int id, String targetType, String target, Collection<String> algos, long startOffset, long length, int blockSize, Buffer buffer) protected void
protected void
AbstractSftpSubsystemHelper.doCopyData
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doCopyFile
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doExtended
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doFSetStat
(Buffer buffer, int id) protected void
protected abstract void
protected void
protected void
protected void
protected void
AbstractSftpSubsystemHelper.doMakeDirectory
(Buffer buffer, int id) protected void
protected void
protected void
protected void
AbstractSftpSubsystemHelper.doOpenSSHFsync
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doOpenSSHHardLink
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doOpenSSHLimits
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doPosixRename
(Buffer buffer, int id) protected void
protected void
protected void
protected int
AbstractSftpSubsystemHelper.doReadDir
(int id, String handle, DirectoryHandle dir, Buffer buffer, int maxSize, boolean followLinks) protected abstract void
protected void
protected void
AbstractSftpSubsystemHelper.doReadLink
(Buffer buffer, int id) protected void
AbstractSftpSubsystemHelper.doRealPath
(Buffer buffer, int id) protected void
protected void
AbstractSftpSubsystemHelper.doRemoveDirectory
(Buffer buffer, int id) protected void
protected void
AbstractSftpSubsystemHelper.doSetStat
(Buffer buffer, int id, String extension, int cmd, Boolean followLinks) protected void
AbstractSftpSubsystemHelper.doSpaceAvailable
(Buffer buffer, int id) protected void
protected void
protected void
AbstractSftpSubsystemHelper.doTextSeek
(Buffer buffer, int id) protected void
protected void
AbstractSftpSubsystemHelper.doUnsupported
(Buffer buffer, int length, int type, int id) protected void
AbstractSftpSubsystemHelper.doUnsupportedExtension
(Buffer buffer, int id, String extension) protected void
AbstractSftpSubsystemHelper.doVersionSelect
(Buffer buffer, int id) protected abstract void
AbstractSftpSubsystemHelper.doVersionSelect
(Buffer buffer, int id, String proposed) protected void
SftpSubsystem.doVersionSelect
(Buffer buffer, int id, String proposed) protected void
protected void
AbstractSftpSubsystemHelper.executeExtendedCommand
(Buffer buffer, int id, String extension) protected abstract Buffer
AbstractSftpSubsystemHelper.prepareReply
(Buffer buffer) protected Buffer
SftpSubsystem.prepareReply
(Buffer buffer) protected void
Process an SFTP command.default void
SftpFileSystemAccessor.putRemoteFileName
(SftpSubsystemProxy subsystem, Path path, Buffer buf, String name, boolean shortName) Invoked in order to encode the outgoing referenced file name/pathprotected abstract void
protected void
protected void
protected void
AbstractSftpSubsystemHelper.sendHandle
(Buffer buffer, int id, String handle) protected void
protected void
protected void
AbstractSftpSubsystemHelper.sendStatus
(Buffer buffer, int id, int substatus, String msg) protected void
AbstractSftpSubsystemHelper.sendStatus
(Buffer buffer, int id, int substatus, String msg, String lang) protected void
AbstractSftpSubsystemHelper.sendStatus
(Buffer buffer, int id, Throwable e, int cmd, Object... args) Invoked when an exception was thrown due to the execution of some SFTP commandprotected Boolean
AbstractSftpSubsystemHelper.validateProposedVersion
(Buffer buffer, int id, String proposal) protected void
AbstractSftpSubsystemHelper.writeAttrs
(Buffer buffer, Map<String, ?> attributes) protected void
AbstractSftpSubsystemHelper.writeDirEntry
(int id, DirectoryHandle dir, Map<String, Path> entries, Buffer buffer, int index, Path f, String shortName, LinkOption... options) protected void
AbstractSftpSubsystemHelper.writeDirEntry
(ServerSession session, int id, Buffer buffer, int index, Path f, String shortName, SftpClient.Attributes attributes)