KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > ui > cli > ra


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.ui.cli;
15
16 /**
17  * Implements the RA command line interface
18  *
19  * @version $Id: ra.java,v 1.3 2006/07/12 16:10:15 anatom Exp $
20  */

21 public class ra extends BaseCommand {
22     /**
23      * main RA
24      *
25      * @param args command line arguments
26      */

27     public static void main(String JavaDoc[] args) {
28         try {
29             IAdminCommand cmd = RaAdminCommandFactory.getCommand(args);
30
31             if (cmd != null) {
32                 cmd.execute();
33             } else {
34                 System.out.println(
35                     "Usage: RA adduser | deluser | setpwd | setclearpwd | setuserstatus | finduser | listnewusers | listusers | revokeuser | unrevokeuser | keyrecover | keyrecovernewest | setsubjectdirattr"); }
36         } catch (Exception JavaDoc e) {
37             System.out.println(e.getMessage());
38             //e.printStackTrace();
39
System.exit(-1);
40         }
41     }
42 }
43
Popular Tags