KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > ws > client > ejbcawsracli


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13  
14 package org.ejbca.core.protocol.ws.client;
15
16 import org.ejbca.ui.cli.IAdminCommand;
17
18 /**
19  * Implements the EJBCA RA WS command line interface
20  *
21  * @version $Id: ejbcawsracli.java,v 1.1 2006/09/17 23:00:25 herrvendil Exp $
22  */

23 public class ejbcawsracli {
24     /**
25      * main Client
26      *
27      * @param args command line arguments
28      */

29     public static void main(String JavaDoc[] args) {
30         try {
31             IAdminCommand cmd = EJBCAWSRACommandFactory.getCommand(args);
32
33             if (cmd != null) {
34                 cmd.execute();
35             } else {
36                 System.out.println(
37                     "Usage: edituser | finduser | findcerts | pkcs10req | pkcs12req | revokecert | revoketoken | revokeuser | checkrevokationstatus");
38             }
39         } catch (Exception JavaDoc e) {
40             System.out.println(e.getMessage());
41             e.printStackTrace();
42             System.exit(-1);
43         }
44     }
45 }
46
Popular Tags