KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > xkms > client > xkmscli


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.xkms.client;
15
16 import org.ejbca.ui.cli.IAdminCommand;
17
18 /**
19  * Implements the EJBCA RA WS command line interface
20  *
21  * @version $Id: xkmscli.java,v 1.2 2007/01/07 00:31:51 herrvendil Exp $
22  */

23 public class xkmscli {
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 = XKMSCLICommandFactory.getCommand(args);
32
33             if (cmd != null) {
34                 cmd.execute();
35             } else {
36                 System.out.println(
37                     "Usage: locate | register | reissue | recover | revoke");
38             }
39         } catch (Exception JavaDoc e) {
40             System.out.println(e.getMessage());
41             e.printStackTrace();
42             System.exit(-1);
43         }
44     }
45 }
46
Free Books   Free Magazines  
Popular Tags