Class AbstractSession.MessageCodingSettings
java.lang.Object
org.apache.sshd.common.session.helpers.AbstractSession.MessageCodingSettings
- Enclosing class:
AbstractSession
Message encoding or decoding settings as determined at the end of a key exchange.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Cipher
private final Compression
private byte[]
private byte[]
private final Mac
private final Cipher.Mode
-
Constructor Summary
ConstructorsConstructorDescriptionMessageCodingSettings
(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv) -
Method Summary
Modifier and TypeMethodDescriptiongetCipher
(long packetSequenceNumber) Get theCipher
.getMac()
private void
initCipher
(long packetSequenceNumber)
-
Field Details
-
cipher
-
mac
-
compression
-
mode
-
key
private byte[] key -
iv
private byte[] iv
-
-
Constructor Details
-
MessageCodingSettings
public MessageCodingSettings(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv)
-
-
Method Details
-
initCipher
- Throws:
Exception
-
getCipher
Get theCipher
.- Parameters:
packetSequenceNumber
- SSH packet sequence number for initializing the cipher. PassAbstractSession.seqo
if the cipher is to be used for output,AbstractSession.seqi
otherwise.- Returns:
- the fully initialized cipher
- Throws:
Exception
- if the cipher cannot be initialized
-
getMac
-
getCompression
-