Interface KexExtensionParser<T>
-
- Type Parameters:
T- Extension generic type
- All Superinterfaces:
NamedResource
- All Known Implementing Classes:
AbstractKexExtensionParser,DelayCompression,Elevation,HostBoundPubkeyAuthentication,NoFlowControl,ServerSignatureAlgorithms
public interface KexExtensionParser<T> extends NamedResource
Parses a known KEX extension- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TparseExtension(byte[] data)default TparseExtension(byte[] data, int off, int len)TparseExtension(Buffer buffer)voidputExtension(T value, Buffer buffer)Adds the name + value to the buffer-
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
-
-
-
Method Detail
-
parseExtension
default T parseExtension(byte[] data) throws IOException
- Throws:
IOException
-
parseExtension
default T parseExtension(byte[] data, int off, int len) throws IOException
- Throws:
IOException
-
parseExtension
T parseExtension(Buffer buffer) throws IOException
- Throws:
IOException
-
putExtension
void putExtension(T value, Buffer buffer) throws IOException
Adds the name + value to the buffer- Parameters:
value- The value of the extensionbuffer- The targetBuffer- Throws:
IOException- If failed to encode
-
-