ostore.security
Class GenerateRSAKeyPair
java.lang.Object
|
+--ostore.security.GenerateRSAKeyPair
- public class GenerateRSAKeyPair
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenerateRSAKeyPair
public GenerateRSAKeyPair()
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 generatedebug
- 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 generateseed
- 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)