Top Description Fields Methods
org.apache.sshd.common.kex.extension

public Interface KexExtensionParser<T>

extends NamedResource
Known Direct Implementers
org.apache.sshd.common.kex.extension.parser.AbstractKexExtensionParser
Type Parameters
<T>
Extension generic type
Imports
java.io.IOException, org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer

Parses a known KEX extension
Author
Apache MINA SSHD Project

Field Summary

Inherited from org.apache.sshd.common.NamedResource:
BY_NAME_COMPARATORNAME_EXTRACTOR

Method Summary

Modifier and TypeMethod and Description
public default T
parseExtension(byte[] data)

public default T
parseExtension(byte[] data, int off, int len)

public T
public void
putExtension(T
The value of the extension
value
,
Buffer
The target Buffer
buffer
)

Adds the name + value to the buffer

Inherited from org.apache.sshd.common.NamedResource:
findByNamefindFirstMatchByNamegetNamegetNameListgetNamesofNameremoveByNamesafeCompareByName

Method Detail

parseExtensionback to summary
public default T parseExtension(byte[] data) throws IOException
parseExtensionback to summary
public default T parseExtension(byte[] data, int off, int len) throws IOException
parseExtensionback to summary
public T parseExtension(Buffer buffer) throws IOException
putExtensionback to summary
public void putExtension(T value, Buffer buffer) throws IOException

Adds the name + value to the buffer

Parameters
value:T

The value of the extension

buffer:Buffer

The target Buffer

Exceptions
IOException:
If failed to encode