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  javax.crypto.Cipher cipher
           
protected  SSH2Compressor compressor
           
protected  int discard
           
protected  NonBlockingInput in
           
protected  javax.crypto.Mac mac
           
protected  int maclength
           
 
Constructor Summary
SSH2Transport.TranceiverContext(NonBlockingInput in)
           
 
Method Summary
 void authSucceeded()
          Called when the authentication step has finished
 int getCipherBlockSize()
           
 int getMacLength()
           
 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 javax.crypto.Mac mac

maclength

protected int maclength

cipher

protected javax.crypto.Cipher cipher

discard

protected int discard

compressor

protected SSH2Compressor compressor

in

protected NonBlockingInput in
Constructor Detail

SSH2Transport.TranceiverContext

public SSH2Transport.TranceiverContext(NonBlockingInput in)
Method Detail

getCipherBlockSize

public int getCipherBlockSize()

getMacLength

public int getMacLength()

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