Package net.schmizz.sshj.transport
Class Converter
- java.lang.Object
-
- net.schmizz.sshj.transport.Converter
-
abstract class Converter extends java.lang.ObjectBase class forEncoderandDecoder. 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 booleanauthedprotected booleanauthModeprotected Ciphercipherprotected intcipherSizeprotected Compressioncompressionprotected booleanetmprotected MACmacprotected longseq
-
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.ModegetCompressionType()(package private) longgetSequenceNumber()(package private) booleanisSequenceNumberAtMax()(package private) voidresetSequenceNumber()(package private) voidsetAlgorithms(Cipher cipher, MAC mac, Compression compression)(package private) voidsetAuthenticated()(package private) booleanusingCompression()
-
-
-
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()
-
-