1 /*
2  * @(#) $Id: CertTool.java,v 1.4 2003/07/08 08:13:52 pankaj Exp $
3  *
4  * Copyright (c) 2002-03 by Pankaj Kumar (http://www.pankaj-k.net). 
5  * All rights reserved.
6  *
7  * The license governing the use of this file can be found in the 
8  * root directory of the containing software.
9  */
10package org.jstk.cert;
11
12import java.util.*;
13import java.util.logging.Logger;
14import java.security.*;
15
16
17import org.jstk.*;
18
19
20public class CertTool extends JSTKAbstractTool {
21    public static final Logger logger = Logger.getLogger("org.jstk.cert");
22    static {
23        cmds.put("issue", new IssueCertCommand());
24        cmds.put("revoke", new RevokeCertCommand());
25        cmds.put("show", new ShowCommand());
26        cmds.put("crl", new CRLGenCommand());
27        cmds.put("validate", new ValidateCertPathCommand());
28        cmds.put("build", new BuildCertPathCommand());
29        cmds.put("setupca", new SetupCACommand());
30        cmds.put("cut", new CutCommand());
31    }
32    public String progName(){
33        String progName = System.getProperty("org.jstk.cert.progname");
34        if (progName == null)
35            progName = "java org.jstk.cert.CertTool";
36
37        return progName;
38    }
39    public String briefDescription(){
40        return "a minimal CA tool";
41    }
42
43
44    public static void main(String[] args) throws Exception {
45        CertTool ct = new CertTool();
46        System.exit(ct.execute(args));
47    }
48}