Class AbstractSession.MessageCodingSettings
- java.lang.Object
-
- org.apache.sshd.common.session.helpers.AbstractSession.MessageCodingSettings
-
- Enclosing class:
- AbstractSession
protected static class AbstractSession.MessageCodingSettings extends Object
Message encoding or decoding settings as determined at the end of a key exchange.
-
-
Constructor Summary
Constructors Constructor Description MessageCodingSettings(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cipher
getCipher(long packetSequenceNumber)
Get theCipher
.Compression
getCompression()
Mac
getMac()
-
-
-
Constructor Detail
-
MessageCodingSettings
public MessageCodingSettings(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv)
-
-
Method Detail
-
getCipher
public Cipher getCipher(long packetSequenceNumber) throws Exception
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
public Mac getMac()
-
getCompression
public Compression getCompression()
-
-