public abstract class SshKeyExchange
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
exchangeHash |
protected byte[] |
hostKey |
protected SshMessageStore |
messageStore |
protected java.math.BigInteger |
secret |
protected byte[] |
signature |
protected TransportProtocol |
transport |
| Constructor and Description |
|---|
SshKeyExchange()
Creates a new SshKeyExchange object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getExchangeHash() |
byte[] |
getHostKey() |
java.math.BigInteger |
getSecret() |
byte[] |
getSignature() |
void |
init(TransportProtocol transport) |
protected abstract void |
onInit() |
abstract void |
performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit) |
abstract void |
performServerExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey) |
void |
reset() |
protected java.math.BigInteger secret
protected SshMessageStore messageStore
protected byte[] exchangeHash
protected byte[] hostKey
protected byte[] signature
protected TransportProtocol transport
public byte[] getExchangeHash()
public byte[] getHostKey()
public java.math.BigInteger getSecret()
public byte[] getSignature()
public void init(TransportProtocol transport) throws java.io.IOException
transport - java.io.IOExceptionprotected abstract void onInit()
throws java.io.IOException
java.io.IOExceptionpublic abstract void performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
throws java.io.IOException
clientId - serverId - clientKexInit - serverKexInit - java.io.IOExceptionpublic abstract void performServerExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey)
throws java.io.IOException
clientId - serverId - clientKexInit - serverKexInit - prvkey - java.io.IOExceptionpublic void reset()
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.