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.
-
Constructor Summary
ConstructorDescriptionMessageCodingSettings
(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv) -
Method Summary
-
Constructor Details
-
MessageCodingSettings
public MessageCodingSettings(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv)
-
-
Method Details
-
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
-