ewe.security
Class RSA

java.lang.Object
  extended byewe.security.RSA

public class RSA
extends Object

This class is used to generate RSA Public Key pairs.


Constructor Summary
RSA()
           
 
Method Summary
static RSAKey[] createNew()
          Create a new RSAKey pair with a length of 400 bits and using the current time as the random seed.
static RSAKey[] createNew(int bitlen, long seed)
          Create a new RSAKey pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, toString
 

Constructor Detail

RSA

public RSA()
Method Detail

createNew

public static RSAKey[] createNew()
Create a new RSAKey pair with a length of 400 bits and using the current time as the random seed.

Returns:
An array of two keys - either one of which can be the private or public key.

createNew

public static RSAKey[] createNew(int bitlen,
                                 long seed)
Create a new RSAKey pair. Note that this method can take quite some time to execute, depending on the bit size required.

Parameters:
bitlen - the number of bits for each key.
seed - any random seed value.
Returns:
An array of two keys - either one of which can be the private or public key.