?? caadmincommandfactory.java
字號:
/************************************************************************* * * * EJBCA: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package se.anatom.ejbca.admin;/** * Factory for CA Admin Commands. * * @version $Id: CaAdminCommandFactory.java,v 1.8 2004/04/16 07:38:57 anatom Exp $ */public class CaAdminCommandFactory { /** * Cannot create an instance of this class, only use static methods. */ private CaAdminCommandFactory() { } /** * Returns an Admin Command object based on contents in args[0]. * * @param args array of arguments typically passed from main(). * * @return Command object or null if args[0] does not specify a valid command. */ public static IAdminCommand getCommand(String[] args) { if (args.length < 1) { return null; } if (args[0].equals("makeroot")) { return new CaMakeRootCommand(args); } else if (args[0].equals("getrootcert")) { return new CaGetRootCertCommand(args); } else if (args[0].equals("listexpired")) { return new CaListExpiredCommand(args); } else if (args[0].equals("info")) { return new CaInfoCommand(args); } else if (args[0].equals("listcas")) { return new CaListCAsCommand(args); } else if (args[0].equals("init")) { return new CaInitCommand(args); } else if (args[0].equals("makereq")) { return new CaMakeReqCommand(args); } else if (args[0].equals("recrep")) { return new CaRecRepCommand(args); } else if (args[0].equals("processreq")) { return new CaProcessReqCommand(args); } else if (args[0].equals("createcrl")) { return new CaCreateCrlCommand(args); } else if (args[0].equals("getcrl")) { return new CaGetCrlCommand(args); } else if (args[0].equals("rolloverroot")) { return new CaRolloverRootCommand(args); } else if (args[0].equals("rolloversub")) { return new CaRolloverSubCommand(args); } else if (args[0].equals("exportprofiles")) { return new CaExportProfilesCommand(args); } else if (args[0].equals("importprofiles")) { return new CaImportProfilesCommand(args); } else { return null; } } // getCommand}// CaAdminCommandFactory
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -