| Modifier and Type | Method and Description |
|---|---|
void |
CompressionZlib.compress(Buffer buffer) |
void |
CompressionNone.compress(Buffer buffer) |
void |
Compression.compress(Buffer buffer)
Compress the given buffer in place.
|
void |
CompressionZlib.uncompress(Buffer from,
Buffer to) |
void |
CompressionNone.uncompress(Buffer from,
Buffer to) |
void |
Compression.uncompress(Buffer from,
Buffer to)
Uncompress the data in a buffer into another buffer.
|
| Modifier and Type | Method and Description |
|---|---|
Buffer |
IoReadFuture.getBuffer()
Retrieves the buffer data was read into.
|
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
T |
KexExtensionParser.parseExtension(Buffer buffer) |
static List<Map.Entry<String,?>> |
KexExtensions.parseExtensions(Buffer buffer)
Attempts to parse an
SSH_MSG_EXT_INFO message |
void |
KexExtensionParser.putExtension(T value,
Buffer buffer)
Adds the name + value to the buffer
|
static void |
KexExtensions.putExtensions(Collection<? extends Map.Entry<String,?>> exts,
Buffer buffer)
Creates an
SSH_MSG_EXT_INFO message using the provided extensions. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DelayCompression.encode(DelayedCompressionAlgorithms algos,
Buffer buffer) |
protected void |
HostBoundPubkeyAuthentication.encode(Integer version,
Buffer buffer) |
protected void |
ServerSignatureAlgorithms.encode(List<String> names,
Buffer buffer) |
protected void |
Elevation.encode(String value,
Buffer buffer) |
protected void |
NoFlowControl.encode(String value,
Buffer buffer) |
protected abstract void |
AbstractKexExtensionParser.encode(T value,
Buffer buffer) |
String |
Elevation.parseExtension(Buffer buffer) |
List<String> |
ServerSignatureAlgorithms.parseExtension(Buffer buffer) |
String |
NoFlowControl.parseExtension(Buffer buffer) |
DelayedCompressionAlgorithms |
DelayCompression.parseExtension(Buffer buffer) |
Integer |
HostBoundPubkeyAuthentication.parseExtension(Buffer buffer) |
void |
AbstractKexExtensionParser.putExtension(T value,
Buffer buffer) |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteArrayBuffer
Provides an implementation of
Buffer using a backing byte array |
| Modifier and Type | Method and Description |
|---|---|
static <B extends Buffer> |
BufferUtils.clear(B buffer)
Invokes
clear() |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
Buffer.clear()
Reset read/write positions to zero - Note: zeroes any previously existing data
|
Buffer |
ByteArrayBuffer.clear(boolean wipeData) |
abstract Buffer |
Buffer.clear(boolean wipeData)
Reset read/write positions to zero
|
Buffer |
Buffer.ensureCapacity(int capacity) |
Buffer |
ByteArrayBuffer.ensureCapacity(int capacity,
IntUnaryOperator growthFactor) |
abstract Buffer |
Buffer.ensureCapacity(int capacity,
IntUnaryOperator growthFactor) |
| Modifier and Type | Method and 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,
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.
|
| Modifier and Type | Method and Description |
|---|---|
protected ECPublicKey |
ECBufferPublicKeyParser.getRawECKey(String expectedCurve,
ECParameterSpec spec,
Buffer buffer) |
SkEcdsaPublicKey |
SkECBufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
RSAPublicKey |
RSABufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
SkED25519PublicKey |
SkED25519BufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
OpenSshCertificate |
OpenSSHCertPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
PUB |
BufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
PublicKey |
ED25519BufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
ECPublicKey |
ECBufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
DSAPublicKey |
DSSBufferPublicKeyParser.getRawPublicKey(String keyType,
Buffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
static <B extends Buffer> |
SecurityUtils.putEDDSAKeyPair(B buffer,
KeyPair kp) |
static <B extends Buffer> |
SecurityUtils.putEDDSAKeyPair(B buffer,
PublicKey pubKey,
PrivateKey prvKey) |
static <B extends Buffer> |
SecurityUtils.putRawEDDSAPublicKey(B buffer,
PublicKey key) |
| Modifier and Type | Method and Description |
|---|---|
static KeyPair |
SecurityUtils.extractEDDSAKeyPair(Buffer buffer,
String keyType) |
| Modifier and Type | Method and Description |
|---|---|
static <B extends Buffer> |
EdDSASecurityProviderUtils.putEDDSAKeyPair(B buffer,
PublicKey pubKey,
PrivateKey prvKey) |
static <B extends Buffer> |
EdDSASecurityProviderUtils.putRawEDDSAPublicKey(B buffer,
PublicKey key) |
| Modifier and Type | Method and Description |
|---|---|
protected Buffer |
TtyFilterInputStream.insertCharacter(Buffer org,
int c) |
| Modifier and Type | Method and Description |
|---|---|
protected Buffer |
TtyFilterInputStream.insertCharacter(Buffer org,
int c) |
Copyright © 2018–2024 The Apache Software Foundation. All rights reserved.