|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.components.SshKeyExchangeServer
com.maverick.sshd.components.jce.DiffieHellmanGroup14Sha1JCE
public class DiffieHellmanGroup14Sha1JCE
Implementation of the required SSH Transport Protocol key exchange method "diffie-hellman-group14-sha1".
| Field Summary | |
|---|---|
static String |
DIFFIE_HELLMAN_GROUP14_SHA1
Constant for the algorithm name "diffie-hellman-group14-sha1". |
| Fields inherited from class com.maverick.sshd.components.SshKeyExchangeServer |
|---|
clientId, clientKexInit, exchangeHash, firstPacketFollows, hostKey, prvkey, pubkey, secret, serverId, serverKexInit, session, signature, transport, useFirstPacket |
| Constructor Summary | |
|---|---|
DiffieHellmanGroup14Sha1JCE()
Construct an uninitialized instance. |
|
| Method Summary | |
|---|---|
protected void |
calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data. |
String |
getName()
Get the algorithm name for this key exchange |
String |
getProvider()
|
void |
init(org.apache.mina.core.session.IoSession session,
SshTransport transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
com.maverick.ssh.components.SshPrivateKey prvkey,
com.maverick.ssh.components.SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
Initialize the server side key exchange. |
boolean |
processMessage(byte[] msg)
Process a key exchange message |
| Methods inherited from class com.maverick.sshd.components.SshKeyExchangeServer |
|---|
getExchangeHash, getHostKey, getSecret, getSignature, hasReceivedNewKeys, hasSentNewKeys, reset, setReceivedNewKeys, setSentNewKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIFFIE_HELLMAN_GROUP14_SHA1
| Constructor Detail |
|---|
public DiffieHellmanGroup14Sha1JCE()
| Method Detail |
|---|
public String getName()
getName in interface com.maverick.ssh.components.SshComponentgetName in class SshKeyExchangeServer
public void init(org.apache.mina.core.session.IoSession session,
SshTransport transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
com.maverick.ssh.components.SshPrivateKey prvkey,
com.maverick.ssh.components.SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
throws IOException
SshKeyExchangeServer
init in class SshKeyExchangeServerIOExceptionpublic String getProvider()
getProvider in interface com.maverick.ssh.components.jce.AbstractKeyExchange
public boolean processMessage(byte[] msg)
throws com.maverick.ssh.common.SshException,
IOException
SshKeyExchangeServer
processMessage in class SshKeyExchangeServerIOException
com.maverick.ssh.common.SshException
protected void calculateExchangeHash()
throws com.maverick.ssh.common.SshException
Calculates the exchange hash as an SHA1 hash of the following data.
String the client's version string (CR and NL excluded) String the server's version string (CR and NL excluded) String the payload of the client's SSH_MSG_KEXINIT String the payload of the server's SSH_MSG_KEXINIT String the host key BigInteger e, exchange value sent by the client BigInteger f, exchange value sent by the server BigInteger K, the shared secret
IOException
com.maverick.ssh.common.SshException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||