com.mindbright.ssh2
Class SSH2Transport.TranceiverContext

java.lang.Object
  extended by com.mindbright.ssh2.SSH2Transport.TranceiverContext
Enclosing class:
SSH2Transport

public static class SSH2Transport.TranceiverContext
extends java.lang.Object

Context for transport tranceiver/receiver. Holds the encryption and compression states.


Field Summary
protected  Cipher cipher
           
protected  SSH2Compressor compressor
           
protected  Mac mac
           
 
Constructor Summary
SSH2Transport.TranceiverContext()
           
 
Method Summary
 void authSucceeded()
          Called when the authentication step has finished
 int getCipherBlockSize()
           
 void init(byte[] cKey, byte[] iv, byte[] mKey, int compLevel, boolean transmitter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mac

protected Mac mac

cipher

protected Cipher cipher

compressor

protected SSH2Compressor compressor
Constructor Detail

SSH2Transport.TranceiverContext

public SSH2Transport.TranceiverContext()
Method Detail

getCipherBlockSize

public int getCipherBlockSize()

init

public void init(byte[] cKey,
                 byte[] iv,
                 byte[] mKey,
                 int compLevel,
                 boolean transmitter)
          throws SSH2Exception
Throws:
SSH2Exception

authSucceeded

public void authSucceeded()
Called when the authentication step has finished