Secure iNet Factory

com.jscape.inet.ssh.transport.kex
Class KeyExchange

java.lang.Object
  extended by com.jscape.inet.ssh.transport.kex.KeyExchange
Direct Known Subclasses:
DHKeyExchange

public abstract class KeyExchange
extends java.lang.Object

Version:
1.0
Author:
Alex Usun

Method Summary
 java.lang.String getAlgorithm()
          Returns the SSH name of this key exchange algorithm.
abstract  KeyCreator runClient(boolean checkServerKeySignature, KeyFormat format)
          Runs the key exchanging for the client.
abstract  KeyCreator runServer(java.security.KeyPair keyPair, KeyFormat format)
          Runs the key exchanging for the server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Returns the SSH name of this key exchange algorithm.

Returns:
the SSH name of this key exchange algorithm

runClient

public abstract KeyCreator runClient(boolean checkServerKeySignature,
                                     KeyFormat format)
                              throws java.io.IOException
Runs the key exchanging for the client.

Throws:
java.io.IOException - if an I/O or transport error occurs

runServer

public abstract KeyCreator runServer(java.security.KeyPair keyPair,
                                     KeyFormat format)
                              throws java.io.IOException
Runs the key exchanging for the server.

Parameters:
keyPair - the server key pair
Throws:
java.io.IOException - if an I/O or transport error occurs

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved