SafeAPI v1.20

com.safeapi
Class SeedBox

java.lang.Object
  extended bycom.safeapi.SeedBox

public final class SeedBox
extends Object

Seed generations visual methods


Constructor Summary
SeedBox()
          Loads an instance of SeedBox.
 
Method Summary
 byte[] getSeedValue()
          Gets the seed value.
 boolean seedCanceledByUser()
          Allows developer to know if the window has been closed before the end of the seeding process.
 byte[] seedDialog(String sTitle, String sCaption, int SeedSize)
          Creates a seeder dialog box, generates the seed by listening to user typing and returns the bytes of the seed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeedBox

public SeedBox()
Loads an instance of SeedBox.

Method Detail

seedDialog

public byte[] seedDialog(String sTitle,
                         String sCaption,
                         int SeedSize)
Creates a seeder dialog box, generates the seed by listening to user typing and returns the bytes of the seed.

Parameters:
sTitle - the title of the dialog window.
sCaption - the caption of the dialog window.
SeedSize - the bit length of the seed to generate (typically 128).
Returns:
the seed (bytes expression).

seedCanceledByUser

public boolean seedCanceledByUser()
Allows developer to know if the window has been closed before the end of the seeding process.

Returns:
true if user cancelled the dialog box - false if gets to the end of the seed process.

getSeedValue

public byte[] getSeedValue()
Gets the seed value.

Returns:
the value of the generated seed.

SafeAPI v1.20

Copyright © SafeLogic 2005