ePOST API

rice.post.security.ca
Class CAKeyGenerator

java.lang.Object
  extended by rice.post.security.ca.CAKeyGenerator

public class CAKeyGenerator
extends java.lang.Object

This class starts generates a new keypair for the certificate authority, asks for a password, and encrypts the keypair under the hash of the password into the provided filename.

Version:
$Id: CAKeyGenerator.java 2326 2005-03-14 23:04:14Z amislove $
Author:
amislove

Field Summary
static int MIN_PASSWORD_LENGTH
          The minimum length of a password.
 
Constructor Summary
CAKeyGenerator()
           
 
Method Summary
static java.lang.String fetchPassword(java.lang.String prompt)
          DESCRIBE THE METHOD
static java.lang.String getPassword()
          Returns a echo-off password from the command line
static void main(java.lang.String[] args)
          The main program for the CertificateAuthorityKeyGenerator class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_PASSWORD_LENGTH

public static int MIN_PASSWORD_LENGTH
The minimum length of a password.

Constructor Detail

CAKeyGenerator

public CAKeyGenerator()
Method Detail

getPassword

public static java.lang.String getPassword()
                                    throws java.io.IOException
Returns a echo-off password from the command line

Returns:
The Password value
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

fetchPassword

public static java.lang.String fetchPassword(java.lang.String prompt)
                                      throws java.io.IOException
DESCRIBE THE METHOD

Parameters:
prompt - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

main

public static void main(java.lang.String[] args)
The main program for the CertificateAuthorityKeyGenerator class

Parameters:
args - The command line arguments

ePOST API

Copyright © 2001-2005 - Rice Pastry.