com.vexsoftware.votifier.crypto
Class RSAKeygen

java.lang.Object
  extended by com.vexsoftware.votifier.crypto.RSAKeygen

public class RSAKeygen
extends Object

An RSA key pair generator.

Author:
Blake Beaupain

Constructor Summary
RSAKeygen()
           
 
Method Summary
static KeyPair generate(int bits)
          Generates an RSA key pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAKeygen

public RSAKeygen()
Method Detail

generate

public static KeyPair generate(int bits)
                        throws Exception
Generates an RSA key pair.

Parameters:
bits - The amount of bits
Returns:
The key pair
Throws:
Exception


Copyright © 2013. All Rights Reserved.