com.jcraft.jsch
Class KeyExchange

java.lang.Object
  extended by com.jcraft.jsch.KeyExchange
Direct Known Subclasses:
DHG1, DHG14, DHGEX, DHGEX256

public abstract class KeyExchange
extends java.lang.Object


Field Summary
protected  byte[] H
           
protected  byte[] K
           
protected  byte[] K_S
           
protected  Session session
           
protected  HASH sha
           
static int STATE_END
           
 
Constructor Summary
KeyExchange()
           
 
Method Summary
 java.lang.String getFingerPrint()
           
abstract  java.lang.String getKeyType()
           
abstract  int getState()
           
protected static java.lang.String[] guess(byte[] I_S, byte[] I_C)
           
abstract  void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C)
           
abstract  boolean next(Buffer buf)
           
protected  byte[] normalize(byte[] secret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATE_END

public static final int STATE_END
See Also:
Constant Field Values

session

protected Session session

sha

protected HASH sha

K

protected byte[] K

H

protected byte[] H

K_S

protected byte[] K_S
Constructor Detail

KeyExchange

public KeyExchange()
Method Detail

init

public abstract void init(Session session,
                          byte[] V_S,
                          byte[] V_C,
                          byte[] I_S,
                          byte[] I_C)
                   throws java.lang.Exception
Throws:
java.lang.Exception

next

public abstract boolean next(Buffer buf)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getKeyType

public abstract java.lang.String getKeyType()

getState

public abstract int getState()

guess

protected static java.lang.String[] guess(byte[] I_S,
                                          byte[] I_C)

getFingerPrint

public java.lang.String getFingerPrint()

normalize

protected byte[] normalize(byte[] secret)