ostore.security
Class GenerateRSAKeyPair

java.lang.Object
  |
  +--ostore.security.GenerateRSAKeyPair

public class GenerateRSAKeyPair
extends Object


Constructor Summary
GenerateRSAKeyPair()
           
 
Method Summary
static KeyPair genkeypair(int size, boolean debug)
          Generate a key pair with the default seed.
static KeyPair genkeypair(int size, byte[] seed, boolean debug)
          Generate a key pair with the following seed.
static void main(String[] argv)
           
static QSPublicKey qs_pkey(KeyPair kp)
           
static QSPrivateKey qs_skey(KeyPair kp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenerateRSAKeyPair

public GenerateRSAKeyPair()
Method Detail

genkeypair

public static KeyPair genkeypair(int size,
                                 boolean debug)
Generate a key pair with the default seed. This is the preferred method for generating keys.

Parameters:
size - The size of the key to generate
debug - Show debug output.
Returns:
The keypair generated.

genkeypair

public static KeyPair genkeypair(int size,
                                 byte[] seed,
                                 boolean debug)
Generate a key pair with the following seed. Note, specifying your own seed will result in less random keys then using the default seeding mechanism.

Parameters:
size - The size of the key to generate
seed - The seed to use. If null, seeds in default manner.
debug - Show debug output.
Returns:
The keypair generated.

qs_pkey

public static QSPublicKey qs_pkey(KeyPair kp)

qs_skey

public static QSPrivateKey qs_skey(KeyPair kp)

main

public static void main(String[] argv)