KeyPairGenerator Class

com.beasys.commerce.ebusiness.security
KeyPairGenerator Class

public class KeyPairGenerator

    extends Object

Generates a key pair using JSAFE


Hierarchy
Object
  KeyPairGenerator

Constructor Summary

KeyPairGenerator()

Constructor
 

Method Summary

public RSAKey[]
generateKeys(String password, MD5RandomBitsSource rbs, int kGParams)
Generates RSAPublicKey and RSAPrivateKeyPKCS8
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Constructor Detail

KeyPairGenerator

public KeyPairGenerator()
Constructor
 

Method Detail

generateKeys(String, MD5RandomBitsSource, int) Method

public RSAKey[] generateKeys(String password, 
                           MD5RandomBitsSource rbs, 
                           int kGParams)
throws Exception
Generates RSAPublicKey and RSAPrivateKeyPKCS8

Parameters

password
Password to encrypt private key in file storage
rbs
MD5RandomBitSource needed to generate a RSAPrivateKeyPKCS8
kGParams
MD5RandomBitSource needed to generate a RSAPrivateKeyPKCS8

Returns

RSAKey[] Array that holds an RSAPublicKey and an RSAPrivateKeyPKCS8

Exceptions

Exception