uk.ac.soton.itinnovation.grid.service.utils.webadmin
Class KeystoreGenerator

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.webadmin.KeystoreGenerator

public abstract class KeystoreGenerator
extends Object

This class provides a web interface for creating keys and certificates.


Constructor Summary
KeystoreGenerator()
           
 
Method Summary
static void generateKeystore(HttpServletRequest request, HttpServletResponse response)
           
static void showForm(Writer out, String downloadJSP)
          Display a form letting the user generate a new certificate for this machine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeystoreGenerator

public KeystoreGenerator()
Method Detail

showForm

public static void showForm(Writer out,
                            String downloadJSP)
                     throws UnknownHostException,
                            IOException
Display a form letting the user generate a new certificate for this machine.

Parameters:
out - stream to write to
downloadJSP - a JSP page containing just a call to generateKeystore()
Throws:
UnknownHostException
IOException

generateKeystore

public static void generateKeystore(HttpServletRequest request,
                                    HttpServletResponse response)
                             throws Stop,
                                    SignatureException,
                                    KeyStoreException,
                                    IOException,
                                    InvalidKeyException,
                                    NoSuchAlgorithmException,
                                    CertificateException
Throws:
Stop
SignatureException
KeyStoreException
IOException
InvalidKeyException
NoSuchAlgorithmException
CertificateException


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.