01: /*************************************************************************
02: * *
03: * EJBCA: The OpenSource Certificate Authority *
04: * *
05: * This software is free software; you can redistribute it and/or *
06: * modify it under the terms of the GNU Lesser General Public *
07: * License as published by the Free Software Foundation; either *
08: * version 2.1 of the License, or any later version. *
09: * *
10: * See terms of license at gnu.org. *
11: * *
12: *************************************************************************/package org.ejbca.ui.cli;
13:
14: /**
15: * Implements the RA command line interface
16: *
17: * @version $Id: ra.java,v 1.4 2007/06/18 12:16:22 jbagnert Exp $
18: */
19: public class ra extends BaseCommand {
20: /**
21: * main RA
22: *
23: * @param args command line arguments
24: */
25: public static void main(String[] args) {
26: try {
27: IAdminCommand cmd = RaAdminCommandFactory.getCommand(args);
28:
29: if (cmd != null) {
30: cmd.execute();
31: } else {
32: System.out
33: .println("Usage: RA adduser | deluser | setpwd | setclearpwd | setuserstatus | finduser | getusercert | listnewusers | listusers | revokeuser | unrevokeuser | keyrecover | keyrecovernewest | setsubjectdirattr");
34: }
35: } catch (Exception e) {
36: System.out.println(e.getMessage());
37: //e.printStackTrace();
38: System.exit(-1);
39: }
40: }
41: }
|