|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.sshd.components.SshKeyExchangeServer
Abstract representation of an SSH key exchange.
| Field Summary | |
protected java.lang.String |
clientId
|
protected byte[] |
clientKexInit
|
protected byte[] |
exchangeHash
The exchange hash produced during key exchange. |
protected boolean |
firstPacketFollows
|
protected byte[] |
hostKey
The server's host key. |
protected SshPrivateKey |
prvkey
|
protected SshPublicKey |
pubkey
|
protected java.math.BigInteger |
secret
The secret value produced during key exchange. |
protected java.lang.String |
serverId
|
protected byte[] |
serverKexInit
|
protected byte[] |
signature
The signature generated over the exchange hash |
protected TransportProtocol |
transport
The transport protocol for sending/receiving messages |
protected boolean |
useFirstPacket
|
| Constructor Summary | |
SshKeyExchangeServer()
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. |
boolean |
hasReceivedNewKeys()
|
boolean |
hasSentNewKeys()
|
abstract void |
init(TransportProtocol transport,
java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
Initialize the server side key exchange. |
abstract boolean |
processMessage(byte[] msg)
Process a key exchange message |
void |
reset()
Reset the key exchange. |
void |
setReceivedNewKeys(boolean receivedNewKeys)
|
void |
setSentNewKeys(boolean sentNewKeys)
|
| 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 java.lang.String clientId
protected java.lang.String serverId
protected byte[] clientKexInit
protected byte[] serverKexInit
protected SshPrivateKey prvkey
protected SshPublicKey pubkey
protected boolean firstPacketFollows
protected boolean useFirstPacket
protected TransportProtocol transport
| Constructor Detail |
public SshKeyExchangeServer()
| Method Detail |
public void setReceivedNewKeys(boolean receivedNewKeys)
public void setSentNewKeys(boolean sentNewKeys)
public boolean hasSentNewKeys()
public boolean hasReceivedNewKeys()
public abstract java.lang.String getAlgorithm()
public byte[] getExchangeHash()
public byte[] getHostKey()
public java.math.BigInteger getSecret()
public byte[] getSignature()
public abstract void init(TransportProtocol transport,
java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
throws java.io.IOException
transport - clientId - serverId - clientKexInit - serverKexInit - prvkey - pubkey - firstPacketFollows - useFirstPacket -
java.io.IOException
public abstract boolean processMessage(byte[] msg)
throws SshException,
java.io.IOException
msg -
java.io.IOException
SshExceptionpublic void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||