1 13 14 package org.ejbca.core.protocol.xkms.client; 15 16 import org.ejbca.ui.cli.IAdminCommand; 17 18 23 public class xkmscli { 24 29 public static void main(String [] 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 e) { 40 System.out.println(e.getMessage()); 41 e.printStackTrace(); 42 System.exit(-1); 43 } 44 } 45 } 46 | Popular Tags |