Package com.jcraft.jsch
Class KeyExchange
- java.lang.Object
-
- com.jcraft.jsch.KeyExchange
-
-
Constructor Summary
Constructors Constructor Description KeyExchange()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getFingerPrint()
String
getKeyAlgorithName()
String
getKeyType()
abstract int
getState()
protected static 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)
protected boolean
verify(String alg, byte[] K_S, int index, byte[] sig_of_H)
-
-
-
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
-
RSA
protected final int RSA
- See Also:
- Constant Field Values
-
DSS
protected final int DSS
- See Also:
- Constant Field Values
-
ECDSA
protected final int ECDSA
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public abstract void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C) throws Exception
- Throws:
Exception
-
getState
public abstract int getState()
-
getKeyType
public String getKeyType()
-
getKeyAlgorithName
public String getKeyAlgorithName()
-
guess
protected static String[] guess(byte[] I_S, byte[] I_C)
-
getFingerPrint
public String getFingerPrint()
-
normalize
protected byte[] normalize(byte[] secret)
-
-