Class cryptix.pgp_examples.KeyGen
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp_examples.KeyGen

java.lang.Object
   |
   +----cryptix.pgp_examples.KeyGen

public class KeyGen
extends Object
implements RSAKeyGenObserver

Variable Index

 o in
 o out

Constructor Index

 o KeyGen()
 o KeyGen(InputStream, PrintStream)

Method Index

 o begin()
 o getKey(int, RandomStream)
 o getKeyLength()
 o getPassphrase()
WARNING this prints the passphrase out on to the screen.
 o getRandomStream(int)
This is NOT VERY SECURE as the seed is rather simplistic.
 o getUserName()
 o handleEvent(int)
 o main(String[])

Variables

 o in
  protected DataInputStream in
 o out
  protected PrintStream out

Constructors

 o KeyGen
  public KeyGen(InputStream in0,
                PrintStream out0)
 o KeyGen
  public KeyGen()

Methods

 o main
  public static void main(String argv[])
 o begin
  protected final void begin()
 o getKey
  protected SecretKey getKey(int length,
                             RandomStream rs)
 o getUserName
  protected String getUserName() throws IOException
 o getKeyLength
  protected int getKeyLength() throws IOException
 o getRandomStream
  protected RandomStream getRandomStream(int keyLength) throws IOException
This is NOT VERY SECURE as the seed is rather simplistic.
 o getPassphrase
  protected String getPassphrase() throws IOException
WARNING this prints the passphrase out on to the screen.
 o handleEvent
  public void handleEvent(int evnt)

All Packages  Class Hierarchy  This Package  Previous  Next  Index