ants.p2p.security.sockets
Class SecureClientSocketThread

java.lang.Object
  extended by ants.p2p.security.sockets.SecureClientSocketThread

public class SecureClientSocketThread
extends java.lang.Object


Field Summary
static java.lang.String cipher
           
static int cipherKeySize
           
static int DHKeyExchangeBits
           
static int MinDHKeyExchangeBits
           
 
Constructor Summary
SecureClientSocketThread(SecureClientSocket localSocket)
           
 
Method Summary
 javax.crypto.Cipher getCipherDec()
           
 javax.crypto.Cipher getCipherEnc()
           
 java.lang.String getNewerVersion()
           
 SecureClientSocket getSocket()
           
 long getTimeElapsed()
           
 boolean isNewVersionDetected()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cipher

public static final java.lang.String cipher
See Also:
Constant Field Values

cipherKeySize

public static final int cipherKeySize
See Also:
Constant Field Values

DHKeyExchangeBits

public static final int DHKeyExchangeBits
See Also:
Constant Field Values

MinDHKeyExchangeBits

public static final int MinDHKeyExchangeBits
See Also:
Constant Field Values
Constructor Detail

SecureClientSocketThread

public SecureClientSocketThread(SecureClientSocket localSocket)
                         throws java.io.IOException,
                                java.security.NoSuchAlgorithmException,
                                java.security.spec.InvalidParameterSpecException,
                                java.security.InvalidAlgorithmParameterException,
                                java.security.InvalidKeyException
Throws:
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidParameterSpecException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
Method Detail

run

public void run()

isNewVersionDetected

public boolean isNewVersionDetected()

getNewerVersion

public java.lang.String getNewerVersion()

getTimeElapsed

public long getTimeElapsed()

getCipherEnc

public javax.crypto.Cipher getCipherEnc()

getCipherDec

public javax.crypto.Cipher getCipherDec()

getSocket

public SecureClientSocket getSocket()