Class 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 Detail

    • Method Detail

      • getCipher

        public Cipher getCipher​(long packetSequenceNumber)
                         throws Exception
        Get the Cipher.
        Parameters:
        packetSequenceNumber - SSH packet sequence number for initializing the cipher. Pass AbstractSession.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()