org.ssonet.util
Class Preload

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.ssonet.util.Preload
All Implemented Interfaces:
java.lang.Runnable

public class Preload
extends java.lang.Thread

Initializes Secure random number generation and registers Bouncycastle as a security provider.


Field Summary
static boolean debug
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Preload()
          Starts the preload of needed security providers, secure random initialization and preload of some security mechanism classes.
Preload(org.ssonet.util.PreloadListener pl)
          Runs the preload of needed security providers, secure random initialization and preload of some security mechanism classes.
 
Method Summary
 void run()
          Actually runs the preload activities.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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

debug

public static boolean debug
Constructor Detail

Preload

public Preload()
Starts the preload of needed security providers, secure random initialization and preload of some security mechanism classes. Preload runs as a single thread.

For testing purposes, initialization if secure random objects can be skipped by defining a system property "preload=testing".


Preload

public Preload(org.ssonet.util.PreloadListener pl)
Runs the preload of needed security providers, secure random initialization and preload of some security mechanism classes. Preload runs as a single thread. This constructor registers a PreloadListener, which is called when the preload thread is finished.

For testing purposes, initialization if secure random objects can be skipped by defining a system property "preload=testing".

Parameters:
pl - the PreloadListener to register
Method Detail

run

public void run()
Actually runs the preload activities.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Copyright © 2003 DRIM Team. All Rights Reserved.