protected static class AbstractSession.MessageCodingSettings extends Object
Constructor and Description |
---|
MessageCodingSettings(Cipher cipher,
Mac mac,
Compression compression,
Cipher.Mode mode,
byte[] key,
byte[] iv) |
Modifier and Type | Method and Description |
---|---|
Cipher |
getCipher(long packetSequenceNumber)
Get the
Cipher . |
Compression |
getCompression() |
Mac |
getMac() |
public MessageCodingSettings(Cipher cipher, Mac mac, Compression compression, Cipher.Mode mode, byte[] key, byte[] iv)
public Cipher getCipher(long packetSequenceNumber) throws Exception
Cipher
.packetSequenceNumber
- SSH packet sequence number for initializing the cipher. Pass AbstractSession.seqo
if
the cipher is to be used for output, AbstractSession.seqi
otherwise.Exception
- if the cipher cannot be initializedpublic Mac getMac()
public Compression getCompression()
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.