| java.lang.Object |
| ↳ |
net.schmizz.sshj.transport.kex.AbstractDHG |
Known Direct Subclasses
| DHG1 |
Diffie-Hellman key exchange with SHA-1 and Oakley Group 2 [RFC2409] (1024-bit MODP Group). |
| DHG14 |
Diffie-Hellman key exchange with SHA-1 and Oakley Group 14 [RFC3526] (2048-bit MODP Group). |
|
Class Overview
Base class for DHG key exchange algorithms. Implementations will only have to configure the required data on the
DH class in the
Summary
| Public Methods |
|
byte[]
|
getH()
|
|
Digest
|
getHash()
The message digest used by this key exchange algorithm.
|
|
PublicKey
|
getHostKey()
|
|
BigInteger
|
getK()
|
|
void
|
init(Transport trans, String V_S, String V_C, byte[] I_S, byte[] I_C)
Initialize the key exchange algorithm.
|
|
boolean
|
next(Message msg, SSHPacket packet)
Process the next packet
|
| Protected Methods |
|
abstract
void
|
initDH(DH dh)
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
net.schmizz.sshj.transport.kex.KeyExchange
|
abstract
byte[]
|
getH()
|
|
abstract
Digest
|
getHash()
The message digest used by this key exchange algorithm.
|
|
abstract
PublicKey
|
getHostKey()
|
|
abstract
BigInteger
|
getK()
|
|
abstract
void
|
init(Transport trans, String V_S, String V_C, byte[] I_S, byte[] I_C)
Initialize the key exchange algorithm.
|
|
abstract
boolean
|
next(Message msg, SSHPacket buffer)
Process the next packet
|
|
Fields
private
PublicKey
hostKey
Public Constructors
Public Methods
public
Digest
getHash
()
The message digest used by this key exchange algorithm.
public
PublicKey
getHostKey
()
public
BigInteger
getK
()
public
void
init
(Transport trans, String V_S, String V_C, byte[] I_S, byte[] I_C)
Initialize the key exchange algorithm.
Parameters
| trans
| The transport |
| V_S
| The server identification string |
| V_C
| The client identification string |
| I_S
| The server key init packet |
| I_C
| The client key init packet |
public
boolean
next
(Message msg, SSHPacket packet)
Parameters
| msg
| Message identifier |
| packet
| The packet |
Returns
- a boolean indicating if the processing is complete or if more packets are to be received
Protected Methods
protected
abstract
void
initDH
(DH dh)