cryptix.security.rsa
Class KeyGenThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--cryptix.security.rsa.KeyGenThread
All Implemented Interfaces:
RSAKeyGenObserver, java.lang.Runnable, TestPrimeObserver

public class KeyGenThread
extends java.lang.Thread
implements RSAKeyGenObserver


Field Summary
(package private)  SecretKey key
           
(package private)  int len
           
(package private)  RSAKeyGenObserver observer
           
(package private)  RandomStream rs
           
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Fields inherited from interface cryptix.security.rsa.RSAKeyGenObserver
FINDING_P, FINDING_Q, KEY_GEN_DONE, KEY_RESOLVING
 
Fields inherited from interface cryptix.math.TestPrimeObserver
HAS_SMALL_FACTORS, IS_PRIME, NO_SMALL_FACTORS, NOT_PRIME
 
Constructor Summary
KeyGenThread(java.lang.String name, RandomStream rs, int len, RSAKeyGenObserver observer)
           
 
Method Summary
 void handleEvent(int evnt)
           
 SecretKey key()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rs

RandomStream rs

len

int len

observer

RSAKeyGenObserver observer

key

SecretKey key
Constructor Detail

KeyGenThread

public KeyGenThread(java.lang.String name,
                    RandomStream rs,
                    int len,
                    RSAKeyGenObserver observer)
Method Detail

key

public SecretKey key()

run

public void run()
Overrides:
run in class java.lang.Thread

handleEvent

public void handleEvent(int evnt)
Specified by:
handleEvent in interface TestPrimeObserver