📄 xkmsclicommandfactory.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 org.ejbca.core.protocol.xkms.client;import org.ejbca.ui.cli.IAdminCommand;/** * Factory for XKMS CLI Commands. * * @version $Id: XKMSCLICommandFactory.java,v 1.2 2007/01/07 00:31:51 herrvendil Exp $ * @author Philip Vendil */public class XKMSCLICommandFactory { /** * Cannot create an instance of this class, only use static methods. */ private XKMSCLICommandFactory() { } /** * 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("locate")) { return new LocateCommand(args); } if (args[0].equals("register")) { return new RegisterCommand(args); } if (args[0].equals("reissue")) { return new ReissueCommand(args); } if (args[0].equals("recover")) { return new RecoverCommand(args); } if (args[0].equals("revoke")) { return new RevokeCommand(args); } else { return null; } } // getCommand}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -