|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maverick.ssh2.SshKeyExchange
Abstract representation of an SSH key exchange.
Field Summary | |
protected byte[] |
exchangeHash
The exchange hash produced during key exchange. |
protected byte[] |
hostKey
The server's host key. |
protected java.math.BigInteger |
secret
The secret value produced during key exchange. |
protected byte[] |
signature
The signature generated over the exchange hash |
protected TransportProtocol |
transport
The transport protocol for sending/receiving messages |
Constructor Summary | |
SshKeyExchange()
Contruct an uninitialized key exchange |
Method Summary | |
abstract java.lang.String |
getAlgorithm()
Get the key exchange algorithm name. |
byte[] |
getExchangeHash()
Get the output of the key exchange |
byte[] |
getHostKey()
Get the host key supplied during key exchange. |
java.math.BigInteger |
getSecret()
Get the secret value produced during key exchange. |
byte[] |
getSignature()
Get the signature produced during key exchange. |
void |
init(TransportProtocol transport)
Initialize the key exchange. |
abstract boolean |
isKeyExchangeMessage(int messageid)
|
abstract void |
performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
Overide to perform the client side key exchange. |
void |
reset()
Reset the key exchange. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.math.BigInteger secret
protected byte[] exchangeHash
protected byte[] hostKey
protected byte[] signature
protected TransportProtocol transport
Constructor Detail |
public SshKeyExchange()
Method Detail |
public abstract java.lang.String getAlgorithm()
public byte[] getExchangeHash()
public byte[] getHostKey()
public java.math.BigInteger getSecret()
public byte[] getSignature()
public void init(TransportProtocol transport) throws SshException
transport
-
java.io.IOException
SshException
public abstract void performClientExchange(java.lang.String clientId, java.lang.String serverId, byte[] clientKexInit, byte[] serverKexInit) throws SshException
clientId
- serverId
- clientKexInit
- serverKexInit
-
java.io.IOException
SshException
public abstract boolean isKeyExchangeMessage(int messageid)
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |