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 void
SshAgentKeyConstraint.Extension. put(Buffer buffer)
void
SshAgentKeyConstraint.FidoProviderExtension. put(Buffer buffer)
void
SshAgentKeyConstraint.LifeTime. put(Buffer buffer)
void
SshAgentKeyConstraint. 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 Buffer
AbstractAgentClient. buffer
Methods in org.apache.sshd.agent.common that return Buffer Modifier and Type Method Description protected Buffer
AbstractAgentProxy. createBuffer(byte cmd)
protected Buffer
AbstractAgentProxy. createBuffer(byte cmd, int extraLen)
protected Buffer
AbstractAgentClient. prepare(Buffer buf)
protected Buffer
AbstractAgentProxy. prepare(Buffer buffer)
protected abstract Buffer
AbstractAgentProxy. request(Buffer buffer)
Methods in org.apache.sshd.agent.common with parameters of type Buffer Modifier and Type Method Description void
AbstractAgentClient. messageReceived(Buffer message)
protected Buffer
AbstractAgentClient. prepare(Buffer buf)
protected Buffer
AbstractAgentProxy. prepare(Buffer buffer)
protected void
AbstractAgentClient. process(int cmd, Buffer req, Buffer rep)
protected abstract void
AbstractAgentClient. reply(Buffer buf)
protected abstract Buffer
AbstractAgentProxy. 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 Buffer
AgentForwardedChannel. receiveBuffer
Fields in org.apache.sshd.agent.local with type parameters of type Buffer Modifier and Type Field Description private java.util.Queue<Buffer>
AgentForwardedChannel. messages
Methods in org.apache.sshd.agent.local that return Buffer Modifier and Type Method Description protected Buffer
AgentForwardedChannel. request(Buffer buffer)
protected Buffer
AgentForwardedChannel. waitForMessageBuffer()
Methods in org.apache.sshd.agent.local with parameters of type Buffer Modifier and Type Method Description protected OpenFuture
ChannelAgentForwarding. doInit(Buffer buffer)
protected void
ChannelAgentForwarding.AgentClient. reply(Buffer buf)
protected Buffer
AgentForwardedChannel. 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 boolean
AbstractUserAuth. process(Buffer buffer)
boolean
UserAuth. process(Buffer buffer)
protected abstract boolean
AbstractUserAuth. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)
default void
UserAuth. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)
Signals reception ofSSH_MSG_USERAUTH_FAILURE
messagedefault void
UserAuth. signalAuthMethodSuccess(ClientSession session, java.lang.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 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 boolean
UserAuthHostBased. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)
void
UserAuthHostBased. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)
void
UserAuthHostBased. 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 boolean
UserAuthKeyboardInteractive. 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 boolean
UserAuthPassword. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)
protected IoWriteFuture
UserAuthPassword. sendPassword(Buffer buffer, ClientSession session, java.lang.String oldPassword, java.lang.String newPassword)
Sends the password via aSSH_MSG_USERAUTH_REQUEST
message.void
UserAuthPassword. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)
void
UserAuthPassword. 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 boolean
UserAuthPublicKey. processAuthDataRequest(ClientSession session, java.lang.String service, Buffer buffer)
void
UserAuthPublicKey. signalAuthMethodFailure(ClientSession session, java.lang.String service, boolean partial, java.util.List<java.lang.String> serverMethods, Buffer buffer)
void
UserAuthPublicKey. 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. pendingQueue
Methods in org.apache.sshd.client.channel with parameters of type Buffer Modifier and Type Method Description int
ClientChannelPendingMessagesQueue. 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.Result
ChannelSession. handleInternalRequest(java.lang.String req, boolean wantReply, Buffer buffer)
void
AbstractClientChannel. handleOpenFailure(Buffer buffer)
void
AbstractClientChannel. handleOpenSuccess(int recipient, long rwSize, long packetSize, Buffer buffer)
void
AbstractClientChannel. handleWindowAdjust(Buffer buffer)
protected RequestHandler.Result
ChannelSession. handleXonXoff(Buffer buffer, boolean wantReply)
OpenFuture
AbstractClientChannel. open(int recipient, long rwSize, long packetSize, Buffer buffer)
protected void
ClientChannelPendingMessagesQueue. 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.Result
AbstractChannelExitRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)
protected abstract V
AbstractChannelExitRequestHandler. 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.String
ExitSignalChannelRequestHandler. processRequestValue(Channel channel, java.lang.String request, Buffer buffer)
protected java.lang.Integer
ExitStatusChannelRequestHandler. 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.Result
OpenSshHostKeysHandler. 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 boolean
DHGClient. next(int cmd, Buffer buffer)
boolean
DHGEXClient. 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 void
ClientSessionImpl. handleDisconnect(int code, java.lang.String msg, java.lang.String lang, Buffer buffer)
void
ClientUserAuthService. process(int cmd, Buffer buffer)
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(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 void
Service. 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 Buffer
ChannelAsyncInputStream. buffer
private Buffer
ChannelAsyncInputStream.IoReadFutureImpl. buffer
private Buffer
ChannelOutputStream. buffer
private Buffer
ChannelPipedInputStream. buffer
private Buffer
IoWriteFutureImpl. buffer
Methods in org.apache.sshd.common.channel that return Buffer Modifier and Type Method Description protected Buffer
ChannelAsyncOutputStream. createSendBuffer(Buffer buffer, Channel channel, long length)
Buffer
ChannelAsyncInputStream.IoReadFutureImpl. getBuffer()
Buffer
IoWriteFutureImpl. getBuffer()
Methods in org.apache.sshd.common.channel with parameters of type Buffer Modifier and Type Method Description protected Buffer
ChannelAsyncOutputStream. createSendBuffer(Buffer buffer, Channel channel, long length)
protected void
AbstractChannel. handleChannelRequest(java.lang.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(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.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(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.void
AbstractChannel. handleRequest(Buffer buffer)
void
Channel. handleRequest(Buffer buffer)
Invoked whenSSH_MSG_CHANNEL_REQUEST
receivedprotected void
AbstractChannel. handleUnknownChannelRequest(java.lang.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
receivedOpenFuture
Channel. open(int recipient, long rwSize, long packetSize, Buffer buffer)
For a server channel, this method will actually open the channelRequestHandler.Result
ChannelRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)
RequestHandler.Result
RequestHandler. process(T t, java.lang.String request, boolean wantReply, Buffer buffer)
Process an SSH request.IoReadFuture
ChannelAsyncInputStream. read(Buffer buf)
protected IoWriteFuture
AbstractChannel. sendResponse(Buffer buffer, java.lang.String req, RequestHandler.Result result, boolean wantReply)
IoWriteFuture
BufferedIoOutputStream. writeBuffer(Buffer buffer)
IoWriteFuture
ChannelAsyncOutputStream. writeBuffer(Buffer buffer)
IoWriteFuture
SimpleIoOutputStream. writeBuffer(Buffer buffer)
IoWriteFuture
AbstractChannel. writePacket(Buffer buffer)
IoWriteFuture
Channel. 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 IoWriteFuture
ChannelStreamWriter. writeData(Buffer buffer)
Encode and send the given data packet buffer.IoWriteFuture
DefaultChannelStreamWriter. 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 void
Compression. compress(Buffer buffer)
Compress the given buffer in place.void
CompressionNone. compress(Buffer buffer)
void
CompressionZlib. compress(Buffer buffer)
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 Buffer Modifier and Type Field Description private Buffer
SocksProxy.Socks5. response
Methods in org.apache.sshd.common.forward with parameters of type Buffer Modifier and Type Method Description protected java.lang.String
SocksProxy.Socks5. getBLString(Buffer buffer)
protected java.lang.String
SocksProxy.Socks4. getNTString(Buffer buffer)
protected int
SocksProxy.Proxy. getUByte(Buffer buffer)
protected int
SocksProxy.Proxy. getUShort(Buffer buffer)
protected void
SocksProxy.Proxy. onMessage(Buffer buffer)
protected void
SocksProxy.Socks4. onMessage(Buffer buffer)
protected void
SocksProxy.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.Result
AbstractOpenSshHostKeysHandler. handleHostKeys(Session session, java.util.Collection<? extends java.security.PublicKey> keys, boolean wantReply, Buffer buffer)
RequestHandler.Result
AbstractOpenSshHostKeysHandler. 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 Buffer
IoReadFuture. getBuffer()
Methods in org.apache.sshd.common.io with parameters of type Buffer Modifier and Type Method Description IoReadFuture
IoInputStream. read(Buffer buffer)
NOTE: the buffer must not be touched until the returned read future is completed.IoWriteFuture
IoOutputStream. writeBuffer(Buffer buffer)
Write the given buffer.IoWriteFuture
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 Modifier and Type Method Description IoWriteFuture
Nio2Session. 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 boolean
KeyExchange. next(int cmd, Buffer buffer)
Process the next packetvoid
AbstractDH. putE(Buffer buffer, byte[] e)
void
ECDH. putE(Buffer buffer, byte[] e)
void
XDH. putE(Buffer buffer, byte[] e)
void
AbstractDH. putF(Buffer buffer, byte[] f)
void
ECDH. putF(Buffer buffer, byte[] f)
void
XDH. 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 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.T
KexExtensionParser. parseExtension(Buffer buffer)
static java.util.List<java.util.Map.Entry<java.lang.String,?>>
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(java.util.Collection<? extends java.util.Map.Entry<java.lang.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 Buffer Modifier and Type Method Description protected abstract void
AbstractKexExtensionParser. encode(T value, Buffer buffer)
protected void
DelayCompression. encode(DelayedCompressionAlgorithms algos, Buffer buffer)
protected void
Elevation. encode(java.lang.String value, Buffer buffer)
protected void
NoFlowControl. encode(java.lang.String value, Buffer buffer)
protected void
ServerSignatureAlgorithms. encode(java.util.List<java.lang.String> names, Buffer buffer)
DelayedCompressionAlgorithms
DelayCompression. parseExtension(Buffer buffer)
java.lang.String
Elevation. parseExtension(Buffer buffer)
java.lang.String
NoFlowControl. parseExtension(Buffer buffer)
java.util.List<java.lang.String>
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.session Modifier and Type Class Description class
SessionWorkBuffer
Methods in org.apache.sshd.common.session that return Buffer Modifier and Type Method Description Buffer
SessionWorkBuffer. 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.Buffer
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.Buffer
Session. prepareBuffer(byte cmd, Buffer buffer)
Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.Buffer
Session. request(java.lang.String request, Buffer buffer, long maxWaitMillis)
Send a global request and wait for the response.default Buffer
Session. request(java.lang.String request, Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)
Send a global request and wait for the response.default Buffer
Session. 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 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
itselfChannel
UnknownChannelReferenceHandler. 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 boolean
SessionDisconnectHandler. 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.Buffer
Session. prepareBuffer(byte cmd, Buffer buffer)
Prepare a new "clean" buffer while reserving the needed space (5 bytes) for the packet header.RequestHandler.Result
ConnectionServiceRequestHandler. process(ConnectionService service, java.lang.String request, boolean wantReply, Buffer buffer)
Buffer
Session. request(java.lang.String request, Buffer buffer, long maxWaitMillis)
Send a global request and wait for the response.default Buffer
Session. request(java.lang.String request, Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)
Send a global request and wait for the response.default Buffer
Session. request(java.lang.String request, Buffer buffer, java.time.Duration timeout)
Send a global request and wait for the response.default IoWriteFuture
ReservedSessionMessagesHandler. sendKexInitRequest(Session session, java.util.Map<KexProposalOption,java.lang.String> proposal, Buffer packet)
Invoked before sending theSSH_MSG_KEXINIT
packetvoid
Session. startService(java.lang.String name, Buffer buffer)
IoWriteFuture
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.IoWriteFuture
Session. writePacket(Buffer buffer, long timeout, java.util.concurrent.TimeUnit unit)
Encode and send the given buffer with the specified timeout.default IoWriteFuture
Session. 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 Buffer
PendingWriteFuture. buffer
Methods 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 notnull
or 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 Buffer
AbstractSession. createBuffer(byte cmd, int len)
protected Buffer
AbstractSession. encode(Buffer buffer)
Encode a buffer into the SSH protocol.Buffer
PendingWriteFuture. getBuffer()
Buffer
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
.Buffer
AbstractSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)
protected Buffer
AbstractSession. resolveOutputPacket(Buffer buffer)
Methods in org.apache.sshd.common.session.helpers with parameters of type Buffer Modifier and Type Method Description protected 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)
protected java.util.List<java.lang.String>
SessionHelper. doReadIdentification(Buffer buffer, boolean server)
Read the remote identification from this buffer.protected IoWriteFuture
AbstractSession. doWritePacket(Buffer buffer)
protected Buffer
AbstractSession. encode(Buffer buffer)
Encode a buffer into the SSH protocol.protected void
AbstractSession. encryptOutgoingBuffer(Buffer buf, int offset, int len)
protected PendingWriteFuture
AbstractSession. 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 Channel
AbstractConnectionService. getChannel(byte cmd, int 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, java.lang.String msg, java.lang.String lang, Buffer buffer)
void
ReservedSessionMessagesHandlerAdapter. handleDebugMessage(Session session, Buffer buffer)
protected void
SessionHelper. handleDisconnect(int code, java.lang.String msg, java.lang.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(java.lang.String serviceName, Buffer buffer)
protected void
AbstractSession. handleServiceAccept(Buffer buffer)
protected boolean
AbstractSession. handleServiceRequest(java.lang.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)
Channel
DefaultUnknownChannelReferenceHandler. handleUnknownChannelCommand(ConnectionService service, byte cmd, int channelId, Buffer buffer)
protected IoWriteFuture
AbstractConnectionService. handleUnknownRequest(Buffer buffer, java.lang.String req, boolean wantReply)
protected IoWriteFuture
AbstractSession. notImplemented(int cmd, Buffer buffer)
Send aSSH_MSG_UNIMPLEMENTED
packet.Buffer
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
AbstractConnectionService. process(int cmd, Buffer buffer)
RequestHandler.Result
AbstractConnectionServiceRequestHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)
protected abstract boolean
AbstractSession. 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.Buffer
AbstractSession. request(java.lang.String request, Buffer buffer, long maxWaitMillis)
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, int sender, int reasonCode, java.lang.String message, java.lang.String lang)
protected IoWriteFuture
AbstractConnectionService. sendGlobalResponse(Buffer buffer, java.lang.String req, RequestHandler.Result result, boolean wantReply)
IoWriteFuture
AbstractSession. writePacket(Buffer buffer)
IoWriteFuture
SessionHelper. 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 class
ByteArrayBuffer
Provides an implementation ofBuffer
using 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 Buffer
Buffer. clear()
Reset read/write positions to zero - Note: zeroes any previously existing dataabstract Buffer
Buffer. clear(boolean wipeData)
Reset read/write positions to zeroBuffer
ByteArrayBuffer. clear(boolean wipeData)
Buffer
Buffer. ensureCapacity(int capacity)
abstract Buffer
Buffer. ensureCapacity(int capacity, java.util.function.IntUnaryOperator growthFactor)
Buffer
ByteArrayBuffer. 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 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, 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.ECPublicKey
ECBufferPublicKeyParser. getRawECKey(java.lang.String expectedCurve, java.security.spec.ECParameterSpec spec, Buffer buffer)
PUB
BufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
java.security.interfaces.DSAPublicKey
DSSBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
java.security.interfaces.ECPublicKey
ECBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
java.security.PublicKey
ED25519BufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
OpenSshCertificate
OpenSSHCertPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
java.security.interfaces.RSAPublicKey
RSABufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
SkEcdsaPublicKey
SkECBufferPublicKeyParser. getRawPublicKey(java.lang.String keyType, Buffer buffer)
SkED25519PublicKey
SkED25519BufferPublicKeyParser. 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.KeyPair
SecurityUtils. 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.Boolean
AbstractUserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)
java.lang.Boolean
UserAuth. auth(ServerSession session, java.lang.String username, java.lang.String service, Buffer buffer)
Try to authenticate the user.protected abstract java.lang.Boolean
AbstractUserAuth. doAuth(Buffer buffer, boolean init)
java.lang.Boolean
UserAuthNone. doAuth(Buffer buffer, boolean init)
java.lang.Boolean
AbstractUserAuth. next(Buffer buffer)
java.lang.Boolean
UserAuth. 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.Boolean
UserAuthGSS. 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.Boolean
UserAuthHostBased. 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.Boolean
UserAuthKeyboardInteractive. doAuth(Buffer buffer, boolean init)
protected java.lang.Boolean
UserAuthKeyboardInteractive. doInitialAuth(ServerSession session, java.lang.String username, KeyboardInteractiveAuthenticator auth, Buffer buffer)
protected java.lang.Boolean
UserAuthKeyboardInteractive. 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.Boolean
UserAuthPassword. checkPassword(Buffer buffer, ServerSession session, java.lang.String username, java.lang.String password)
Invokes the configuredPasswordAuthenticator
and returns the result.java.lang.Boolean
UserAuthPassword. doAuth(Buffer buffer, boolean init)
protected java.lang.Boolean
UserAuthPassword. 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_REQUEST
indicating a password change.protected java.lang.Boolean
UserAuthPassword. handleServerPasswordChangeRequest(Buffer buffer, ServerSession session, java.lang.String username, java.lang.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 Buffer Modifier and Type Method Description java.lang.Boolean
UserAuthPublicKey. doAuth(Buffer buffer, boolean init)
protected void
UserAuthPublicKey. sendPublicKeyResponse(ServerSession session, java.lang.String username, java.lang.String alg, java.security.PublicKey key, byte[] keyBlob, int offset, int blobLen, Buffer buffer)
protected boolean
UserAuthPublicKey. 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 Buffer
ChannelSession. extendedDataBuffer
protected Buffer
ChannelSession. receiverBuffer
Methods in org.apache.sshd.server.channel with parameters of type Buffer Modifier and Type Method Description protected OpenFuture
AbstractServerChannel. doInit(Buffer buffer)
protected RequestHandler.Result
ChannelSession. handleAgentForwarding(java.lang.String requestType, Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleBreak(Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleEnv(Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleExec(java.lang.String request, Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleInternalRequest(java.lang.String requestType, boolean wantReply, Buffer buffer)
void
AbstractServerChannel. handleOpenFailure(Buffer buffer)
void
AbstractServerChannel. handleOpenSuccess(int recipient, long rwSize, long packetSize, Buffer buffer)
protected RequestHandler.Result
ChannelSession. handlePtyReq(Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleShell(java.lang.String request, Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleSignal(Buffer buffer, boolean wantReply)
protected RequestHandler.Result
ChannelSession. handleSubsystem(java.lang.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(java.lang.String requestType, Buffer buffer, boolean wantReply)
OpenFuture
AbstractServerChannel. open(int recipient, long rwSize, long packetSize, Buffer buffer)
RequestHandler.Result
PuttyRequestHandler. process(Channel channel, java.lang.String request, boolean wantReply, Buffer buffer)
protected RequestHandler.Result
PuttyRequestHandler. processPuttyOpcode(Channel channel, java.lang.String request, java.lang.String opcode, boolean wantReply, Buffer buffer)
protected IoWriteFuture
ChannelSession. 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 OpenFuture
TcpipServerChannel. 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.Result
OpenSshHostKeysHandler. handleHostKeys(Session session, java.util.Collection<? extends java.security.PublicKey> keys, boolean wantReply, Buffer buffer)
RequestHandler.Result
CancelTcpipForwardHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)
RequestHandler.Result
KeepAliveHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)
RequestHandler.Result
NoMoreSessionsHandler. process(ConnectionService connectionService, java.lang.String request, boolean wantReply, Buffer buffer)
RequestHandler.Result
TcpipForwardHandler. 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 boolean
DHGEXServer. next(int cmd, Buffer buffer)
boolean
DHGServer. 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 boolean
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
ServerUserAuthService. asyncAuth(int cmd, Buffer buffer, boolean authed)
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(java.lang.String serviceName, Buffer buffer)
protected boolean
AbstractServerSession. handleServiceRequest(java.lang.String serviceName, Buffer buffer)
protected boolean
ServerUserAuthService. handleUserAuthRequestMessage(ServerSession session, Buffer buffer, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> authHolder)
void
ServerUserAuthService. process(int cmd, Buffer buffer)
protected boolean
AbstractServerSession. readIdentification(Buffer buffer)
IoWriteFuture
AbstractServerSession. signalAuthenticationSuccess(java.lang.String username, java.lang.String authService, Buffer buffer)
IoWriteFuture
ServerSession. signalAuthenticationSuccess(java.lang.String username, java.lang.String authService, Buffer buffer)
void
AbstractServerSession. 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 Buffer
TtyFilterInputStream. buffer
Methods in org.apache.sshd.server.shell that return Buffer Modifier and Type Method Description protected Buffer
TtyFilterInputStream. insertCharacter(Buffer org, int c)
Methods in org.apache.sshd.server.shell with parameters of type Buffer Modifier and Type Method Description protected 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 Buffer Modifier and Type Method Description Buffer
RawSftpClient. receive(int id)
Buffer
RawSftpClient. receive(int id, long timeout)
Buffer
RawSftpClient. receive(int id, java.time.Duration timeout)
Methods in org.apache.sshd.sftp.client with parameters of type Buffer Modifier and Type Method Description int
RawSftpClient. 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 Buffer
AbstractSftpClientExtension. checkExtendedReplyBuffer(Buffer buffer)
protected Buffer
AbstractSftpClientExtension. getCommandBuffer(int extraSize)
protected Buffer
AbstractSftpClientExtension. getCommandBuffer(java.lang.Object target)
protected Buffer
AbstractSftpClientExtension. getCommandBuffer(java.lang.Object target, int extraSize)
Buffer
AbstractSftpClientExtension. putTarget(Buffer buffer, java.lang.Object target)
Buffer
AbstractSftpClientExtension. receive(int id)
Buffer
AbstractSftpClientExtension. receive(int id, long timeout)
Buffer
AbstractSftpClientExtension. 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 Buffer
AbstractSftpClientExtension. checkExtendedReplyBuffer(Buffer buffer)
protected void
AbstractSftpClientExtension. checkStatus(Buffer buffer)
Buffer
AbstractSftpClientExtension. putTarget(Buffer buffer, java.lang.Object target)
int
AbstractSftpClientExtension. send(int cmd, Buffer buffer)
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 parameters of type Buffer Modifier and Type Method Description static OpenSSHStatExtensionInfo
OpenSSHStatExtensionInfo. decode(Buffer buffer)
static void
OpenSSHStatExtensionInfo. decode(Buffer buffer, OpenSSHStatExtensionInfo info)
static void
OpenSSHStatExtensionInfo. 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 Buffer
SftpFileSystem.Wrapper. receive(int id)
Buffer
SftpFileSystem.Wrapper. receive(int id, long timeout)
Buffer
SftpFileSystem.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 int
SftpFileSystem.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 Buffer
SftpInputStreamAsync. buffer
protected Buffer
SftpOutputStreamAsync. buffer
private Buffer
DefaultSftpClient. receiveBuffer
Fields 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. messages
Methods 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 Buffer
DefaultSftpClient. receive(int id)
Buffer
DefaultSftpClient. receive(int id, long idleTimeout)
Buffer
DefaultSftpClient. receive(int id, java.time.Duration idleTimeout)
protected Buffer
DefaultSftpClient. 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.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, java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> eofSignalled)
protected int
AbstractSftpClient. 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.String
AbstractSftpClient. checkOneName(int cmd, Buffer request)
protected java.lang.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
SftpInputStreamAsync.BufferConsumer. consume(Buffer buffer)
protected java.lang.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 java.io.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 java.util.List<SftpClient.DirEntry>
AbstractSftpClient. handleUnknownDirListingPacket(int cmd, int id, int type, int length, Buffer buffer)
protected java.lang.String
AbstractSftpClient. handleUnknownOneNamePacket(int cmd, int id, int type, int length, Buffer buffer)
protected void
DefaultSftpClient. process(Buffer incoming)
Process an SFTP packetprotected SftpClient.Attributes
AbstractSftpClient. readAttributes(int cmd, Buffer buffer, java.util.concurrent.atomic.AtomicInteger nameIndex)
protected boolean
DefaultSftpClient. receive(Buffer incoming)
Read SFTP packets from bufferint
DefaultSftpClient. send(int cmd, Buffer buffer)
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 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 aFileTime
value 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.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 java.lang.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 java.lang.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 java.lang.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 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.FileTime
SftpHelper. readTime(Buffer buffer, int version, int flags)
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 Buffer Modifier and Type Method Description static SpaceAvailableExtensionInfo
SpaceAvailableExtensionInfo. decode(Buffer buffer)
static void
SpaceAvailableExtensionInfo. decode(Buffer buffer, SpaceAvailableExtensionInfo info)
static void
SpaceAvailableExtensionInfo. encode(Buffer buffer, SpaceAvailableExtensionInfo info)
AclSupportedParser.AclCapabilities
AclSupportedParser. parse(Buffer buffer)
Supported2Parser.Supported2
Supported2Parser. parse(Buffer buffer)
SupportedParser.Supported
SupportedParser. parse(Buffer buffer)
VendorIdParser.VendorId
VendorIdParser. 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 Buffer
SftpSubsystem. buffer
protected static Buffer
SftpSubsystem. CLOSE
Fields in org.apache.sshd.sftp.server with type parameters of type Buffer Modifier and Type Field Description protected java.util.concurrent.BlockingQueue<Buffer>
SftpSubsystem. requests
Methods in org.apache.sshd.sftp.server that return Buffer Modifier and Type Method Description protected abstract Buffer
AbstractSftpSubsystemHelper. prepareReply(Buffer buffer)
protected Buffer
SftpSubsystem. prepareReply(Buffer buffer)
Methods in org.apache.sshd.sftp.server with parameters of type Buffer Modifier and Type Method Description protected int
AbstractSftpSubsystemHelper. appendAclSupportedExtension(Buffer buffer, ServerSession session)
protected void
AbstractSftpSubsystemHelper. appendExtensions(Buffer buffer, java.lang.String supportedVersions)
protected void
AbstractSftpSubsystemHelper. 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 void
AbstractSftpSubsystemHelper. appendSupported2Extension(Buffer buffer, java.util.Collection<java.lang.String> extras)
Appends the "supported2" extension to the buffer.protected void
AbstractSftpSubsystemHelper. appendSupportedExtension(Buffer buffer, java.util.Collection<java.lang.String> extras)
Appends the "supported" extension to the buffer.protected void
AbstractSftpSubsystemHelper. appendVendorIdExtension(Buffer buffer, java.util.Map<java.lang.String,?> versionProperties, ServerSession session)
Appends the "vendor-id" extension to the buffer.protected void
AbstractSftpSubsystemHelper. 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 void
AbstractSftpSubsystemHelper. doBlock(Buffer buffer, int id)
protected abstract void
AbstractSftpSubsystemHelper. 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 void
AbstractSftpSubsystemHelper. doCheckFileHash(int id, java.nio.file.Path file, NamedFactory<? extends Digest> factory, long startOffset, long length, int blockSize, Buffer buffer)
protected void
AbstractSftpSubsystemHelper. doCheckFileHash(Buffer buffer, int id, java.lang.String targetType)
protected void
SftpSubsystem. 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 void
AbstractSftpSubsystemHelper. doClose(Buffer buffer, int id)
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
AbstractSftpSubsystemHelper. doFStat(Buffer buffer, int id)
protected abstract void
AbstractSftpSubsystemHelper. doInit(Buffer buffer, int id)
protected void
SftpSubsystem. doInit(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doLink(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doLStat(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doMakeDirectory(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doMD5Hash(Buffer buffer, int id, java.lang.String targetType)
protected void
AbstractSftpSubsystemHelper. doOpen(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doOpenDir(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doOpenSSHFsync(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doOpenSSHHardLink(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doPosixRename(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doProcess(Buffer buffer, int length, int type, int id)
protected void
SftpSubsystem. doProcess(Buffer buffer, int length, int type, int id)
protected void
AbstractSftpSubsystemHelper. doRead(Buffer buffer, int id)
protected int
AbstractSftpSubsystemHelper. doReadDir(int id, java.lang.String handle, DirectoryHandle dir, Buffer buffer, int maxSize, boolean followLinks)
protected abstract void
AbstractSftpSubsystemHelper. doReadDir(Buffer buffer, int id)
protected void
SftpSubsystem. doReadDir(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doReadLink(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doRealPath(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doRemove(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doRemoveDirectory(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doRename(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doSetStat(Buffer buffer, int id, java.lang.String extension, int cmd, java.lang.Boolean followLinks)
protected void
AbstractSftpSubsystemHelper. doSpaceAvailable(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doStat(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doSymLink(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doTextSeek(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doUnblock(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. doUnsupported(Buffer buffer, int length, int type, int id)
protected void
AbstractSftpSubsystemHelper. doUnsupportedExtension(Buffer buffer, int id, java.lang.String extension)
protected void
AbstractSftpSubsystemHelper. doVersionSelect(Buffer buffer, int id)
protected abstract void
AbstractSftpSubsystemHelper. doVersionSelect(Buffer buffer, int id, java.lang.String proposed)
protected void
SftpSubsystem. doVersionSelect(Buffer buffer, int id, java.lang.String proposed)
protected void
AbstractSftpSubsystemHelper. doWrite(Buffer buffer, int id)
protected void
AbstractSftpSubsystemHelper. executeExtendedCommand(Buffer buffer, int id, java.lang.String extension)
protected abstract Buffer
AbstractSftpSubsystemHelper. prepareReply(Buffer buffer)
protected Buffer
SftpSubsystem. prepareReply(Buffer buffer)
protected void
AbstractSftpSubsystemHelper. process(Buffer buffer)
Process an SFTP command.default void
SftpFileSystemAccessor. 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 void
AbstractSftpSubsystemHelper. send(Buffer buffer)
protected void
SftpSubsystem. send(Buffer buffer)
protected void
AbstractSftpSubsystemHelper. sendAttrs(Buffer buffer, int id, java.util.Map<java.lang.String,?> attributes)
protected void
AbstractSftpSubsystemHelper. sendHandle(Buffer buffer, int id, java.lang.String handle)
protected void
AbstractSftpSubsystemHelper. sendLink(Buffer buffer, int id, java.nio.file.Path file, java.lang.String link)
protected void
AbstractSftpSubsystemHelper. sendPath(Buffer buffer, int id, java.nio.file.Path f, java.util.Map<java.lang.String,?> attrs)
protected void
AbstractSftpSubsystemHelper. sendStatus(Buffer buffer, int id, int substatus, java.lang.String msg)
protected void
AbstractSftpSubsystemHelper. sendStatus(Buffer buffer, int id, int substatus, java.lang.String msg, java.lang.String lang)
protected void
AbstractSftpSubsystemHelper. 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.Boolean
AbstractSftpSubsystemHelper. validateProposedVersion(Buffer buffer, int id, java.lang.String proposal)
protected void
AbstractSftpSubsystemHelper. writeAttrs(Buffer buffer, java.util.Map<java.lang.String,?> attributes)
protected void
AbstractSftpSubsystemHelper. 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 void
AbstractSftpSubsystemHelper. writeDirEntry(ServerSession session, int id, Buffer buffer, int index, java.nio.file.Path f, java.lang.String shortName, SftpClient.Attributes attributes)
-