Package net.schmizz.sshj.transport
Class Converter
- java.lang.Object
-
- net.schmizz.sshj.transport.Converter
-
abstract class Converter extends java.lang.Object
Base class forEncoder
andDecoder
. From RFC 4253, p. 6Each packet is in the following format: uint32 packet_length byte padding_length byte[n1] payload; n1 = packet_length - padding_length - 1 byte[n2] random padding; n2 = padding_length byte[m] mac (Message Authentication Code - MAC); m = mac_length
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
authed
protected boolean
authMode
protected Cipher
cipher
protected int
cipherSize
protected Compression
compression
protected boolean
etm
protected MAC
mac
protected long
seq
-
Constructor Summary
Constructors Constructor Description Converter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract Compression.Mode
getCompressionType()
(package private) long
getSequenceNumber()
(package private) boolean
isSequenceNumberAtMax()
(package private) void
resetSequenceNumber()
(package private) void
setAlgorithms(Cipher cipher, MAC mac, Compression compression)
(package private) void
setAuthenticated()
(package private) boolean
usingCompression()
-
-
-
Field Detail
-
cipher
protected Cipher cipher
-
mac
protected MAC mac
-
compression
protected Compression compression
-
cipherSize
protected int cipherSize
-
seq
protected long seq
-
authed
protected boolean authed
-
etm
protected boolean etm
-
authMode
protected boolean authMode
-
-
Method Detail
-
getSequenceNumber
long getSequenceNumber()
-
resetSequenceNumber
void resetSequenceNumber()
-
isSequenceNumberAtMax
boolean isSequenceNumberAtMax()
-
setAlgorithms
void setAlgorithms(Cipher cipher, MAC mac, Compression compression)
-
setAuthenticated
void setAuthenticated()
-
usingCompression
boolean usingCompression()
-
getCompressionType
abstract Compression.Mode getCompressionType()
-
-